@artisan-commerce/analytics-rn 0.3.0-canary.47 → 0.3.0-canary.48

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 CHANGED
@@ -3,6 +3,14 @@
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.48](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-rn@0.3.0-canary.47...@artisan-commerce/analytics-rn@0.3.0-canary.48) (2021-11-09)
7
+
8
+ **Note:** Version bump only for package @artisan-commerce/analytics-rn
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.3.0-canary.47](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-rn@0.3.0-canary.46...@artisan-commerce/analytics-rn@0.3.0-canary.47) (2021-11-09)
7
15
 
8
16
  **Note:** Version bump only for package @artisan-commerce/analytics-rn
@@ -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.47";
52
+ var version = "0.3.0-canary.48";
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";
@@ -92,7 +92,7 @@ var dependencies = {
92
92
  };
93
93
  var devDependencies = {
94
94
  "@artisan-commerce/products": "0.9.0-canary.32",
95
- "@artisan-commerce/shopping-cart": "0.12.0-canary.43",
95
+ "@artisan-commerce/shopping-cart": "0.12.0-canary.44",
96
96
  "@artisan-commerce/types": "0.14.0-canary.25",
97
97
  "@babel/core": "^7.13.15",
98
98
  "@babel/preset-env": "^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 = "e85f7433b22f801ccda1f3ff3c8466a68988b8f0";
115
+ var gitHead = "d1915ab1efe9053392b82cf313fcc3d41e93d811";
116
116
  var packageJSON = {
117
117
  name: name,
118
118
  description: description,
@@ -742,19 +742,19 @@ const CONSTANTS = {
742
742
  DEFAULT_SHOPPING_CART_NAME: "default",
743
743
  DEFAULT_MAX_SHOPPING_CARTS: 2
744
744
  };
745
- var __defProp$h$1 = Object.defineProperty;
746
- var __getOwnPropSymbols$h$1 = Object.getOwnPropertySymbols;
747
- var __hasOwnProp$h$1 = Object.prototype.hasOwnProperty;
748
- var __propIsEnum$h$1 = Object.prototype.propertyIsEnumerable;
749
- var __defNormalProp$h$1 = (obj, key, value) => key in obj ? __defProp$h$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
750
- var __spreadValues$h$1 = (a, b) => {
745
+ var __defProp$i$1 = Object.defineProperty;
746
+ var __getOwnPropSymbols$i$1 = Object.getOwnPropertySymbols;
747
+ var __hasOwnProp$i$1 = Object.prototype.hasOwnProperty;
748
+ var __propIsEnum$i$1 = Object.prototype.propertyIsEnumerable;
749
+ 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;
750
+ var __spreadValues$i$1 = (a, b) => {
751
751
  for (var prop in b || (b = {}))
752
- if (__hasOwnProp$h$1.call(b, prop))
753
- __defNormalProp$h$1(a, prop, b[prop]);
754
- if (__getOwnPropSymbols$h$1)
755
- for (var prop of __getOwnPropSymbols$h$1(b)) {
756
- if (__propIsEnum$h$1.call(b, prop))
757
- __defNormalProp$h$1(a, prop, b[prop]);
752
+ if (__hasOwnProp$i$1.call(b, prop))
753
+ __defNormalProp$i$1(a, prop, b[prop]);
754
+ if (__getOwnPropSymbols$i$1)
755
+ for (var prop of __getOwnPropSymbols$i$1(b)) {
756
+ if (__propIsEnum$i$1.call(b, prop))
757
+ __defNormalProp$i$1(a, prop, b[prop]);
758
758
  }
759
759
  return a;
760
760
  };
@@ -770,7 +770,7 @@ const initialState = {
770
770
  initialized: false
771
771
  };
772
772
  Object.freeze(initialState);
773
- let state = __spreadValues$h$1({}, initialState);
773
+ let state = __spreadValues$i$1({}, initialState);
774
774
  Object.seal(state);
775
775
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
776
776
  var dayjs_min = { exports: {} };
@@ -1384,21 +1384,21 @@ const getTaxTotal$1 = (taxes, grossPrice) => {
1384
1384
  return acc + tax.percentage / 100 * grossPrice;
1385
1385
  }, 0);
1386
1386
  };
1387
- var __defProp$e$1 = Object.defineProperty;
1387
+ var __defProp$f$1 = Object.defineProperty;
1388
1388
  var __defProps$c$1 = Object.defineProperties;
1389
1389
  var __getOwnPropDescs$c$1 = Object.getOwnPropertyDescriptors;
1390
- var __getOwnPropSymbols$e$1 = Object.getOwnPropertySymbols;
1391
- var __hasOwnProp$e$1 = Object.prototype.hasOwnProperty;
1392
- var __propIsEnum$e$1 = Object.prototype.propertyIsEnumerable;
1393
- var __defNormalProp$e$1 = (obj, key, value) => key in obj ? __defProp$e$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1394
- var __spreadValues$e$1 = (a, b) => {
1390
+ var __getOwnPropSymbols$f$1 = Object.getOwnPropertySymbols;
1391
+ var __hasOwnProp$f$1 = Object.prototype.hasOwnProperty;
1392
+ var __propIsEnum$f$1 = Object.prototype.propertyIsEnumerable;
1393
+ 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;
1394
+ var __spreadValues$f$1 = (a, b) => {
1395
1395
  for (var prop in b || (b = {}))
1396
- if (__hasOwnProp$e$1.call(b, prop))
1397
- __defNormalProp$e$1(a, prop, b[prop]);
1398
- if (__getOwnPropSymbols$e$1)
1399
- for (var prop of __getOwnPropSymbols$e$1(b)) {
1400
- if (__propIsEnum$e$1.call(b, prop))
1401
- __defNormalProp$e$1(a, prop, b[prop]);
1396
+ if (__hasOwnProp$f$1.call(b, prop))
1397
+ __defNormalProp$f$1(a, prop, b[prop]);
1398
+ if (__getOwnPropSymbols$f$1)
1399
+ for (var prop of __getOwnPropSymbols$f$1(b)) {
1400
+ if (__propIsEnum$f$1.call(b, prop))
1401
+ __defNormalProp$f$1(a, prop, b[prop]);
1402
1402
  }
1403
1403
  return a;
1404
1404
  };
@@ -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$c$1(__spreadValues$e$1({}, shoppingCartTotals), {
1483
+ return __spreadProps$c$1(__spreadValues$f$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$c$1(__spreadValues$e$1({}, shoppingCartTotals), {
1492
+ return __spreadProps$c$1(__spreadValues$f$1({}, shoppingCartTotals), {
1493
1493
  totalDiscounts: newTotalDiscounts,
1494
1494
  total: newTotal
1495
1495
  });