Files
klz-cables.com/.pnpm-store/v10/files/bf/328f1c46af227f3099aa1c0ab0195d1d9c4da9c3b9874724574b951eb84f4c7327cdd03e4d876c34fde29f6db86b51b0edc7ca937d9b5e2b494e3d222ee424
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

20 lines
591 B
Plaintext

export const parseCookies = (headers)=>{
const list = new Map();
const rc = headers.get('Cookie');
if (rc) {
rc.split(';').forEach((cookie)=>{
const parts = cookie.split('=');
const key = parts.shift()?.trim();
const encodedValue = parts.join('=');
try {
const decodedValue = decodeURI(encodedValue);
list.set(key, decodedValue);
} catch {
// ignore invalid encoded values
}
});
}
return list;
};
//# sourceMappingURL=parseCookies.js.map