arvo-event-handler 1.0.6 → 1.0.8

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/utils.d.ts CHANGED
@@ -60,8 +60,4 @@ export declare const eventHandlerOutputEventCreator: (events: Array<ArvoEventHan
60
60
  }, extensions?: Record<string, string | number | boolean>) => ArvoEvent<any, any, any>) => ArvoEvent<any, any, any>[];
61
61
  export declare const createHandlerErrorOutputEvent: (error: Error, otelSpanHeaders: OpenTelemetryHeaders, type: string, source: string, originalEvent: ArvoEvent, handlerExectionUnits: number, factory: (param: CreateArvoEvent<any, any> & {
62
62
  to: string;
63
- }, extensions?: Record<string, string | number | boolean>) => ArvoEvent<any, any, any>) => ArvoEvent<{
64
- errorName: string;
65
- errorMessage: string;
66
- errorStack: string | null;
67
- }, Record<string, string | number | boolean | null>, string>[];
63
+ }, extensions?: Record<string, string | number | boolean>) => ArvoEvent<any, any, any>) => ArvoEvent<any, any, any>[];
package/dist/utils.js CHANGED
@@ -124,7 +124,7 @@ var createHandlerErrorOutputEvent = function (error, otelSpanHeaders, type, sour
124
124
  code: api_1.SpanStatusCode.ERROR,
125
125
  message: error.message,
126
126
  });
127
- var result = (0, arvo_core_1.createArvoEvent)({
127
+ var result = factory({
128
128
  type: type,
129
129
  source: source,
130
130
  subject: originalEvent.subject,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arvo-event-handler",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "This package contains class and function for event handlers in an Arvo Event Driven system",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {