@pisell/pisellos 1.0.76 → 1.0.77

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.
@@ -3160,7 +3160,9 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
3160
3160
  var product = _ref13.product,
3161
3161
  date = _ref13.date,
3162
3162
  account = _ref13.account;
3163
- var cartItems = cloneDeep(this.store.cart.getItems());
3163
+ var cartItems = this.store.cart.getItems().filter(function (item) {
3164
+ return !isNormalProduct(item._productOrigin);
3165
+ });
3164
3166
 
3165
3167
  // 将 ProductData 转换为 CartItem 但不真正添加到购物车
3166
3168
  var currentCartItem = this.convertProductToCartItem({
@@ -2186,7 +2186,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
2186
2186
  account
2187
2187
  }) {
2188
2188
  var _a, _b;
2189
- const cartItems = (0, import_lodash_es.cloneDeep)(this.store.cart.getItems());
2189
+ const cartItems = this.store.cart.getItems().filter((item) => !(0, import_utils5.isNormalProduct)(item._productOrigin));
2190
2190
  const currentCartItem = this.convertProductToCartItem({ product, date, account });
2191
2191
  cartItems.push(currentCartItem);
2192
2192
  if (cartItems.length === 0)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "1.0.76",
4
+ "version": "1.0.77",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",