@orpc/client 0.38.0 → 0.39.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 +2 -2
- package/package.json +6 -5
package/dist/fetch.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// src/adapters/fetch/orpc-link.ts
|
2
2
|
import { ORPCError } from "@orpc/contract";
|
3
|
-
import {
|
3
|
+
import { toStandardBody } from "@orpc/server-standard-fetch";
|
4
4
|
import { RPCSerializer } from "@orpc/server/standard";
|
5
5
|
import { isObject, trim } from "@orpc/shared";
|
6
6
|
import { contentDisposition } from "@tinyhttp/content-disposition";
|
@@ -37,7 +37,7 @@ var RPCLink = class {
|
|
37
37
|
body: encoded.body,
|
38
38
|
signal: options.signal
|
39
39
|
}, clientContext);
|
40
|
-
const body = await
|
40
|
+
const body = await toStandardBody(response);
|
41
41
|
const deserialized = (() => {
|
42
42
|
try {
|
43
43
|
return this.rpcSerializer.deserialize(body);
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/client",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.39.0",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -34,14 +34,15 @@
|
|
34
34
|
"dist"
|
35
35
|
],
|
36
36
|
"dependencies": {
|
37
|
+
"@orpc/server-standard-fetch": "^0.0.0",
|
37
38
|
"@tinyhttp/content-disposition": "^2.2.2",
|
38
|
-
"@orpc/contract": "0.
|
39
|
-
"@orpc/
|
40
|
-
"@orpc/
|
39
|
+
"@orpc/contract": "0.39.0",
|
40
|
+
"@orpc/server": "0.39.0",
|
41
|
+
"@orpc/shared": "0.39.0"
|
41
42
|
},
|
42
43
|
"devDependencies": {
|
43
44
|
"zod": "^3.24.1",
|
44
|
-
"@orpc/openapi": "0.
|
45
|
+
"@orpc/openapi": "0.39.0"
|
45
46
|
},
|
46
47
|
"scripts": {
|
47
48
|
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --entry.fetch=src/adapters/fetch/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
|