Files
klz-cables.com/.pnpm-store/v10/files/3e/ea7417e24e62b5bd364edde0bbec464e8ad3a24e3153d4afcca02acc4eaf2a8531564cd73bdf82e0a9747a2ec747e235fa3cbfe0d1105e126da5b4bb5fa7ad
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
613 B
Plaintext

import{throwIfEmpty as e}from"../../utils/throw-if-empty.js";const t=(t,n,r)=>()=>(e(t,`Keys cannot be empty`),{path:`/files`,params:r??{},body:JSON.stringify({keys:t,data:n}),method:`PATCH`}),n=(e,t)=>()=>({path:`/files`,params:t??{},body:JSON.stringify(e),method:`PATCH`}),r=(t,n,r)=>()=>(e(t,`Key cannot be empty`),n instanceof FormData?{path:`/files/${t}`,params:r??{},body:n,method:`PATCH`,headers:{"Content-Type":`multipart/form-data`}}:{path:`/files/${t}`,params:r??{},body:JSON.stringify(n),method:`PATCH`});export{r as updateFile,t as updateFiles,n as updateFilesBatch};
//# sourceMappingURL=files.js.map