@orpc/openapi 0.20.0 → 0.21.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/fetch.js +4 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/fetch.js
CHANGED
|
@@ -519,7 +519,10 @@ var OpenAPIHandler = class {
|
|
|
519
519
|
});
|
|
520
520
|
const output = await client(coercedInput, { signal: options?.signal });
|
|
521
521
|
const { body, headers: headers2 } = this.payloadCodec.encode(output);
|
|
522
|
-
return new Response(body, {
|
|
522
|
+
return new Response(body, {
|
|
523
|
+
headers: headers2,
|
|
524
|
+
status: match.procedure["~orpc"].contract["~orpc"].route?.successStatus ?? 200
|
|
525
|
+
});
|
|
523
526
|
};
|
|
524
527
|
try {
|
|
525
528
|
return await executeWithHooks({
|
package/dist/index.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.21.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"json-schema-typed": "^8.0.1",
|
|
44
44
|
"openapi3-ts": "^4.4.0",
|
|
45
45
|
"wildcard-match": "^5.1.3",
|
|
46
|
-
"@orpc/contract": "0.
|
|
47
|
-
"@orpc/shared": "0.
|
|
48
|
-
"@orpc/server": "0.
|
|
46
|
+
"@orpc/contract": "0.21.0",
|
|
47
|
+
"@orpc/shared": "0.21.0",
|
|
48
|
+
"@orpc/server": "0.21.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@readme/openapi-parser": "^2.6.0",
|