@artisan-commerce/analytics-web 0.2.0-canary.98 → 0.2.0-canary.99
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.cjs.js +3 -2
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +4 -3
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +3 -2
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/bundle.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { snakeCase } from 'snake-case';
|
|
2
|
-
import {
|
|
2
|
+
import { getShoppingCartProducts, getShoppingCartTotal } from '@artisan-commerce/shopping-cart-core';
|
|
3
3
|
import { getProductTotals } from '@artisan-commerce/products';
|
|
4
4
|
|
|
5
5
|
var __defProp$41 = Object.defineProperty;
|
|
@@ -50,7 +50,7 @@ State$1._instance = null;
|
|
|
50
50
|
|
|
51
51
|
var name = "@artisan-commerce/analytics-web";
|
|
52
52
|
var description = "Artisn commerce analytics web library";
|
|
53
|
-
var version = "0.2.0-canary.
|
|
53
|
+
var version = "0.2.0-canary.98";
|
|
54
54
|
var main = "./dist/bundle.cjs.js";
|
|
55
55
|
var module = "./dist/bundle.esm.js";
|
|
56
56
|
var types = "./dist/bundle.d.ts";
|
|
@@ -821,7 +821,8 @@ const postFacebookConversion = async (config) => {
|
|
|
821
821
|
const { countryISOCode, fbAccessToken, fbPixelId } = config;
|
|
822
822
|
const { platform = "web" } = customData != null ? customData : {};
|
|
823
823
|
const { debug } = State().state;
|
|
824
|
-
const selectedHeaders =
|
|
824
|
+
const selectedHeaders = new Headers();
|
|
825
|
+
selectedHeaders.set("Content-Type", "application/json");
|
|
825
826
|
selectedHeaders.set("Platform", platform);
|
|
826
827
|
selectedHeaders.set("Authorization", authToken);
|
|
827
828
|
const url = `${apiURL}/api/fb-conversion-api/conversions-api`;
|