@open-tender/utils 0.4.67 → 0.4.68

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.
@@ -882,6 +882,8 @@ const prepareOrder = (data) => {
882
882
  order.cart_id = data.cartId;
883
883
  if (data.save)
884
884
  order.save = data.save;
885
+ if (data.token)
886
+ order.token = data.token;
885
887
  return order;
886
888
  };
887
889
  exports.prepareOrder = prepareOrder;
@@ -844,6 +844,8 @@ export const prepareOrder = (data) => {
844
844
  order.cart_id = data.cartId;
845
845
  if (data.save)
846
846
  order.save = data.save;
847
+ if (data.token)
848
+ order.token = data.token;
847
849
  return order;
848
850
  };
849
851
  export const checkAmountRemaining = (total, tenders) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.4.67",
3
+ "version": "0.4.68",
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",
@@ -36,7 +36,7 @@
36
36
  "private": false,
37
37
  "devDependencies": {
38
38
  "@emotion/react": "^11.10.4",
39
- "@open-tender/types": "^0.4.77",
39
+ "@open-tender/types": "^0.4.94",
40
40
  "@reduxjs/toolkit": "^1.8.5",
41
41
  "@types/google.maps": "^3.53.5",
42
42
  "@types/jest": "^29.5.11",
@@ -58,7 +58,7 @@
58
58
  "typescript": "^4.8.2"
59
59
  },
60
60
  "peerDependencies": {
61
- "@open-tender/types": "^0.4.77",
61
+ "@open-tender/types": "^0.4.94",
62
62
  "@reduxjs/toolkit": "^1.8.5",
63
63
  "react": "^18.2.0"
64
64
  },