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
495 B
Plaintext
2 lines
495 B
Plaintext
import{extractData as e}from"./extract-data.js";const t=async(t,n,r=globalThis.fetch)=>(n.headers=typeof n.headers==`object`&&!Array.isArray(n.headers)?n.headers:{},r(t,n).then(t=>e(t).catch(e=>{let n={message:``,errors:e&&typeof e==`object`&&`errors`in e?e.errors:e,response:t};return e&&typeof e==`object`&&`data`in e&&(n.data=e.data),Array.isArray(n.errors)&&n.errors[0]?.message&&(n.message=n.errors[0].message),Promise.reject(n)})));export{t as request};
|
|
//# sourceMappingURL=request.js.map |