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
2 lines
1.0 KiB
Plaintext
2 lines
1.0 KiB
Plaintext
import{throwIfEmpty as e}from"../../utils/throw-if-empty.js";const t=(t,n)=>()=>(e(String(t),`Key cannot be empty`),{path:`/assets/${t}`,params:n??{},method:`GET`,onResponse:e=>e.body}),n=(t,n)=>()=>(e(String(t),`Key cannot be empty`),{path:`/assets/${t}`,params:n??{},method:`GET`,onResponse:e=>e.blob()}),r=(t,n)=>()=>(e(String(t),`Key cannot be empty`),{path:`/assets/${t}`,params:n??{},method:`GET`,onResponse:e=>e.arrayBuffer()}),i=(t,n)=>()=>{e(String(t),`Keys cannot be empty`);let r=e=>e.body;return n?.output===`arrayBuffer`?r=e=>e.arrayBuffer():n?.output===`blob`&&(r=e=>e.blob()),{path:`/assets/files/`,body:JSON.stringify({ids:t}),method:`POST`,onResponse:r}},a=(t,n)=>()=>{e(String(t),`Key cannot be empty`);let r=e=>e.body;return n?.output===`arrayBuffer`?r=e=>e.arrayBuffer():n?.output===`blob`&&(r=e=>e.blob()),{path:`/assets/folder/${t}`,method:`POST`,onResponse:r}};export{i as downloadFilesZip,a as downloadFolderZip,r as readAssetArrayBuffer,n as readAssetBlob,t as readAssetRaw};
|
|
//# sourceMappingURL=assets.js.map |