@pisell/pisellos 1.0.8 → 1.0.9

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.
@@ -444,7 +444,7 @@ export var ShopDiscountImpl = /*#__PURE__*/function (_BaseModule) {
444
444
  if (discount.id && ['good_pass', 'discount_card'].includes(discount.type)) {
445
445
  var index = editModeDiscountList.findIndex(function (n) {
446
446
  var _discount$discount;
447
- return n.id === ((_discount$discount = discount.discount) === null || _discount$discount === void 0 ? void 0 : _discount$discount.resource_id) || discount.id;
447
+ return n.id === (((_discount$discount = discount.discount) === null || _discount$discount === void 0 ? void 0 : _discount$discount.resource_id) || discount.id);
448
448
  });
449
449
  if (index !== -1) {
450
450
  editModeDiscountList[index] = _objectSpread(_objectSpread({}, editModeDiscountList[index]), {}, {
@@ -289,7 +289,7 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
289
289
  if (discount.id && ["good_pass", "discount_card"].includes(discount.type)) {
290
290
  const index = editModeDiscountList.findIndex((n) => {
291
291
  var _a4;
292
- return n.id === ((_a4 = discount.discount) == null ? void 0 : _a4.resource_id) || discount.id;
292
+ return n.id === (((_a4 = discount.discount) == null ? void 0 : _a4.resource_id) || discount.id);
293
293
  });
294
294
  if (index !== -1) {
295
295
  editModeDiscountList[index] = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "1.0.8",
4
+ "version": "1.0.9",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",