node-red-contrib-homekit-bridged 1.5.0 → 1.6.0-dev.0
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.
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const logger_1 = require("@nrchkb/logger");
|
|
7
7
|
const hap_nodejs_1 = require("hap-nodejs");
|
|
8
8
|
const NRCHKBError_1 = __importDefault(require("./NRCHKBError"));
|
|
9
|
-
const FlowType_1 = require("./types/FlowType");
|
|
10
9
|
const HostType_1 = __importDefault(require("./types/HostType"));
|
|
11
10
|
const NodeStatusUtils_1 = require("./utils/NodeStatusUtils");
|
|
12
11
|
module.exports = (RED) => {
|
|
@@ -81,7 +80,7 @@ module.exports = (RED) => {
|
|
|
81
80
|
}
|
|
82
81
|
};
|
|
83
82
|
const configure = function () {
|
|
84
|
-
var _a;
|
|
83
|
+
var _a, _b;
|
|
85
84
|
const self = this;
|
|
86
85
|
const log = (0, logger_1.logger)('NRCHKB', 'HAPServiceNode', self.config.name, self);
|
|
87
86
|
const Utils = require('./utils')(self);
|
|
@@ -121,8 +120,8 @@ module.exports = (RED) => {
|
|
|
121
120
|
self.name = self.config.name;
|
|
122
121
|
if (self.hasOwnProperty('_flow') &&
|
|
123
122
|
self.hasOwnProperty('_alias') &&
|
|
124
|
-
self._flow.hasOwnProperty('TYPE') &&
|
|
125
|
-
|
|
123
|
+
((_b = self._flow) === null || _b === void 0 ? void 0 : _b.hasOwnProperty('TYPE')) &&
|
|
124
|
+
self._flow.TYPE === 'subflow') {
|
|
126
125
|
self.uniqueIdentifier = self._alias + '/' + self._flow.path;
|
|
127
126
|
}
|
|
128
127
|
else {
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const logger_1 = require("@nrchkb/logger");
|
|
7
7
|
const hap_nodejs_1 = require("hap-nodejs");
|
|
8
8
|
const NRCHKBError_1 = __importDefault(require("./NRCHKBError"));
|
|
9
|
-
const FlowType_1 = require("./types/FlowType");
|
|
10
9
|
const HostType_1 = __importDefault(require("./types/HostType"));
|
|
11
10
|
const NodeStatusUtils_1 = require("./utils/NodeStatusUtils");
|
|
12
11
|
module.exports = (RED) => {
|
|
@@ -81,7 +80,7 @@ module.exports = (RED) => {
|
|
|
81
80
|
}
|
|
82
81
|
};
|
|
83
82
|
const configure = function () {
|
|
84
|
-
var _a;
|
|
83
|
+
var _a, _b;
|
|
85
84
|
const self = this;
|
|
86
85
|
const log = (0, logger_1.logger)('NRCHKB', 'HAPServiceNode2', self.config.name, self);
|
|
87
86
|
const Utils = require('./utils')(self);
|
|
@@ -121,8 +120,8 @@ module.exports = (RED) => {
|
|
|
121
120
|
self.name = self.config.name;
|
|
122
121
|
if (self.hasOwnProperty('_flow') &&
|
|
123
122
|
self.hasOwnProperty('_alias') &&
|
|
124
|
-
self._flow.hasOwnProperty('TYPE') &&
|
|
125
|
-
|
|
123
|
+
((_b = self._flow) === null || _b === void 0 ? void 0 : _b.hasOwnProperty('TYPE')) &&
|
|
124
|
+
self._flow.TYPE === 'subflow') {
|
|
126
125
|
self.uniqueIdentifier = self._alias + '/' + self._flow.path;
|
|
127
126
|
}
|
|
128
127
|
else {
|
|
@@ -8,5 +8,4 @@ var StorageType;
|
|
|
8
8
|
StorageType["HOST"] = "host";
|
|
9
9
|
StorageType["CUSTOM_CHARACTERISTICS"] = "customCharacteristics";
|
|
10
10
|
StorageType["OTHER"] = "other";
|
|
11
|
-
})(StorageType || (StorageType = {}));
|
|
12
|
-
exports.StorageType = StorageType;
|
|
11
|
+
})(StorageType || (exports.StorageType = StorageType = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-homekit-bridged",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0-dev.0",
|
|
4
4
|
"description": "Node-RED nodes to simulate Apple HomeKit devices.",
|
|
5
5
|
"main": "build/nodes/nrchkb.js",
|
|
6
6
|
"scripts": {
|
|
@@ -46,37 +46,39 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/NRCHKB/node-red-contrib-homekit-bridged#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@nrchkb/logger": "^
|
|
50
|
-
"hap-nodejs": "0.11.
|
|
51
|
-
"node-persist": "^3.1.
|
|
52
|
-
"
|
|
49
|
+
"@nrchkb/logger": "^2.0.0",
|
|
50
|
+
"hap-nodejs": "0.11.1",
|
|
51
|
+
"node-persist": "^3.1.3",
|
|
52
|
+
"react": "^18.2.0",
|
|
53
|
+
"react-dom": "^18.2.0",
|
|
54
|
+
"semver": "^7.5.4",
|
|
53
55
|
"uuid": "^9.0.0"
|
|
54
56
|
},
|
|
55
57
|
"devDependencies": {
|
|
56
|
-
"@homebridge/ciao": "^1.1.
|
|
58
|
+
"@homebridge/ciao": "^1.1.7",
|
|
57
59
|
"@node-red/registry": "^2.2.3",
|
|
58
|
-
"@types/mocha": "^10.0.
|
|
60
|
+
"@types/mocha": "^10.0.1",
|
|
59
61
|
"@types/node": "^10.17.60",
|
|
60
62
|
"@types/node-persist": "^3.1.3",
|
|
61
|
-
"@types/node-red": "^1.
|
|
62
|
-
"@types/node-red-node-test-helper": "^0.
|
|
63
|
-
"@types/semver": "^7.
|
|
64
|
-
"@types/uuid": "^
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
66
|
-
"@typescript-eslint/parser": "^
|
|
63
|
+
"@types/node-red": "^1.3.1",
|
|
64
|
+
"@types/node-red-node-test-helper": "^0.3.0",
|
|
65
|
+
"@types/semver": "^7.5.0",
|
|
66
|
+
"@types/uuid": "^9.0.2",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
68
|
+
"@typescript-eslint/parser": "^6.4.0",
|
|
67
69
|
"babel-eslint": "^10.1.0",
|
|
68
|
-
"eslint": "^8.
|
|
69
|
-
"eslint-config-prettier": "^
|
|
70
|
-
"eslint-plugin-prettier": "^
|
|
71
|
-
"eslint-plugin-simple-import-sort": "^
|
|
72
|
-
"husky": "^8.0.
|
|
73
|
-
"mocha": "^10.
|
|
70
|
+
"eslint": "^8.47.0",
|
|
71
|
+
"eslint-config-prettier": "^9.0.0",
|
|
72
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
73
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
74
|
+
"husky": "^8.0.3",
|
|
75
|
+
"mocha": "^10.2.0",
|
|
74
76
|
"node-red": "^2.2.3",
|
|
75
|
-
"node-red-node-test-helper": "^0.3.
|
|
76
|
-
"prettier": "^
|
|
77
|
-
"rimraf": "^
|
|
77
|
+
"node-red-node-test-helper": "^0.3.2",
|
|
78
|
+
"prettier": "^3.0.2",
|
|
79
|
+
"rimraf": "^5.0.1",
|
|
78
80
|
"ts-node": "^10.9.1",
|
|
79
|
-
"typescript": "^
|
|
81
|
+
"typescript": "^5.1.6"
|
|
80
82
|
},
|
|
81
83
|
"engines": {
|
|
82
84
|
"node": ">=10.22.1"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FlowTypeType = void 0;
|
|
4
|
-
var FlowTypeType;
|
|
5
|
-
(function (FlowTypeType) {
|
|
6
|
-
FlowTypeType["Subflow"] = "subflow";
|
|
7
|
-
FlowTypeType["Flow"] = "flow";
|
|
8
|
-
})(FlowTypeType || (FlowTypeType = {}));
|
|
9
|
-
exports.FlowTypeType = FlowTypeType;
|