@orpc/standard-server 1.13.10 → 1.13.12

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
@@ -202,9 +202,9 @@ class HibernationEventIterator extends AsyncIteratorClass {
202
202
  }
203
203
 
204
204
  function generateContentDisposition(filename) {
205
- const escapedFileName = filename.replace(/"/g, '\\"');
205
+ const encodedFileName = filename.replace(/[^\x20-\x7E]/g, "_").replace(/"/g, '\\"');
206
206
  const encodedFilenameStar = encodeURIComponent(filename).replace(/['()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g, (str, hex) => String.fromCharCode(Number.parseInt(hex, 16)));
207
- return `inline; filename="${escapedFileName}"; filename*=utf-8''${encodedFilenameStar}`;
207
+ return `inline; filename="${encodedFileName}"; filename*=utf-8''${encodedFilenameStar}`;
208
208
  }
209
209
  function getFilenameFromContentDisposition(contentDisposition) {
210
210
  const encodedFilenameStarMatch = contentDisposition.match(/filename\*=(UTF-8'')?([^;]*)/i);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/standard-server",
3
3
  "type": "module",
4
- "version": "1.13.10",
4
+ "version": "1.13.12",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.dev",
7
7
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@orpc/shared": "1.13.10"
31
+ "@orpc/shared": "1.13.12"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "unbuild",