Files
klz-cables.com/.pnpm-store/v10/files/72/8eb8df88061410ca772f4fa9712835a5731771277657d387f7e0c7fa2c21c4ba97ce158864c97b867166484892488cc9e245ddf5998aeb98937a71a8344dca
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

1 line
1006 B
Plaintext

{"version":3,"sources":["../../src/utilities/parseDocumentID.ts"],"sourcesContent":["import type { CollectionSlug, Payload } from '../index.js'\n\nimport { isNumber } from './isNumber.js'\n\ntype ParseDocumentIDArgs = {\n collectionSlug: CollectionSlug\n id?: number | string\n payload: Payload\n}\n\nexport function parseDocumentID({ id, collectionSlug, payload }: ParseDocumentIDArgs) {\n const idType = payload.collections[collectionSlug]?.customIDType ?? payload.db.defaultIDType\n\n return id ? (idType === 'number' && isNumber(id) ? parseFloat(String(id)) : id) : undefined\n}\n"],"names":["isNumber","parseDocumentID","id","collectionSlug","payload","idType","collections","customIDType","db","defaultIDType","parseFloat","String","undefined"],"mappings":"AAEA,SAASA,QAAQ,QAAQ,gBAAe;AAQxC,OAAO,SAASC,gBAAgB,EAAEC,EAAE,EAAEC,cAAc,EAAEC,OAAO,EAAuB;IAClF,MAAMC,SAASD,QAAQE,WAAW,CAACH,eAAe,EAAEI,gBAAgBH,QAAQI,EAAE,CAACC,aAAa;IAE5F,OAAOP,KAAMG,WAAW,YAAYL,SAASE,MAAMQ,WAAWC,OAAOT,OAAOA,KAAMU;AACpF"}