Files
klz-cables.com/.pnpm-store/v10/files/ae/d3f45be95030c9b180674bf34d76f9e6158d59b04cefc416f4a95262a1b60c1f0f9aecc17c00bf398842110027515c4594fb59bbfa72d0a76f32b9f49e4422
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

2 lines
628 B
Plaintext

import{getRequestUrl as e}from"../utils/get-request-url.js";import{request as t}from"../utils/request.js";const n={},r=(r={})=>i=>{let a={...n,...r};return{async query(n,r,o=`items`){let s={method:`POST`,body:JSON.stringify({query:n,variables:r})};`credentials`in a&&(s.credentials=a.credentials);let c={};if(`getToken`in this){let e=await this.getToken();e&&(c.Authorization=`Bearer ${e}`)}`Content-Type`in c||(c[`Content-Type`]=`application/json`),s.headers=c;let l=o===`items`?`/graphql`:`/graphql/system`;return await t(e(i.url,l).toString(),s,i.globals.fetch)}}};export{r as graphql};
//# sourceMappingURL=composable.js.map