@edge-runtime/cookies
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -46,6 +46,7 @@ "use strict"; | ||
continue; | ||
const [key, value] = pair.split("=", 2); | ||
const splitAt = pair.indexOf("="); | ||
const [key, value] = [pair.slice(0, splitAt), pair.slice(splitAt + 1)]; | ||
try { | ||
map.set(key, decodeURIComponent(value ?? "true")); | ||
} catch (err) { | ||
} catch { | ||
} | ||
@@ -52,0 +53,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/cookies", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"main": "dist/index.js", | ||
@@ -30,3 +30,3 @@ "module": "dist/index.mjs", | ||
"@edge-runtime/format": "2.0.0", | ||
"@edge-runtime/jest-environment": "2.0.3", | ||
"@edge-runtime/jest-environment": "2.0.4", | ||
"@types/cookie": "0.5.1", | ||
@@ -33,0 +33,0 @@ "tsup": "6" |
Sorry, the diff of this file is not supported yet
42655
691