Files
klz-cables.com/.pnpm-store/v10/files/7f/af2113deb0a1f3670a799fbc40e923fd8c16251bc84931111362ccc05a47aa868c9b3b28be5b62ac81d35a14e4f065cd32b9b9ce251e8c9a18f2ee68da42f6
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
679 B
Plaintext

{"version":3,"file":"with-token.js","names":[],"sources":["../../../src/rest/helpers/with-token.ts"],"sourcesContent":["import type { RestCommand } from '../types.js';\n\nexport function withToken<Schema, Output>(\n\ttoken: string,\n\tgetOptions: RestCommand<Output, Schema>,\n): RestCommand<Output, Schema> {\n\treturn () => {\n\t\tconst options = getOptions();\n\n\t\tif (token) {\n\t\t\tif (!options.headers) options.headers = {};\n\t\t\toptions.headers['Authorization'] = `Bearer ${token}`;\n\t\t}\n\n\t\treturn options;\n\t};\n}\n"],"mappings":"AAEA,SAAgB,EACf,EACA,EAC8B,CAC9B,UAAa,CACZ,IAAM,EAAU,GAAY,CAO5B,OALI,IACH,AAAsB,EAAQ,UAAU,EAAE,CAC1C,EAAQ,QAAQ,cAAmB,UAAU,KAGvC"}