mirror of
https://github.com/koush/scrypted.git
synced 2026-06-09 20:40:23 +01:00
fix(homekit): bump to latest @homebridge/hap-nodejs and @homebridge/ciao to catch the loopback sender packet leak (#2029)
* fix(homekit): bump to latest @homebridge/hap-nodejs and @homebridge/ciao to catch the loopback sender packet leak * remove dead .gitmodules
This commit is contained in:
3
plugins/homekit/.gitmodules
vendored
3
plugins/homekit/.gitmodules
vendored
@@ -1,3 +0,0 @@
|
||||
[submodule "HAP-NodeJS"]
|
||||
path = HAP-NodeJS
|
||||
url = git@github.com:koush/HAP-NodeJS.git
|
||||
1607
plugins/homekit/package-lock.json
generated
1607
plugins/homekit/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -36,9 +36,9 @@
|
||||
"realfs": true
|
||||
},
|
||||
"dependencies": {
|
||||
"@homebridge/hap-nodejs": "^2.1.3",
|
||||
"@koush/werift-src": "file:../../external/werift",
|
||||
"check-disk-space": "^3.4.0",
|
||||
"hap-nodejs": "^1.1.0",
|
||||
"lodash": "^4.17.21",
|
||||
"mkdirp": "^3.0.1",
|
||||
"qrcode-svg": "^1.1.0"
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
export * from 'hap-nodejs/dist/lib/definitions'; // must be loaded before Characteristic and Service class
|
||||
export * from 'hap-nodejs/dist/lib/Accessory';
|
||||
export * as uuid from 'hap-nodejs/dist/lib/util/uuid';
|
||||
export * from 'hap-nodejs/dist/lib/Characteristic';
|
||||
export * from 'hap-nodejs/dist/lib/camera';
|
||||
export * from 'hap-nodejs/dist/lib/camera/RecordingManagement';
|
||||
export * from 'hap-nodejs/dist/lib/model/ControllerStorage';
|
||||
export * from 'hap-nodejs/dist/lib/util/eventedhttp';
|
||||
export * from 'hap-nodejs/dist/lib/controller/CameraController';
|
||||
export * from 'hap-nodejs/dist/lib/datastream/DataStreamServer';
|
||||
export * from 'hap-nodejs/dist/lib/Service';
|
||||
export * from 'hap-nodejs/dist/types';
|
||||
export * from 'hap-nodejs/dist/lib/model/HAPStorage';
|
||||
export * from 'hap-nodejs/dist/lib/Bridge';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/definitions'; // must be loaded before Characteristic and Service class
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/Accessory';
|
||||
export * as uuid from '@homebridge/hap-nodejs/dist/lib/util/uuid';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/Characteristic';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/camera';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/camera/RecordingManagement';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/model/ControllerStorage';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/util/eventedhttp';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/controller/CameraController';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/datastream/DataStreamServer';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/Service';
|
||||
export * from '@homebridge/hap-nodejs/dist/types';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/model/HAPStorage';
|
||||
export * from '@homebridge/hap-nodejs/dist/lib/Bridge';
|
||||
|
||||
4
plugins/homekit/webpack-accessory-info-loader.js
Normal file
4
plugins/homekit/webpack-accessory-info-loader.js
Normal file
@@ -0,0 +1,4 @@
|
||||
module.exports = source => source.replace(
|
||||
/JSON\.parse\(\(0, node_fs_1\.readFileSync\)\(require\.resolve\("\.\.\/\.\.\/\.\.\/package\.json"\), "utf-8"\)\)/,
|
||||
'require("../../../package.json")'
|
||||
);
|
||||
12
plugins/homekit/webpack.nodejs.config.js
Normal file
12
plugins/homekit/webpack.nodejs.config.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const path = require('path');
|
||||
const defaultConfig = require(process.env.SCRYPTED_DEFAULT_WEBPACK_CONFIG);
|
||||
|
||||
// @homebridge/hap-nodejs uses readFileSync(require.resolve('package.json'))
|
||||
// transform it to a plain require() which webpack handles correctly.
|
||||
defaultConfig.module.rules.push({
|
||||
test: /node_modules\/@homebridge\/hap-nodejs\/dist\/lib\/model\/AccessoryInfo\.js$/,
|
||||
loader: path.resolve(__dirname, 'webpack-accessory-info-loader.js'),
|
||||
enforce: 'pre',
|
||||
});
|
||||
|
||||
module.exports = defaultConfig;
|
||||
Reference in New Issue
Block a user