Files
klz-cables.com/.pnpm-store/v10/files/d0/e02091e382d8e213c86d0f1853ce6227451b8e373edc8d5e5245bd7a4dd51dd0795edc482aee28adcb49f6b1be451c58f91a5e5ff4fcfd3a5494712c38c1f8
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
572 B
Plaintext

import{isFetchResponse as e}from"./is-response.js";async function t(t){if(!(typeof t!=`object`||!t)){if(e(t)){let e=t.headers.get(`Content-Type`)?.toLowerCase();if(e?.startsWith(`application/json`)||e?.startsWith(`application/health+json`)){let e=await t.json();if(!t.ok||`errors`in e)throw e;return`data`in e?e.data:e}if(e?.startsWith(`text/html`)||e?.startsWith(`text/plain`)){let e=await t.text();if(!t.ok)throw e;return e}return t.status===204?null:t}if(`errors`in t)throw t;return`data`in t?t.data:t}}export{t as extractData};
//# sourceMappingURL=extract-data.js.map