@pisell/pisellos 1.0.7 → 1.0.8

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.
@@ -2242,7 +2242,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
2242
2242
  break;
2243
2243
  }
2244
2244
  dateRange = this.store.date.getDateRange(); // 如果不是先选日期的流程 duration 商品就啥也不做
2245
- if (dateRange.length) {
2245
+ if (dateRange !== null && dateRange !== void 0 && dateRange.length) {
2246
2246
  _context25.next = 15;
2247
2247
  break;
2248
2248
  }
@@ -2881,6 +2881,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
2881
2881
  }, {
2882
2882
  key: "isTargetNormalProduct",
2883
2883
  value: function isTargetNormalProduct(product) {
2884
+ if (!product) return false;
2884
2885
  return isNormalProduct(product);
2885
2886
  }
2886
2887
  }, {
@@ -1562,7 +1562,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
1562
1562
  targetProduct.setOtherParams("schedule", newScheduleArr);
1563
1563
  } else if (targetProductData.duration) {
1564
1564
  const dateRange = this.store.date.getDateRange();
1565
- if (!dateRange.length)
1565
+ if (!(dateRange == null ? void 0 : dateRange.length))
1566
1566
  return;
1567
1567
  this.getAvailableDate({
1568
1568
  startDate: dateRange[0].date,
@@ -2038,6 +2038,8 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
2038
2038
  });
2039
2039
  }
2040
2040
  isTargetNormalProduct(product) {
2041
+ if (!product)
2042
+ return false;
2041
2043
  return (0, import_utils4.isNormalProduct)(product);
2042
2044
  }
2043
2045
  isTargetCartIdNormalProduct(id) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",