isy-nodejs 1.0.1-alpha.4 → 1.0.1-alpha.5
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/dist/cjs/ISY.js +6 -1
- package/dist/cjs/ISY.js.map +1 -1
- package/dist/cjs/types/ISY.d.ts.map +1 -1
- package/dist/esm/ISY.js +6 -1
- package/dist/esm/ISY.js.map +1 -1
- package/dist/esm/types/ISY.d.ts.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/ISY.ts +5 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "isy-nodejs",
|
|
3
3
|
"description": "Node.js wrapper for ISY interface including websockets for change notifications. Fork of isy-js by Rod Toll. Designed to be used in a node.js application.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.0.1-alpha.
|
|
5
|
+
"version": "1.0.1-alpha.5",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Pradeep Mouli"
|
|
8
8
|
},
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "ce49adae004a6ba0589251732b944a3eb3edc1a2"
|
|
75
75
|
}
|
package/src/ISY.ts
CHANGED
|
@@ -331,7 +331,11 @@ export class ISY extends EventEmitter implements Disposable {
|
|
|
331
331
|
//
|
|
332
332
|
const impactedDevice = this.getNode(evt.node);
|
|
333
333
|
if (impactedDevice !== undefined && impactedDevice !== null) {
|
|
334
|
-
|
|
334
|
+
try {
|
|
335
|
+
impactedDevice.handleEvent(evt);
|
|
336
|
+
} catch (e) {
|
|
337
|
+
this.logger.error(`Error handling event for ${impactedDevice.name}: ${e.message}`);
|
|
338
|
+
}
|
|
335
339
|
} else {
|
|
336
340
|
this.logger.warn(`${EventType[stringControl]} Event for Unidentified Device: ${JSON.stringify(evt)}`);
|
|
337
341
|
}
|