@artisan-commerce/analytics-rn 0.3.0-canary.117 → 0.3.0-canary.119

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.
Files changed (2) hide show
  1. package/dist/bundle.mjs +8 -7
  2. package/package.json +3 -3
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.117";
56
+ var version = "0.3.0-canary.119";
57
57
  var type = "module";
58
58
  var main = "./dist/bundle.mjs";
59
59
  var module = "./dist/bundle.mjs";
@@ -89,7 +89,7 @@ var dependencies = {
89
89
  };
90
90
  var devDependencies = {
91
91
  "@artisan-commerce/products": "0.9.0-canary.69",
92
- "@artisan-commerce/shopping-cart-core": "0.12.0-canary.103",
92
+ "@artisan-commerce/shopping-cart-core": "0.12.0-canary.104",
93
93
  "@artisan-commerce/state": "0.3.0-canary.18",
94
94
  "@artisan-commerce/types": "0.14.0-canary.46",
95
95
  "@babel/core": "^7.13.15",
@@ -136,7 +136,7 @@ var nx = {
136
136
  }
137
137
  }
138
138
  };
139
- var gitHead = "30abaf04076f752ed19cda345d165d8b9fb6d280";
139
+ var gitHead = "d6efd7e8485177c67b2e27fa2bf67d020d6c6c33";
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
- return __spreadProps$2v(__spreadValues$3W({}, product), {
841
- id: product.productId,
842
- quantity: product == null ? void 0 : product.amount
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);
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.117",
4
+ "version": "0.3.0-canary.119",
5
5
  "type": "module",
6
6
  "main": "./dist/bundle.mjs",
7
7
  "module": "./dist/bundle.mjs",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@artisan-commerce/products": "0.9.0-canary.69",
40
- "@artisan-commerce/shopping-cart-core": "0.12.0-canary.103",
40
+ "@artisan-commerce/shopping-cart-core": "0.12.0-canary.104",
41
41
  "@artisan-commerce/state": "0.3.0-canary.18",
42
42
  "@artisan-commerce/types": "0.14.0-canary.46",
43
43
  "@babel/core": "^7.13.15",
@@ -84,5 +84,5 @@
84
84
  }
85
85
  }
86
86
  },
87
- "gitHead": "30abaf04076f752ed19cda345d165d8b9fb6d280"
87
+ "gitHead": "d6efd7e8485177c67b2e27fa2bf67d020d6c6c33"
88
88
  }