clear-router 2.7.4 → 2.7.5

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.
@@ -5,6 +5,12 @@ import { Middleware as Middleware$2 } from "./types/hono.mjs";
5
5
  import { Middleware as Middleware$3 } from "./types/koa.mjs";
6
6
  import { Middleware as Middleware$4 } from "./types/express.mjs";
7
7
 
8
+ //#region src/Contracts.d.ts
9
+ /**
10
+ * HTTP context passed to route handlers
11
+ */
12
+ interface ClearHttpContext {}
13
+ //#endregion
8
14
  //#region src/core/Response.d.ts
9
15
  declare class Response {
10
16
  [key: string]: any;
@@ -100,10 +106,4 @@ declare class Request<X = any, M = any> extends ClearRequest<X, M> {
100
106
  is(method: HttpMethod | string): boolean;
101
107
  }
102
108
  //#endregion
103
- //#region src/core/types.d.ts
104
- /**
105
- * HTTP context passed to route handlers
106
- */
107
- interface ClearHttpContext {}
108
- //#endregion
109
- export { Request as n, Response as r, ClearHttpContext as t };
109
+ export { Response as n, ClearHttpContext as r, Request as t };
@@ -1,2 +1,2 @@
1
- import { F as Response, a as ClearRouterPluginContext, c as PluginArgumentsResolver, d as PluginBindValue, f as PluginSetupResult, i as ClearRouterPluginArgumentsContext, l as PluginBind, m as Request, n as CoreRouter, o as ClearRouterPluginInput, p as definePlugin, r as ClearRouterPlugin, s as ClearRouterPluginRequestContext, t as ClearHttpContext, u as PluginBindFactory } from "../types-CWEND0si.cjs";
2
- export { ClearHttpContext, ClearRouterPlugin, ClearRouterPluginArgumentsContext, ClearRouterPluginContext, ClearRouterPluginInput, ClearRouterPluginRequestContext, CoreRouter, PluginArgumentsResolver, PluginBind, PluginBindFactory, PluginBindValue, PluginSetupResult, Request, Response, definePlugin };
1
+ import { P as Response, a as ClearRouterPluginInput, c as PluginBind, d as PluginSetupResult, f as definePlugin, i as ClearRouterPluginContext, l as PluginBindFactory, n as ClearRouterPlugin, o as ClearRouterPluginRequestContext, p as Request, r as ClearRouterPluginArgumentsContext, s as PluginArgumentsResolver, t as CoreRouter, u as PluginBindValue } from "../router-tpnSi_Y7.cjs";
2
+ export { ClearRouterPlugin, ClearRouterPluginArgumentsContext, ClearRouterPluginContext, ClearRouterPluginInput, ClearRouterPluginRequestContext, CoreRouter, PluginArgumentsResolver, PluginBind, PluginBindFactory, PluginBindValue, PluginSetupResult, Request, Response, definePlugin };
@@ -1,2 +1,2 @@
1
- import { F as Response, a as ClearRouterPluginContext, c as PluginArgumentsResolver, d as PluginBindValue, f as PluginSetupResult, i as ClearRouterPluginArgumentsContext, l as PluginBind, m as Request, n as CoreRouter, o as ClearRouterPluginInput, p as definePlugin, r as ClearRouterPlugin, s as ClearRouterPluginRequestContext, t as ClearHttpContext, u as PluginBindFactory } from "../types-1JoEn1DP.mjs";
2
- export { ClearHttpContext, ClearRouterPlugin, ClearRouterPluginArgumentsContext, ClearRouterPluginContext, ClearRouterPluginInput, ClearRouterPluginRequestContext, CoreRouter, PluginArgumentsResolver, PluginBind, PluginBindFactory, PluginBindValue, PluginSetupResult, Request, Response, definePlugin };
1
+ import { P as Response, a as ClearRouterPluginInput, c as PluginBind, d as PluginSetupResult, f as definePlugin, i as ClearRouterPluginContext, l as PluginBindFactory, n as ClearRouterPlugin, o as ClearRouterPluginRequestContext, p as Request, r as ClearRouterPluginArgumentsContext, s as PluginArgumentsResolver, t as CoreRouter, u as PluginBindValue } from "../router-CYBshGMl.mjs";
2
+ export { ClearRouterPlugin, ClearRouterPluginArgumentsContext, ClearRouterPluginContext, ClearRouterPluginInput, ClearRouterPluginRequestContext, CoreRouter, PluginArgumentsResolver, PluginBind, PluginBindFactory, PluginBindValue, PluginSetupResult, Request, Response, definePlugin };
@@ -1,4 +1,4 @@
1
- import { I as ApiResourceMiddleware, L as ControllerAction, M as Handler, N as HttpContext, P as Middleware, R as HttpMethod, h as Route, n as CoreRouter } from "../types-CWEND0si.cjs";
1
+ import { F as ApiResourceMiddleware, I as ControllerAction, L as HttpMethod, M as HttpContext, N as Middleware, j as Handler, m as Route, t as CoreRouter } from "../router-tpnSi_Y7.cjs";
2
2
  import { Router as Router$1 } from "express";
3
3
 
4
4
  //#region src/express/router.d.ts
@@ -1,4 +1,4 @@
1
- import { I as ApiResourceMiddleware, L as ControllerAction, M as Handler, N as HttpContext, P as Middleware, R as HttpMethod, h as Route, n as CoreRouter } from "../types-1JoEn1DP.mjs";
1
+ import { F as ApiResourceMiddleware, I as ControllerAction, L as HttpMethod, M as HttpContext, N as Middleware, j as Handler, m as Route, t as CoreRouter } from "../router-CYBshGMl.mjs";
2
2
  import { Router as Router$1 } from "express";
3
3
 
4
4
  //#region src/express/router.d.ts
@@ -1,4 +1,4 @@
1
- import { A as HttpContext, I as ApiResourceMiddleware, L as ControllerAction, O as FastifyApp, R as HttpMethod, h as Route, j as Middleware, k as Handler, n as CoreRouter } from "../types-CWEND0si.cjs";
1
+ import { A as Middleware, D as FastifyApp, F as ApiResourceMiddleware, I as ControllerAction, L as HttpMethod, O as Handler, k as HttpContext, m as Route, t as CoreRouter } from "../router-tpnSi_Y7.cjs";
2
2
 
3
3
  //#region src/fastify/router.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { A as HttpContext, I as ApiResourceMiddleware, L as ControllerAction, O as FastifyApp, R as HttpMethod, h as Route, j as Middleware, k as Handler, n as CoreRouter } from "../types-1JoEn1DP.mjs";
1
+ import { A as Middleware, D as FastifyApp, F as ApiResourceMiddleware, I as ControllerAction, L as HttpMethod, O as Handler, k as HttpContext, m as Route, t as CoreRouter } from "../router-CYBshGMl.mjs";
2
2
 
3
3
  //#region src/fastify/router.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { D as Middleware, E as HttpContext, I as ApiResourceMiddleware, L as ControllerAction, R as HttpMethod, T as Handler, h as Route, n as CoreRouter, w as H3App } from "../types-CWEND0si.cjs";
1
+ import { C as H3App, E as Middleware, F as ApiResourceMiddleware, I as ControllerAction, L as HttpMethod, T as HttpContext, m as Route, t as CoreRouter, w as Handler } from "../router-tpnSi_Y7.cjs";
2
2
  import { H3 } from "h3";
3
3
 
4
4
  //#region src/h3/router.d.ts
@@ -1,4 +1,4 @@
1
- import { D as Middleware, E as HttpContext, I as ApiResourceMiddleware, L as ControllerAction, R as HttpMethod, T as Handler, h as Route, n as CoreRouter, w as H3App } from "../types-1JoEn1DP.mjs";
1
+ import { C as H3App, E as Middleware, F as ApiResourceMiddleware, I as ControllerAction, L as HttpMethod, T as HttpContext, m as Route, t as CoreRouter, w as Handler } from "../router-CYBshGMl.mjs";
2
2
  import { H3 } from "h3";
3
3
 
4
4
  //#region src/h3/router.d.ts
@@ -1,4 +1,4 @@
1
- import { C as Middleware, I as ApiResourceMiddleware, L as ControllerAction, R as HttpMethod, S as HttpContext, b as Handler, h as Route, n as CoreRouter, x as HonoApp } from "../types-CWEND0si.cjs";
1
+ import { F as ApiResourceMiddleware, I as ControllerAction, L as HttpMethod, S as Middleware, b as HonoApp, m as Route, t as CoreRouter, x as HttpContext, y as Handler } from "../router-tpnSi_Y7.cjs";
2
2
 
3
3
  //#region src/hono/router.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { C as Middleware, I as ApiResourceMiddleware, L as ControllerAction, R as HttpMethod, S as HttpContext, b as Handler, h as Route, n as CoreRouter, x as HonoApp } from "../types-1JoEn1DP.mjs";
1
+ import { F as ApiResourceMiddleware, I as ControllerAction, L as HttpMethod, S as Middleware, b as HonoApp, m as Route, t as CoreRouter, x as HttpContext, y as Handler } from "../router-CYBshGMl.mjs";
2
2
 
3
3
  //#region src/hono/router.d.ts
4
4
  /**
package/dist/index.d.cts CHANGED
@@ -1,10 +1,16 @@
1
1
  import { NextFunction, Request as Request$1, Response as Response$2 } from "express";
2
2
  import { Middleware as Middleware$4 } from "h3";
3
- import { AsyncLocalStorage } from "node:async_hooks";
4
3
  import { FastifyReply, FastifyRequest } from "fastify";
5
4
  import { MiddlewareHandler } from "hono";
6
5
  import Koa from "koa";
6
+ import { AsyncLocalStorage } from "node:async_hooks";
7
7
 
8
+ //#region src/Contracts.d.ts
9
+ /**
10
+ * HTTP context passed to route handlers
11
+ */
12
+ interface ClearHttpContext {}
13
+ //#endregion
8
14
  //#region src/types/basic.d.ts
9
15
  /**
10
16
  * HTTP methods supported by the router
@@ -119,6 +125,54 @@ declare class Request<X = any, M = any> extends ClearRequest<X, M> {
119
125
  is(method: HttpMethod | string): boolean;
120
126
  }
121
127
  //#endregion
128
+ //#region src/types/express.d.ts
129
+ /**
130
+ * Middleware function type
131
+ */
132
+ type Middleware$3 = (req: Request$1, res: Response$2, next: NextFunction) => any | Promise<any>;
133
+ //#endregion
134
+ //#region src/types/fastify.d.ts
135
+ interface RequestWithGetBody extends FastifyRequest {
136
+ getBody: () => Record<string, any>;
137
+ }
138
+ type NextFunction$1 = (err?: Error) => void;
139
+ type Middleware$2 = (req: RequestWithGetBody, reply: FastifyReply, next: NextFunction$1) => any | Promise<any>;
140
+ //#endregion
141
+ //#region src/types/hono.d.ts
142
+ type Middleware$1 = MiddlewareHandler;
143
+ //#endregion
144
+ //#region src/types/koa.d.ts
145
+ type Middleware = Koa.Middleware<any, any>;
146
+ //#endregion
147
+ //#region src/ClearRequest.d.ts
148
+ declare class ClearRequest<X = any, M = Middleware$4 | Middleware$3 | Middleware$2 | Middleware$1 | Middleware> {
149
+ [key: string]: any;
150
+ /**
151
+ * @param body - Parsed request body
152
+ */
153
+ body: RequestData;
154
+ /**
155
+ * @param query - Parsed query parameters
156
+ */
157
+ query: RequestData;
158
+ /**
159
+ * @param params - Parsed route parameters
160
+ */
161
+ params: RequestData;
162
+ route: Route<X, M>;
163
+ constructor(init?: Partial<ClearRequest>);
164
+ }
165
+ //#endregion
166
+ //#region src/Controller.d.ts
167
+ declare abstract class Controller<X = any> {
168
+ [x: string]: any;
169
+ ctx: X;
170
+ body: RequestData;
171
+ query: RequestData;
172
+ params: RequestData;
173
+ clearRequest: ClearRequest;
174
+ }
175
+ //#endregion
122
176
  //#region src/core/bindings.d.ts
123
177
  type BindToken<T = any> = abstract new (...args: any[]) => T;
124
178
  type BindFactory<T = any> = (ctx: any) => T | Promise<T>;
@@ -241,16 +295,6 @@ type ClearRouterPluginInput<Options = any, HttpContext = any> = ClearRouterPlugi
241
295
  */
242
296
  declare function definePlugin<Options = any, HttpContext = any>(plugin: ClearRouterPlugin<Options, HttpContext>): ClearRouterPlugin<Options, HttpContext>;
243
297
  //#endregion
244
- //#region src/Controller.d.ts
245
- declare abstract class Controller<X = any> {
246
- [x: string]: any;
247
- ctx: X;
248
- body: RequestData;
249
- query: RequestData;
250
- params: RequestData;
251
- clearRequest: ClearRequest;
252
- }
253
- //#endregion
254
298
  //#region src/core/router.d.ts
255
299
  /**
256
300
  * @class clear-router CoreRouter
@@ -516,48 +560,4 @@ declare abstract class CoreRouter {
516
560
  }): void;
517
561
  }
518
562
  //#endregion
519
- //#region src/core/types.d.ts
520
- /**
521
- * HTTP context passed to route handlers
522
- */
523
- interface ClearHttpContext {}
524
- //#endregion
525
- //#region src/types/express.d.ts
526
- /**
527
- * Middleware function type
528
- */
529
- type Middleware$3 = (req: Request$1, res: Response$2, next: NextFunction) => any | Promise<any>;
530
- //#endregion
531
- //#region src/types/fastify.d.ts
532
- interface RequestWithGetBody extends FastifyRequest {
533
- getBody: () => Record<string, any>;
534
- }
535
- type NextFunction$1 = (err?: Error) => void;
536
- type Middleware$2 = (req: RequestWithGetBody, reply: FastifyReply, next: NextFunction$1) => any | Promise<any>;
537
- //#endregion
538
- //#region src/types/hono.d.ts
539
- type Middleware$1 = MiddlewareHandler;
540
- //#endregion
541
- //#region src/types/koa.d.ts
542
- type Middleware = Koa.Middleware<any, any>;
543
- //#endregion
544
- //#region src/ClearRequest.d.ts
545
- declare class ClearRequest<X = any, M = Middleware$4 | Middleware$3 | Middleware$2 | Middleware$1 | Middleware> {
546
- [key: string]: any;
547
- /**
548
- * @param body - Parsed request body
549
- */
550
- body: RequestData;
551
- /**
552
- * @param query - Parsed query parameters
553
- */
554
- query: RequestData;
555
- /**
556
- * @param params - Parsed route parameters
557
- */
558
- params: RequestData;
559
- route: Route<X, M>;
560
- constructor(init?: Partial<ClearRequest>);
561
- }
562
- //#endregion
563
563
  export { ClearHttpContext, ClearRequest, ClearRouterPlugin, ClearRouterPluginArgumentsContext, ClearRouterPluginContext, ClearRouterPluginInput, ClearRouterPluginRequestContext, Controller, CoreRouter, PluginArgumentsResolver, PluginBind, PluginBindFactory, PluginBindValue, PluginSetupResult, Request, Response$1 as Response, Route, RouteParameter, definePlugin };
package/dist/index.d.mts CHANGED
@@ -5,6 +5,12 @@ import { FastifyReply, FastifyRequest } from "fastify";
5
5
  import { MiddlewareHandler } from "hono";
6
6
  import Koa from "koa";
7
7
 
8
+ //#region src/Contracts.d.ts
9
+ /**
10
+ * HTTP context passed to route handlers
11
+ */
12
+ interface ClearHttpContext {}
13
+ //#endregion
8
14
  //#region src/types/basic.d.ts
9
15
  /**
10
16
  * HTTP methods supported by the router
@@ -119,6 +125,54 @@ declare class Request<X = any, M = any> extends ClearRequest<X, M> {
119
125
  is(method: HttpMethod | string): boolean;
120
126
  }
121
127
  //#endregion
128
+ //#region src/types/express.d.ts
129
+ /**
130
+ * Middleware function type
131
+ */
132
+ type Middleware$3 = (req: Request$1, res: Response$2, next: NextFunction) => any | Promise<any>;
133
+ //#endregion
134
+ //#region src/types/fastify.d.ts
135
+ interface RequestWithGetBody extends FastifyRequest {
136
+ getBody: () => Record<string, any>;
137
+ }
138
+ type NextFunction$1 = (err?: Error) => void;
139
+ type Middleware$2 = (req: RequestWithGetBody, reply: FastifyReply, next: NextFunction$1) => any | Promise<any>;
140
+ //#endregion
141
+ //#region src/types/hono.d.ts
142
+ type Middleware$1 = MiddlewareHandler;
143
+ //#endregion
144
+ //#region src/types/koa.d.ts
145
+ type Middleware = Koa.Middleware<any, any>;
146
+ //#endregion
147
+ //#region src/ClearRequest.d.ts
148
+ declare class ClearRequest<X = any, M = Middleware$4 | Middleware$3 | Middleware$2 | Middleware$1 | Middleware> {
149
+ [key: string]: any;
150
+ /**
151
+ * @param body - Parsed request body
152
+ */
153
+ body: RequestData;
154
+ /**
155
+ * @param query - Parsed query parameters
156
+ */
157
+ query: RequestData;
158
+ /**
159
+ * @param params - Parsed route parameters
160
+ */
161
+ params: RequestData;
162
+ route: Route<X, M>;
163
+ constructor(init?: Partial<ClearRequest>);
164
+ }
165
+ //#endregion
166
+ //#region src/Controller.d.ts
167
+ declare abstract class Controller<X = any> {
168
+ [x: string]: any;
169
+ ctx: X;
170
+ body: RequestData;
171
+ query: RequestData;
172
+ params: RequestData;
173
+ clearRequest: ClearRequest;
174
+ }
175
+ //#endregion
122
176
  //#region src/core/bindings.d.ts
123
177
  type BindToken<T = any> = abstract new (...args: any[]) => T;
124
178
  type BindFactory<T = any> = (ctx: any) => T | Promise<T>;
@@ -241,16 +295,6 @@ type ClearRouterPluginInput<Options = any, HttpContext = any> = ClearRouterPlugi
241
295
  */
242
296
  declare function definePlugin<Options = any, HttpContext = any>(plugin: ClearRouterPlugin<Options, HttpContext>): ClearRouterPlugin<Options, HttpContext>;
243
297
  //#endregion
244
- //#region src/Controller.d.ts
245
- declare abstract class Controller<X = any> {
246
- [x: string]: any;
247
- ctx: X;
248
- body: RequestData;
249
- query: RequestData;
250
- params: RequestData;
251
- clearRequest: ClearRequest;
252
- }
253
- //#endregion
254
298
  //#region src/core/router.d.ts
255
299
  /**
256
300
  * @class clear-router CoreRouter
@@ -516,48 +560,4 @@ declare abstract class CoreRouter {
516
560
  }): void;
517
561
  }
518
562
  //#endregion
519
- //#region src/core/types.d.ts
520
- /**
521
- * HTTP context passed to route handlers
522
- */
523
- interface ClearHttpContext {}
524
- //#endregion
525
- //#region src/types/express.d.ts
526
- /**
527
- * Middleware function type
528
- */
529
- type Middleware$3 = (req: Request$1, res: Response$2, next: NextFunction) => any | Promise<any>;
530
- //#endregion
531
- //#region src/types/fastify.d.ts
532
- interface RequestWithGetBody extends FastifyRequest {
533
- getBody: () => Record<string, any>;
534
- }
535
- type NextFunction$1 = (err?: Error) => void;
536
- type Middleware$2 = (req: RequestWithGetBody, reply: FastifyReply, next: NextFunction$1) => any | Promise<any>;
537
- //#endregion
538
- //#region src/types/hono.d.ts
539
- type Middleware$1 = MiddlewareHandler;
540
- //#endregion
541
- //#region src/types/koa.d.ts
542
- type Middleware = Koa.Middleware<any, any>;
543
- //#endregion
544
- //#region src/ClearRequest.d.ts
545
- declare class ClearRequest<X = any, M = Middleware$4 | Middleware$3 | Middleware$2 | Middleware$1 | Middleware> {
546
- [key: string]: any;
547
- /**
548
- * @param body - Parsed request body
549
- */
550
- body: RequestData;
551
- /**
552
- * @param query - Parsed query parameters
553
- */
554
- query: RequestData;
555
- /**
556
- * @param params - Parsed route parameters
557
- */
558
- params: RequestData;
559
- route: Route<X, M>;
560
- constructor(init?: Partial<ClearRequest>);
561
- }
562
- //#endregion
563
563
  export { ClearHttpContext, ClearRequest, ClearRouterPlugin, ClearRouterPluginArgumentsContext, ClearRouterPluginContext, ClearRouterPluginInput, ClearRouterPluginRequestContext, Controller, CoreRouter, PluginArgumentsResolver, PluginBind, PluginBindFactory, PluginBindValue, PluginSetupResult, Request, Response$1 as Response, Route, RouteParameter, definePlugin };
@@ -1,4 +1,4 @@
1
- import { I as ApiResourceMiddleware, L as ControllerAction, R as HttpMethod, _ as HttpContext, g as Handler, h as Route, n as CoreRouter, v as KoaRouterApp, y as Middleware } from "../types-CWEND0si.cjs";
1
+ import { F as ApiResourceMiddleware, I as ControllerAction, L as HttpMethod, _ as KoaRouterApp, g as HttpContext, h as Handler, m as Route, t as CoreRouter, v as Middleware } from "../router-tpnSi_Y7.cjs";
2
2
 
3
3
  //#region src/koa/router.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { I as ApiResourceMiddleware, L as ControllerAction, R as HttpMethod, _ as HttpContext, g as Handler, h as Route, n as CoreRouter, v as KoaRouterApp, y as Middleware } from "../types-1JoEn1DP.mjs";
1
+ import { F as ApiResourceMiddleware, I as ControllerAction, L as HttpMethod, _ as KoaRouterApp, g as HttpContext, h as Handler, m as Route, t as CoreRouter, v as Middleware } from "../router-CYBshGMl.mjs";
2
2
 
3
3
  //#region src/koa/router.d.ts
4
4
  /**
@@ -49,6 +49,12 @@ interface RouterConfig {
49
49
  };
50
50
  }
51
51
  //#endregion
52
+ //#region src/Contracts.d.ts
53
+ /**
54
+ * HTTP context passed to route handlers
55
+ */
56
+ interface ClearHttpContext {}
57
+ //#endregion
52
58
  //#region src/core/Response.d.ts
53
59
  declare class Response$2 {
54
60
  [key: string]: any;
@@ -643,10 +649,4 @@ declare abstract class CoreRouter {
643
649
  }): void;
644
650
  }
645
651
  //#endregion
646
- //#region src/core/types.d.ts
647
- /**
648
- * HTTP context passed to route handlers
649
- */
650
- interface ClearHttpContext {}
651
- //#endregion
652
- export { HttpContext$3 as A, Middleware$1 as C, Middleware$2 as D, HttpContext$2 as E, Response$2 as F, ApiResourceMiddleware as I, ControllerAction as L, Handler$4 as M, HttpContext$4 as N, FastifyApp as O, Middleware$4 as P, HttpMethod as R, HttpContext$1 as S, Handler$2 as T, HttpContext as _, ClearRouterPluginContext as a, Handler$1 as b, PluginArgumentsResolver as c, PluginBindValue as d, PluginSetupResult as f, Handler as g, Route as h, ClearRouterPluginArgumentsContext as i, Middleware$3 as j, Handler$3 as k, PluginBind as l, Request$1 as m, CoreRouter as n, ClearRouterPluginInput as o, definePlugin as p, ClearRouterPlugin as r, ClearRouterPluginRequestContext as s, ClearHttpContext as t, PluginBindFactory as u, KoaRouterApp as v, H3App as w, HonoApp as x, Middleware as y };
652
+ export { Middleware$3 as A, H3App as C, FastifyApp as D, Middleware$2 as E, ApiResourceMiddleware as F, ControllerAction as I, HttpMethod as L, HttpContext$4 as M, Middleware$4 as N, Handler$3 as O, Response$2 as P, Middleware$1 as S, HttpContext$2 as T, KoaRouterApp as _, ClearRouterPluginInput as a, HonoApp as b, PluginBind as c, PluginSetupResult as d, definePlugin as f, HttpContext as g, Handler as h, ClearRouterPluginContext as i, Handler$4 as j, HttpContext$3 as k, PluginBindFactory as l, Route as m, ClearRouterPlugin as n, ClearRouterPluginRequestContext as o, Request$1 as p, ClearRouterPluginArgumentsContext as r, PluginArgumentsResolver as s, CoreRouter as t, PluginBindValue as u, Middleware as v, Handler$2 as w, HttpContext$1 as x, Handler$1 as y };
@@ -49,6 +49,12 @@ interface RouterConfig {
49
49
  };
50
50
  }
51
51
  //#endregion
52
+ //#region src/Contracts.d.ts
53
+ /**
54
+ * HTTP context passed to route handlers
55
+ */
56
+ interface ClearHttpContext {}
57
+ //#endregion
52
58
  //#region src/core/Response.d.ts
53
59
  declare class Response$2 {
54
60
  [key: string]: any;
@@ -643,10 +649,4 @@ declare abstract class CoreRouter {
643
649
  }): void;
644
650
  }
645
651
  //#endregion
646
- //#region src/core/types.d.ts
647
- /**
648
- * HTTP context passed to route handlers
649
- */
650
- interface ClearHttpContext {}
651
- //#endregion
652
- export { HttpContext$3 as A, Middleware$1 as C, Middleware$2 as D, HttpContext$2 as E, Response$2 as F, ApiResourceMiddleware as I, ControllerAction as L, Handler$4 as M, HttpContext$4 as N, FastifyApp as O, Middleware$4 as P, HttpMethod as R, HttpContext$1 as S, Handler$2 as T, HttpContext as _, ClearRouterPluginContext as a, Handler$1 as b, PluginArgumentsResolver as c, PluginBindValue as d, PluginSetupResult as f, Handler as g, Route as h, ClearRouterPluginArgumentsContext as i, Middleware$3 as j, Handler$3 as k, PluginBind as l, Request$1 as m, CoreRouter as n, ClearRouterPluginInput as o, definePlugin as p, ClearRouterPlugin as r, ClearRouterPluginRequestContext as s, ClearHttpContext as t, PluginBindFactory as u, KoaRouterApp as v, H3App as w, HonoApp as x, Middleware as y };
652
+ export { Middleware$3 as A, H3App as C, FastifyApp as D, Middleware$2 as E, ApiResourceMiddleware as F, ControllerAction as I, HttpMethod as L, HttpContext$4 as M, Middleware$4 as N, Handler$3 as O, Response$2 as P, Middleware$1 as S, HttpContext$2 as T, KoaRouterApp as _, ClearRouterPluginInput as a, HonoApp as b, PluginBind as c, PluginSetupResult as d, definePlugin as f, HttpContext as g, Handler as h, ClearRouterPluginContext as i, Handler$4 as j, HttpContext$3 as k, PluginBindFactory as l, Route as m, ClearRouterPlugin as n, ClearRouterPluginRequestContext as o, Request$1 as p, ClearRouterPluginArgumentsContext as r, PluginArgumentsResolver as s, CoreRouter as t, PluginBindValue as u, Middleware as v, Handler$2 as w, HttpContext$1 as x, Handler$1 as y };
@@ -1,5 +1,5 @@
1
1
  import { ControllerHandler } from "./basic.mjs";
2
- import { n as Request$1, r as Response$1, t as ClearHttpContext } from "../types-D6JAxrWo.mjs";
2
+ import { n as Response$1, r as ClearHttpContext, t as Request$1 } from "../Request-DKXwa_W0.mjs";
3
3
  import { NextFunction, Request, Response } from "express";
4
4
 
5
5
  //#region src/types/express.d.ts
@@ -1,5 +1,5 @@
1
1
  import { ControllerHandler } from "./basic.mjs";
2
- import { n as Request, r as Response, t as ClearHttpContext } from "../types-D6JAxrWo.mjs";
2
+ import { n as Response, r as ClearHttpContext, t as Request } from "../Request-DKXwa_W0.mjs";
3
3
  import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
4
4
 
5
5
  //#region src/types/fastify.d.ts
@@ -1,5 +1,5 @@
1
1
  import { ControllerHandler } from "./basic.mjs";
2
- import { n as Request, r as Response$1, t as ClearHttpContext } from "../types-D6JAxrWo.mjs";
2
+ import { n as Response$1, r as ClearHttpContext, t as Request } from "../Request-DKXwa_W0.mjs";
3
3
  import { EventHandlerRequest, H3, H3Event, Middleware, TypedServerRequest } from "h3";
4
4
 
5
5
  //#region src/types/h3.d.ts
@@ -1,5 +1,5 @@
1
1
  import { ControllerHandler } from "./basic.mjs";
2
- import { n as Request, r as Response, t as ClearHttpContext } from "../types-D6JAxrWo.mjs";
2
+ import { n as Response, r as ClearHttpContext, t as Request } from "../Request-DKXwa_W0.mjs";
3
3
  import { Context, HonoRequest, MiddlewareHandler } from "hono";
4
4
 
5
5
  //#region src/types/hono.d.ts
@@ -1,5 +1,5 @@
1
1
  import { ControllerHandler } from "./basic.mjs";
2
- import { n as Request, r as Response, t as ClearHttpContext } from "../types-D6JAxrWo.mjs";
2
+ import { n as Response, r as ClearHttpContext, t as Request } from "../Request-DKXwa_W0.mjs";
3
3
  import Koa from "koa";
4
4
  import Router from "@koa/router";
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clear-router",
3
- "version": "2.7.4",
3
+ "version": "2.7.5",
4
4
  "description": "Laravel-style routing for Node.js with support for Express, H3, Fastify, Hono, and Koa, including CommonJS, ESM, and TypeScript support.",
5
5
  "keywords": [
6
6
  "h3",