@crystaldesign/product-handler 24.12.0-rc.8 → 24.12.0
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/build/cjs/index.js +2 -2
- package/build/esm/index.js +2 -2
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -1275,7 +1275,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1275
1275
|
//we use the addedPrice of the baseData as long as the calculatedPrice is the same as the SetPrice of the variant
|
|
1276
1276
|
|
|
1277
1277
|
var ismanual = (variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice) !== (variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.addedPrice);
|
|
1278
|
-
var price = ProductHandlerAbstract.calcPrice(SetPrice !== null && SetPrice !== void 0 ? SetPrice : 0, [], variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice, ismanual);
|
|
1278
|
+
var price = ProductHandlerAbstract.calcPrice(SetPrice !== null && SetPrice !== void 0 ? SetPrice : variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.addedPrice, [], variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice, ismanual);
|
|
1279
1279
|
var addedPrice;
|
|
1280
1280
|
if (SetPrice == baseData.calculatedPrice) {
|
|
1281
1281
|
addedPrice = baseData.addedPrice;
|
|
@@ -2169,7 +2169,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2169
2169
|
return _regeneratorRuntime__default["default"].wrap(function _loop2$(_context15) {
|
|
2170
2170
|
while (1) switch (_context15.prev = _context15.next) {
|
|
2171
2171
|
case 0:
|
|
2172
|
-
if (response.products[
|
|
2172
|
+
if (response.products[j].baseProduct) baseProduct = response.products[j];
|
|
2173
2173
|
if (!responseProducts.find(function (p) {
|
|
2174
2174
|
return p._id == response.products[j]._id;
|
|
2175
2175
|
})) {
|
package/build/esm/index.js
CHANGED
|
@@ -1257,7 +1257,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
1257
1257
|
//we use the addedPrice of the baseData as long as the calculatedPrice is the same as the SetPrice of the variant
|
|
1258
1258
|
|
|
1259
1259
|
var ismanual = (variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice) !== (variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.addedPrice);
|
|
1260
|
-
var price = ProductHandlerAbstract.calcPrice(SetPrice !== null && SetPrice !== void 0 ? SetPrice : 0, [], variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice, ismanual);
|
|
1260
|
+
var price = ProductHandlerAbstract.calcPrice(SetPrice !== null && SetPrice !== void 0 ? SetPrice : variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.addedPrice, [], variantProduct === null || variantProduct === void 0 ? void 0 : variantProduct.calculatedPrice, ismanual);
|
|
1261
1261
|
var addedPrice;
|
|
1262
1262
|
if (SetPrice == baseData.calculatedPrice) {
|
|
1263
1263
|
addedPrice = baseData.addedPrice;
|
|
@@ -2151,7 +2151,7 @@ var ProductHandlerAbstract = /*#__PURE__*/function () {
|
|
|
2151
2151
|
return _regeneratorRuntime.wrap(function _loop2$(_context15) {
|
|
2152
2152
|
while (1) switch (_context15.prev = _context15.next) {
|
|
2153
2153
|
case 0:
|
|
2154
|
-
if (response.products[
|
|
2154
|
+
if (response.products[j].baseProduct) baseProduct = response.products[j];
|
|
2155
2155
|
if (!responseProducts.find(function (p) {
|
|
2156
2156
|
return p._id == response.products[j]._id;
|
|
2157
2157
|
})) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/product-handler",
|
|
3
|
-
"version": "24.12.0
|
|
3
|
+
"version": "24.12.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@crystaldesign/basket-model": "*",
|
|
6
6
|
"@crystaldesign/diva-utils": "*"
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"classnames": "^2.5.1"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "69411dd738952436a072e6a95c5a4b3cc518fe59"
|
|
16
16
|
}
|