@blotoutio/providers-facebook-sdk 0.34.0 → 0.35.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 +3 -3
- package/index.js +3 -3
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -62,7 +62,7 @@ const prepareData = (data, productIdMapping) => {
|
|
|
62
62
|
const payload = {
|
|
63
63
|
app: 'Blotout',
|
|
64
64
|
};
|
|
65
|
-
if (data['value']) {
|
|
65
|
+
if (data['value'] || data['value'] === 0) {
|
|
66
66
|
payload['value'] = data['value'];
|
|
67
67
|
}
|
|
68
68
|
if (data['currency']) {
|
|
@@ -99,7 +99,7 @@ const prepareData = (data, productIdMapping) => {
|
|
|
99
99
|
if (item.quantity) {
|
|
100
100
|
content['quantity'] = item.quantity;
|
|
101
101
|
}
|
|
102
|
-
if (item.item_price) {
|
|
102
|
+
if (item.item_price || item.item_price === 0) {
|
|
103
103
|
content['item_price'] = item.item_price;
|
|
104
104
|
}
|
|
105
105
|
if (item.category) {
|
|
@@ -124,7 +124,7 @@ const prepareData = (data, productIdMapping) => {
|
|
|
124
124
|
};
|
|
125
125
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
126
126
|
const payload = {
|
|
127
|
-
sdkVersion: "0.
|
|
127
|
+
sdkVersion: "0.35.1" ,
|
|
128
128
|
};
|
|
129
129
|
if (window.fbq && manifestVariables['enableBrowser'] === '1') {
|
|
130
130
|
const eventData = data['skipTransformation'] === true
|
package/index.js
CHANGED
|
@@ -63,7 +63,7 @@ var ProvidersFacebookSdk = (function () {
|
|
|
63
63
|
const payload = {
|
|
64
64
|
app: 'Blotout',
|
|
65
65
|
};
|
|
66
|
-
if (data['value']) {
|
|
66
|
+
if (data['value'] || data['value'] === 0) {
|
|
67
67
|
payload['value'] = data['value'];
|
|
68
68
|
}
|
|
69
69
|
if (data['currency']) {
|
|
@@ -100,7 +100,7 @@ var ProvidersFacebookSdk = (function () {
|
|
|
100
100
|
if (item.quantity) {
|
|
101
101
|
content['quantity'] = item.quantity;
|
|
102
102
|
}
|
|
103
|
-
if (item.item_price) {
|
|
103
|
+
if (item.item_price || item.item_price === 0) {
|
|
104
104
|
content['item_price'] = item.item_price;
|
|
105
105
|
}
|
|
106
106
|
if (item.category) {
|
|
@@ -125,7 +125,7 @@ var ProvidersFacebookSdk = (function () {
|
|
|
125
125
|
};
|
|
126
126
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
127
127
|
const payload = {
|
|
128
|
-
sdkVersion: "0.
|
|
128
|
+
sdkVersion: "0.35.1" ,
|
|
129
129
|
};
|
|
130
130
|
if (window.fbq && manifestVariables['enableBrowser'] === '1') {
|
|
131
131
|
const eventData = data['skipTransformation'] === true
|
package/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ const prepareData = (data, productIdMapping) => {
|
|
|
60
60
|
const payload = {
|
|
61
61
|
app: 'Blotout',
|
|
62
62
|
};
|
|
63
|
-
if (data['value']) {
|
|
63
|
+
if (data['value'] || data['value'] === 0) {
|
|
64
64
|
payload['value'] = data['value'];
|
|
65
65
|
}
|
|
66
66
|
if (data['currency']) {
|
|
@@ -97,7 +97,7 @@ const prepareData = (data, productIdMapping) => {
|
|
|
97
97
|
if (item.quantity) {
|
|
98
98
|
content['quantity'] = item.quantity;
|
|
99
99
|
}
|
|
100
|
-
if (item.item_price) {
|
|
100
|
+
if (item.item_price || item.item_price === 0) {
|
|
101
101
|
content['item_price'] = item.item_price;
|
|
102
102
|
}
|
|
103
103
|
if (item.category) {
|
|
@@ -122,7 +122,7 @@ const prepareData = (data, productIdMapping) => {
|
|
|
122
122
|
};
|
|
123
123
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
124
124
|
const payload = {
|
|
125
|
-
sdkVersion: "0.
|
|
125
|
+
sdkVersion: "0.35.1" ,
|
|
126
126
|
};
|
|
127
127
|
if (window.fbq && manifestVariables['enableBrowser'] === '1') {
|
|
128
128
|
const eventData = data['skipTransformation'] === true
|