@dckj-npm/lowcode-plugin-code-generator 1.3.9 → 1.3.10

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/es/utils/utils.js CHANGED
@@ -93,7 +93,12 @@ export var getAllSchemaByResourceList = /*#__PURE__*/function () {
93
93
  var storageKey = getLSName(scenarioName, item.id);
94
94
  var localSchema = window.localStorage.getItem(storageKey);
95
95
  if (!localSchema) {
96
- throw new Error("\u672A\u627E\u5230\u9875\u9762 \"" + (item.title || item.id) + "\" \u7684 schema\uFF0C\u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u4FDD\u5B58\u8BE5\u9875\u9762\u3002");
96
+ console.error('no schema found for resource %s', storageKey);
97
+ return {
98
+ version: '1.0.0',
99
+ componentsTree: [],
100
+ componentsMap: []
101
+ };
97
102
  }
98
103
  try {
99
104
  var parsed = JSON.parse(localSchema);
@@ -101,7 +101,12 @@ var getAllSchemaByResourceList = exports.getAllSchemaByResourceList = /*#__PURE_
101
101
  var storageKey = getLSName(scenarioName, item.id);
102
102
  var localSchema = window.localStorage.getItem(storageKey);
103
103
  if (!localSchema) {
104
- throw new Error("\u672A\u627E\u5230\u9875\u9762 \"" + (item.title || item.id) + "\" \u7684 schema\uFF0C\u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u4FDD\u5B58\u8BE5\u9875\u9762\u3002");
104
+ console.error('no schema found for resource %s', storageKey);
105
+ return {
106
+ version: '1.0.0',
107
+ componentsTree: [],
108
+ componentsMap: []
109
+ };
105
110
  }
106
111
  try {
107
112
  var parsed = JSON.parse(localSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/lowcode-plugin-code-generator",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "集团低代码引擎 - 浏览器出码插件",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",