@hahnpro/flow-sdk 7.0.0 → 7.0.2

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.
@@ -299,7 +299,9 @@ class FlowApplication {
299
299
  }
300
300
  },
301
301
  });
302
- this.amqpChannel && (await this.amqpChannel.waitForConnect());
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
- this._rpcClient && (await this._rpcClient.close());
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
- this.amqpConnection && (await this.amqpConnection.close());
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.0",
3
+ "version": "7.0.2",
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.1",
31
+ "cloudevents": "8.0.2",
32
32
  "lodash": "4.17.21",
33
- "nats": "^2.27.0",
34
- "object-sizeof": "~2.6.4",
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.6"
39
+ "@hahnpro/hpc-api": "5.2.8"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/amqplib": "0.10.5",
43
43
  "@types/jest": "29.5.12",
44
- "@types/lodash": "4.17.5",
45
- "@types/node": "20.14.9",
44
+ "@types/lodash": "4.17.7",
45
+ "@types/node": "20.14.15",
46
46
  "class-validator-jsonschema": "5.0.1",
47
47
  "jest": "29.7.0",
48
- "typescript": "5.5.2"
48
+ "typescript": "5.5.4"
49
49
  },
50
50
  "peerDependencies": {
51
- "axios": "1.7.2",
51
+ "axios": "1.7.4",
52
52
  "class-transformer": "0.5.1",
53
53
  "class-validator": "0.14.1",
54
54
  "lodash": "4.17.21",