@5minds/node-red-contrib-processcube 1.1.3-feature-770fc4-m1higci1 → 1.1.3-feature-ca1e82-m23i3yv6
Sign up to get free protection for your applications and to get access to all the features.
- package/externaltask-output.js +9 -3
- package/package.json +2 -2
package/externaltask-output.js
CHANGED
@@ -1,12 +1,18 @@
|
|
1
1
|
module.exports = function (RED) {
|
2
2
|
function ExternalTaskOutput(config) {
|
3
3
|
RED.nodes.createNode(this, config);
|
4
|
-
|
4
|
+
const node = this;
|
5
5
|
|
6
|
-
|
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-
|
3
|
+
"version": "1.1.3-feature-ca1e82-m23i3yv6",
|
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
|
56
|
+
"@5minds/processcube_engine_client": "^5.1.0",
|
57
57
|
"jwt-decode": "^4.0.0",
|
58
58
|
"openid-client": "^5.5.0"
|
59
59
|
},
|