diff --git a/package-lock.json b/package-lock.json index 673602b..f44f415 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5634,15 +5634,15 @@ } }, "node_modules/homebridge": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/homebridge/-/homebridge-1.5.1.tgz", - "integrity": "sha512-srujAWXhBe/a5YaKY5dQOvd4ISwDePmCtY0ldJlS21/wt9vnW4H+UXDJ6RULwlBIPs0SPheQ2gIIP/E1d5e+bQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/homebridge/-/homebridge-1.6.0.tgz", + "integrity": "sha512-n47db4ndrBOSxuF6zRFbBypuhW7dZjCoGJz03O9PfGrwsqjyzJyxkzSIAjT9HgbTdvNYDNGz/tMXSLoX0m5zGw==", "dev": true, "dependencies": { "chalk": "^4.1.2", "commander": "5.1.0", "fs-extra": "^10.1.0", - "hap-nodejs": "^0.10.4", + "hap-nodejs": "~0.11.0", "qrcode-terminal": "^0.12.0", "semver": "^7.3.7", "source-map-support": "^0.5.21" @@ -5664,45 +5664,6 @@ "node": ">=0.12.0" } }, - "node_modules/homebridge/node_modules/@homebridge/dbus-native": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@homebridge/dbus-native/-/dbus-native-0.4.2.tgz", - "integrity": "sha512-rg6DUg6xOttzn73HA1+3G2o1ezRj0+DzPMEJqasrpq7FcAxMcTyOZ96GfcDN4pLUz62hMuywIeVZ4F6cc/g6Ig==", - "dev": true, - "dependencies": { - "@homebridge/long": "^5.2.1", - "@homebridge/put": "~0.0.8", - "event-stream": "^4.0.0", - "hexy": "^0.2.10", - "minimist": "^1.2.6", - "safe-buffer": "^5.1.1", - "xml2js": "^0.4.17" - }, - "bin": { - "dbus2js": "bin/dbus2js.js" - } - }, - "node_modules/homebridge/node_modules/hap-nodejs": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/hap-nodejs/-/hap-nodejs-0.10.4.tgz", - "integrity": "sha512-+ydtdh7Mw0Ttjv1ylWoGUMfU1Qhi0CVBAdABco+gdzOOkl9j2V1JKZKOduWvyAdhc73ZpElyREoTTVPQ7H0UoA==", - "dev": true, - "dependencies": { - "@homebridge/ciao": "^1.1.5", - "@homebridge/dbus-native": "^0.4.2", - "bonjour-hap": "~3.6.3", - "debug": "^4.3.4", - "fast-srp-hap": "2.0.4", - "futoin-hkdf": "~1.4.3", - "node-persist": "^0.0.11", - "source-map-support": "^0.5.21", - "tslib": "^2.4.0", - "tweetnacl": "^1.0.3" - }, - "engines": { - "node": ">=10.17.0" - } - }, "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", @@ -15203,53 +15164,18 @@ "dev": true }, "homebridge": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/homebridge/-/homebridge-1.5.1.tgz", - "integrity": "sha512-srujAWXhBe/a5YaKY5dQOvd4ISwDePmCtY0ldJlS21/wt9vnW4H+UXDJ6RULwlBIPs0SPheQ2gIIP/E1d5e+bQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/homebridge/-/homebridge-1.6.0.tgz", + "integrity": "sha512-n47db4ndrBOSxuF6zRFbBypuhW7dZjCoGJz03O9PfGrwsqjyzJyxkzSIAjT9HgbTdvNYDNGz/tMXSLoX0m5zGw==", "dev": true, "requires": { "chalk": "^4.1.2", "commander": "5.1.0", "fs-extra": "^10.1.0", - "hap-nodejs": "^0.10.4", + "hap-nodejs": "~0.11.0", "qrcode-terminal": "^0.12.0", "semver": "^7.3.7", "source-map-support": "^0.5.21" - }, - "dependencies": { - "@homebridge/dbus-native": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@homebridge/dbus-native/-/dbus-native-0.4.2.tgz", - "integrity": "sha512-rg6DUg6xOttzn73HA1+3G2o1ezRj0+DzPMEJqasrpq7FcAxMcTyOZ96GfcDN4pLUz62hMuywIeVZ4F6cc/g6Ig==", - "dev": true, - "requires": { - "@homebridge/long": "^5.2.1", - "@homebridge/put": "~0.0.8", - "event-stream": "^4.0.0", - "hexy": "^0.2.10", - "minimist": "^1.2.6", - "safe-buffer": "^5.1.1", - "xml2js": "^0.4.17" - } - }, - "hap-nodejs": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/hap-nodejs/-/hap-nodejs-0.10.4.tgz", - "integrity": "sha512-+ydtdh7Mw0Ttjv1ylWoGUMfU1Qhi0CVBAdABco+gdzOOkl9j2V1JKZKOduWvyAdhc73ZpElyREoTTVPQ7H0UoA==", - "dev": true, - "requires": { - "@homebridge/ciao": "^1.1.5", - "@homebridge/dbus-native": "^0.4.2", - "bonjour-hap": "~3.6.3", - "debug": "^4.3.4", - "fast-srp-hap": "2.0.4", - "futoin-hkdf": "~1.4.3", - "node-persist": "^0.0.11", - "source-map-support": "^0.5.21", - "tslib": "^2.4.0", - "tweetnacl": "^1.0.3" - } - } } }, "homebridge-cmdswitch2": { diff --git a/src/ambient.d.ts b/src/ambient.d.ts index 0892931..fd2df59 100644 --- a/src/ambient.d.ts +++ b/src/ambient.d.ts @@ -13,3 +13,8 @@ declare module 'hap-node-client' { on(event: 'Ready', callback: (v: unknown) => void): void } } + +// Workaround for "node_modules/hap-nodejs/dist/lib/Advertiser.d.ts:5:29 - error TS7016: Could not find a declaration file for module '@homebridge/dbus-native'. '…/node_modules/@homebridge/dbus-native/index.js' implicitly has an 'any' type." +declare module '@homebridge/dbus-native' { + type InvokeError = unknown +}