@orpc/openapi 0.0.0-next.4220427 → 0.0.0-next.44bdf93
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-YOKECDND.js → chunk-N7JLIFHD.js} +2 -2
- package/dist/{chunk-XYIZDXKB.js → chunk-TW72MGM2.js} +3 -4
- package/dist/{chunk-KNYXLM77.js → chunk-V4HFPIEN.js} +1 -1
- package/dist/fetch.js +3 -3
- package/dist/hono.js +3 -3
- package/dist/index.js +1 -1
- package/dist/next.js +3 -3
- package/dist/node.js +2 -2
- package/dist/src/openapi-generator.d.ts +1 -1
- package/dist/src/utils.d.ts +2 -2
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenAPIHandler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TW72MGM2.js";
|
|
4
4
|
|
|
5
5
|
// src/adapters/fetch/openapi-handler-server.ts
|
|
6
6
|
import { TrieRouter } from "hono/router/trie-router";
|
|
@@ -22,4 +22,4 @@ export {
|
|
|
22
22
|
OpenAPIServerHandler,
|
|
23
23
|
OpenAPIServerlessHandler
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-N7JLIFHD.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
JSONSerializer,
|
|
3
3
|
forEachContractProcedure,
|
|
4
4
|
standardizeHTTPPath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-V4HFPIEN.js";
|
|
6
6
|
|
|
7
7
|
// src/adapters/fetch/bracket-notation.ts
|
|
8
8
|
import { isPlainObject } from "@orpc/shared";
|
|
@@ -519,9 +519,8 @@ var OpenAPIHandler = class {
|
|
|
519
519
|
const contractDef = matched.procedure["~orpc"].contract["~orpc"];
|
|
520
520
|
const input = await this.decodeInput(matched.procedure, matched.params, request);
|
|
521
521
|
const coercedInput = this.compositeSchemaCoercer.coerce(contractDef.InputSchema, input);
|
|
522
|
-
const client = createProcedureClient({
|
|
522
|
+
const client = createProcedureClient(matched.procedure, {
|
|
523
523
|
context,
|
|
524
|
-
procedure: matched.procedure,
|
|
525
524
|
path: matched.path
|
|
526
525
|
});
|
|
527
526
|
const output = await client(coercedInput, { signal: request.signal });
|
|
@@ -649,4 +648,4 @@ export {
|
|
|
649
648
|
CompositeSchemaCoercer,
|
|
650
649
|
OpenAPIHandler
|
|
651
650
|
};
|
|
652
|
-
//# sourceMappingURL=chunk-
|
|
651
|
+
//# sourceMappingURL=chunk-TW72MGM2.js.map
|
package/dist/fetch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenAPIServerHandler,
|
|
3
3
|
OpenAPIServerlessHandler
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N7JLIFHD.js";
|
|
5
5
|
import {
|
|
6
6
|
CompositeSchemaCoercer,
|
|
7
7
|
InputStructureCompact,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
parsePath,
|
|
15
15
|
serialize,
|
|
16
16
|
stringifyPath
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-TW72MGM2.js";
|
|
18
|
+
import "./chunk-V4HFPIEN.js";
|
|
19
19
|
export {
|
|
20
20
|
CompositeSchemaCoercer,
|
|
21
21
|
InputStructureCompact,
|
package/dist/hono.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenAPIServerHandler,
|
|
3
3
|
OpenAPIServerlessHandler
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N7JLIFHD.js";
|
|
5
5
|
import {
|
|
6
6
|
CompositeSchemaCoercer,
|
|
7
7
|
InputStructureCompact,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
parsePath,
|
|
15
15
|
serialize,
|
|
16
16
|
stringifyPath
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-TW72MGM2.js";
|
|
18
|
+
import "./chunk-V4HFPIEN.js";
|
|
19
19
|
export {
|
|
20
20
|
CompositeSchemaCoercer,
|
|
21
21
|
InputStructureCompact,
|
package/dist/index.js
CHANGED
package/dist/next.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenAPIServerHandler,
|
|
3
3
|
OpenAPIServerlessHandler
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N7JLIFHD.js";
|
|
5
5
|
import {
|
|
6
6
|
CompositeSchemaCoercer,
|
|
7
7
|
InputStructureCompact,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
parsePath,
|
|
15
15
|
serialize,
|
|
16
16
|
stringifyPath
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-TW72MGM2.js";
|
|
18
|
+
import "./chunk-V4HFPIEN.js";
|
|
19
19
|
export {
|
|
20
20
|
CompositeSchemaCoercer,
|
|
21
21
|
InputStructureCompact,
|
package/dist/node.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenAPIHandler
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TW72MGM2.js";
|
|
4
|
+
import "./chunk-V4HFPIEN.js";
|
|
5
5
|
|
|
6
6
|
// src/adapters/node/openapi-handler.ts
|
|
7
7
|
import { createRequest, sendResponse } from "@orpc/server/node";
|
|
@@ -61,7 +61,7 @@ export declare class OpenAPIGenerator {
|
|
|
61
61
|
private readonly considerMissingTagDefinitionAsError;
|
|
62
62
|
private readonly strictErrorResponses;
|
|
63
63
|
constructor(options?: OpenAPIGeneratorOptions);
|
|
64
|
-
generate(router: ContractRouter | ANY_ROUTER, doc: Omit<OpenAPI.OpenAPIObject, 'openapi'>): Promise<OpenAPI.OpenAPIObject>;
|
|
64
|
+
generate(router: ContractRouter<any> | ANY_ROUTER, doc: Omit<OpenAPI.OpenAPIObject, 'openapi'>): Promise<OpenAPI.OpenAPIObject>;
|
|
65
65
|
}
|
|
66
66
|
export {};
|
|
67
67
|
//# sourceMappingURL=openapi-generator.d.ts.map
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ContractRouter, HTTPPath, WELL_CONTRACT_PROCEDURE } from '@orpc/contract';
|
|
2
2
|
import type { ANY_PROCEDURE, ANY_ROUTER, Lazy } from '@orpc/server';
|
|
3
3
|
export interface EachLeafOptions {
|
|
4
|
-
router: ContractRouter | ANY_ROUTER;
|
|
4
|
+
router: ContractRouter<any> | ANY_ROUTER;
|
|
5
5
|
path: string[];
|
|
6
6
|
}
|
|
7
7
|
export interface EachLeafCallbackOptions {
|
|
@@ -13,6 +13,6 @@ export interface EachContractLeafResultItem {
|
|
|
13
13
|
path: string[];
|
|
14
14
|
}
|
|
15
15
|
export declare function forEachContractProcedure(options: EachLeafOptions, callback: (options: EachLeafCallbackOptions) => void, result?: EachContractLeafResultItem[], isCurrentRouterContract?: boolean): EachContractLeafResultItem[];
|
|
16
|
-
export declare function forEachAllContractProcedure(router: ContractRouter | ANY_ROUTER, callback: (options: EachLeafCallbackOptions) => void): Promise<void>;
|
|
16
|
+
export declare function forEachAllContractProcedure(router: ContractRouter<any> | ANY_ROUTER, callback: (options: EachLeafCallbackOptions) => void): Promise<void>;
|
|
17
17
|
export declare function standardizeHTTPPath(path: HTTPPath): HTTPPath;
|
|
18
18
|
//# sourceMappingURL=utils.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/openapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.44bdf93",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"json-schema-typed": "^8.0.1",
|
|
59
59
|
"openapi3-ts": "^4.4.0",
|
|
60
60
|
"wildcard-match": "^5.1.3",
|
|
61
|
-
"@orpc/contract": "0.0.0-next.
|
|
62
|
-
"@orpc/
|
|
63
|
-
"@orpc/
|
|
61
|
+
"@orpc/contract": "0.0.0-next.44bdf93",
|
|
62
|
+
"@orpc/server": "0.0.0-next.44bdf93",
|
|
63
|
+
"@orpc/shared": "0.0.0-next.44bdf93"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@readme/openapi-parser": "^2.6.0",
|