@blotoutio/providers-facebook-sdk 1.4.0 → 1.6.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
@@ -47,6 +47,11 @@ const predefinedEvents = new Map([
47
47
  'Purchase_Other_Referral',
48
48
  {
49
49
  name: 'Purchase_Other_Referral',
50
+ dependencies: new Set([
51
+ 'Purchase_Organic_Google',
52
+ 'Purchase_Organic_Bing',
53
+ 'Purchase_Search_Other',
54
+ ]),
50
55
  },
51
56
  ],
52
57
  [
@@ -71,6 +76,7 @@ const predefinedEvents = new Map([
71
76
  'Purchase_Other',
72
77
  {
73
78
  name: 'Purchase_Other',
79
+ dependencies: new Set(['Purchase_Other_Referral']),
74
80
  },
75
81
  ],
76
82
  [
@@ -377,7 +383,7 @@ const prepareData = (data, productIdMapping) => {
377
383
  };
378
384
  const tag = ({ data, eventName, manifestVariables, eventId }) => {
379
385
  const payload = {
380
- sdkVersion: "1.4.0" ,
386
+ sdkVersion: "1.6.0" ,
381
387
  };
382
388
  if (window.fbq &&
383
389
  !!manifestVariables['pixelId'] &&
package/index.js CHANGED
@@ -48,6 +48,11 @@ var ProvidersFacebookSdk = (function () {
48
48
  'Purchase_Other_Referral',
49
49
  {
50
50
  name: 'Purchase_Other_Referral',
51
+ dependencies: new Set([
52
+ 'Purchase_Organic_Google',
53
+ 'Purchase_Organic_Bing',
54
+ 'Purchase_Search_Other',
55
+ ]),
51
56
  },
52
57
  ],
53
58
  [
@@ -72,6 +77,7 @@ var ProvidersFacebookSdk = (function () {
72
77
  'Purchase_Other',
73
78
  {
74
79
  name: 'Purchase_Other',
80
+ dependencies: new Set(['Purchase_Other_Referral']),
75
81
  },
76
82
  ],
77
83
  [
@@ -378,7 +384,7 @@ var ProvidersFacebookSdk = (function () {
378
384
  };
379
385
  const tag = ({ data, eventName, manifestVariables, eventId }) => {
380
386
  const payload = {
381
- sdkVersion: "1.4.0" ,
387
+ sdkVersion: "1.6.0" ,
382
388
  };
383
389
  if (window.fbq &&
384
390
  !!manifestVariables['pixelId'] &&
package/index.mjs CHANGED
@@ -45,6 +45,11 @@ const predefinedEvents = new Map([
45
45
  'Purchase_Other_Referral',
46
46
  {
47
47
  name: 'Purchase_Other_Referral',
48
+ dependencies: new Set([
49
+ 'Purchase_Organic_Google',
50
+ 'Purchase_Organic_Bing',
51
+ 'Purchase_Search_Other',
52
+ ]),
48
53
  },
49
54
  ],
50
55
  [
@@ -69,6 +74,7 @@ const predefinedEvents = new Map([
69
74
  'Purchase_Other',
70
75
  {
71
76
  name: 'Purchase_Other',
77
+ dependencies: new Set(['Purchase_Other_Referral']),
72
78
  },
73
79
  ],
74
80
  [
@@ -375,7 +381,7 @@ const prepareData = (data, productIdMapping) => {
375
381
  };
376
382
  const tag = ({ data, eventName, manifestVariables, eventId }) => {
377
383
  const payload = {
378
- sdkVersion: "1.4.0" ,
384
+ sdkVersion: "1.6.0" ,
379
385
  };
380
386
  if (window.fbq &&
381
387
  !!manifestVariables['pixelId'] &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-facebook-sdk",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "Facebook Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",