bajo 2.25.0 → 2.25.1
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/package.json +1 -1
- package/wiki/CHANGES.md +1 -0
package/class/bajo.js
CHANGED
|
@@ -1151,11 +1151,11 @@ class Bajo extends Plugin {
|
|
|
1151
1151
|
if (result) break
|
|
1152
1152
|
try {
|
|
1153
1153
|
const resp = await handler.readHandler.call(this.app[handler.ns], input, options)
|
|
1154
|
-
if (isPlainObject(resp) || isArray(resp)) result = resp
|
|
1154
|
+
if (!isEmpty(resp) && (isPlainObject(resp) || isArray(resp))) result = resp
|
|
1155
1155
|
} catch (err) {
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
return result
|
|
1158
|
+
return result ?? options.defValue ?? {}
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
1161
1161
|
|
package/package.json
CHANGED