@munchi_oy/cart-engine 0.1.1 → 0.1.2

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.
package/dist/index.cjs CHANGED
@@ -779,7 +779,7 @@ var Cart = class _Cart {
779
779
  this.setCheckoutModel(checkoutModel);
780
780
  }
781
781
  setGuestCount(guestCount) {
782
- if (this._tableService?.seats ?? null === guestCount) {
782
+ if ((this._tableService?.seats ?? null) === guestCount) {
783
783
  return;
784
784
  }
785
785
  this._tableService = guestCount === null ? null : { seats: guestCount };
@@ -919,7 +919,7 @@ var ApplyTo = /* @__PURE__ */ ((ApplyTo2) => {
919
919
  })(ApplyTo || {});
920
920
 
921
921
  // src/version.ts
922
- var VERSION = "0.1.1";
922
+ var VERSION = "0.1.2";
923
923
  // Annotate the CommonJS export names for ESM import in node:
924
924
  0 && (module.exports = {
925
925
  ApplyTo,
package/dist/index.d.cts CHANGED
@@ -164,6 +164,6 @@ declare function calculateOrderTaxSummary(details: {
164
164
  currency: CurrencyCode;
165
165
  }): PosOrderDtoTaxSummary;
166
166
 
167
- declare const VERSION = "0.1.1";
167
+ declare const VERSION = "0.1.2";
168
168
 
169
169
  export { ApplyTo, Cart, type CartCreateOptions, type CartItemAddData, type CartOptionPayload, type CartPriceSnapshot, type DiscountStrategyFn, type InternalPosDiscount, type SequentialDiscountCalculation, type TaxInclusiveSplitResult, type UpdatableCartDetails, VERSION, allocateProportionalMinorUnits, calculateCartPriceSnapshot, calculateDiscountAmount, calculateItemPrice, calculateOrderTaxSummary, calculateSequentialDiscountTotal, splitTaxInclusiveAmount };
package/dist/index.d.ts CHANGED
@@ -164,6 +164,6 @@ declare function calculateOrderTaxSummary(details: {
164
164
  currency: CurrencyCode;
165
165
  }): PosOrderDtoTaxSummary;
166
166
 
167
- declare const VERSION = "0.1.1";
167
+ declare const VERSION = "0.1.2";
168
168
 
169
169
  export { ApplyTo, Cart, type CartCreateOptions, type CartItemAddData, type CartOptionPayload, type CartPriceSnapshot, type DiscountStrategyFn, type InternalPosDiscount, type SequentialDiscountCalculation, type TaxInclusiveSplitResult, type UpdatableCartDetails, VERSION, allocateProportionalMinorUnits, calculateCartPriceSnapshot, calculateDiscountAmount, calculateItemPrice, calculateOrderTaxSummary, calculateSequentialDiscountTotal, splitTaxInclusiveAmount };
package/dist/index.js CHANGED
@@ -745,7 +745,7 @@ var Cart = class _Cart {
745
745
  this.setCheckoutModel(checkoutModel);
746
746
  }
747
747
  setGuestCount(guestCount) {
748
- if (this._tableService?.seats ?? null === guestCount) {
748
+ if ((this._tableService?.seats ?? null) === guestCount) {
749
749
  return;
750
750
  }
751
751
  this._tableService = guestCount === null ? null : { seats: guestCount };
@@ -885,7 +885,7 @@ var ApplyTo = /* @__PURE__ */ ((ApplyTo2) => {
885
885
  })(ApplyTo || {});
886
886
 
887
887
  // src/version.ts
888
- var VERSION = "0.1.1";
888
+ var VERSION = "0.1.2";
889
889
  export {
890
890
  ApplyTo,
891
891
  Cart,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@munchi_oy/cart-engine",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Headless settlement engine for Munchi POS, kiosk, and mobile flows",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,