@xuda.io/xuda-studio-checker 1.0.21 → 1.0.23
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/index.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -219,7 +219,7 @@ export const check_structure = function (doc, critical_error) {
|
|
|
219
219
|
};
|
|
220
220
|
|
|
221
221
|
// Early exit conditions that prevent further validation
|
|
222
|
-
if (!app_obj || !_.isObject(app_obj) || _.isEmpty(app_obj)) {
|
|
222
|
+
if (typeof app_obj !== 'undefined' && (!app_obj || !_.isObject(app_obj) || _.isEmpty(app_obj))) {
|
|
223
223
|
addValidationError('CHK_MSG_OBJ_GEN_002', 'invalid app_obj');
|
|
224
224
|
critical_error = true;
|
|
225
225
|
return ret;
|