Skip to content

Commit

Permalink
bump version 1.0.7 and update local-devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Dickinson committed May 16, 2022
1 parent 101cdc7 commit 1c14ea3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tp-link-tapo-connect",
"version": "1.0.6",
"version": "1.0.7",
"description": "JS Library for connecting to TP-Link Tapo devices",
"main": "dist/api.js",
"types": "dist/api.d.ts",
Expand All @@ -24,7 +24,7 @@
},
"dependencies": {
"axios": "^0.21.4",
"local-devices": "^3.1.0",
"local-devices": "^3.2.0",
"uuid": "^8.3.2"
}
}
3 changes: 2 additions & 1 deletion src/network-tools.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import find from 'local-devices'

export const resolveMacToIp = async (mac: string) :Promise<string> => {
const devices = await find();
//@ts-ignore
const devices = await find(null, true);
return devices.find(device => tidyMac(device.mac) == tidyMac(mac)).ip
}

Expand Down

0 comments on commit 1c14ea3

Please # to comment.