@5minds/node-red-contrib-processcube 1.1.3 → 1.1.4-develop-e31a04-m025nm40

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,11 @@ module.exports = function (RED) {
6
6
  var flowContext = node.context().flow;
7
7
  var eventEmitter = flowContext.get('emitter');
8
8
 
9
+ if (!eventEmitter) {
10
+ flowContext.set('emitter', new EventEmitter());
11
+ eventEmitter = flowContext.get('emitter');
12
+ }
13
+
9
14
  node.on('input', function (msg) {
10
15
  const flowNodeInstanceId = msg.flowNodeInstanceId;
11
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.1.3",
3
+ "version": "1.1.4-develop-e31a04-m025nm40",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {