@open-tender/utils 0.1.160 → 0.1.162

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.
@@ -820,6 +820,8 @@ const prepareOrder = (data) => {
820
820
  order.order_id = data.orderId;
821
821
  if (data.cartId)
822
822
  order.cart_id = data.cartId;
823
+ if (data.save)
824
+ order.save = data.save;
823
825
  return order;
824
826
  };
825
827
  exports.prepareOrder = prepareOrder;
@@ -785,6 +785,8 @@ export const prepareOrder = (data) => {
785
785
  order.order_id = data.orderId;
786
786
  if (data.cartId)
787
787
  order.cart_id = data.cartId;
788
+ if (data.save)
789
+ order.save = data.save;
788
790
  return order;
789
791
  };
790
792
  export const checkAmountRemaining = (total, tenders) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.1.160",
3
+ "version": "0.1.162",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -54,12 +54,11 @@
54
54
  "typescript": "^4.8.2"
55
55
  },
56
56
  "peerDependencies": {
57
- "@open-tender/types": "^0.2.78",
57
+ "@open-tender/types": "^0.2.95",
58
58
  "@reduxjs/toolkit": "^1.8.5",
59
59
  "react": "^18.2.0"
60
60
  },
61
61
  "dependencies": {
62
- "@open-tender/types": "^0.2.91",
63
62
  "date-fns": "^2.29.3",
64
63
  "date-fns-tz": "^1.3.7"
65
64
  }