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
- FlowType_1.FlowTypeType.Subflow == self._flow.TYPE) {
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
- FlowType_1.FlowTypeType.Subflow == self._flow.TYPE) {
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 {
@@ -1,7 +1,3 @@
1
1
  import { Node } from 'node-red';
2
- import { FlowType } from './FlowType';
3
- type NodeType = Node & {
4
- _flow: FlowType;
5
- _alias: string;
6
- };
2
+ type NodeType = Node;
7
3
  export default NodeType;
@@ -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.5.0",
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": "^1.3.3",
50
- "hap-nodejs": "0.11.0",
51
- "node-persist": "^3.1.0",
52
- "semver": "^7.3.8",
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.5",
58
+ "@homebridge/ciao": "^1.1.7",
57
59
  "@node-red/registry": "^2.2.3",
58
- "@types/mocha": "^10.0.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.2.1",
62
- "@types/node-red-node-test-helper": "^0.2.2",
63
- "@types/semver": "^7.3.13",
64
- "@types/uuid": "^8.3.4",
65
- "@typescript-eslint/eslint-plugin": "^5.43.0",
66
- "@typescript-eslint/parser": "^5.43.0",
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.28.0",
69
- "eslint-config-prettier": "^8.5.0",
70
- "eslint-plugin-prettier": "^4.2.1",
71
- "eslint-plugin-simple-import-sort": "^8.0.0",
72
- "husky": "^8.0.2",
73
- "mocha": "^10.1.0",
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.0",
76
- "prettier": "^2.7.1",
77
- "rimraf": "^3.0.2",
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": "^4.9.3"
81
+ "typescript": "^5.1.6"
80
82
  },
81
83
  "engines": {
82
84
  "node": ">=10.22.1"
@@ -1,9 +0,0 @@
1
- declare enum FlowTypeType {
2
- Subflow = "subflow",
3
- Flow = "flow"
4
- }
5
- type FlowType = {
6
- TYPE: FlowTypeType;
7
- path: string;
8
- };
9
- export { FlowType, FlowTypeType };
@@ -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;