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.
Files changed (2) hide show
  1. package/libs/elabase.js +5 -7
  2. 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 ? ` in ${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 ? ` in ${fn_name}` : ''}`}
200
- if (config.outlet !== meta.outlet && typeof config.outlet !== "object") {
201
- Utils.log(config, meta)
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 ? ` in ${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)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.189",
4
+ "version": "1.0.191",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {