@orpc/standard-server 1.7.3 → 1.7.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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { isTypescriptObject, AsyncIteratorClass, toArray, once, isAsyncIteratorObject, replicateAsyncIterator } from '@orpc/shared';
1
+ import { isTypescriptObject, AsyncIteratorClass, tryDecodeURIComponent, toArray, once, isAsyncIteratorObject, replicateAsyncIterator } from '@orpc/shared';
2
2
 
3
3
  class EventEncoderError extends TypeError {
4
4
  }
@@ -207,7 +207,7 @@ function generateContentDisposition(filename) {
207
207
  function getFilenameFromContentDisposition(contentDisposition) {
208
208
  const encodedFilenameStarMatch = contentDisposition.match(/filename\*=(UTF-8'')?([^;]*)/i);
209
209
  if (encodedFilenameStarMatch && typeof encodedFilenameStarMatch[2] === "string") {
210
- return decodeURIComponent(encodedFilenameStarMatch[2]);
210
+ return tryDecodeURIComponent(encodedFilenameStarMatch[2]);
211
211
  }
212
212
  const encodedFilenameMatch = contentDisposition.match(/filename="((?:\\"|[^"])*)"/i);
213
213
  if (encodedFilenameMatch && typeof encodedFilenameMatch[1] === "string") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/standard-server",
3
3
  "type": "module",
4
- "version": "1.7.3",
4
+ "version": "1.7.5",
5
5
  "license": "MIT",
6
6
  "homepage": "https://unnoq.com",
7
7
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@orpc/shared": "1.7.3"
31
+ "@orpc/shared": "1.7.5"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "unbuild",