@open-tender/utils 0.5.57 → 0.5.58
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 +6 -0
- package/dist/esm/utils/cart.js +6 -0
- package/package.json +2 -2
package/dist/cjs/utils/cart.js
CHANGED
|
@@ -785,6 +785,12 @@ const validateCart = (cart, categories, soldOut, requestedAt) => {
|
|
|
785
785
|
// ignore the option increment setting for the time being
|
|
786
786
|
if ((newOption.max && option.quantity > newOption.max) ||
|
|
787
787
|
(newOption.min && option.quantity < newOption.min)) {
|
|
788
|
+
console.log('[validateCart] Option mismatch details:', {
|
|
789
|
+
oldOption: option,
|
|
790
|
+
newOption,
|
|
791
|
+
soldOut,
|
|
792
|
+
requestedAt
|
|
793
|
+
});
|
|
788
794
|
invalidOptions.push(option);
|
|
789
795
|
return option;
|
|
790
796
|
}
|
package/dist/esm/utils/cart.js
CHANGED
|
@@ -749,6 +749,12 @@ export const validateCart = (cart, categories, soldOut, requestedAt) => {
|
|
|
749
749
|
// ignore the option increment setting for the time being
|
|
750
750
|
if ((newOption.max && option.quantity > newOption.max) ||
|
|
751
751
|
(newOption.min && option.quantity < newOption.min)) {
|
|
752
|
+
console.log('[validateCart] Option mismatch details:', {
|
|
753
|
+
oldOption: option,
|
|
754
|
+
newOption,
|
|
755
|
+
soldOut,
|
|
756
|
+
requestedAt
|
|
757
|
+
});
|
|
752
758
|
invalidOptions.push(option);
|
|
753
759
|
return option;
|
|
754
760
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/utils",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.58",
|
|
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",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"typescript": "^4.8.2"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@open-tender/types": "^0.4.
|
|
60
|
+
"@open-tender/types": "^0.4.171",
|
|
61
61
|
"@reduxjs/toolkit": "^1.8.5",
|
|
62
62
|
"react": "^18.2.0"
|
|
63
63
|
},
|