@orpc/openapi 1.14.10 → 1.14.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.
- package/dist/adapters/aws-lambda/index.d.mts +1 -1
- package/dist/adapters/aws-lambda/index.d.ts +1 -1
- package/dist/adapters/aws-lambda/index.mjs +1 -1
- package/dist/adapters/fastify/index.d.mts +1 -1
- package/dist/adapters/fastify/index.d.ts +1 -1
- package/dist/adapters/fastify/index.mjs +1 -1
- package/dist/adapters/fetch/index.d.mts +1 -1
- package/dist/adapters/fetch/index.d.ts +1 -1
- package/dist/adapters/fetch/index.mjs +1 -1
- package/dist/adapters/node/index.d.mts +1 -1
- package/dist/adapters/node/index.d.ts +1 -1
- package/dist/adapters/node/index.mjs +1 -1
- package/dist/adapters/standard/index.d.mts +1 -1
- package/dist/adapters/standard/index.d.ts +1 -1
- package/dist/adapters/standard/index.mjs +1 -1
- package/dist/shared/{openapi.DwaweYRb.d.mts → openapi.CdeSk3f7.d.mts} +1 -1
- package/dist/shared/{openapi.DwaweYRb.d.ts → openapi.CdeSk3f7.d.ts} +1 -1
- package/dist/shared/{openapi.BB-W-NKv.mjs → openapi.DPiCV5hl.mjs} +14 -10
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Router } from '@orpc/server';
|
|
2
2
|
import { AwsLambdaHandler, AwsLambdaHandlerOptions } from '@orpc/server/aws-lambda';
|
|
3
|
-
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.
|
|
3
|
+
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.CdeSk3f7.mjs';
|
|
4
4
|
import '@orpc/openapi-client/standard';
|
|
5
5
|
import '@orpc/server/standard';
|
|
6
6
|
import '@orpc/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Router } from '@orpc/server';
|
|
2
2
|
import { AwsLambdaHandler, AwsLambdaHandlerOptions } from '@orpc/server/aws-lambda';
|
|
3
|
-
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.
|
|
3
|
+
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.CdeSk3f7.js';
|
|
4
4
|
import '@orpc/openapi-client/standard';
|
|
5
5
|
import '@orpc/server/standard';
|
|
6
6
|
import '@orpc/client';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AwsLambdaHandler } from '@orpc/server/aws-lambda';
|
|
2
|
-
import { a as StandardOpenAPIHandler } from '../../shared/openapi.
|
|
2
|
+
import { a as StandardOpenAPIHandler } from '../../shared/openapi.DPiCV5hl.mjs';
|
|
3
3
|
import '@orpc/openapi-client/standard';
|
|
4
4
|
import '@orpc/server/standard';
|
|
5
5
|
import '@orpc/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Router } from '@orpc/server';
|
|
2
2
|
import { FastifyHandlerOptions, FastifyHandler } from '@orpc/server/fastify';
|
|
3
|
-
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.
|
|
3
|
+
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.CdeSk3f7.mjs';
|
|
4
4
|
import '@orpc/openapi-client/standard';
|
|
5
5
|
import '@orpc/server/standard';
|
|
6
6
|
import '@orpc/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Router } from '@orpc/server';
|
|
2
2
|
import { FastifyHandlerOptions, FastifyHandler } from '@orpc/server/fastify';
|
|
3
|
-
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.
|
|
3
|
+
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.CdeSk3f7.js';
|
|
4
4
|
import '@orpc/openapi-client/standard';
|
|
5
5
|
import '@orpc/server/standard';
|
|
6
6
|
import '@orpc/client';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FastifyHandler } from '@orpc/server/fastify';
|
|
2
|
-
import { a as StandardOpenAPIHandler } from '../../shared/openapi.
|
|
2
|
+
import { a as StandardOpenAPIHandler } from '../../shared/openapi.DPiCV5hl.mjs';
|
|
3
3
|
import '@orpc/openapi-client/standard';
|
|
4
4
|
import '@orpc/server/standard';
|
|
5
5
|
import '@orpc/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Router } from '@orpc/server';
|
|
2
2
|
import { FetchHandlerOptions, FetchHandler } from '@orpc/server/fetch';
|
|
3
|
-
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.
|
|
3
|
+
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.CdeSk3f7.mjs';
|
|
4
4
|
import '@orpc/openapi-client/standard';
|
|
5
5
|
import '@orpc/server/standard';
|
|
6
6
|
import '@orpc/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Router } from '@orpc/server';
|
|
2
2
|
import { FetchHandlerOptions, FetchHandler } from '@orpc/server/fetch';
|
|
3
|
-
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.
|
|
3
|
+
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.CdeSk3f7.js';
|
|
4
4
|
import '@orpc/openapi-client/standard';
|
|
5
5
|
import '@orpc/server/standard';
|
|
6
6
|
import '@orpc/client';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchHandler } from '@orpc/server/fetch';
|
|
2
|
-
import { a as StandardOpenAPIHandler } from '../../shared/openapi.
|
|
2
|
+
import { a as StandardOpenAPIHandler } from '../../shared/openapi.DPiCV5hl.mjs';
|
|
3
3
|
import '@orpc/openapi-client/standard';
|
|
4
4
|
import '@orpc/server/standard';
|
|
5
5
|
import '@orpc/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Router } from '@orpc/server';
|
|
2
2
|
import { NodeHttpHandlerOptions, NodeHttpHandler } from '@orpc/server/node';
|
|
3
|
-
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.
|
|
3
|
+
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.CdeSk3f7.mjs';
|
|
4
4
|
import '@orpc/openapi-client/standard';
|
|
5
5
|
import '@orpc/server/standard';
|
|
6
6
|
import '@orpc/client';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Router } from '@orpc/server';
|
|
2
2
|
import { NodeHttpHandlerOptions, NodeHttpHandler } from '@orpc/server/node';
|
|
3
|
-
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.
|
|
3
|
+
import { b as StandardOpenAPIHandlerOptions } from '../../shared/openapi.CdeSk3f7.js';
|
|
4
4
|
import '@orpc/openapi-client/standard';
|
|
5
5
|
import '@orpc/server/standard';
|
|
6
6
|
import '@orpc/client';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeHttpHandler } from '@orpc/server/node';
|
|
2
|
-
import { a as StandardOpenAPIHandler } from '../../shared/openapi.
|
|
2
|
+
import { a as StandardOpenAPIHandler } from '../../shared/openapi.DPiCV5hl.mjs';
|
|
3
3
|
import '@orpc/openapi-client/standard';
|
|
4
4
|
import '@orpc/server/standard';
|
|
5
5
|
import '@orpc/client';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as StandardOpenAPICodec, S as StandardOpenAPICodecOptions, c as StandardOpenAPIHandler, b as StandardOpenAPIHandlerOptions, e as StandardOpenAPIMatcher, d as StandardOpenAPIMatcherOptions } from '../../shared/openapi.
|
|
1
|
+
export { a as StandardOpenAPICodec, S as StandardOpenAPICodecOptions, c as StandardOpenAPIHandler, b as StandardOpenAPIHandlerOptions, e as StandardOpenAPIMatcher, d as StandardOpenAPIMatcherOptions } from '../../shared/openapi.CdeSk3f7.mjs';
|
|
2
2
|
import { HTTPPath } from '@orpc/client';
|
|
3
3
|
import '@orpc/openapi-client/standard';
|
|
4
4
|
import '@orpc/server';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as StandardOpenAPICodec, S as StandardOpenAPICodecOptions, c as StandardOpenAPIHandler, b as StandardOpenAPIHandlerOptions, e as StandardOpenAPIMatcher, d as StandardOpenAPIMatcherOptions } from '../../shared/openapi.
|
|
1
|
+
export { a as StandardOpenAPICodec, S as StandardOpenAPICodecOptions, c as StandardOpenAPIHandler, b as StandardOpenAPIHandlerOptions, e as StandardOpenAPIMatcher, d as StandardOpenAPIMatcherOptions } from '../../shared/openapi.CdeSk3f7.js';
|
|
2
2
|
import { HTTPPath } from '@orpc/client';
|
|
3
3
|
import '@orpc/openapi-client/standard';
|
|
4
4
|
import '@orpc/server';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as StandardOpenAPICodec, a as StandardOpenAPIHandler, b as StandardOpenAPIMatcher, d as decodeParams, t as toRou3Pattern } from '../../shared/openapi.
|
|
1
|
+
export { S as StandardOpenAPICodec, a as StandardOpenAPIHandler, b as StandardOpenAPIMatcher, d as decodeParams, t as toRou3Pattern } from '../../shared/openapi.DPiCV5hl.mjs';
|
|
2
2
|
import '@orpc/openapi-client/standard';
|
|
3
3
|
import '@orpc/server/standard';
|
|
4
4
|
import '@orpc/client';
|
|
@@ -38,7 +38,7 @@ interface StandardOpenAPIMatcherOptions {
|
|
|
38
38
|
declare class StandardOpenAPIMatcher implements StandardMatcher {
|
|
39
39
|
private readonly filter;
|
|
40
40
|
private readonly tree;
|
|
41
|
-
private pendingRouters;
|
|
41
|
+
private readonly pendingRouters;
|
|
42
42
|
constructor(options?: StandardOpenAPIMatcherOptions);
|
|
43
43
|
init(router: AnyRouter, path?: readonly string[]): void;
|
|
44
44
|
match(method: string, pathname: HTTPPath): Promise<StandardMatchResult>;
|
|
@@ -38,7 +38,7 @@ interface StandardOpenAPIMatcherOptions {
|
|
|
38
38
|
declare class StandardOpenAPIMatcher implements StandardMatcher {
|
|
39
39
|
private readonly filter;
|
|
40
40
|
private readonly tree;
|
|
41
|
-
private pendingRouters;
|
|
41
|
+
private readonly pendingRouters;
|
|
42
42
|
constructor(options?: StandardOpenAPIMatcherOptions);
|
|
43
43
|
init(router: AnyRouter, path?: readonly string[]): void;
|
|
44
44
|
match(method: string, pathname: HTTPPath): Promise<StandardMatchResult>;
|
|
@@ -156,17 +156,21 @@ class StandardOpenAPIMatcher {
|
|
|
156
156
|
})));
|
|
157
157
|
}
|
|
158
158
|
async match(method, pathname) {
|
|
159
|
-
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
} else {
|
|
166
|
-
newPendingRouters.push(pendingRouter);
|
|
167
|
-
}
|
|
159
|
+
while (true) {
|
|
160
|
+
const pendingRouter = this.pendingRouters.find(
|
|
161
|
+
(pendingRouter2) => !pendingRouter2.laziedPrefix || pathname.startsWith(pendingRouter2.laziedPrefix) || pathname.startsWith(pendingRouter2.httpPathPrefix)
|
|
162
|
+
);
|
|
163
|
+
if (!pendingRouter) {
|
|
164
|
+
break;
|
|
168
165
|
}
|
|
169
|
-
|
|
166
|
+
pendingRouter.initPromise ??= unlazy(pendingRouter.router).then(({ default: router }) => {
|
|
167
|
+
this.init(router, pendingRouter.path);
|
|
168
|
+
this.pendingRouters.splice(this.pendingRouters.indexOf(pendingRouter), 1);
|
|
169
|
+
}).catch((error) => {
|
|
170
|
+
pendingRouter.initPromise = void 0;
|
|
171
|
+
throw error;
|
|
172
|
+
});
|
|
173
|
+
await pendingRouter.initPromise;
|
|
170
174
|
}
|
|
171
175
|
const match = findRoute(this.tree, method, pathname);
|
|
172
176
|
if (!match) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/openapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.14.
|
|
4
|
+
"version": "1.14.12",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.dev",
|
|
7
7
|
"repository": {
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"json-schema-typed": "^8.0.2",
|
|
58
58
|
"rou3": "^0.7.12",
|
|
59
|
-
"@orpc/
|
|
60
|
-
"@orpc/
|
|
61
|
-
"@orpc/
|
|
62
|
-
"@orpc/
|
|
63
|
-
"@orpc/server": "1.14.
|
|
64
|
-
"@orpc/
|
|
65
|
-
"@orpc/standard-server": "1.14.
|
|
59
|
+
"@orpc/contract": "1.14.12",
|
|
60
|
+
"@orpc/openapi-client": "1.14.12",
|
|
61
|
+
"@orpc/interop": "1.14.12",
|
|
62
|
+
"@orpc/shared": "1.14.12",
|
|
63
|
+
"@orpc/server": "1.14.12",
|
|
64
|
+
"@orpc/client": "1.14.12",
|
|
65
|
+
"@orpc/standard-server": "1.14.12"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"fastify": "^5.8.3",
|