@pisell/pisellos 0.0.140 → 0.0.141

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.
@@ -65,7 +65,7 @@ export var ShopDiscountImpl = /*#__PURE__*/function (_BaseModule) {
65
65
  this.core = core;
66
66
  this.options = options;
67
67
  this.store = _objectSpread(_objectSpread({}, this.store), options.store || {});
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
+ this.hooks = (_options$otherParams = options.otherParams) === null || _options$otherParams === void 0 || (_options$otherParams = _options$otherParams.rules) === null || _options$otherParams === void 0 ? void 0 : _options$otherParams.hooks;
69
69
  console.log('[ShopDiscount] 初始化完成');
70
70
 
71
71
  // 获取依赖的插件
@@ -47,7 +47,7 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
47
47
  this.core = core;
48
48
  this.options = options;
49
49
  this.store = { ...this.store, ...options.store || {} };
50
- this.hooks = (_b = (_a = options.otherParams) == null ? void 0 : _a.discount) == null ? void 0 : _b.hooks;
50
+ this.hooks = (_b = (_a = options.otherParams) == null ? void 0 : _a.rules) == null ? void 0 : _b.hooks;
51
51
  console.log("[ShopDiscount] 初始化完成");
52
52
  this.initializePlugins();
53
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.140",
4
+ "version": "0.0.141",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",