@pisell/pisellos 2.1.91 → 2.1.93

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.
Files changed (102) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/model/index.d.ts +1 -0
  4. package/dist/model/index.js +1 -0
  5. package/dist/model/strategy/adapter/index.d.ts +3 -0
  6. package/dist/model/strategy/adapter/index.js +4 -0
  7. package/dist/model/strategy/adapter/type.d.ts +28 -0
  8. package/dist/model/strategy/adapter/type.js +1 -0
  9. package/dist/model/strategy/adapter/walletPass/evaluator.d.ts +84 -0
  10. package/dist/model/strategy/adapter/walletPass/evaluator.js +497 -0
  11. package/dist/model/strategy/adapter/walletPass/example.d.ts +4 -0
  12. package/dist/model/strategy/adapter/walletPass/example.js +258 -0
  13. package/dist/model/strategy/adapter/walletPass/index.d.ts +32 -0
  14. package/dist/model/strategy/adapter/walletPass/index.js +182 -0
  15. package/dist/model/strategy/adapter/walletPass/locales.d.ts +1 -0
  16. package/dist/model/strategy/adapter/walletPass/locales.js +23 -0
  17. package/dist/model/strategy/adapter/walletPass/type.d.ts +165 -0
  18. package/dist/model/strategy/adapter/walletPass/type.js +1 -0
  19. package/dist/model/strategy/adapter/walletPass/utils.d.ts +50 -0
  20. package/dist/model/strategy/adapter/walletPass/utils.js +965 -0
  21. package/dist/model/strategy/index.d.ts +94 -0
  22. package/dist/model/strategy/index.js +551 -0
  23. package/dist/model/strategy/strategy-example.d.ts +5 -0
  24. package/dist/model/strategy/strategy-example.js +331 -0
  25. package/dist/model/strategy/type.d.ts +228 -0
  26. package/dist/model/strategy/type.js +94 -0
  27. package/dist/modules/Cart/types.d.ts +2 -0
  28. package/dist/modules/Cart/utils/cartProduct.js +11 -0
  29. package/dist/modules/Discount/index.d.ts +1 -0
  30. package/dist/modules/Discount/index.js +40 -11
  31. package/dist/modules/Discount/types.d.ts +17 -0
  32. package/dist/modules/Payment/index.d.ts +2 -1
  33. package/dist/modules/Payment/index.js +10 -7
  34. package/dist/modules/Payment/utils.js +3 -0
  35. package/dist/modules/Payment/walletpass.d.ts +23 -0
  36. package/dist/modules/Payment/walletpass.js +191 -95
  37. package/dist/modules/Product/index.d.ts +1 -1
  38. package/dist/modules/Rules/index.d.ts +9 -5
  39. package/dist/modules/Rules/index.js +538 -118
  40. package/dist/modules/Rules/types.d.ts +1 -0
  41. package/dist/modules/Summary/types.d.ts +2 -0
  42. package/dist/modules/Summary/utils.d.ts +6 -0
  43. package/dist/modules/Summary/utils.js +21 -0
  44. package/dist/plugins/window.d.ts +2 -0
  45. package/dist/solution/BookingByStep/index.d.ts +2 -1
  46. package/dist/solution/Checkout/index.js +2 -0
  47. package/dist/solution/ShopDiscount/index.d.ts +2 -0
  48. package/dist/solution/ShopDiscount/index.js +146 -92
  49. package/dist/solution/ShopDiscount/types.d.ts +1 -0
  50. package/dist/solution/ShopDiscount/types.js +2 -1
  51. package/dist/solution/ShopDiscount/utils.js +26 -12
  52. package/lib/index.d.ts +1 -0
  53. package/lib/index.js +3 -1
  54. package/lib/model/index.d.ts +1 -0
  55. package/lib/model/index.js +23 -0
  56. package/lib/model/strategy/adapter/index.d.ts +3 -0
  57. package/lib/model/strategy/adapter/index.js +45 -0
  58. package/lib/model/strategy/adapter/type.d.ts +28 -0
  59. package/lib/model/strategy/adapter/type.js +17 -0
  60. package/lib/model/strategy/adapter/walletPass/evaluator.d.ts +84 -0
  61. package/lib/model/strategy/adapter/walletPass/evaluator.js +421 -0
  62. package/lib/model/strategy/adapter/walletPass/example.d.ts +4 -0
  63. package/lib/model/strategy/adapter/walletPass/example.js +207 -0
  64. package/lib/model/strategy/adapter/walletPass/index.d.ts +32 -0
  65. package/lib/model/strategy/adapter/walletPass/index.js +142 -0
  66. package/lib/model/strategy/adapter/walletPass/locales.d.ts +1 -0
  67. package/lib/model/strategy/adapter/walletPass/locales.js +51 -0
  68. package/lib/model/strategy/adapter/walletPass/type.d.ts +165 -0
  69. package/lib/model/strategy/adapter/walletPass/type.js +17 -0
  70. package/lib/model/strategy/adapter/walletPass/utils.d.ts +50 -0
  71. package/lib/model/strategy/adapter/walletPass/utils.js +660 -0
  72. package/lib/model/strategy/index.d.ts +94 -0
  73. package/lib/model/strategy/index.js +413 -0
  74. package/lib/model/strategy/strategy-example.d.ts +5 -0
  75. package/lib/model/strategy/strategy-example.js +318 -0
  76. package/lib/model/strategy/type.d.ts +228 -0
  77. package/lib/model/strategy/type.js +44 -0
  78. package/lib/modules/Cart/types.d.ts +2 -0
  79. package/lib/modules/Cart/utils/cartProduct.js +9 -0
  80. package/lib/modules/Discount/index.d.ts +1 -0
  81. package/lib/modules/Discount/index.js +9 -0
  82. package/lib/modules/Discount/types.d.ts +17 -0
  83. package/lib/modules/Payment/index.d.ts +2 -1
  84. package/lib/modules/Payment/index.js +1 -0
  85. package/lib/modules/Payment/utils.js +3 -0
  86. package/lib/modules/Payment/walletpass.d.ts +23 -0
  87. package/lib/modules/Payment/walletpass.js +94 -17
  88. package/lib/modules/Product/index.d.ts +1 -1
  89. package/lib/modules/Rules/index.d.ts +9 -5
  90. package/lib/modules/Rules/index.js +669 -258
  91. package/lib/modules/Rules/types.d.ts +1 -0
  92. package/lib/modules/Summary/types.d.ts +2 -0
  93. package/lib/modules/Summary/utils.d.ts +6 -0
  94. package/lib/modules/Summary/utils.js +15 -0
  95. package/lib/plugins/window.d.ts +2 -0
  96. package/lib/solution/BookingByStep/index.d.ts +2 -1
  97. package/lib/solution/Checkout/index.js +2 -0
  98. package/lib/solution/ShopDiscount/index.d.ts +2 -0
  99. package/lib/solution/ShopDiscount/index.js +36 -8
  100. package/lib/solution/ShopDiscount/types.d.ts +1 -0
  101. package/lib/solution/ShopDiscount/utils.js +10 -6
  102. package/package.json +1 -1
@@ -28,6 +28,7 @@ export interface RulesModuleAPI {
28
28
  calcDiscount: (params: {
29
29
  discountList: any[];
30
30
  productList: any[];
31
+ orderTotalAmount: number;
31
32
  holders: {
32
33
  form_record_id: number;
33
34
  }[];
@@ -6,6 +6,8 @@ export interface ISummaryState {
6
6
  subtotal: string | number;
7
7
  /** 最终总价 */
8
8
  total: string | number;
9
+ /** 最终原始价格 不包含折扣卡商品券折扣 */
10
+ originTotal: string | number;
9
11
  /** 税率标题 */
10
12
  taxTitle?: string;
11
13
  /** 商品总费率 */
@@ -58,6 +58,12 @@ export declare const getTax: ({ service, addons, bookingDetail, bookingId }: {
58
58
  * @returns 商品总价字符串,保留2位小数
59
59
  */
60
60
  export declare const calculateSubtotal: (items: CartItem[]) => string;
61
+ /**
62
+ * 计算商品小计(不含其他费用 不包含折扣卡商品券抵扣金额)
63
+ * @param items - 购物车商品数组
64
+ * @returns 商品总价字符串,保留2位小数
65
+ */
66
+ export declare const calculateOriginSubtotal: (items: CartItem[]) => string;
61
67
  /**
62
68
  * @title: 单个商品的税费
63
69
  * @description:
@@ -31,6 +31,7 @@ var utils_exports = {};
31
31
  __export(utils_exports, {
32
32
  calcDiscountListDifference: () => calcDiscountListDifference,
33
33
  calculateDeposit: () => calculateDeposit,
34
+ calculateOriginSubtotal: () => calculateOriginSubtotal,
34
35
  calculatePriceDetails: () => calculatePriceDetails,
35
36
  calculateSubtotal: () => calculateSubtotal,
36
37
  calculateTaxFee: () => calculateTaxFee,
@@ -46,6 +47,7 @@ var import_utils = require("../Product/utils");
46
47
  var import_dayjs = __toESM(require("dayjs"));
47
48
  var calculatePriceDetails = (shopInfo, items, isInScheduleByDate, surchargeList, scheduleById) => {
48
49
  const subtotal = new import_decimal.default(calculateSubtotal(items));
50
+ const subOriginTotal = new import_decimal.default(calculateOriginSubtotal(items));
49
51
  const totalTaxFee = new import_decimal.default(calculateTaxFee(shopInfo, items));
50
52
  const surcharge = getSurcharge({ service: items, addons: [], bookingDetail: null, bookingId: void 0 }, { isEdit: false, isInScheduleByDate, surcharge_list: surchargeList, scheduleById });
51
53
  const surchargeAmount = new import_decimal.default(getSurchargeAmount({ bookingDetail: null, bookingId: void 0 }, surcharge, { isEdit: false }));
@@ -59,10 +61,12 @@ var calculatePriceDetails = (shopInfo, items, isInScheduleByDate, surchargeList,
59
61
  is_price_include_tax: shopInfo == null ? void 0 : shopInfo.is_price_include_tax
60
62
  });
61
63
  const total = (shopInfo == null ? void 0 : shopInfo.is_price_include_tax) ? subtotal.plus(surchargeAmount) : subtotal.plus(tax).plus(surchargeAmount);
64
+ const originTotal = (shopInfo == null ? void 0 : shopInfo.is_price_include_tax) ? subOriginTotal : subOriginTotal.plus(totalTaxFee);
62
65
  const deposit = calculateDeposit(items);
63
66
  return {
64
67
  subtotal: subtotal.toFixed(2),
65
68
  total: total.toFixed(2),
69
+ originTotal: originTotal.toFixed(2),
66
70
  taxTitle: shopInfo == null ? void 0 : shopInfo.tax_title,
67
71
  taxRate: shopInfo == null ? void 0 : shopInfo.tax_rate,
68
72
  totalTaxFee: tax,
@@ -360,6 +364,16 @@ var calculateSubtotal = (items) => {
360
364
  }, new import_decimal.default(0));
361
365
  return subtotal.toFixed(2);
362
366
  };
367
+ var calculateOriginSubtotal = (items) => {
368
+ if (!(items == null ? void 0 : items.length)) {
369
+ return "0.00";
370
+ }
371
+ const subtotal = items.reduce((sum, item) => {
372
+ const cartItemTotalPrice = new import_decimal.default(item.summaryOriginTotal || 0);
373
+ return sum.plus(cartItemTotalPrice);
374
+ }, new import_decimal.default(0));
375
+ return subtotal.toFixed(2);
376
+ };
363
377
  var calculateTaxFee = (shopInfo, items) => {
364
378
  if (!(items == null ? void 0 : items.length)) {
365
379
  return "0.00";
@@ -785,6 +799,7 @@ function resetItemsSurchargeSideEffects({ service, addons }) {
785
799
  0 && (module.exports = {
786
800
  calcDiscountListDifference,
787
801
  calculateDeposit,
802
+ calculateOriginSubtotal,
788
803
  calculatePriceDetails,
789
804
  calculateSubtotal,
790
805
  calculateTaxFee,
@@ -1,3 +1,4 @@
1
+ import { WalletPassEvaluator } from '../model';
1
2
  import { Plugin } from '../types';
2
3
  /**
3
4
  * WindowPlugin 接口定义
@@ -14,6 +15,7 @@ export interface WindowPlugin extends Plugin {
14
15
  document: Partial<Document>;
15
16
  history: History;
16
17
  interaction?: any;
18
+ getWalletPassEvaluator?: () => WalletPassEvaluator;
17
19
  }
18
20
  /**
19
21
  * 简单的 Storage 接口实现
@@ -144,6 +144,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
144
144
  getSummary(): Promise<{
145
145
  subtotal: string | number;
146
146
  total: string | number;
147
+ originTotal: string | number;
147
148
  taxTitle?: string | undefined;
148
149
  totalTaxFee?: string | number | undefined;
149
150
  isPriceIncludeTax?: 0 | 1 | undefined;
@@ -310,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
310
311
  date: string;
311
312
  status: string;
312
313
  week: string;
313
- weekNum: 0 | 2 | 1 | 3 | 4 | 5 | 6;
314
+ weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
314
315
  }[]>;
315
316
  submitTimeSlot(timeSlots: TimeSliceItem): void;
316
317
  private getScheduleDataByIds;
@@ -222,6 +222,7 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
222
222
  product_id: item.product_id,
223
223
  product_variant_id: item.product_variant_id,
224
224
  quantity: item.num,
225
+ is_price_include_tax: item.is_price_include_tax,
225
226
  // 商品是否含税:1;0
226
227
  is_charge_tax: item.is_charge_tax ?? 0,
227
228
  // 若商品不含税,计算得到的税费,单位(元)
@@ -246,6 +247,7 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
246
247
  },
247
248
  product_bundle: item.product_bundle.map((bundle) => {
248
249
  return {
250
+ is_price_include_tax: item.is_price_include_tax,
249
251
  bundle_id: bundle.bundle_id,
250
252
  bundle_product_id: bundle.bundle_product_id,
251
253
  bundle_variant_id: bundle.bundle_variant_id,
@@ -22,6 +22,7 @@ export declare class ShopDiscountImpl extends BaseModule implements Module {
22
22
  getCurrentBookingTime(): string | null;
23
23
  private filterDiscountListByBookingTime;
24
24
  setCustomer(customer: Customer): Promise<void>;
25
+ setOriginTotalAmount(amount: number): void;
25
26
  setHolders(holders: {
26
27
  form_record_id: number;
27
28
  }[]): void;
@@ -38,6 +39,7 @@ export declare class ShopDiscountImpl extends BaseModule implements Module {
38
39
  discountList: Discount[];
39
40
  };
40
41
  setProductList(productList: Record<string, any>[]): void;
42
+ batchSearchByProductIds(productIds: number[]): Promise<Discount[]>;
41
43
  scanCode(code: string, customerId?: number): Promise<{
42
44
  isAvailable: boolean;
43
45
  productList: Record<string, any>[];
@@ -56,7 +56,8 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
56
56
  originalDiscountList: [],
57
57
  currentBookingTime: "",
58
58
  filteredDiscountList: [],
59
- bookingSubject: void 0
59
+ bookingSubject: void 0,
60
+ orderTotalAmount: 0
60
61
  };
61
62
  }
62
63
  // =========== 生命周期方法 ===========
@@ -194,6 +195,9 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
194
195
  );
195
196
  }
196
197
  }
198
+ setOriginTotalAmount(amount) {
199
+ this.store.orderTotalAmount = amount;
200
+ }
197
201
  // 设置holders
198
202
  setHolders(holders) {
199
203
  this.store.holders = holders;
@@ -213,6 +217,7 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
213
217
  {
214
218
  productList,
215
219
  discountList: this.getDiscountList(),
220
+ orderTotalAmount: this.store.orderTotalAmount || 0,
216
221
  holders: this.store.holders || [],
217
222
  isFormSubject: ((_a = this.store.bookingSubject) == null ? void 0 : _a.type) === "form"
218
223
  },
@@ -259,6 +264,20 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
259
264
  setProductList(productList) {
260
265
  this.store.productList = productList;
261
266
  }
267
+ async batchSearchByProductIds(productIds) {
268
+ var _a;
269
+ let resultDiscountList = await ((_a = this.store.discount) == null ? void 0 : _a.batchSearchByProductIds(productIds)) || [];
270
+ resultDiscountList = resultDiscountList.map((item) => {
271
+ return {
272
+ ...item,
273
+ discount_rule_uncheck_flag: true
274
+ };
275
+ });
276
+ const currentDiscountList = this.getDiscountList() || [];
277
+ const newDiscountList = [...currentDiscountList, ...resultDiscountList];
278
+ this.setDiscountList(newDiscountList);
279
+ return newDiscountList;
280
+ }
262
281
  // 扫码输入code
263
282
  async scanCode(code, customerId) {
264
283
  var _a, _b, _c;
@@ -306,6 +325,7 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
306
325
  productList: this.store.productList || [],
307
326
  oldDiscountList: this.getDiscountList(),
308
327
  newDiscountList: withScanList,
328
+ orderTotalAmount: this.store.orderTotalAmount || 0,
309
329
  holders: this.store.holders || [],
310
330
  isFormSubject: ((_b = this.store.bookingSubject) == null ? void 0 : _b.type) === "form"
311
331
  }) || {
@@ -374,7 +394,7 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
374
394
  if (item.booking_id) {
375
395
  const product = (_a2 = this.hooks) == null ? void 0 : _a2.getProduct(item);
376
396
  (item.discount_list || []).forEach((discount) => {
377
- var _a3, _b, _c, _d, _e;
397
+ var _a3, _b, _c, _d, _e, _f, _g, _h, _i;
378
398
  if (discount.id && ["good_pass", "discount_card"].includes(discount.type)) {
379
399
  const index = editModeDiscountList.findIndex((n) => {
380
400
  var _a4;
@@ -383,8 +403,12 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
383
403
  if (index !== -1) {
384
404
  editModeDiscountList[index] = {
385
405
  ...editModeDiscountList[index],
406
+ metadata: {
407
+ ...discount.metadata || {},
408
+ num: (((_b = (_a3 = editModeDiscountList == null ? void 0 : editModeDiscountList[index]) == null ? void 0 : _a3.metadata) == null ? void 0 : _b.num) || 1) + (((_c = discount.metadata) == null ? void 0 : _c.num) || 1)
409
+ },
386
410
  amount: new import_decimal.default(discount.amount || 0).plus(new import_decimal.default(editModeDiscountList[index].amount || 0)).toNumber(),
387
- savedAmount: new import_decimal.default(discount.amount || 0).times((product == null ? void 0 : product.quantity) || (product == null ? void 0 : product.num) || 1).plus(((_a3 = discount == null ? void 0 : discount.metadata) == null ? void 0 : _a3.product_discount_difference) || 0).plus(new import_decimal.default(editModeDiscountList[index].savedAmount || 0)).toNumber()
411
+ savedAmount: new import_decimal.default(discount.amount || 0).times((product == null ? void 0 : product.quantity) || (product == null ? void 0 : product.num) || 1).plus(((_d = discount == null ? void 0 : discount.metadata) == null ? void 0 : _d.product_discount_difference) || 0).plus(new import_decimal.default(editModeDiscountList[index].savedAmount || 0)).toNumber()
388
412
  };
389
413
  } else {
390
414
  if (discount.type && !discount.tag) {
@@ -392,16 +416,20 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
392
416
  }
393
417
  editModeDiscountList.push({
394
418
  ...discount,
419
+ metadata: {
420
+ ...discount.metadata || {},
421
+ num: ((_e = discount.metadata) == null ? void 0 : _e.num) || 1
422
+ },
395
423
  name: discount.name || discount.discount.title.auto,
396
424
  isEditMode: true,
397
425
  limited_relation_product_data: {},
398
- savedAmount: new import_decimal.default(discount.amount || 0).times((product == null ? void 0 : product.quantity) || (product == null ? void 0 : product.num) || 1).plus(((_b = discount == null ? void 0 : discount.metadata) == null ? void 0 : _b.product_discount_difference) || 0).toNumber(),
426
+ savedAmount: new import_decimal.default(discount.amount || 0).times((product == null ? void 0 : product.quantity) || (product == null ? void 0 : product.num) || 1).plus(((_f = discount == null ? void 0 : discount.metadata) == null ? void 0 : _f.product_discount_difference) || 0).toNumber(),
399
427
  isAvailable: true,
400
- id: ((_c = discount.discount) == null ? void 0 : _c.resource_id) || discount.id,
401
- format_title: ((_d = discount.discount) == null ? void 0 : _d.title) || discount.format_title,
428
+ id: ((_g = discount.discount) == null ? void 0 : _g.resource_id) || discount.id,
429
+ format_title: ((_h = discount.discount) == null ? void 0 : _h.title) || discount.format_title,
402
430
  isDisabled: true,
403
431
  isSelected: true,
404
- product_id: ((_e = discount.discount) == null ? void 0 : _e.product_id) || discount.product_id
432
+ product_id: ((_i = discount.discount) == null ? void 0 : _i.product_id) || discount.product_id
405
433
  });
406
434
  }
407
435
  }
@@ -518,7 +546,7 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
518
546
  }
519
547
  await this.core.effects.emit(
520
548
  `${this.name}:onLoadDiscountList`,
521
- filteredDiscountList
549
+ newDiscountList
522
550
  );
523
551
  } catch (error) {
524
552
  console.error("[ShopDiscount] 加载准备配置出错:", error);
@@ -23,6 +23,7 @@ export interface ShopDiscountState {
23
23
  discount: DiscountModule | null;
24
24
  rules: RulesModule | null;
25
25
  productList: Record<string, any>[];
26
+ orderTotalAmount?: number;
26
27
  holders?: {
27
28
  form_record_id: number;
28
29
  form_id?: number;
@@ -56,14 +56,18 @@ var isAllNormalProduct = (items) => {
56
56
  };
57
57
  var getDiscountAmount = (discount, total, price) => {
58
58
  var _a;
59
+ let discountedPrice = 0;
59
60
  if (discount.tag === "good_pass") {
60
- return new import_decimal.default(price).minus(new import_decimal.default(price || 0)).toNumber();
61
- }
62
- const isFixedAmount = ((_a = discount == null ? void 0 : discount.metadata) == null ? void 0 : _a.discount_card_type) === "fixed_amount";
63
- if (isFixedAmount) {
64
- return Math.max(new import_decimal.default(price).minus(new import_decimal.default((discount.amount ?? discount.par_value) || 0)).toNumber(), 0);
61
+ discountedPrice = new import_decimal.default(price).minus(new import_decimal.default(price || 0)).toNumber();
62
+ } else {
63
+ const isFixedAmount = ((_a = discount == null ? void 0 : discount.metadata) == null ? void 0 : _a.discount_card_type) === "fixed_amount";
64
+ if (isFixedAmount) {
65
+ discountedPrice = Math.max(new import_decimal.default(price).minus(new import_decimal.default(discount.par_value || 0)).toNumber(), 0);
66
+ } else {
67
+ discountedPrice = new import_decimal.default(100).minus(discount.par_value || 0).div(100).mul(new import_decimal.default(price)).toNumber();
68
+ }
65
69
  }
66
- return new import_decimal.default(100).minus(discount.par_value || 0).div(100).mul(new import_decimal.default(price)).toNumber();
70
+ return discountedPrice;
67
71
  };
68
72
  var getDiscountListAmountTotal = (discount) => {
69
73
  return discount.reduce((acc, cur) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.1.91",
4
+ "version": "2.1.93",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",