@hahnpro/flow-sdk 7.0.0 → 7.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/FlowApplication.js +9 -3
- package/package.json +9 -9
package/dist/FlowApplication.js
CHANGED
|
@@ -299,7 +299,9 @@ class FlowApplication {
|
|
|
299
299
|
}
|
|
300
300
|
},
|
|
301
301
|
});
|
|
302
|
-
|
|
302
|
+
if (this.amqpChannel) {
|
|
303
|
+
await this.amqpChannel.waitForConnect();
|
|
304
|
+
}
|
|
303
305
|
for (const module of this.modules) {
|
|
304
306
|
const moduleName = Reflect.getMetadata('module:name', module);
|
|
305
307
|
const moduleDeclarations = Reflect.getMetadata('module:declarations', module);
|
|
@@ -394,13 +396,17 @@ class FlowApplication {
|
|
|
394
396
|
for (const element of Object.values(this.elements)) {
|
|
395
397
|
element?.onDestroy?.();
|
|
396
398
|
}
|
|
397
|
-
|
|
399
|
+
if (this._rpcClient) {
|
|
400
|
+
await this._rpcClient.close();
|
|
401
|
+
}
|
|
398
402
|
}
|
|
399
403
|
catch (err) {
|
|
400
404
|
this.logger.error(err);
|
|
401
405
|
}
|
|
402
406
|
await (0, utils_1.delay)(250);
|
|
403
|
-
|
|
407
|
+
if (this.amqpConnection) {
|
|
408
|
+
await this.amqpConnection.close();
|
|
409
|
+
}
|
|
404
410
|
}
|
|
405
411
|
catch (err) {
|
|
406
412
|
console.error(err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hahnpro/flow-sdk",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "SDK for building Flow Modules",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -28,27 +28,27 @@
|
|
|
28
28
|
"amqplib": "0.10.4",
|
|
29
29
|
"class-transformer": "0.5.1",
|
|
30
30
|
"class-validator": "~0.14.1",
|
|
31
|
-
"cloudevents": "8.0.
|
|
31
|
+
"cloudevents": "8.0.2",
|
|
32
32
|
"lodash": "4.17.21",
|
|
33
|
-
"nats": "
|
|
34
|
-
"object-sizeof": "~2.6.
|
|
33
|
+
"nats": "2.28.2",
|
|
34
|
+
"object-sizeof": "~2.6.5",
|
|
35
35
|
"python-shell": "5.0.0",
|
|
36
36
|
"reflect-metadata": "0.2.2",
|
|
37
37
|
"rxjs": "7.8.1",
|
|
38
38
|
"string-interp": "0.3.6",
|
|
39
|
-
"@hahnpro/hpc-api": "5.2.
|
|
39
|
+
"@hahnpro/hpc-api": "5.2.7"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/amqplib": "0.10.5",
|
|
43
43
|
"@types/jest": "29.5.12",
|
|
44
|
-
"@types/lodash": "4.17.
|
|
45
|
-
"@types/node": "20.14.
|
|
44
|
+
"@types/lodash": "4.17.7",
|
|
45
|
+
"@types/node": "20.14.14",
|
|
46
46
|
"class-validator-jsonschema": "5.0.1",
|
|
47
47
|
"jest": "29.7.0",
|
|
48
|
-
"typescript": "5.5.
|
|
48
|
+
"typescript": "5.5.4"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"axios": "1.7.
|
|
51
|
+
"axios": "1.7.3",
|
|
52
52
|
"class-transformer": "0.5.1",
|
|
53
53
|
"class-validator": "0.14.1",
|
|
54
54
|
"lodash": "4.17.21",
|