@artisan-commerce/analytics-rn 0.3.0-canary.55 → 0.3.0-canary.57
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 +16 -0
- package/dist/bundle.cjs.js +10 -10
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +10 -10
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.3.0-canary.57](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-rn@0.3.0-canary.56...@artisan-commerce/analytics-rn@0.3.0-canary.57) (2021-12-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @artisan-commerce/analytics-rn
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.3.0-canary.56](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-rn@0.3.0-canary.55...@artisan-commerce/analytics-rn@0.3.0-canary.56) (2021-12-13)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @artisan-commerce/analytics-rn
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.3.0-canary.55](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-rn@0.3.0-canary.54...@artisan-commerce/analytics-rn@0.3.0-canary.55) (2021-12-01)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @artisan-commerce/analytics-rn
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -49,7 +49,7 @@ const getState$1 = () => {
|
|
|
49
49
|
|
|
50
50
|
var name = "@artisan-commerce/analytics-rn";
|
|
51
51
|
var description = "Artisn commerce analytics react native library";
|
|
52
|
-
var version = "0.3.0-canary.
|
|
52
|
+
var version = "0.3.0-canary.57";
|
|
53
53
|
var main = "./dist/bundle.esm.js";
|
|
54
54
|
var module$1 = "./dist/bundle.esm.js";
|
|
55
55
|
var types = "./dist/bundle.d.ts";
|
|
@@ -91,9 +91,9 @@ var dependencies = {
|
|
|
91
91
|
"snake-case": "^3.0.4"
|
|
92
92
|
};
|
|
93
93
|
var devDependencies = {
|
|
94
|
-
"@artisan-commerce/products": "0.9.0-canary.
|
|
95
|
-
"@artisan-commerce/shopping-cart": "0.12.0-canary.
|
|
96
|
-
"@artisan-commerce/types": "0.14.0-canary.
|
|
94
|
+
"@artisan-commerce/products": "0.9.0-canary.36",
|
|
95
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.53",
|
|
96
|
+
"@artisan-commerce/types": "0.14.0-canary.28",
|
|
97
97
|
"@babel/core": "^7.13.15",
|
|
98
98
|
"@babel/preset-env": "^7.10.4",
|
|
99
99
|
"@babel/preset-react": "^7.10.4",
|
|
@@ -112,7 +112,7 @@ var peerDependencies = {
|
|
|
112
112
|
react: ">=16.8.6",
|
|
113
113
|
"react-native-fbsdk-next": "*"
|
|
114
114
|
};
|
|
115
|
-
var gitHead = "
|
|
115
|
+
var gitHead = "41494d0ea43f17af10489d8ef47f4d4ad014a951";
|
|
116
116
|
var packageJSON = {
|
|
117
117
|
name: name,
|
|
118
118
|
description: description,
|
|
@@ -1385,8 +1385,8 @@ const getTaxTotal$1 = (taxes, grossPrice) => {
|
|
|
1385
1385
|
}, 0);
|
|
1386
1386
|
};
|
|
1387
1387
|
var __defProp$g$1 = Object.defineProperty;
|
|
1388
|
-
var __defProps$
|
|
1389
|
-
var __getOwnPropDescs$
|
|
1388
|
+
var __defProps$c$1 = Object.defineProperties;
|
|
1389
|
+
var __getOwnPropDescs$c$1 = Object.getOwnPropertyDescriptors;
|
|
1390
1390
|
var __getOwnPropSymbols$g$1 = Object.getOwnPropertySymbols;
|
|
1391
1391
|
var __hasOwnProp$g$1 = Object.prototype.hasOwnProperty;
|
|
1392
1392
|
var __propIsEnum$g$1 = Object.prototype.propertyIsEnumerable;
|
|
@@ -1402,7 +1402,7 @@ var __spreadValues$g$1 = (a, b) => {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
return a;
|
|
1404
1404
|
};
|
|
1405
|
-
var __spreadProps$
|
|
1405
|
+
var __spreadProps$c$1 = (a, b) => __defProps$c$1(a, __getOwnPropDescs$c$1(b));
|
|
1406
1406
|
const { toCartProduct: toCartProduct$4 } = transformers_utils;
|
|
1407
1407
|
const getShoppingCartTotal = (shoppingCart, config = {}) => {
|
|
1408
1408
|
const initialValue = {
|
|
@@ -1480,7 +1480,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
|
|
|
1480
1480
|
const totalDiscount2 = copayment * discountPercentage;
|
|
1481
1481
|
const newTotalDiscounts2 = prevTotalDiscounts + totalDiscount2;
|
|
1482
1482
|
const newTotal2 = (copayment - totalDiscount2).toFixed(4);
|
|
1483
|
-
return __spreadProps$
|
|
1483
|
+
return __spreadProps$c$1(__spreadValues$g$1({}, shoppingCartTotals), {
|
|
1484
1484
|
totalDiscounts: newTotalDiscounts2,
|
|
1485
1485
|
total: Number(newTotal2)
|
|
1486
1486
|
});
|
|
@@ -1489,7 +1489,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
|
|
|
1489
1489
|
const totalDiscount = newSubtotal;
|
|
1490
1490
|
const newTotalDiscounts = prevTotalDiscounts + totalDiscount;
|
|
1491
1491
|
const newTotal = prevTotal - totalDiscount;
|
|
1492
|
-
return __spreadProps$
|
|
1492
|
+
return __spreadProps$c$1(__spreadValues$g$1({}, shoppingCartTotals), {
|
|
1493
1493
|
totalDiscounts: newTotalDiscounts,
|
|
1494
1494
|
total: newTotal
|
|
1495
1495
|
});
|