@pisell/pisellos 2.1.65 → 2.1.66

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.
@@ -343,7 +343,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
343
343
  };
344
344
  setOtherData(key: string, value: any): void;
345
345
  getOtherData(key: string): any;
346
- getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
346
+ getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
347
347
  /**
348
348
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
349
349
  *
@@ -2652,7 +2652,8 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
2652
2652
  start_at: dayjs(item.start),
2653
2653
  end_at: dayjs(item.end)
2654
2654
  })) {
2655
- mSet.set(m.id, m.pax || 1);
2655
+ var _m$pax;
2656
+ mSet.set(m.id, (_m$pax = m.pax) !== null && _m$pax !== void 0 ? _m$pax : 1);
2656
2657
  }
2657
2658
  });
2658
2659
  });
@@ -343,7 +343,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
343
343
  };
344
344
  setOtherData(key: string, value: any): void;
345
345
  getOtherData(key: string): any;
346
- getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
346
+ getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
347
347
  /**
348
348
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
349
349
  *
@@ -1868,7 +1868,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
1868
1868
  { start_at: m.start_at, end_at: m.end_at },
1869
1869
  { start_at: (0, import_dayjs.default)(item.start), end_at: (0, import_dayjs.default)(item.end) }
1870
1870
  )) {
1871
- mSet.set(m.id, m.pax || 1);
1871
+ mSet.set(m.id, m.pax ?? 1);
1872
1872
  }
1873
1873
  });
1874
1874
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.1.65",
4
+ "version": "2.1.66",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",