Files
klz-cables.com/.pnpm-store/v10/files/73/544a98475cbf262576f0e4499da51d4fb7ddf599a542de0a353df90a72232634ce787b4877cc0578f166d31a34a53fa12e717e9da2094500e83a653532f067
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

1 line
798 B
Plaintext

{"version":3,"sources":["../../src/utilities/parseBooleanString.ts"],"sourcesContent":["/**\n * Useful when parsing query parameters where booleans are represented as strings.\n * Falls back to `undefined` to allow default handling elsewhere.\n */\nexport const parseBooleanString = (\n value: boolean | null | string | undefined,\n): boolean | undefined => {\n if (typeof value === 'boolean') {\n return value\n }\n\n if (value === 'true') {\n return true\n }\n\n if (value === 'false') {\n return false\n }\n\n return undefined\n}\n"],"names":["parseBooleanString","value","undefined"],"mappings":"AAAA;;;CAGC,GACD,OAAO,MAAMA,qBAAqB,CAChCC;IAEA,IAAI,OAAOA,UAAU,WAAW;QAC9B,OAAOA;IACT;IAEA,IAAIA,UAAU,QAAQ;QACpB,OAAO;IACT;IAEA,IAAIA,UAAU,SAAS;QACrB,OAAO;IACT;IAEA,OAAOC;AACT,EAAC"}