@artisan-commerce/analytics-rn 0.3.0-canary.53 → 0.3.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.
@@ -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.53";
43
+ var version = "0.3.0-canary.55";
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.33",
86
- "@artisan-commerce/shopping-cart": "0.12.0-canary.49",
87
- "@artisan-commerce/types": "0.14.0-canary.25",
85
+ "@artisan-commerce/products": "0.9.0-canary.34",
86
+ "@artisan-commerce/shopping-cart": "0.12.0-canary.51",
87
+ "@artisan-commerce/types": "0.14.0-canary.26",
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 = "78b8a5a0a4732311ab0e9d2e91c1459211a3835f";
106
+ var gitHead = "f3d2aaff805c4365862b007b5ed2d6e3eadbd9a3";
107
107
  var packageJSON = {
108
108
  name: name,
109
109
  description: description,
@@ -733,19 +733,19 @@ const CONSTANTS = {
733
733
  DEFAULT_SHOPPING_CART_NAME: "default",
734
734
  DEFAULT_MAX_SHOPPING_CARTS: 2
735
735
  };
736
- var __defProp$i$1 = Object.defineProperty;
737
- var __getOwnPropSymbols$i$1 = Object.getOwnPropertySymbols;
738
- var __hasOwnProp$i$1 = Object.prototype.hasOwnProperty;
739
- var __propIsEnum$i$1 = Object.prototype.propertyIsEnumerable;
740
- var __defNormalProp$i$1 = (obj, key, value) => key in obj ? __defProp$i$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
741
- var __spreadValues$i$1 = (a, b) => {
736
+ var __defProp$k$1 = Object.defineProperty;
737
+ var __getOwnPropSymbols$k$1 = Object.getOwnPropertySymbols;
738
+ var __hasOwnProp$k$1 = Object.prototype.hasOwnProperty;
739
+ var __propIsEnum$k$1 = Object.prototype.propertyIsEnumerable;
740
+ var __defNormalProp$k$1 = (obj, key, value) => key in obj ? __defProp$k$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
741
+ var __spreadValues$k$1 = (a, b) => {
742
742
  for (var prop in b || (b = {}))
743
- if (__hasOwnProp$i$1.call(b, prop))
744
- __defNormalProp$i$1(a, prop, b[prop]);
745
- if (__getOwnPropSymbols$i$1)
746
- for (var prop of __getOwnPropSymbols$i$1(b)) {
747
- if (__propIsEnum$i$1.call(b, prop))
748
- __defNormalProp$i$1(a, prop, b[prop]);
743
+ if (__hasOwnProp$k$1.call(b, prop))
744
+ __defNormalProp$k$1(a, prop, b[prop]);
745
+ if (__getOwnPropSymbols$k$1)
746
+ for (var prop of __getOwnPropSymbols$k$1(b)) {
747
+ if (__propIsEnum$k$1.call(b, prop))
748
+ __defNormalProp$k$1(a, prop, b[prop]);
749
749
  }
750
750
  return a;
751
751
  };
@@ -761,7 +761,7 @@ const initialState = {
761
761
  initialized: false
762
762
  };
763
763
  Object.freeze(initialState);
764
- let state = __spreadValues$i$1({}, initialState);
764
+ let state = __spreadValues$k$1({}, initialState);
765
765
  Object.seal(state);
766
766
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
767
767
  var dayjs_min = { exports: {} };
@@ -1375,21 +1375,21 @@ const getTaxTotal$1 = (taxes, grossPrice) => {
1375
1375
  return acc + tax.percentage / 100 * grossPrice;
1376
1376
  }, 0);
1377
1377
  };
1378
- var __defProp$f$1 = Object.defineProperty;
1378
+ var __defProp$g$1 = Object.defineProperty;
1379
1379
  var __defProps$d$1 = Object.defineProperties;
1380
1380
  var __getOwnPropDescs$d$1 = Object.getOwnPropertyDescriptors;
1381
- var __getOwnPropSymbols$f$1 = Object.getOwnPropertySymbols;
1382
- var __hasOwnProp$f$1 = Object.prototype.hasOwnProperty;
1383
- var __propIsEnum$f$1 = Object.prototype.propertyIsEnumerable;
1384
- var __defNormalProp$f$1 = (obj, key, value) => key in obj ? __defProp$f$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1385
- var __spreadValues$f$1 = (a, b) => {
1381
+ var __getOwnPropSymbols$g$1 = Object.getOwnPropertySymbols;
1382
+ var __hasOwnProp$g$1 = Object.prototype.hasOwnProperty;
1383
+ var __propIsEnum$g$1 = Object.prototype.propertyIsEnumerable;
1384
+ var __defNormalProp$g$1 = (obj, key, value) => key in obj ? __defProp$g$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1385
+ var __spreadValues$g$1 = (a, b) => {
1386
1386
  for (var prop in b || (b = {}))
1387
- if (__hasOwnProp$f$1.call(b, prop))
1388
- __defNormalProp$f$1(a, prop, b[prop]);
1389
- if (__getOwnPropSymbols$f$1)
1390
- for (var prop of __getOwnPropSymbols$f$1(b)) {
1391
- if (__propIsEnum$f$1.call(b, prop))
1392
- __defNormalProp$f$1(a, prop, b[prop]);
1387
+ if (__hasOwnProp$g$1.call(b, prop))
1388
+ __defNormalProp$g$1(a, prop, b[prop]);
1389
+ if (__getOwnPropSymbols$g$1)
1390
+ for (var prop of __getOwnPropSymbols$g$1(b)) {
1391
+ if (__propIsEnum$g$1.call(b, prop))
1392
+ __defNormalProp$g$1(a, prop, b[prop]);
1393
1393
  }
1394
1394
  return a;
1395
1395
  };
@@ -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$f$1({}, shoppingCartTotals), {
1474
+ return __spreadProps$d$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$f$1({}, shoppingCartTotals), {
1483
+ return __spreadProps$d$1(__spreadValues$g$1({}, shoppingCartTotals), {
1484
1484
  totalDiscounts: newTotalDiscounts,
1485
1485
  total: newTotal
1486
1486
  });