@xuda.io/xuda-studio-checker 1.0.24 → 1.0.26

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.
Files changed (2) hide show
  1. package/index.mjs +15 -13
  2. 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 (!app_obj?.app_plugins_purchased?.[doc.properties.uiFramework]) {
921
- ret.push({
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: 'CHK_MSG_PRG_COM_030',
933
- data: `${doc.properties.uiFramework} Ui Framework not installed`,
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-studio-checker",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "main": "index.mjs",
5
5
  "type": "module",
6
6
  "description": "Auto-generated build for xuda-studio-checker.mjs",