@blotoutio/providers-facebook-sdk 0.40.0 → 0.41.1
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/index.cjs.js +7 -3
- package/index.js +7 -3
- package/index.mjs +7 -3
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -31,7 +31,9 @@ const snippet = () => {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
const init = ({ manifest, userId }) => {
|
|
34
|
-
if (!manifest.variables ||
|
|
34
|
+
if (!manifest.variables ||
|
|
35
|
+
!manifest.variables['pixelId'] ||
|
|
36
|
+
manifest.variables['enableBrowser'] !== '1') {
|
|
35
37
|
return;
|
|
36
38
|
}
|
|
37
39
|
snippet();
|
|
@@ -124,9 +126,11 @@ const prepareData = (data, productIdMapping) => {
|
|
|
124
126
|
};
|
|
125
127
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
126
128
|
const payload = {
|
|
127
|
-
sdkVersion: "0.
|
|
129
|
+
sdkVersion: "0.41.1" ,
|
|
128
130
|
};
|
|
129
|
-
if (window.fbq &&
|
|
131
|
+
if (window.fbq &&
|
|
132
|
+
!!manifestVariables['pixelId'] &&
|
|
133
|
+
manifestVariables['enableBrowser'] === '1') {
|
|
130
134
|
const eventData = data['skipTransformation'] === true
|
|
131
135
|
? data
|
|
132
136
|
: prepareData(data, getProductMappingModel(manifestVariables['productIdMapping'], manifestVariables['variantId']));
|
package/index.js
CHANGED
|
@@ -32,7 +32,9 @@ var ProvidersFacebookSdk = (function () {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
const init = ({ manifest, userId }) => {
|
|
35
|
-
if (!manifest.variables ||
|
|
35
|
+
if (!manifest.variables ||
|
|
36
|
+
!manifest.variables['pixelId'] ||
|
|
37
|
+
manifest.variables['enableBrowser'] !== '1') {
|
|
36
38
|
return;
|
|
37
39
|
}
|
|
38
40
|
snippet();
|
|
@@ -125,9 +127,11 @@ var ProvidersFacebookSdk = (function () {
|
|
|
125
127
|
};
|
|
126
128
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
127
129
|
const payload = {
|
|
128
|
-
sdkVersion: "0.
|
|
130
|
+
sdkVersion: "0.41.1" ,
|
|
129
131
|
};
|
|
130
|
-
if (window.fbq &&
|
|
132
|
+
if (window.fbq &&
|
|
133
|
+
!!manifestVariables['pixelId'] &&
|
|
134
|
+
manifestVariables['enableBrowser'] === '1') {
|
|
131
135
|
const eventData = data['skipTransformation'] === true
|
|
132
136
|
? data
|
|
133
137
|
: prepareData(data, getProductMappingModel(manifestVariables['productIdMapping'], manifestVariables['variantId']));
|
package/index.mjs
CHANGED
|
@@ -29,7 +29,9 @@ const snippet = () => {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
const init = ({ manifest, userId }) => {
|
|
32
|
-
if (!manifest.variables ||
|
|
32
|
+
if (!manifest.variables ||
|
|
33
|
+
!manifest.variables['pixelId'] ||
|
|
34
|
+
manifest.variables['enableBrowser'] !== '1') {
|
|
33
35
|
return;
|
|
34
36
|
}
|
|
35
37
|
snippet();
|
|
@@ -122,9 +124,11 @@ const prepareData = (data, productIdMapping) => {
|
|
|
122
124
|
};
|
|
123
125
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
124
126
|
const payload = {
|
|
125
|
-
sdkVersion: "0.
|
|
127
|
+
sdkVersion: "0.41.1" ,
|
|
126
128
|
};
|
|
127
|
-
if (window.fbq &&
|
|
129
|
+
if (window.fbq &&
|
|
130
|
+
!!manifestVariables['pixelId'] &&
|
|
131
|
+
manifestVariables['enableBrowser'] === '1') {
|
|
128
132
|
const eventData = data['skipTransformation'] === true
|
|
129
133
|
? data
|
|
130
134
|
: prepareData(data, getProductMappingModel(manifestVariables['productIdMapping'], manifestVariables['variantId']));
|