@xuda.io/xuda-studio-checker 1.0.24 → 1.0.25
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 +15 -13
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -917,25 +917,27 @@ const check_component = function (doc) {
|
|
|
917
917
|
id: `${doc._id}`,
|
|
918
918
|
});
|
|
919
919
|
} else {
|
|
920
|
-
if (
|
|
921
|
-
|
|
922
|
-
code: 'CHK_MSG_PRG_COM_020',
|
|
923
|
-
data: `invalid ${doc.properties.uiFramework} Ui Framework`,
|
|
924
|
-
type: doc.studio_meta.not_in_use ? 'W' : 'E',
|
|
925
|
-
category: `component`,
|
|
926
|
-
ref: doc._id,
|
|
927
|
-
id: `${doc._id}`,
|
|
928
|
-
});
|
|
929
|
-
} else {
|
|
930
|
-
if (!app_obj.app_plugins_purchased[doc.properties.uiFramework].installed) {
|
|
920
|
+
if (typeof app_obj !== 'undefined') {
|
|
921
|
+
if (!app_obj?.app_plugins_purchased?.[doc.properties.uiFramework]) {
|
|
931
922
|
ret.push({
|
|
932
|
-
code: '
|
|
933
|
-
data:
|
|
923
|
+
code: 'CHK_MSG_PRG_COM_020',
|
|
924
|
+
data: `invalid ${doc.properties.uiFramework} Ui Framework`,
|
|
934
925
|
type: doc.studio_meta.not_in_use ? 'W' : 'E',
|
|
935
926
|
category: `component`,
|
|
936
927
|
ref: doc._id,
|
|
937
928
|
id: `${doc._id}`,
|
|
938
929
|
});
|
|
930
|
+
} else {
|
|
931
|
+
if (!app_obj.app_plugins_purchased[doc.properties.uiFramework].installed) {
|
|
932
|
+
ret.push({
|
|
933
|
+
code: 'CHK_MSG_PRG_COM_030',
|
|
934
|
+
data: `${doc.properties.uiFramework} Ui Framework not installed`,
|
|
935
|
+
type: doc.studio_meta.not_in_use ? 'W' : 'E',
|
|
936
|
+
category: `component`,
|
|
937
|
+
ref: doc._id,
|
|
938
|
+
id: `${doc._id}`,
|
|
939
|
+
});
|
|
940
|
+
}
|
|
939
941
|
}
|
|
940
942
|
}
|
|
941
943
|
}
|