@5minds/node-red-contrib-processcube 1.1.3-feature-770fc4-m1higci1 → 1.1.3-feature-ca1e82-m23i1ii9

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.
@@ -1,12 +1,18 @@
1
1
  module.exports = function (RED) {
2
2
  function ExternalTaskOutput(config) {
3
3
  RED.nodes.createNode(this, config);
4
- var node = this;
4
+ const node = this;
5
5
 
6
- var flowContext = node.context().flow;
7
- var eventEmitter = flowContext.get('emitter');
6
+ const flowContext = node.context().flow;
8
7
 
9
8
  node.on('input', function (msg) {
9
+ const eventEmitter = flowContext.get('emitter');
10
+
11
+ if (!eventEmitter) {
12
+ node.error('No event emitter found in flow context.');
13
+ return;
14
+ }
15
+
10
16
  const flowNodeInstanceId = msg.flowNodeInstanceId;
11
17
 
12
18
  if (!flowNodeInstanceId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.1.3-feature-770fc4-m1higci1",
3
+ "version": "1.1.3-feature-ca1e82-m23i1ii9",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {
@@ -53,7 +53,7 @@
53
53
  "examples": "examples"
54
54
  },
55
55
  "dependencies": {
56
- "@5minds/processcube_engine_client": "5.0.2-hotfix-243ebc-m1gf97ov",
56
+ "@5minds/processcube_engine_client": "^5.1.0",
57
57
  "jwt-decode": "^4.0.0",
58
58
  "openid-client": "^5.5.0"
59
59
  },