@orpc/openapi 1.16.3 → 1.16.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.
@@ -1,5 +1,5 @@
1
1
  import { AwsLambdaHandler } from '@orpc/server/aws-lambda';
2
- import { a as StandardOpenAPIHandler } from '../../shared/openapi.7hX3MhvE.mjs';
2
+ import { a as StandardOpenAPIHandler } from '../../shared/openapi.C4jOVg5I.mjs';
3
3
  import '@orpc/openapi-client/standard';
4
4
  import '@orpc/server/standard';
5
5
  import '@orpc/client';
@@ -1,5 +1,5 @@
1
1
  import { FastifyHandler } from '@orpc/server/fastify';
2
- import { a as StandardOpenAPIHandler } from '../../shared/openapi.7hX3MhvE.mjs';
2
+ import { a as StandardOpenAPIHandler } from '../../shared/openapi.C4jOVg5I.mjs';
3
3
  import '@orpc/openapi-client/standard';
4
4
  import '@orpc/server/standard';
5
5
  import '@orpc/client';
@@ -1,5 +1,5 @@
1
1
  import { FetchHandler } from '@orpc/server/fetch';
2
- import { a as StandardOpenAPIHandler } from '../../shared/openapi.7hX3MhvE.mjs';
2
+ import { a as StandardOpenAPIHandler } from '../../shared/openapi.C4jOVg5I.mjs';
3
3
  import '@orpc/openapi-client/standard';
4
4
  import '@orpc/server/standard';
5
5
  import '@orpc/client';
@@ -1,5 +1,5 @@
1
1
  import { NodeHttpHandler } from '@orpc/server/node';
2
- import { a as StandardOpenAPIHandler } from '../../shared/openapi.7hX3MhvE.mjs';
2
+ import { a as StandardOpenAPIHandler } from '../../shared/openapi.C4jOVg5I.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 { S as StandardOpenAPICodec, a as StandardOpenAPIHandler, b as StandardOpenAPIMatcher, d as decodeParams, t as toRou3Pattern } from '../../shared/openapi.7hX3MhvE.mjs';
1
+ export { S as StandardOpenAPICodec, a as StandardOpenAPIHandler, b as StandardOpenAPIMatcher, d as decodeParams, t as toRou3Pattern } from '../../shared/openapi.C4jOVg5I.mjs';
2
2
  import '@orpc/openapi-client/standard';
3
3
  import '@orpc/server/standard';
4
4
  import '@orpc/client';
@@ -166,14 +166,12 @@ class StandardOpenAPIMatcher {
166
166
  if (!pendingRouter) {
167
167
  break;
168
168
  }
169
- pendingRouter.initPromise ??= unlazy(pendingRouter.router).then(({ default: router }) => {
169
+ const { default: router } = await unlazy(pendingRouter.router);
170
+ const index = this.pendingRouters.indexOf(pendingRouter);
171
+ if (index !== -1) {
170
172
  this.init(router, pendingRouter.path);
171
- this.pendingRouters.splice(this.pendingRouters.indexOf(pendingRouter), 1);
172
- }).catch((error) => {
173
- pendingRouter.initPromise = void 0;
174
- throw error;
175
- });
176
- await pendingRouter.initPromise;
173
+ this.pendingRouters.splice(index, 1);
174
+ }
177
175
  }
178
176
  const match = findRoute(this.tree, method, pathname);
179
177
  if (!match) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/openapi",
3
3
  "type": "module",
4
- "version": "1.16.3",
4
+ "version": "1.16.5",
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/client": "1.16.3",
60
- "@orpc/contract": "1.16.3",
61
- "@orpc/openapi-client": "1.16.3",
62
- "@orpc/shared": "1.16.3",
63
- "@orpc/standard-server": "1.16.3",
64
- "@orpc/interop": "1.16.3",
65
- "@orpc/server": "1.16.3"
59
+ "@orpc/client": "1.16.5",
60
+ "@orpc/contract": "1.16.5",
61
+ "@orpc/interop": "1.16.5",
62
+ "@orpc/server": "1.16.5",
63
+ "@orpc/openapi-client": "1.16.5",
64
+ "@orpc/shared": "1.16.5",
65
+ "@orpc/standard-server": "1.16.5"
66
66
  },
67
67
  "devDependencies": {
68
68
  "fastify": "^5.8.3",