@orpc/openapi 0.37.0 → 0.38.0
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/{chunk-PWOV66X6.js → chunk-DRV7KYES.js} +2 -3
- package/dist/{chunk-ICLAXOVR.js → chunk-NHYWV7BW.js} +2 -2
- package/dist/fetch.js +2 -2
- package/dist/hono.js +2 -2
- package/dist/next.js +2 -2
- package/dist/node.js +1 -1
- package/dist/src/adapters/fetch/openapi-handler.d.ts +3 -2
- package/dist/src/adapters/node/openapi-handler.d.ts +3 -2
- package/dist/standard.js +1 -1
- package/package.json +4 -4
@@ -403,8 +403,7 @@ var OpenAPIMatcher = class {
|
|
403
403
|
return {
|
404
404
|
path: match.data.path,
|
405
405
|
procedure: match.data.procedure,
|
406
|
-
params: match.params
|
407
|
-
// normalize params
|
406
|
+
params: match.params
|
408
407
|
};
|
409
408
|
}
|
410
409
|
};
|
@@ -418,4 +417,4 @@ export {
|
|
418
417
|
OpenAPICodec,
|
419
418
|
OpenAPIMatcher
|
420
419
|
};
|
421
|
-
//# sourceMappingURL=chunk-
|
420
|
+
//# sourceMappingURL=chunk-DRV7KYES.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
OpenAPICodec,
|
3
3
|
OpenAPIMatcher
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-DRV7KYES.js";
|
5
5
|
|
6
6
|
// src/adapters/fetch/openapi-handler.ts
|
7
7
|
import { fetchRequestToStandardRequest, standardResponseToFetchResponse } from "@orpc/server/fetch";
|
@@ -29,4 +29,4 @@ var OpenAPIHandler = class {
|
|
29
29
|
export {
|
30
30
|
OpenAPIHandler
|
31
31
|
};
|
32
|
-
//# sourceMappingURL=chunk-
|
32
|
+
//# sourceMappingURL=chunk-NHYWV7BW.js.map
|
package/dist/fetch.js
CHANGED
package/dist/hono.js
CHANGED
package/dist/next.js
CHANGED
package/dist/node.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import type { Context, Router } from '@orpc/server';
|
2
2
|
import type { FetchHandler, FetchHandleResult } from '@orpc/server/fetch';
|
3
|
-
import type {
|
3
|
+
import type { StandardHandleOptions } from '@orpc/server/standard';
|
4
|
+
import type { MaybeOptionalOptions } from '@orpc/shared';
|
4
5
|
import type { OpenAPIHandlerOptions } from '../standard';
|
5
6
|
export declare class OpenAPIHandler<T extends Context> implements FetchHandler<T> {
|
6
7
|
private readonly standardHandler;
|
7
8
|
constructor(router: Router<T, any>, options?: NoInfer<OpenAPIHandlerOptions<T>>);
|
8
|
-
handle(request: Request, ...rest:
|
9
|
+
handle(request: Request, ...rest: MaybeOptionalOptions<StandardHandleOptions<T>>): Promise<FetchHandleResult>;
|
9
10
|
}
|
10
11
|
//# sourceMappingURL=openapi-handler.d.ts.map
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import type { Context, Router } from '@orpc/server';
|
2
2
|
import type { NodeHttpHandler, NodeHttpHandleResult, NodeHttpRequest, NodeHttpResponse } from '@orpc/server/node';
|
3
|
-
import type {
|
3
|
+
import type { StandardHandleOptions } from '@orpc/server/standard';
|
4
|
+
import type { MaybeOptionalOptions } from '@orpc/shared';
|
4
5
|
import type { OpenAPIHandlerOptions } from '../standard';
|
5
6
|
export declare class OpenAPIHandler<T extends Context> implements NodeHttpHandler<T> {
|
6
7
|
private readonly standardHandler;
|
7
8
|
constructor(router: Router<T, any>, options?: NoInfer<OpenAPIHandlerOptions<T>>);
|
8
|
-
handle(req: NodeHttpRequest, res: NodeHttpResponse, ...rest:
|
9
|
+
handle(req: NodeHttpRequest, res: NodeHttpResponse, ...rest: MaybeOptionalOptions<StandardHandleOptions<T>>): Promise<NodeHttpHandleResult>;
|
9
10
|
}
|
10
11
|
//# sourceMappingURL=openapi-handler.d.ts.map
|
package/dist/standard.js
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/openapi",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.38.0",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -60,9 +60,9 @@
|
|
60
60
|
"openapi3-ts": "^4.4.0",
|
61
61
|
"rou3": "^0.5.1",
|
62
62
|
"wildcard-match": "^5.1.3",
|
63
|
-
"@orpc/contract": "0.
|
64
|
-
"@orpc/server": "0.
|
65
|
-
"@orpc/shared": "0.
|
63
|
+
"@orpc/contract": "0.38.0",
|
64
|
+
"@orpc/server": "0.38.0",
|
65
|
+
"@orpc/shared": "0.38.0"
|
66
66
|
},
|
67
67
|
"devDependencies": {
|
68
68
|
"@readme/openapi-parser": "^2.6.0",
|