@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 +6 -1
- package/lib/utils/utils.js +6 -1
- package/package.json +1 -1
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
|
-
|
|
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);
|
package/lib/utils/utils.js
CHANGED
|
@@ -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
|
-
|
|
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);
|