@pisell/pisellos 0.0.139 → 0.0.140

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.
@@ -58,13 +58,14 @@ export var ShopDiscountImpl = /*#__PURE__*/function (_BaseModule) {
58
58
  key: "initialize",
59
59
  value: function () {
60
60
  var _initialize = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(core, options) {
61
+ var _options$otherParams;
61
62
  return _regeneratorRuntime().wrap(function _callee$(_context) {
62
63
  while (1) switch (_context.prev = _context.next) {
63
64
  case 0:
64
65
  this.core = core;
65
66
  this.options = options;
66
67
  this.store = _objectSpread(_objectSpread({}, this.store), options.store || {});
67
- this.hooks = options.hooks;
68
+ this.hooks = (_options$otherParams = options.otherParams) === null || _options$otherParams === void 0 || (_options$otherParams = _options$otherParams.discount) === null || _options$otherParams === void 0 ? void 0 : _options$otherParams.hooks;
68
69
  console.log('[ShopDiscount] 初始化完成');
69
70
 
70
71
  // 获取依赖的插件
@@ -43,10 +43,11 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
43
43
  }
44
44
  // =========== 生命周期方法 ===========
45
45
  async initialize(core, options) {
46
+ var _a, _b;
46
47
  this.core = core;
47
48
  this.options = options;
48
49
  this.store = { ...this.store, ...options.store || {} };
49
- this.hooks = options.hooks;
50
+ this.hooks = (_b = (_a = options.otherParams) == null ? void 0 : _a.discount) == null ? void 0 : _b.hooks;
50
51
  console.log("[ShopDiscount] 初始化完成");
51
52
  this.initializePlugins();
52
53
  this.registerDependentModules();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.139",
4
+ "version": "0.0.140",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",