@artisan-commerce/analytics-rn 0.3.0-canary.56 → 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.
@@ -40,7 +40,7 @@ const getState$1 = () => {
40
40
 
41
41
  var name = "@artisan-commerce/analytics-rn";
42
42
  var description = "Artisn commerce analytics react native library";
43
- var version = "0.3.0-canary.56";
43
+ var version = "0.3.0-canary.57";
44
44
  var main = "./dist/bundle.esm.js";
45
45
  var module = "./dist/bundle.esm.js";
46
46
  var types = "./dist/bundle.d.ts";
@@ -82,9 +82,9 @@ var dependencies = {
82
82
  "snake-case": "^3.0.4"
83
83
  };
84
84
  var devDependencies = {
85
- "@artisan-commerce/products": "0.9.0-canary.35",
86
- "@artisan-commerce/shopping-cart": "0.12.0-canary.52",
87
- "@artisan-commerce/types": "0.14.0-canary.27",
85
+ "@artisan-commerce/products": "0.9.0-canary.36",
86
+ "@artisan-commerce/shopping-cart": "0.12.0-canary.53",
87
+ "@artisan-commerce/types": "0.14.0-canary.28",
88
88
  "@babel/core": "^7.13.15",
89
89
  "@babel/preset-env": "^7.10.4",
90
90
  "@babel/preset-react": "^7.10.4",
@@ -103,7 +103,7 @@ var peerDependencies = {
103
103
  react: ">=16.8.6",
104
104
  "react-native-fbsdk-next": "*"
105
105
  };
106
- var gitHead = "3f1273ea8d92b7f1e350b1c5fd41882fd0a9e969";
106
+ var gitHead = "41494d0ea43f17af10489d8ef47f4d4ad014a951";
107
107
  var packageJSON = {
108
108
  name: name,
109
109
  description: description,
@@ -1376,8 +1376,8 @@ const getTaxTotal$1 = (taxes, grossPrice) => {
1376
1376
  }, 0);
1377
1377
  };
1378
1378
  var __defProp$g$1 = Object.defineProperty;
1379
- var __defProps$d$1 = Object.defineProperties;
1380
- var __getOwnPropDescs$d$1 = Object.getOwnPropertyDescriptors;
1379
+ var __defProps$c$1 = Object.defineProperties;
1380
+ var __getOwnPropDescs$c$1 = Object.getOwnPropertyDescriptors;
1381
1381
  var __getOwnPropSymbols$g$1 = Object.getOwnPropertySymbols;
1382
1382
  var __hasOwnProp$g$1 = Object.prototype.hasOwnProperty;
1383
1383
  var __propIsEnum$g$1 = Object.prototype.propertyIsEnumerable;
@@ -1393,7 +1393,7 @@ var __spreadValues$g$1 = (a, b) => {
1393
1393
  }
1394
1394
  return a;
1395
1395
  };
1396
- var __spreadProps$d$1 = (a, b) => __defProps$d$1(a, __getOwnPropDescs$d$1(b));
1396
+ var __spreadProps$c$1 = (a, b) => __defProps$c$1(a, __getOwnPropDescs$c$1(b));
1397
1397
  const { toCartProduct: toCartProduct$4 } = transformers_utils;
1398
1398
  const getShoppingCartTotal = (shoppingCart, config = {}) => {
1399
1399
  const initialValue = {
@@ -1471,7 +1471,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
1471
1471
  const totalDiscount2 = copayment * discountPercentage;
1472
1472
  const newTotalDiscounts2 = prevTotalDiscounts + totalDiscount2;
1473
1473
  const newTotal2 = (copayment - totalDiscount2).toFixed(4);
1474
- return __spreadProps$d$1(__spreadValues$g$1({}, shoppingCartTotals), {
1474
+ return __spreadProps$c$1(__spreadValues$g$1({}, shoppingCartTotals), {
1475
1475
  totalDiscounts: newTotalDiscounts2,
1476
1476
  total: Number(newTotal2)
1477
1477
  });
@@ -1480,7 +1480,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
1480
1480
  const totalDiscount = newSubtotal;
1481
1481
  const newTotalDiscounts = prevTotalDiscounts + totalDiscount;
1482
1482
  const newTotal = prevTotal - totalDiscount;
1483
- return __spreadProps$d$1(__spreadValues$g$1({}, shoppingCartTotals), {
1483
+ return __spreadProps$c$1(__spreadValues$g$1({}, shoppingCartTotals), {
1484
1484
  totalDiscounts: newTotalDiscounts,
1485
1485
  total: newTotal
1486
1486
  });