@hahnpro/flow-sdk 5.0.6 → 6.0.1
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/FlowElement.js +6 -2
- package/package.json +11 -11
package/dist/FlowElement.js
CHANGED
|
@@ -94,12 +94,16 @@ class FlowElement {
|
|
|
94
94
|
pythonOptions: ['-u'],
|
|
95
95
|
args: [__dirname, this.rpcRoutingKey, ...args.map((v) => v.toString())],
|
|
96
96
|
};
|
|
97
|
-
|
|
97
|
+
const pyshell = new python_shell_1.PythonShell(scriptPath, options);
|
|
98
|
+
pyshell.on('message', (message) => {
|
|
99
|
+
this.logger.debug(message);
|
|
100
|
+
});
|
|
101
|
+
pyshell.end((err) => {
|
|
98
102
|
if (err) {
|
|
99
103
|
this.logger.error(err);
|
|
100
104
|
}
|
|
101
|
-
this.logger.debug(outputs);
|
|
102
105
|
});
|
|
106
|
+
return pyshell;
|
|
103
107
|
}
|
|
104
108
|
}
|
|
105
109
|
exports.FlowElement = FlowElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hahnpro/flow-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "SDK for building Flow Modules",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -30,28 +30,28 @@
|
|
|
30
30
|
"class-validator": "~0.14.1",
|
|
31
31
|
"cloudevents": "8.0.0",
|
|
32
32
|
"lodash": "4.17.21",
|
|
33
|
-
"object-sizeof": "~2.6.
|
|
34
|
-
"python-shell": "
|
|
35
|
-
"reflect-metadata": "0.2.
|
|
33
|
+
"object-sizeof": "~2.6.4",
|
|
34
|
+
"python-shell": "5.0.0",
|
|
35
|
+
"reflect-metadata": "0.2.2",
|
|
36
36
|
"rxjs": "7.8.1",
|
|
37
37
|
"string-interp": "0.3.6",
|
|
38
|
-
"@hahnpro/hpc-api": "5.2.
|
|
38
|
+
"@hahnpro/hpc-api": "5.2.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/amqplib": "0.10.
|
|
42
|
-
"@types/jest": "29.5.
|
|
43
|
-
"@types/lodash": "4.
|
|
44
|
-
"@types/node": "20.
|
|
41
|
+
"@types/amqplib": "0.10.5",
|
|
42
|
+
"@types/jest": "29.5.12",
|
|
43
|
+
"@types/lodash": "4.17.0",
|
|
44
|
+
"@types/node": "20.12.2",
|
|
45
45
|
"class-validator-jsonschema": "5.0.0",
|
|
46
46
|
"jest": "29.7.0",
|
|
47
|
-
"typescript": "5.
|
|
47
|
+
"typescript": "5.4.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"axios": "1.x",
|
|
51
51
|
"class-transformer": "0.5.1",
|
|
52
52
|
"class-validator": "0.14.1",
|
|
53
53
|
"lodash": "4.x",
|
|
54
|
-
"python-shell": "
|
|
54
|
+
"python-shell": "5.x"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=v18"
|