@open-tender/store 0.3.70 → 0.3.71
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/order.js
CHANGED
|
@@ -117,7 +117,8 @@ var makeCartItemGroups = function (optionGroups, isEdit, soldOut) {
|
|
|
117
117
|
max: g.max_options,
|
|
118
118
|
min: g.min_options,
|
|
119
119
|
isSize: !!g.is_size,
|
|
120
|
-
options: options
|
|
120
|
+
options: options,
|
|
121
|
+
quantity: options.reduce(function (t, o) { return (t += o.quantity); }, 0)
|
|
121
122
|
};
|
|
122
123
|
return group;
|
|
123
124
|
});
|
package/dist/esm/utils/order.js
CHANGED
|
@@ -109,7 +109,8 @@ var makeCartItemGroups = function (optionGroups, isEdit, soldOut) {
|
|
|
109
109
|
max: g.max_options,
|
|
110
110
|
min: g.min_options,
|
|
111
111
|
isSize: !!g.is_size,
|
|
112
|
-
options: options
|
|
112
|
+
options: options,
|
|
113
|
+
quantity: options.reduce(function (t, o) { return (t += o.quantity); }, 0)
|
|
113
114
|
};
|
|
114
115
|
return group;
|
|
115
116
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.71",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|