yeow-api 0.2.10 → 0.2.12

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/event.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yeow-api",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "Yeow API �?TypeScript OOP wrappers over the task protocol",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/event.ts CHANGED
@@ -218,7 +218,7 @@ function adaptEvent(type: string, data: any): any {
218
218
  // ── EventOn/EventOff ───────────────────────────────────────────────
219
219
 
220
220
  export function eventOn<K extends keyof EventMap>(eventType: K, handler: (e: EventMap[K]) => void): () => void {
221
- const wrapper = (data: any) => handler(adaptEvent(eventType, data) as EventMap[K]);
221
+ const wrapper = (data: any) => handler(data as EventMap[K]);
222
222
  (wrapper as any)._raw = handler;
223
223
 
224
224
  if (!(globalThis as any).__yeowEventHandlers) (globalThis as any).__yeowEventHandlers = {};