edge-runtime
Advanced tools
Comparing version 2.5.1 to 2.5.2
@@ -83,4 +83,3 @@ "use strict"; | ||
* Transforms WHATWG Headers into a Node Headers shape. Copies all items but | ||
* does a special case for Set-Cookie using the hidden method getAll which | ||
* allows to get all cookies instead of a folded value. | ||
* does a special case for Set-Cookie using the [`getSetCookie`](https://developer.mozilla.org/en-US/docs/Web/API/Headers/getSetCookie) method. | ||
*/ | ||
@@ -91,7 +90,3 @@ function toNodeHeaders(headers) { | ||
for (const [key, value] of headers.entries()) { | ||
result[key] = | ||
key.toLowerCase() === 'set-cookie' | ||
? // @ts-ignore getAll is hidden in Headers but exists. | ||
headers.getAll('set-cookie') | ||
: value; | ||
result[key] = key === 'set-cookie' ? headers.getSetCookie() : value; | ||
} | ||
@@ -98,0 +93,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/runtime", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"main": "dist/index.js", | ||
@@ -36,3 +36,3 @@ "bin": { | ||
"@edge-runtime/format": "2.2.0", | ||
"@edge-runtime/vm": "3.1.1" | ||
"@edge-runtime/vm": "3.1.2" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
79907
669
+ Added@edge-runtime/primitives@4.0.0(transitive)
+ Added@edge-runtime/vm@3.1.2(transitive)
- Removed@edge-runtime/primitives@3.1.1(transitive)
- Removed@edge-runtime/vm@3.1.1(transitive)
Updated@edge-runtime/vm@3.1.2