bajo 2.6.0 → 2.6.2
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/class/bajo.js +2 -2
- package/class/base.js +1 -1
- package/package.json +1 -1
- package/wiki/CHANGES.md +9 -0
package/class/bajo.js
CHANGED
|
@@ -548,7 +548,7 @@ class Bajo extends Plugin {
|
|
|
548
548
|
* @returns {function} Class method
|
|
549
549
|
*/
|
|
550
550
|
getMethod = (name = '', thrown = true) => {
|
|
551
|
-
const { ns, path } = this.breakNsPath(name)
|
|
551
|
+
const { ns, path } = this.breakNsPath(name, thrown)
|
|
552
552
|
const method = get(this.app, `${ns}.${path}`)
|
|
553
553
|
if (method && isFunction(method)) return method
|
|
554
554
|
if (thrown) throw this.error('cantFindMethod%s', name)
|
|
@@ -884,7 +884,7 @@ class Bajo extends Plugin {
|
|
|
884
884
|
if (!ignoreError) throw this.error('cantParse%s', f, { code: 'BAJO_CONFIG_NO_PARSER' })
|
|
885
885
|
continue
|
|
886
886
|
}
|
|
887
|
-
config = await item.readHandler.call(this.app[ns], f,
|
|
887
|
+
config = await item.readHandler.call(this.app[ns], f, undefined, opts)
|
|
888
888
|
if (!isEmpty(config)) break
|
|
889
889
|
}
|
|
890
890
|
return parseObject(config)
|
package/class/base.js
CHANGED
|
@@ -46,7 +46,7 @@ class Base extends Plugin {
|
|
|
46
46
|
defKeys.push('title')
|
|
47
47
|
log.trace('- %s', this.ns)
|
|
48
48
|
const dir = this.ns === this.app.mainNs ? (`${this.app.bajo.dir.base}/${this.app.mainNs}`) : getModuleDir(this.pkgName)
|
|
49
|
-
let cfg =
|
|
49
|
+
let cfg = {}
|
|
50
50
|
|
|
51
51
|
this.dir = {
|
|
52
52
|
pkg: dir,
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED