@orpc/client 0.35.1 → 0.36.1

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.
Files changed (2) hide show
  1. package/dist/fetch.js +2 -2
  2. package/package.json +6 -6
package/dist/fetch.js CHANGED
@@ -3,7 +3,7 @@ import { ORPCError } from "@orpc/contract";
3
3
  import { fetchReToStandardBody } from "@orpc/server/fetch";
4
4
  import { RPCSerializer } from "@orpc/server/standard";
5
5
  import { isPlainObject, trim } from "@orpc/shared";
6
- import cd from "content-disposition";
6
+ import { contentDisposition } from "@tinyhttp/content-disposition";
7
7
  var RPCLink = class {
8
8
  fetch;
9
9
  rpcSerializer;
@@ -29,7 +29,7 @@ var RPCLink = class {
29
29
  const clientContext = options.context;
30
30
  const encoded = await this.encode(path, input, options);
31
31
  if (encoded.body instanceof Blob && !encoded.headers.has("content-disposition")) {
32
- encoded.headers.set("content-disposition", cd(encoded.body instanceof File ? encoded.body.name : "blob"));
32
+ encoded.headers.set("content-disposition", contentDisposition(encoded.body instanceof File ? encoded.body.name : "blob"));
33
33
  }
34
34
  const response = await this.fetch(encoded.url, {
35
35
  method: encoded.method,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/client",
3
3
  "type": "module",
4
- "version": "0.35.1",
4
+ "version": "0.36.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {
@@ -34,14 +34,14 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "content-disposition": "^0.5.4",
38
- "@orpc/contract": "0.35.1",
39
- "@orpc/server": "0.35.1",
40
- "@orpc/shared": "0.35.1"
37
+ "@tinyhttp/content-disposition": "^2.2.2",
38
+ "@orpc/shared": "0.36.1",
39
+ "@orpc/contract": "0.36.1",
40
+ "@orpc/server": "0.36.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "zod": "^3.24.1",
44
- "@orpc/openapi": "0.35.1"
44
+ "@orpc/openapi": "0.36.1"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "tsup --clean --sourcemap --entry.index=src/index.ts --entry.fetch=src/adapters/fetch/index.ts --format=esm --onSuccess='tsc -b --noCheck'",