bajo 2.3.1 → 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 +8 -5
- package/package.json +1 -1
- package/wiki/CHANGES.md +4 -0
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
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
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/package.json
CHANGED