@open-tender/utils 0.1.160 → 0.1.161
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/cjs/utils/cart.js +2 -0
- package/dist/esm/utils/cart.js +2 -0
- package/package.json +2 -3
package/dist/cjs/utils/cart.js
CHANGED
package/dist/esm/utils/cart.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.1.161",
|
|
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.
|
|
57
|
+
"@open-tender/types": "^0.2.91",
|
|
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
|
}
|