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
1 line
1.0 KiB
Plaintext
1 line
1.0 KiB
Plaintext
{"version":3,"sources":["../../src/versions/buildVersionCompoundIndexes.ts"],"sourcesContent":["import type { SanitizedCompoundIndex } from '../collections/config/types.js'\n\nexport const buildVersionCompoundIndexes = ({\n indexes,\n}: {\n indexes: SanitizedCompoundIndex[]\n}): SanitizedCompoundIndex[] => {\n return indexes.map((each) => ({\n fields: each.fields.map(({ field, localizedPath, path, pathHasLocalized }) => ({\n field,\n localizedPath: `version.${localizedPath}`,\n path: `version.${path}`,\n pathHasLocalized,\n })),\n unique: false,\n }))\n}\n"],"names":["buildVersionCompoundIndexes","indexes","map","each","fields","field","localizedPath","path","pathHasLocalized","unique"],"mappings":"AAEA,OAAO,MAAMA,8BAA8B,CAAC,EAC1CC,OAAO,EAGR;IACC,OAAOA,QAAQC,GAAG,CAAC,CAACC,OAAU,CAAA;YAC5BC,QAAQD,KAAKC,MAAM,CAACF,GAAG,CAAC,CAAC,EAAEG,KAAK,EAAEC,aAAa,EAAEC,IAAI,EAAEC,gBAAgB,EAAE,GAAM,CAAA;oBAC7EH;oBACAC,eAAe,CAAC,QAAQ,EAAEA,eAAe;oBACzCC,MAAM,CAAC,QAAQ,EAAEA,MAAM;oBACvBC;gBACF,CAAA;YACAC,QAAQ;QACV,CAAA;AACF,EAAC"} |