@blotoutio/providers-pinterest-sdk 0.34.0 → 0.35.0

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 CHANGED
@@ -85,7 +85,7 @@ const prepareData = (data, idMapping) => {
85
85
  if (data['currency']) {
86
86
  payload['currency'] = data['currency'];
87
87
  }
88
- if (data['value']) {
88
+ if (data['value'] || data['value'] === 0) {
89
89
  payload['value'] = data['value'];
90
90
  }
91
91
  if (data['search']) {
@@ -116,7 +116,7 @@ const prepareData = (data, idMapping) => {
116
116
  if (item.category) {
117
117
  product.product_category = item.category;
118
118
  }
119
- if (item.item_price) {
119
+ if (item.item_price || item.item_price === 0) {
120
120
  product.product_price = item.item_price;
121
121
  }
122
122
  if (item.quantity) {
@@ -145,7 +145,7 @@ const prepareData = (data, idMapping) => {
145
145
  return payload;
146
146
  };
147
147
  const tag = ({ data, eventName, manifestVariables, eventId, executionContext, }) => {
148
- const result = { sdkVersion: "0.34.0" };
148
+ const result = { sdkVersion: "0.35.0" };
149
149
  if (executionContext.get('pixelFired')) {
150
150
  return result;
151
151
  }
package/index.js CHANGED
@@ -86,7 +86,7 @@ var ProvidersPinterestSdk = (function () {
86
86
  if (data['currency']) {
87
87
  payload['currency'] = data['currency'];
88
88
  }
89
- if (data['value']) {
89
+ if (data['value'] || data['value'] === 0) {
90
90
  payload['value'] = data['value'];
91
91
  }
92
92
  if (data['search']) {
@@ -117,7 +117,7 @@ var ProvidersPinterestSdk = (function () {
117
117
  if (item.category) {
118
118
  product.product_category = item.category;
119
119
  }
120
- if (item.item_price) {
120
+ if (item.item_price || item.item_price === 0) {
121
121
  product.product_price = item.item_price;
122
122
  }
123
123
  if (item.quantity) {
@@ -146,7 +146,7 @@ var ProvidersPinterestSdk = (function () {
146
146
  return payload;
147
147
  };
148
148
  const tag = ({ data, eventName, manifestVariables, eventId, executionContext, }) => {
149
- const result = { sdkVersion: "0.34.0" };
149
+ const result = { sdkVersion: "0.35.0" };
150
150
  if (executionContext.get('pixelFired')) {
151
151
  return result;
152
152
  }
package/index.mjs CHANGED
@@ -83,7 +83,7 @@ const prepareData = (data, idMapping) => {
83
83
  if (data['currency']) {
84
84
  payload['currency'] = data['currency'];
85
85
  }
86
- if (data['value']) {
86
+ if (data['value'] || data['value'] === 0) {
87
87
  payload['value'] = data['value'];
88
88
  }
89
89
  if (data['search']) {
@@ -114,7 +114,7 @@ const prepareData = (data, idMapping) => {
114
114
  if (item.category) {
115
115
  product.product_category = item.category;
116
116
  }
117
- if (item.item_price) {
117
+ if (item.item_price || item.item_price === 0) {
118
118
  product.product_price = item.item_price;
119
119
  }
120
120
  if (item.quantity) {
@@ -143,7 +143,7 @@ const prepareData = (data, idMapping) => {
143
143
  return payload;
144
144
  };
145
145
  const tag = ({ data, eventName, manifestVariables, eventId, executionContext, }) => {
146
- const result = { sdkVersion: "0.34.0" };
146
+ const result = { sdkVersion: "0.35.0" };
147
147
  if (executionContext.get('pixelFired')) {
148
148
  return result;
149
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-pinterest-sdk",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "description": "Pinterest Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",