@artisan-commerce/analytics-web 0.2.0-canary.54 → 0.2.0-canary.55
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/CHANGELOG.md +8 -0
- package/dist/bundle.cjs.js +9 -9
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +9 -9
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +9 -9
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -35,7 +35,7 @@ const getState$1 = () => {
|
|
|
35
35
|
|
|
36
36
|
var name = "@artisan-commerce/analytics-web";
|
|
37
37
|
var description = "Artisn commerce analytics web library";
|
|
38
|
-
var version = "0.2.0-canary.
|
|
38
|
+
var version = "0.2.0-canary.54";
|
|
39
39
|
var main = "./dist/bundle.cjs.js";
|
|
40
40
|
var module = "./dist/bundle.esm.js";
|
|
41
41
|
var types = "./dist/bundle.d.ts";
|
|
@@ -76,9 +76,9 @@ var dependencies = {
|
|
|
76
76
|
"snake-case": "^3.0.4"
|
|
77
77
|
};
|
|
78
78
|
var devDependencies = {
|
|
79
|
-
"@artisan-commerce/products": "0.9.0-canary.
|
|
80
|
-
"@artisan-commerce/shopping-cart": "0.12.0-canary.
|
|
81
|
-
"@artisan-commerce/types": "0.14.0-canary.
|
|
79
|
+
"@artisan-commerce/products": "0.9.0-canary.35",
|
|
80
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.52",
|
|
81
|
+
"@artisan-commerce/types": "0.14.0-canary.27"
|
|
82
82
|
};
|
|
83
83
|
var peerDependencies = {
|
|
84
84
|
"@artisan-commerce/products": "*",
|
|
@@ -1512,8 +1512,8 @@ const getTaxTotal$1 = (taxes, grossPrice) => {
|
|
|
1512
1512
|
}, 0);
|
|
1513
1513
|
};
|
|
1514
1514
|
var __defProp$g$1 = Object.defineProperty;
|
|
1515
|
-
var __defProps$
|
|
1516
|
-
var __getOwnPropDescs$
|
|
1515
|
+
var __defProps$c$1 = Object.defineProperties;
|
|
1516
|
+
var __getOwnPropDescs$c$1 = Object.getOwnPropertyDescriptors;
|
|
1517
1517
|
var __getOwnPropSymbols$g$1 = Object.getOwnPropertySymbols;
|
|
1518
1518
|
var __hasOwnProp$g$1 = Object.prototype.hasOwnProperty;
|
|
1519
1519
|
var __propIsEnum$g$1 = Object.prototype.propertyIsEnumerable;
|
|
@@ -1529,7 +1529,7 @@ var __spreadValues$g$1 = (a, b) => {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
return a;
|
|
1531
1531
|
};
|
|
1532
|
-
var __spreadProps$
|
|
1532
|
+
var __spreadProps$c$1 = (a, b) => __defProps$c$1(a, __getOwnPropDescs$c$1(b));
|
|
1533
1533
|
const { toCartProduct: toCartProduct$4 } = transformers_utils;
|
|
1534
1534
|
const getShoppingCartTotal = (shoppingCart, config = {}) => {
|
|
1535
1535
|
const initialValue = {
|
|
@@ -1607,7 +1607,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
|
|
|
1607
1607
|
const totalDiscount2 = copayment * discountPercentage;
|
|
1608
1608
|
const newTotalDiscounts2 = prevTotalDiscounts + totalDiscount2;
|
|
1609
1609
|
const newTotal2 = (copayment - totalDiscount2).toFixed(4);
|
|
1610
|
-
return __spreadProps$
|
|
1610
|
+
return __spreadProps$c$1(__spreadValues$g$1({}, shoppingCartTotals), {
|
|
1611
1611
|
totalDiscounts: newTotalDiscounts2,
|
|
1612
1612
|
total: Number(newTotal2)
|
|
1613
1613
|
});
|
|
@@ -1616,7 +1616,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
|
|
|
1616
1616
|
const totalDiscount = newSubtotal;
|
|
1617
1617
|
const newTotalDiscounts = prevTotalDiscounts + totalDiscount;
|
|
1618
1618
|
const newTotal = prevTotal - totalDiscount;
|
|
1619
|
-
return __spreadProps$
|
|
1619
|
+
return __spreadProps$c$1(__spreadValues$g$1({}, shoppingCartTotals), {
|
|
1620
1620
|
totalDiscounts: newTotalDiscounts,
|
|
1621
1621
|
total: newTotal
|
|
1622
1622
|
});
|