@orpc/standard-server-fetch 1.8.5 → 1.8.6

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 +3 -3
package/dist/index.mjs CHANGED
@@ -211,7 +211,7 @@ function toFetchBody(body, headers, options = {}) {
211
211
  }
212
212
 
213
213
  function toStandardHeaders(headers, standardHeaders = {}) {
214
- for (const [key, value] of headers) {
214
+ headers.forEach((value, key) => {
215
215
  if (Array.isArray(standardHeaders[key])) {
216
216
  standardHeaders[key].push(value);
217
217
  } else if (standardHeaders[key] !== void 0) {
@@ -219,7 +219,7 @@ function toStandardHeaders(headers, standardHeaders = {}) {
219
219
  } else {
220
220
  standardHeaders[key] = value;
221
221
  }
222
- }
222
+ });
223
223
  return standardHeaders;
224
224
  }
225
225
  function toFetchHeaders(headers, fetchHeaders = new Headers()) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/standard-server-fetch",
3
3
  "type": "module",
4
- "version": "1.8.5",
4
+ "version": "1.8.6",
5
5
  "license": "MIT",
6
6
  "homepage": "https://unnoq.com",
7
7
  "repository": {
@@ -23,8 +23,8 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@orpc/shared": "1.8.5",
27
- "@orpc/standard-server": "1.8.5"
26
+ "@orpc/shared": "1.8.6",
27
+ "@orpc/standard-server": "1.8.6"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@hono/node-server": "^1.18.2"