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 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, null, opts)
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 = await readAllConfigs(`${dir}/config`)
49
+ let cfg = {}
50
50
 
51
51
  this.dir = {
52
52
  pkg: dir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "description": "The ultimate framework for whipping up massive apps in no time",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-02-26
4
+
5
+ - [2.6.2] Bug fix on ```getMethod()```
6
+
7
+ ## 2026-02-23
8
+
9
+ - [2.6.1] Bug fix on ```readConfig()```
10
+ - [2.6.1] Bug fix on ```base.loadConfig()```
11
+
3
12
  ## 2026-02-20
4
13
 
5
14
  - [2.6.0] Upgrade to ```aneka@0.12.0```