@wooksjs/event-core 0.5.9 → 0.5.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/index.cjs CHANGED
@@ -9,7 +9,7 @@ class ContextInjector {
9
9
  const fn = typeof attributes === 'function' ? attributes : cb;
10
10
  return fn();
11
11
  }
12
- hook(name, route) {
12
+ hook(method, name, route) {
13
13
  }
14
14
  }
15
15
  let ci = new ContextInjector();
package/dist/index.d.ts CHANGED
@@ -289,7 +289,7 @@ declare function useRouteParams<T extends object = Record<string, string | strin
289
289
  declare class ContextInjector<N> {
290
290
  with<T>(name: N, attributes: Record<string, string | number | boolean>, cb: TContextInjectorCallback<T>): T;
291
291
  with<T>(name: N, cb: TContextInjectorCallback<T>): T;
292
- hook(name: 'Handler:not_found' | 'Handler:routed', route?: string): void;
292
+ hook(method: string, name: 'Handler:not_found' | 'Handler:routed', route?: string): void;
293
293
  }
294
294
  type TContextInjectorCallback<T> = () => T;
295
295
  declare function getContextInjector<N = TContextInjectorHooks>(): ContextInjector<N>;
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ class ContextInjector {
7
7
  const fn = typeof attributes === 'function' ? attributes : cb;
8
8
  return fn();
9
9
  }
10
- hook(name, route) {
10
+ hook(method, name, route) {
11
11
  }
12
12
  }
13
13
  let ci = new ContextInjector();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wooksjs/event-core",
3
- "version": "0.5.9",
3
+ "version": "0.5.11",
4
4
  "description": "@wooksjs/event-core",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",