@artisan-commerce/analytics-rn 0.3.0-canary.116 → 0.3.0-canary.118
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/dist/bundle.mjs +7 -7
- package/package.json +2 -2
- package/dist/bundle.cjs +0 -14309
- package/dist/bundle.cjs.map +0 -1
- package/dist/bundle.mjs.map +0 -1
package/dist/bundle.mjs
CHANGED
|
@@ -53,7 +53,7 @@ State$1._instance = null;
|
|
|
53
53
|
|
|
54
54
|
var name = "@artisan-commerce/analytics-rn";
|
|
55
55
|
var description = "Artisn commerce analytics react native library";
|
|
56
|
-
var version = "0.3.0-canary.
|
|
56
|
+
var version = "0.3.0-canary.118";
|
|
57
57
|
var type = "module";
|
|
58
58
|
var main = "./dist/bundle.mjs";
|
|
59
59
|
var module = "./dist/bundle.mjs";
|
|
@@ -136,7 +136,7 @@ var nx = {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
|
-
var gitHead = "
|
|
139
|
+
var gitHead = "6ba2000eb0646da55aea5b47bb5ddecde1cc3516";
|
|
140
140
|
var packageJSON = {
|
|
141
141
|
name: name,
|
|
142
142
|
description: description,
|
|
@@ -837,10 +837,11 @@ const getProductContent = (product) => {
|
|
|
837
837
|
return `${product.name}:${totals.netPrice}`;
|
|
838
838
|
};
|
|
839
839
|
const getProductContentForConversionAPI = (product) => {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
}
|
|
840
|
+
const { productId: id } = product;
|
|
841
|
+
const totals = getProductTotals(product);
|
|
842
|
+
const { netPrice } = totals;
|
|
843
|
+
const facebookItem = { id, item_price: netPrice };
|
|
844
|
+
return JSON.stringify(facebookItem);
|
|
844
845
|
};
|
|
845
846
|
const mapProductsToGoogleItems = (shoppingCart, currency) => {
|
|
846
847
|
const products = getShoppingCartProducts(shoppingCart);
|
|
@@ -14301,4 +14302,3 @@ const updateActiveVendor = (vendor) => {
|
|
|
14301
14302
|
};
|
|
14302
14303
|
|
|
14303
14304
|
export { Providers, events, initAnalytics, updateActiveVendor };
|
|
14304
|
-
//# sourceMappingURL=bundle.mjs.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artisan-commerce/analytics-rn",
|
|
3
3
|
"description": "Artisn commerce analytics react native library",
|
|
4
|
-
"version": "0.3.0-canary.
|
|
4
|
+
"version": "0.3.0-canary.118",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/bundle.mjs",
|
|
7
7
|
"module": "./dist/bundle.mjs",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "6ba2000eb0646da55aea5b47bb5ddecde1cc3516"
|
|
88
88
|
}
|