@pisell/pisellos 0.0.272 → 0.0.273

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.
@@ -55,16 +55,13 @@ export var OrderModule = /*#__PURE__*/function (_BaseModule) {
55
55
  this.store = options.store;
56
56
  this.request = this.core.getPlugin('request');
57
57
  appPlugin = this.core.getPlugin('app');
58
- if (appPlugin) {
59
- _context.next = 6;
60
- break;
58
+ if (!appPlugin) {
59
+ console.warn('Order 模块需要 app 插件支持');
61
60
  }
62
- throw new Error('Order 模块需要 app 插件支持');
63
- case 6:
64
- app = appPlugin.getApp();
65
- this.logger = app.logger;
61
+ app = appPlugin === null || appPlugin === void 0 ? void 0 : appPlugin.getApp();
62
+ if (app) this.logger = app.logger;
66
63
  this.logInfo('OrderModule initialized successfully');
67
- case 9:
64
+ case 8:
68
65
  case "end":
69
66
  return _context.stop();
70
67
  }
@@ -49,10 +49,11 @@ var OrderModule = class extends import_BaseModule.BaseModule {
49
49
  this.request = this.core.getPlugin("request");
50
50
  const appPlugin = this.core.getPlugin("app");
51
51
  if (!appPlugin) {
52
- throw new Error("Order 模块需要 app 插件支持");
52
+ console.warn("Order 模块需要 app 插件支持");
53
53
  }
54
- const app = appPlugin.getApp();
55
- this.logger = app.logger;
54
+ const app = appPlugin == null ? void 0 : appPlugin.getApp();
55
+ if (app)
56
+ this.logger = app.logger;
56
57
  this.logInfo("OrderModule initialized successfully");
57
58
  }
58
59
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.272",
4
+ "version": "0.0.273",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",