corebasic 1.0.189 → 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 +5 -7
- package/package.json +1 -1
package/libs/elabase.js
CHANGED
|
@@ -190,24 +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 ? `
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
throw {message: `Error: Incompatible meta.outlet config for collection: ${collection}${suffix ? ' suffix: ' + suffix : ''}${fn_name ? ` in ${fn_name}` : ''}`}
|
|
203
|
-
}
|
|
199
|
+
throw {message: `Error: Incompatible meta.company config for collection: ${collection}${suffix ? ' suffix: ' + suffix : ''}${fn_name ? ` ${fn_name}` : ''}`}
|
|
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 ? ` ${fn_name}` : ''}`}
|
|
204
202
|
}
|
|
205
203
|
|
|
206
204
|
check_core_meta(config, meta)
|
|
207
205
|
|
|
208
206
|
if (config.suffix && meta.suffix) {
|
|
209
207
|
if (!config.suffix[meta.suffix]) {
|
|
210
|
-
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}` : ''}`)
|
|
211
209
|
return new_meta
|
|
212
210
|
}
|
|
213
211
|
check_core_meta(config.suffix[meta.suffix], meta, meta.suffix)
|