@zap-socket/server 0.0.12 → 0.0.14

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/events.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare const zapEvent: <T extends EventInput, R, E>(eventObj: T extends
15
15
  middleware?: MiddlewareType[];
16
16
  process: (ctx: Context) => R;
17
17
  emitType?: E;
18
- }) => ZapEvent<T, R>;
18
+ }) => ZapEvent<T, R, E>;
19
19
  export declare const zapStream: <T extends EventInput, R>(eventObj: T extends z.ZodTypeAny ? {
20
20
  input: T;
21
21
  middleware?: MiddlewareType[];
package/dist/events.js CHANGED
@@ -5,13 +5,15 @@ export const zapEvent = (eventObj) => {
5
5
  return {
6
6
  input: eventObj.input,
7
7
  middleware: eventObj.middleware,
8
- process: eventObj.process
8
+ process: eventObj.process,
9
+ emitType: eventObj.emitType
9
10
  };
10
11
  }
11
12
  return {
12
13
  input: z.void(),
13
14
  middleware: eventObj.middleware,
14
- process: eventObj.process
15
+ process: eventObj.process,
16
+ emitType: eventObj.emitType
15
17
  };
16
18
  };
17
19
  export const zapStream = (eventObj) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zap-socket/server",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "A fully typesafe tRPC-inspired WebSocket library with Zod validation, req-res model, and native subscriptions.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "vitest": "^3.0.9"
24
24
  },
25
25
  "dependencies": {
26
- "@zap-socket/types": "^0.0.6",
26
+ "@zap-socket/types": "^0.0.7",
27
27
  "zod": "^3.24.2"
28
28
  }
29
29
  }