@artisan-commerce/analytics-rn 0.3.0-canary.70 → 0.3.0-canary.71
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 +14 -0
- package/dist/bundle.cjs.js +8 -8
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.d.ts +458 -458
- package/dist/bundle.esm.js +8 -8
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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.71](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-rn@0.3.0-canary.70...@artisan-commerce/analytics-rn@0.3.0-canary.71) (2022-04-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **builders:** make the builders's additionalInfo generic ([7b6e974](https://bitbucket.org/tradesystem/artisn_sdk/commit/7b6e97435a09d39b01727aa81c703cbbaf3bfecb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **analytics-rn:** fix vendorId to -1 in some events ([4308adc](https://bitbucket.org/tradesystem/artisn_sdk/commit/4308adca4aa2387cd9f8915c4c7f0209373656a6))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
## [0.3.0-canary.70](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-rn@0.3.0-canary.69...@artisan-commerce/analytics-rn@0.3.0-canary.70) (2022-04-05)
|
|
7
21
|
|
|
8
22
|
**Note:** Version bump only for package @artisan-commerce/analytics-rn
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -49,7 +49,7 @@ const getState$2 = () => {
|
|
|
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.71";
|
|
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.44",
|
|
95
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.67",
|
|
96
|
+
"@artisan-commerce/types": "0.14.0-canary.35",
|
|
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 = "7331170fdb7f9e36e27b6c1d603346449c395a8e";
|
|
116
116
|
var packageJSON = {
|
|
117
117
|
name: name,
|
|
118
118
|
description: description,
|
|
@@ -13595,11 +13595,11 @@ var __spreadValues = (a, b) => {
|
|
|
13595
13595
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
13596
13596
|
const updateActiveVendor = (vendor) => {
|
|
13597
13597
|
const vendorType = typeof vendor;
|
|
13598
|
-
if (vendorType !== "
|
|
13599
|
-
return logMessage("The type of vendor must be a
|
|
13598
|
+
if (vendorType !== "string" && vendor !== -1 && vendorType !== "object" && vendorType !== "undefined") {
|
|
13599
|
+
return logMessage("The type of vendor must be a string, -1 or Vendor type", "severe");
|
|
13600
13600
|
}
|
|
13601
13601
|
const oldState = getState$1();
|
|
13602
|
-
if (typeof vendor === "
|
|
13602
|
+
if (typeof vendor === "string" || typeof vendor === "undefined" || vendor === -1) {
|
|
13603
13603
|
setState(__spreadProps(__spreadValues({}, oldState), {
|
|
13604
13604
|
activeVendor: vendor,
|
|
13605
13605
|
meta: __spreadProps(__spreadValues({}, oldState.meta), { vendorName: void 0, vendorId: vendor })
|