corebasic 1.0.190 → 1.0.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libs/elabase.js +4 -4
- package/package.json +1 -1
package/libs/elabase.js
CHANGED
|
@@ -190,22 +190,22 @@ function validate_topology(meta, collection, fn_name) {
|
|
|
190
190
|
|
|
191
191
|
let config = COLLECTIONS_JSON?.[collection]
|
|
192
192
|
if (!config) {
|
|
193
|
-
console.warn(`Warn: Nonexistant config for collection: ${collection}${fn_name ? `
|
|
193
|
+
console.warn(`Warn: Nonexistant config for collection: ${collection}${fn_name ? ` ${fn_name}` : ''}`)
|
|
194
194
|
return new_meta
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
function check_core_meta(config, meta, suffix) {
|
|
198
198
|
if (config.company !== meta.company && typeof config.company !== "object")
|
|
199
|
-
throw {message: `Error: Incompatible meta.company config for collection: ${collection}${suffix ? ' suffix: ' + suffix : ''}${fn_name ? `
|
|
199
|
+
throw {message: `Error: Incompatible meta.company config for collection: ${collection}${suffix ? ' suffix: ' + suffix : ''}${fn_name ? ` ${fn_name}` : ''}`}
|
|
200
200
|
if (config.outlet !== meta.outlet && typeof config.outlet !== "object")
|
|
201
|
-
throw {message: `Error: Incompatible meta.outlet config for collection: ${collection}${suffix ? ' suffix: ' + suffix : ''}${fn_name ? `
|
|
201
|
+
throw {message: `Error: Incompatible meta.outlet config for collection: ${collection}${suffix ? ' suffix: ' + suffix : ''}${fn_name ? ` ${fn_name}` : ''}`}
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
check_core_meta(config, meta)
|
|
205
205
|
|
|
206
206
|
if (config.suffix && meta.suffix) {
|
|
207
207
|
if (!config.suffix[meta.suffix]) {
|
|
208
|
-
console.warn(`Warn: Nonexistant suffix config for collection: ${collection} suffix:${meta.suffix}${fn_name ? `
|
|
208
|
+
console.warn(`Warn: Nonexistant suffix config for collection: ${collection} suffix:${meta.suffix}${fn_name ? ` ${fn_name}` : ''}`)
|
|
209
209
|
return new_meta
|
|
210
210
|
}
|
|
211
211
|
check_core_meta(config.suffix[meta.suffix], meta, meta.suffix)
|