arvo-event-handler 3.0.15 → 3.0.16

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.
@@ -78,7 +78,7 @@ var createEmittableEvent = function (_a, span) {
78
78
  arvo_core_1.ArvoOrchestrationSubject.parse(event.data.parentSubject$$);
79
79
  }
80
80
  catch (_o) {
81
- throw new errors_1.ExecutionViolation("Invalid parentSubject$$ for the event(type='".concat(event.type, "', uri='").concat((_b = event.dataschema) !== null && _b !== void 0 ? _b : arvo_core_1.EventDataschemaUtil.create(contract), "'). It must be follow the ArvoOrchestrationSubject schema. The easiest way is to use the current orchestration subject by storing the subject via the context block in the machine definition."));
81
+ throw new errors_1.ExecutionViolation("[Emittable Event Creation] Invalid parentSubject$$ for the event(type='".concat(event.type, "', uri='").concat((_b = event.dataschema) !== null && _b !== void 0 ? _b : arvo_core_1.EventDataschemaUtil.create(contract), "'). It must be follow the ArvoOrchestrationSubject schema. The easiest way is to use the current orchestration subject by storing the subject via the context block in the machine definition."));
82
82
  }
83
83
  }
84
84
  try {
@@ -106,7 +106,7 @@ var createEmittableEvent = function (_a, span) {
106
106
  }
107
107
  }
108
108
  catch (error) {
109
- throw new errors_1.ExecutionViolation("Orchestration subject creation failed due to invalid parameters - Event: ".concat(event.type, " - ").concat(error === null || error === void 0 ? void 0 : error.message));
109
+ throw new errors_1.ExecutionViolation("[Emittable Event Creation] Orchestration subject creation failed due to invalid parameters - Event: ".concat(event.type, " - ").concat(error === null || error === void 0 ? void 0 : error.message));
110
110
  }
111
111
  }
112
112
  }
@@ -118,7 +118,7 @@ var createEmittableEvent = function (_a, span) {
118
118
  finalDataschema = arvo_core_1.EventDataschemaUtil.create(contract);
119
119
  }
120
120
  catch (error) {
121
- throw new errors_1.ContractViolation("Invalid event data: Schema validation failed.\nEvent type: ".concat(event.type, "\nDetails: ").concat(error.message));
121
+ throw new errors_1.ContractViolation("[Emittable Event Creation] Invalid event data: Schema validation failed.\nEvent type: ".concat(event.type, "\nDetails: ").concat(error.message));
122
122
  }
123
123
  }
124
124
  var emittableEvent = (0, arvo_core_1.createArvoEvent)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arvo-event-handler",
3
- "version": "3.0.15",
3
+ "version": "3.0.16",
4
4
  "description": "Type-safe event handler system with versioning, telemetry, and contract validation for distributed Arvo event-driven architectures, featuring routing and multi-handler support.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@opentelemetry/api": "^1.9.0",
48
48
  "@opentelemetry/core": "^1.30.1",
49
- "arvo-core": "^3.0.15",
49
+ "arvo-core": "^3.0.16",
50
50
  "uuid": "^11.1.0",
51
51
  "xstate": "^5.23.0",
52
52
  "zod": "^3.25.74",