@hahnpro/flow-sdk 9.1.0 → 9.2.0

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.
@@ -104,16 +104,8 @@ class FlowApplication {
104
104
  };
105
105
  this.onMessage = async (cloudEvent) => {
106
106
  if (cloudEvent.subject.endsWith('.update')) {
107
- let event;
108
- try {
109
- event = JSON.parse(cloudEvent.content.toString());
110
- }
111
- catch (err) {
112
- this.logger.error(err);
113
- return;
114
- }
115
107
  try {
116
- const flow = event.data;
108
+ const flow = cloudEvent.data;
117
109
  if (!flow) {
118
110
  return;
119
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/flow-sdk",
3
- "version": "9.1.0",
3
+ "version": "9.2.0",
4
4
  "description": "SDK for building Flow Modules",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -24,7 +24,7 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@hahnpro/hpc-api": "2025.2.13",
27
+ "@hahnpro/hpc-api": "2025.2.15",
28
28
  "@nats-io/jetstream": "3.0.2",
29
29
  "@nats-io/nats-core": "3.0.2",
30
30
  "@nats-io/transport-node": "3.0.2",
@@ -42,15 +42,15 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/amqplib": "0.10.7",
45
- "@types/jest": "29.5.14",
46
- "@types/lodash": "4.17.17",
47
- "@types/node": "22.15.31",
45
+ "@types/jest": "30.0.0",
46
+ "@types/lodash": "4.17.20",
47
+ "@types/node": "22.16.0",
48
48
  "class-validator-jsonschema": "5.0.2",
49
- "jest": "30.0.0",
49
+ "jest": "30.0.3",
50
50
  "typescript": "5.8.3"
51
51
  },
52
52
  "peerDependencies": {
53
- "axios": "1.9.0",
53
+ "axios": "1.10.0",
54
54
  "class-transformer": "0.5.1",
55
55
  "class-validator": "0.14.2",
56
56
  "lodash": "4.17.21",