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
638 B
Plaintext
1 line
638 B
Plaintext
{"version":3,"file":"throw-core-collection.cjs","names":["isSystemCollection"],"sources":["../../../src/rest/utils/throw-core-collection.ts"],"sourcesContent":["import { isSystemCollection } from './is-system-collection.js';\n\n/**\n *\n * @param value\n * @param message\n * @throws Throws an error if the collection starts with the `directus_` prefix\n */\nexport const throwIfCoreCollection = (value: string | number | symbol, message: string) => {\n\tif (isSystemCollection(String(value))) {\n\t\tthrow new Error(message);\n\t}\n};\n"],"mappings":"8CAQa,GAAyB,EAAiC,IAAoB,CAC1F,GAAIA,EAAAA,mBAAmB,OAAO,EAAM,CAAC,CACpC,MAAU,MAAM,EAAQ"} |