@pisell/pisellos 2.1.79 → 2.1.81

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.
@@ -116,11 +116,10 @@ export var SummaryModule = /*#__PURE__*/function (_BaseModule) {
116
116
  while (1) switch (_context3.prev = _context3.next) {
117
117
  case 0:
118
118
  shopInfo = ((_this$shopStore$get = this.shopStore.get('core')) === null || _this$shopStore$get === void 0 || (_this$shopStore$get = _this$shopStore$get.core) === null || _this$shopStore$get === void 0 ? void 0 : _this$shopStore$get.shop) || {};
119
- this.core.getModule('appointmentBooking_schedule');
120
119
  summary = calculatePriceDetails(shopInfo, cartItems, ScheduleModule.isInScheduleByDate, this.store.surchargeList);
121
120
  this.store.summary = summary;
122
121
  return _context3.abrupt("return", this.store.summary);
123
- case 5:
122
+ case 4:
124
123
  case "end":
125
124
  return _context3.stop();
126
125
  }
@@ -1500,7 +1500,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
1500
1500
  resources.push.apply(resources, _toConsumableArray(dateResources || []));
1501
1501
  } else {
1502
1502
  var dateList = this.store.date.getDateList();
1503
- dateList.forEach(function (n) {
1503
+ dateList === null || dateList === void 0 || dateList.forEach(function (n) {
1504
1504
  if (n.resource) resources.push.apply(resources, _toConsumableArray(n.resource));
1505
1505
  });
1506
1506
  }
@@ -76,7 +76,6 @@ var SummaryModule = class extends import_BaseModule.BaseModule {
76
76
  async getSummary(cartItems) {
77
77
  var _a, _b;
78
78
  const shopInfo = ((_b = (_a = this.shopStore.get("core")) == null ? void 0 : _a.core) == null ? void 0 : _b.shop) || {};
79
- this.core.getModule("appointmentBooking_schedule");
80
79
  const summary = (0, import_utils.calculatePriceDetails)(
81
80
  shopInfo,
82
81
  cartItems,
@@ -876,7 +876,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
876
876
  resources.push(...dateResources || []);
877
877
  } else {
878
878
  const dateList = this.store.date.getDateList();
879
- dateList.forEach((n) => {
879
+ dateList == null ? void 0 : dateList.forEach((n) => {
880
880
  if (n.resource)
881
881
  resources.push(...n.resource);
882
882
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.1.79",
4
+ "version": "2.1.81",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",