diff --git a/package-lock.json b/package-lock.json index 014c50e..a5ab725 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "tp-link-tapo-connect", - "version": "1.0.6", + "version": "1.0.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "tp-link-tapo-connect", - "version": "1.0.6", + "version": "1.0.7", "license": "ISC", "dependencies": { "axios": "^0.21.4", - "local-devices": "^3.1.0", + "local-devices": "^3.2.0", "uuid": "^8.3.2" }, "devDependencies": { @@ -1534,7 +1534,7 @@ "node_modules/cidr-regex": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/cidr-regex/-/cidr-regex-1.0.7.tgz", - "integrity": "sha1-N4L++3nIHX0zBpDN4xoP40Rf05s=" + "integrity": "sha512-4sQNVjJw/I3kHyb9FGSJ/dBT18BP7pf5zongGsEYExNvtTss24hgJxZr0JK1eWlumX/ij4yiR/vYlndRynnkDQ==" }, "node_modules/cjs-module-lexer": { "version": "0.6.0", @@ -2724,9 +2724,9 @@ "dev": true }, "node_modules/ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=" + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" }, "node_modules/ip-address": { "version": "6.4.0", @@ -7531,7 +7531,7 @@ "cidr-regex": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/cidr-regex/-/cidr-regex-1.0.7.tgz", - "integrity": "sha1-N4L++3nIHX0zBpDN4xoP40Rf05s=" + "integrity": "sha512-4sQNVjJw/I3kHyb9FGSJ/dBT18BP7pf5zongGsEYExNvtTss24hgJxZr0JK1eWlumX/ij4yiR/vYlndRynnkDQ==" }, "cjs-module-lexer": { "version": "0.6.0", @@ -8454,9 +8454,9 @@ "dev": true }, "ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=" + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" }, "ip-address": { "version": "6.4.0", diff --git a/package.json b/package.json index b8fbe7f..079bf68 100644 --- a/package.json +++ b/package.json @@ -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", @@ -24,7 +24,7 @@ }, "dependencies": { "axios": "^0.21.4", - "local-devices": "^3.1.0", + "local-devices": "^3.2.0", "uuid": "^8.3.2" } } diff --git a/src/network-tools.ts b/src/network-tools.ts index 09f9148..a938e2c 100644 --- a/src/network-tools.ts +++ b/src/network-tools.ts @@ -1,7 +1,8 @@ import find from 'local-devices' export const resolveMacToIp = async (mac: string) :Promise => { - const devices = await find(); + //@ts-ignore + const devices = await find(null, true); return devices.find(device => tidyMac(device.mac) == tidyMac(mac)).ip }