@gct-paas/core 0.1.0 → 0.1.1

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.
@@ -144,10 +144,17 @@ class PluginPgkUtil {
144
144
  const module = moduleMap[plugin.key];
145
145
  if (platform === Platform.WEB) {
146
146
  const cls = module.web ?? module.default;
147
- _gct.register.designer.web.register(plugin.key, () => new cls());
147
+ if (cls) {
148
+ _gct.register.designer.web.register(plugin.key, () => new cls());
149
+ }
148
150
  } else {
149
151
  const cls = module.mobile ?? module.default;
150
- _gct.register.designer.mobile.register(plugin.key, () => new cls());
152
+ if (cls) {
153
+ _gct.register.designer.mobile.register(
154
+ plugin.key,
155
+ () => new cls()
156
+ );
157
+ }
151
158
  }
152
159
  });
153
160
  });
@@ -172,10 +179,14 @@ class PluginPgkUtil {
172
179
  const module = moduleMap[plugin.key];
173
180
  if (platform === Platform.WEB) {
174
181
  const cls = module.web ?? module.default;
175
- _gct.register.designer.web.register(plugin.key, () => new cls());
182
+ if (cls) {
183
+ _gct.register.designer.web.register(plugin.key, () => new cls());
184
+ }
176
185
  } else {
177
186
  const cls = module.mobile ?? module.default;
178
- _gct.register.designer.mobile.register(plugin.key, () => new cls());
187
+ if (cls) {
188
+ _gct.register.designer.mobile.register(plugin.key, () => new cls());
189
+ }
179
190
  }
180
191
  });
181
192
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "paas 平台核心包",
6
6
  "main": "dist/index.min.cjs",
@@ -56,8 +56,8 @@
56
56
  "vue-i18n": "9.6.5"
57
57
  },
58
58
  "devDependencies": {
59
- "@gct-paas/build": "0.1.0",
60
- "@gct-paas/cli": "0.1.0",
59
+ "@gct-paas/build": "0.1.1",
60
+ "@gct-paas/cli": "0.1.1",
61
61
  "@types/path-browserify": "^1.0.3",
62
62
  "@types/qs": "^6.9.18",
63
63
  "fs-extra": "^11.3.0"
@@ -65,5 +65,5 @@
65
65
  "peerDependencies": {
66
66
  "vue": "^3.x"
67
67
  },
68
- "gitHead": "96fcf21faa16ee10f8a5e0d023aae38641d91d36"
68
+ "gitHead": "7a166eedf06af8342dfe256c5c57dfe2a304a9bd"
69
69
  }