{"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): void => {\n\tif (isSystemCollection(String(value))) {\n\t\tthrow new Error(message);\n\t}\n};\n"],"mappings":"8CAQa,GAAyB,EAAiC,IAA0B,CAChG,GAAIA,EAAAA,mBAAmB,OAAO,EAAM,CAAC,CACpC,MAAU,MAAM,EAAQ"}