bajo 2.3.0 → 2.3.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
@@ -970,11 +970,14 @@ class Bajo extends Plugin {
970
970
  for (const i in fns) {
971
971
  const fn = fns[i]
972
972
  const scope = this.app[fn.src]
973
- const res = await fn.handler.call(scope, ...args)
974
- results.push({
975
- hook: hookName,
976
- resp: res
977
- })
973
+ if (fn.noWait) fn.handler.call(scope, ...args)
974
+ else {
975
+ const res = await fn.handler.call(scope, ...args)
976
+ results.push({
977
+ hook: hookName,
978
+ resp: res
979
+ })
980
+ }
978
981
  if (this.config.log.traceHook) scope.log.trace('hookExecuted%s', hookName)
979
982
  }
980
983
  return results
package/class/base.js CHANGED
@@ -42,7 +42,8 @@ class Base extends Plugin {
42
42
  const { log, getModuleDir, readAllConfigs } = this.app.bajo
43
43
  const { parseObject } = this.app.lib
44
44
 
45
- const defKeys = keys(this.config)
45
+ const defKeys = keys(this.config).concat(this.app.getAllNs())
46
+ defKeys.push('title')
46
47
  log.trace('- %s', this.ns)
47
48
  const dir = this.ns === this.app.mainNs ? (`${this.app.bajo.dir.base}/${this.app.mainNs}`) : getModuleDir(this.pkgName)
48
49
  let cfg = await readAllConfigs(`${dir}/config`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo",
3
- "version": "2.3.0",
3
+ "version": "2.3.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,13 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-01-24
4
+
5
+ - [2.3.2] Hook now can be executed without waiting if property ```noWait``` is ```true```
6
+
7
+ ## 2026-01-21
8
+
9
+ - [2.3.1] Bug fix on keys that needs to be used while reading plugin's config files
10
+
3
11
  ## 2026-01-18
4
12
 
5
13
  - [2.3.0] ```App``` constructor now accept an object as its parameter. For details, please see documentation