@blotoutio/providers-facebook-sdk 0.10.4 → 0.10.6

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/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -97,6 +97,9 @@ var ProvidersFacebookSdk = (function () {
97
97
  }
98
98
  return content;
99
99
  });
100
+ if (data['contents'] && data['contents'][0] && data['contents'][0].type) {
101
+ payload['content_type'] = data['contents'][0].type;
102
+ }
100
103
  }
101
104
  if (data['contents'] || data['ids']) {
102
105
  const contents = data['contents'] || data['ids'];
@@ -108,7 +111,7 @@ var ProvidersFacebookSdk = (function () {
108
111
  };
109
112
  const tag = ({ data, eventName, manifestVariables, eventId }) => {
110
113
  const payload = {
111
- sdkVersion: "0.10.4" ,
114
+ sdkVersion: "0.10.6" ,
112
115
  };
113
116
  if (window.fbq && manifestVariables['enableBrowser'] === '1') {
114
117
  window.fbq('track', eventName, prepareData(data, manifestVariables['variantId'] === '1'), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-facebook-sdk",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
4
4
  "description": "Facebook Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",