arvo-event-handler 2.1.9 → 2.1.11
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/types.d.ts +4 -3
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -24,8 +24,9 @@ export type ArvoEventHandlerOpenTelemetryOptions = {
|
|
|
24
24
|
inheritFrom: 'EVENT' | 'CONTEXT';
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Type definition for event handler factory functions.
|
|
28
|
+
* Creates configured event handlers from given parameters.
|
|
28
29
|
*
|
|
29
|
-
* @template T - Configuration
|
|
30
|
+
* @template T - Configuration object type
|
|
30
31
|
*/
|
|
31
|
-
export type EventHandlerFactory<T
|
|
32
|
+
export type EventHandlerFactory<T = void> = T extends void ? () => AbstractArvoEventHandler : (config: T) => AbstractArvoEventHandler;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arvo-event-handler",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.11",
|
|
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": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@opentelemetry/api": "^1.9.0",
|
|
52
52
|
"@opentelemetry/core": "^1.28.0",
|
|
53
|
-
"arvo-core": "^2.1.
|
|
53
|
+
"arvo-core": "^2.1.15",
|
|
54
54
|
"uuid": "^10.0.0",
|
|
55
55
|
"zod": "^3.23.8"
|
|
56
56
|
}
|