@edge-runtime/node-utils
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -117,2 +117,3 @@ "use strict"; | ||
function toOutgoingHeaders(headers) { | ||
var _a; | ||
const outputHeaders = {}; | ||
@@ -123,3 +124,3 @@ if (headers) { | ||
if (name.toLowerCase() === "set-cookie") { | ||
outputHeaders[name] = "getAll" in headers ? headers.getAll("set-cookie") : splitCookiesString(value); | ||
outputHeaders[name] = ((_a = headers.getAll) == null ? void 0 : _a.call(headers, "set-cookie")) ?? splitCookiesString(value); | ||
} | ||
@@ -126,0 +127,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/node-utils", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "dist/index.js", | ||
@@ -28,3 +28,3 @@ "module": "dist/index.mjs", | ||
"devDependencies": { | ||
"@edge-runtime/primitives": "2.0.4", | ||
"@edge-runtime/primitives": "2.0.5", | ||
"@types/test-listen": "1.1.0", | ||
@@ -31,0 +31,0 @@ "test-listen": "1.1.0", |
Sorry, the diff of this file is not supported yet
35441
563