Unverified Commit 0f6a6b23 authored by Kiko Beats's avatar Kiko Beats Committed by GitHub

chore: upgrade `@edge-runtime/cookies` (#63602)

parent 66be631d
......@@ -137,7 +137,7 @@
"@babel/traverse": "7.22.5",
"@babel/types": "7.22.5",
"@capsizecss/metrics": "2.2.0",
"@edge-runtime/cookies": "4.1.0",
"@edge-runtime/cookies": "4.1.1",
"@edge-runtime/ponyfill": "2.4.2",
"@edge-runtime/primitives": "4.1.0",
"@hapi/accept": "5.0.2",
......
......@@ -42,7 +42,8 @@ function stringifyCookie(c) {
"partitioned" in c && c.partitioned && "Partitioned",
"priority" in c && c.priority && `Priority=${c.priority}`
].filter(Boolean);
return `${c.name}=${encodeURIComponent((_a = c.value) != null ? _a : "")}; ${attrs.join("; ")}`;
const stringified = `${c.name}=${encodeURIComponent((_a = c.value) != null ? _a : "")}`;
return attrs.length === 0 ? stringified : `${stringified}; ${attrs.join("; ")}`;
}
function parseCookie(cookie) {
const map = /* @__PURE__ */ new Map();
......
{"name":"@edge-runtime/cookies","version":"4.1.0","main":"./index.js","license":"MPL-2.0"}
{"name":"@edge-runtime/cookies","version":"4.1.1","main":"./index.js","license":"MPL-2.0"}
......@@ -906,8 +906,8 @@ importers:
specifier: 2.2.0
version: 2.2.0
'@edge-runtime/cookies':
specifier: 4.1.0
version: 4.1.0
specifier: 4.1.1
version: 4.1.1
'@edge-runtime/ponyfill':
specifier: 2.4.2
version: 2.4.2
......@@ -3537,8 +3537,8 @@ packages:
engines: {node: '>=10.0.0'}
dev: false
/@edge-runtime/cookies@4.1.0:
resolution: {integrity: sha512-yygdcJ7Icc38Y3oVGXhb1Xz4dl8YDkYfvtEdfQlmt3gf4daRJfKkTMP0WOhN59CIcjFkCKrwhjwpuNZMvcYiYg==}
/@edge-runtime/cookies@4.1.1:
resolution: {integrity: sha512-ATZLTOpnCUD9ZLNBIXhxOmP/UVx6BfhCjDy9P1YACpD8vrHb5Uw7YlG9RYUl1AMF7Y10TIIN3jhFbUSMiH2J7g==}
engines: {node: '>=16'}
dev: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment