node-red-contrib-homekit-bridged 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/api.js +4 -0
- package/build/lib/cameraSource/index.js +17 -7
- package/build/lib/utils/MdnsUtils.js +17 -7
- package/build/lib/utils/ServiceUtils.js +17 -7
- package/build/nodes/nrchkb.js +17 -7
- package/package.json +10 -10
package/build/lib/api.js
CHANGED
|
@@ -70,6 +70,7 @@ module.exports = function (RED) {
|
|
|
70
70
|
serviceData[serialized.displayName] = Object.assign(Object.assign({}, serviceData === null || serviceData === void 0 ? void 0 : serviceData[serialized.displayName]), serialized);
|
|
71
71
|
});
|
|
72
72
|
RED.httpAdmin.get('/nrchkb/service/types', RED.auth.needsPermission('nrchkb.read'), (_req, res) => {
|
|
73
|
+
res.setHeader('Content-Type', 'application/json');
|
|
73
74
|
res.json(serviceData);
|
|
74
75
|
});
|
|
75
76
|
};
|
|
@@ -121,6 +122,7 @@ module.exports = function (RED) {
|
|
|
121
122
|
const experimental = process.env.NRCHKB_EXPERIMENTAL === 'true';
|
|
122
123
|
log.debug(`Running experimental: ${experimental}`);
|
|
123
124
|
RED.httpAdmin.get('/nrchkb/info', RED.auth.needsPermission('nrchkb.read'), (_req, res) => {
|
|
125
|
+
res.setHeader('Content-Type', 'application/json');
|
|
124
126
|
res.json({
|
|
125
127
|
version: xyzVersion,
|
|
126
128
|
experimental,
|
|
@@ -256,6 +258,7 @@ module.exports = function (RED) {
|
|
|
256
258
|
log.debug('Initialize NRCHKBCustomCharacteristicsAPI');
|
|
257
259
|
getCustomCharacteristics().then((value) => refreshCustomCharacteristics(value));
|
|
258
260
|
RED.httpAdmin.get('/nrchkb/config', RED.auth.needsPermission('nrchkb.read'), (_req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
res.setHeader('Content-Type', 'application/json');
|
|
259
262
|
res.json({
|
|
260
263
|
customCharacteristics: yield getCustomCharacteristics(),
|
|
261
264
|
});
|
|
@@ -284,6 +287,7 @@ module.exports = function (RED) {
|
|
|
284
287
|
accessoryCategoriesData[keyNumber] = HapCategories_1.default[keyNumber];
|
|
285
288
|
});
|
|
286
289
|
RED.httpAdmin.get('/nrchkb/accessory/categories', RED.auth.needsPermission('nrchkb.read'), (_req, res) => {
|
|
290
|
+
res.setHeader('Content-Type', 'application/json');
|
|
287
291
|
res.json(accessoryCategoriesData);
|
|
288
292
|
});
|
|
289
293
|
};
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
const logger_1 = require("@nrchkb/logger");
|
|
27
37
|
const util = __importStar(require("util"));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
const net = __importStar(require("net"));
|
|
27
37
|
const os = __importStar(require("os"));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
package/build/nodes/nrchkb.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-homekit-bridged",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "Node-RED nodes to simulate Apple HomeKit devices.",
|
|
5
5
|
"main": "build/nodes/nrchkb.js",
|
|
6
6
|
"scripts": {
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"homepage": "https://github.com/NRCHKB/node-red-contrib-homekit-bridged#readme",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@nrchkb/logger": "~3.1.1",
|
|
46
|
-
"hap-nodejs": "0.12.3
|
|
46
|
+
"hap-nodejs": "0.12.3",
|
|
47
47
|
"node-persist": "^3.1.3",
|
|
48
|
-
"semver": "~7.6.
|
|
49
|
-
"uuid": "~
|
|
48
|
+
"semver": "~7.6.3",
|
|
49
|
+
"uuid": "~11.0.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@homebridge/ciao": "~1.3.
|
|
53
|
-
"@node-red/registry": "^4.0.
|
|
54
|
-
"@types/mocha": "^10.0.
|
|
52
|
+
"@homebridge/ciao": "~1.3.1",
|
|
53
|
+
"@node-red/registry": "^4.0.8",
|
|
54
|
+
"@types/mocha": "^10.0.10",
|
|
55
55
|
"@types/node": "^18",
|
|
56
56
|
"@types/node-persist": "^3.1.8",
|
|
57
57
|
"@types/node-red": "^1.3.5",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
69
69
|
"husky": "^9.0.11",
|
|
70
70
|
"mocha": "^10.6.0",
|
|
71
|
-
"node-red": "^4.0.
|
|
71
|
+
"node-red": "^4.0.8",
|
|
72
72
|
"node-red-node-test-helper": "^0.3.4",
|
|
73
|
-
"prettier": "^3.
|
|
73
|
+
"prettier": "^3.4.2",
|
|
74
74
|
"ts-node": "^10.9.2",
|
|
75
|
-
"typescript": "^5.
|
|
75
|
+
"typescript": "^5.7.3"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": ">=18"
|