clear-router 2.3.3 → 2.3.4
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/core/index.d.cts +1 -1
- package/dist/core/index.d.mts +1 -1
- package/dist/express/index.d.cts +1 -1
- package/dist/express/index.d.mts +1 -1
- package/dist/fastify/index.d.cts +1 -1
- package/dist/fastify/index.d.mts +1 -1
- package/dist/h3/index.d.cts +1 -1
- package/dist/h3/index.d.mts +1 -1
- package/dist/hono/index.d.cts +1 -1
- package/dist/hono/index.d.mts +1 -1
- package/dist/{router-DdBiXfPU.d.mts → router-BqoRyQJh.d.cts} +7 -6
- package/dist/{router-DhBN2GwJ.d.cts → router-DCNjgCV6.d.mts} +7 -6
- package/dist/types/h3.d.mts +7 -6
- package/package.json +1 -1
package/dist/core/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CoreRouter } from "../router-
|
|
1
|
+
import { t as CoreRouter } from "../router-BqoRyQJh.cjs";
|
|
2
2
|
export { CoreRouter };
|
package/dist/core/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CoreRouter } from "../router-
|
|
1
|
+
import { t as CoreRouter } from "../router-DCNjgCV6.mjs";
|
|
2
2
|
export { CoreRouter };
|
package/dist/express/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Handler, d as ApiResourceMiddleware, f as ControllerAction, l as HttpContext, m as HttpMethod, r as Route, t as CoreRouter, u as Middleware } from "../router-
|
|
1
|
+
import { c as Handler, d as ApiResourceMiddleware, f as ControllerAction, l as HttpContext, m as HttpMethod, r as Route, t as CoreRouter, u as Middleware } from "../router-BqoRyQJh.cjs";
|
|
2
2
|
import { Router as Router$1 } from "express";
|
|
3
3
|
|
|
4
4
|
//#region src/express/router.d.ts
|
package/dist/express/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Handler, d as ApiResourceMiddleware, f as ControllerAction, l as HttpContext, m as HttpMethod, r as Route, t as CoreRouter, u as Middleware } from "../router-
|
|
1
|
+
import { c as Handler, d as ApiResourceMiddleware, f as ControllerAction, l as HttpContext, m as HttpMethod, r as Route, t as CoreRouter, u as Middleware } from "../router-DCNjgCV6.mjs";
|
|
2
2
|
import { Router as Router$1 } from "express";
|
|
3
3
|
|
|
4
4
|
//#region src/express/router.d.ts
|
package/dist/fastify/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as ApiResourceMiddleware, f as ControllerAction, m as HttpMethod, n as ClearRequest, p as ControllerHandler, r as Route, t as CoreRouter } from "../router-
|
|
1
|
+
import { d as ApiResourceMiddleware, f as ControllerAction, m as HttpMethod, n as ClearRequest, p as ControllerHandler, r as Route, t as CoreRouter } from "../router-BqoRyQJh.cjs";
|
|
2
2
|
import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
|
|
3
3
|
|
|
4
4
|
//#region types/fastify.d.ts
|
package/dist/fastify/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as ApiResourceMiddleware, f as ControllerAction, m as HttpMethod, n as ClearRequest, p as ControllerHandler, r as Route, t as CoreRouter } from "../router-
|
|
1
|
+
import { d as ApiResourceMiddleware, f as ControllerAction, m as HttpMethod, n as ClearRequest, p as ControllerHandler, r as Route, t as CoreRouter } from "../router-DCNjgCV6.mjs";
|
|
2
2
|
import { FastifyInstance, FastifyReply, FastifyRequest } from "fastify";
|
|
3
3
|
|
|
4
4
|
//#region types/fastify.d.ts
|
package/dist/h3/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Handler, d as ApiResourceMiddleware, f as ControllerAction, i as H3App, m as HttpMethod, o as HttpContext, r as Route, s as Middleware, t as CoreRouter } from "../router-
|
|
1
|
+
import { a as Handler, d as ApiResourceMiddleware, f as ControllerAction, i as H3App, m as HttpMethod, o as HttpContext, r as Route, s as Middleware, t as CoreRouter } from "../router-BqoRyQJh.cjs";
|
|
2
2
|
import { H3 } from "h3";
|
|
3
3
|
|
|
4
4
|
//#region src/h3/router.d.ts
|
package/dist/h3/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Handler, d as ApiResourceMiddleware, f as ControllerAction, i as H3App, m as HttpMethod, o as HttpContext, r as Route, s as Middleware, t as CoreRouter } from "../router-
|
|
1
|
+
import { a as Handler, d as ApiResourceMiddleware, f as ControllerAction, i as H3App, m as HttpMethod, o as HttpContext, r as Route, s as Middleware, t as CoreRouter } from "../router-DCNjgCV6.mjs";
|
|
2
2
|
import { H3 } from "h3";
|
|
3
3
|
|
|
4
4
|
//#region src/h3/router.d.ts
|
package/dist/hono/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as ApiResourceMiddleware, f as ControllerAction, m as HttpMethod, n as ClearRequest, p as ControllerHandler, r as Route, t as CoreRouter } from "../router-
|
|
1
|
+
import { d as ApiResourceMiddleware, f as ControllerAction, m as HttpMethod, n as ClearRequest, p as ControllerHandler, r as Route, t as CoreRouter } from "../router-BqoRyQJh.cjs";
|
|
2
2
|
import { Context, HonoRequest, MiddlewareHandler } from "hono";
|
|
3
3
|
|
|
4
4
|
//#region types/hono.d.ts
|
package/dist/hono/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as ApiResourceMiddleware, f as ControllerAction, m as HttpMethod, n as ClearRequest, p as ControllerHandler, r as Route, t as CoreRouter } from "../router-
|
|
1
|
+
import { d as ApiResourceMiddleware, f as ControllerAction, m as HttpMethod, n as ClearRequest, p as ControllerHandler, r as Route, t as CoreRouter } from "../router-DCNjgCV6.mjs";
|
|
2
2
|
import { Context, HonoRequest, MiddlewareHandler } from "hono";
|
|
3
3
|
|
|
4
4
|
//#region types/hono.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
-
import { H3, H3Event, Middleware, TypedServerRequest } from "h3";
|
|
3
2
|
import { NextFunction, Request, Response as Response$1 } from "express";
|
|
3
|
+
import { EventHandlerRequest, H3, H3Event, Middleware, TypedServerRequest } from "h3";
|
|
4
4
|
|
|
5
5
|
//#region types/basic.d.ts
|
|
6
6
|
/**
|
|
@@ -69,17 +69,18 @@ type Middleware$1 = (req: Request, res: Response$1, next: NextFunction) => any |
|
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region types/h3.d.ts
|
|
71
71
|
type H3App = Omit<H3['fetch'], 'fetch'> & {
|
|
72
|
-
fetch: (request: TypedServerRequest) => Promise<Response>;
|
|
72
|
+
fetch: (request: TypedServerRequest<EventHandlerRequest>) => Promise<Response>;
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
interface HttpRequest extends TypedServerRequest<EventHandlerRequest> {
|
|
75
75
|
getBody: () => Record<string, any>;
|
|
76
|
-
}
|
|
76
|
+
}
|
|
77
|
+
type RequestlessH3Event = Omit<H3Event, 'req'>;
|
|
77
78
|
/**
|
|
78
79
|
* HTTP context passed to route handlers
|
|
79
80
|
*/
|
|
80
|
-
|
|
81
|
+
interface HttpContext extends RequestlessH3Event {
|
|
81
82
|
req: HttpRequest;
|
|
82
|
-
}
|
|
83
|
+
}
|
|
83
84
|
/**
|
|
84
85
|
* Route handler function type
|
|
85
86
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
+
import { EventHandlerRequest, H3, H3Event, Middleware, TypedServerRequest } from "h3";
|
|
2
3
|
import { NextFunction, Request, Response as Response$1 } from "express";
|
|
3
|
-
import { H3, H3Event, Middleware, TypedServerRequest } from "h3";
|
|
4
4
|
|
|
5
5
|
//#region types/basic.d.ts
|
|
6
6
|
/**
|
|
@@ -69,17 +69,18 @@ type Middleware$1 = (req: Request, res: Response$1, next: NextFunction) => any |
|
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region types/h3.d.ts
|
|
71
71
|
type H3App = Omit<H3['fetch'], 'fetch'> & {
|
|
72
|
-
fetch: (request: TypedServerRequest) => Promise<Response>;
|
|
72
|
+
fetch: (request: TypedServerRequest<EventHandlerRequest>) => Promise<Response>;
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
interface HttpRequest extends TypedServerRequest<EventHandlerRequest> {
|
|
75
75
|
getBody: () => Record<string, any>;
|
|
76
|
-
}
|
|
76
|
+
}
|
|
77
|
+
type RequestlessH3Event = Omit<H3Event, 'req'>;
|
|
77
78
|
/**
|
|
78
79
|
* HTTP context passed to route handlers
|
|
79
80
|
*/
|
|
80
|
-
|
|
81
|
+
interface HttpContext extends RequestlessH3Event {
|
|
81
82
|
req: HttpRequest;
|
|
82
|
-
}
|
|
83
|
+
}
|
|
83
84
|
/**
|
|
84
85
|
* Route handler function type
|
|
85
86
|
*/
|
package/dist/types/h3.d.mts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { ControllerHandler } from "./basic.mjs";
|
|
2
2
|
import { ClearRequest } from "./ClearRequest.mjs";
|
|
3
|
-
import { H3, H3Event, Middleware, TypedServerRequest } from "h3";
|
|
3
|
+
import { EventHandlerRequest, H3, H3Event, Middleware, TypedServerRequest } from "h3";
|
|
4
4
|
|
|
5
5
|
//#region types/h3.d.ts
|
|
6
6
|
type H3App = Omit<H3['fetch'], 'fetch'> & {
|
|
7
|
-
fetch: (request: TypedServerRequest) => Promise<Response>;
|
|
7
|
+
fetch: (request: TypedServerRequest<EventHandlerRequest>) => Promise<Response>;
|
|
8
8
|
};
|
|
9
9
|
type MaybePromise<T = unknown> = T | Promise<T>;
|
|
10
|
-
|
|
10
|
+
interface HttpRequest extends TypedServerRequest<EventHandlerRequest> {
|
|
11
11
|
getBody: () => Record<string, any>;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
|
+
type RequestlessH3Event = Omit<H3Event, 'req'>;
|
|
13
14
|
/**
|
|
14
15
|
* HTTP context passed to route handlers
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
+
interface HttpContext extends RequestlessH3Event {
|
|
17
18
|
req: HttpRequest;
|
|
18
|
-
}
|
|
19
|
+
}
|
|
19
20
|
/**
|
|
20
21
|
* Route handler function type
|
|
21
22
|
*/
|
package/package.json
CHANGED