@blotoutio/edgetag-sdk-js 1.47.2 → 1.48.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 +5 -5
- package/index.mjs +5 -5
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -1310,7 +1310,7 @@ const getStandardPayload = (destination, payload) => {
|
|
|
1310
1310
|
referrer: getReferrer(destination),
|
|
1311
1311
|
search: getSearch(destination),
|
|
1312
1312
|
locale: getLocale(),
|
|
1313
|
-
sdkVersion: "1.
|
|
1313
|
+
sdkVersion: "1.48.0" ,
|
|
1314
1314
|
...(payload || {}),
|
|
1315
1315
|
};
|
|
1316
1316
|
let storage = {};
|
|
@@ -1645,12 +1645,12 @@ const processTag = async (destination, eventName, data = {}, providers, options)
|
|
|
1645
1645
|
continue;
|
|
1646
1646
|
}
|
|
1647
1647
|
let providerEventName = currentEventName;
|
|
1648
|
-
let
|
|
1648
|
+
let channelData = data;
|
|
1649
1649
|
if (plugins.length > 0) {
|
|
1650
1650
|
const channelResult = await runPluginHook(plugins, 'tagChannel', {
|
|
1651
1651
|
payload: {
|
|
1652
1652
|
eventName: providerEventName,
|
|
1653
|
-
data:
|
|
1653
|
+
data: channelData,
|
|
1654
1654
|
eventId,
|
|
1655
1655
|
},
|
|
1656
1656
|
settings: {
|
|
@@ -1669,7 +1669,7 @@ const processTag = async (destination, eventName, data = {}, providers, options)
|
|
|
1669
1669
|
if (channelResult.skip)
|
|
1670
1670
|
continue;
|
|
1671
1671
|
providerEventName = channelResult.eventName;
|
|
1672
|
-
|
|
1672
|
+
channelData = channelResult.data;
|
|
1673
1673
|
}
|
|
1674
1674
|
const variables = getProviderVariables(destination, pkg.name);
|
|
1675
1675
|
const result = {};
|
|
@@ -1688,7 +1688,7 @@ const processTag = async (destination, eventName, data = {}, providers, options)
|
|
|
1688
1688
|
continue;
|
|
1689
1689
|
}
|
|
1690
1690
|
let instanceEventName = providerEventName;
|
|
1691
|
-
let instanceData =
|
|
1691
|
+
let instanceData = channelData;
|
|
1692
1692
|
if (plugins.length > 0) {
|
|
1693
1693
|
const instanceResult = await runPluginHook(plugins, 'tagInstance', {
|
|
1694
1694
|
payload: {
|
package/index.mjs
CHANGED
|
@@ -1308,7 +1308,7 @@ const getStandardPayload = (destination, payload) => {
|
|
|
1308
1308
|
referrer: getReferrer(destination),
|
|
1309
1309
|
search: getSearch(destination),
|
|
1310
1310
|
locale: getLocale(),
|
|
1311
|
-
sdkVersion: "1.
|
|
1311
|
+
sdkVersion: "1.48.0" ,
|
|
1312
1312
|
...(payload || {}),
|
|
1313
1313
|
};
|
|
1314
1314
|
let storage = {};
|
|
@@ -1643,12 +1643,12 @@ const processTag = async (destination, eventName, data = {}, providers, options)
|
|
|
1643
1643
|
continue;
|
|
1644
1644
|
}
|
|
1645
1645
|
let providerEventName = currentEventName;
|
|
1646
|
-
let
|
|
1646
|
+
let channelData = data;
|
|
1647
1647
|
if (plugins.length > 0) {
|
|
1648
1648
|
const channelResult = await runPluginHook(plugins, 'tagChannel', {
|
|
1649
1649
|
payload: {
|
|
1650
1650
|
eventName: providerEventName,
|
|
1651
|
-
data:
|
|
1651
|
+
data: channelData,
|
|
1652
1652
|
eventId,
|
|
1653
1653
|
},
|
|
1654
1654
|
settings: {
|
|
@@ -1667,7 +1667,7 @@ const processTag = async (destination, eventName, data = {}, providers, options)
|
|
|
1667
1667
|
if (channelResult.skip)
|
|
1668
1668
|
continue;
|
|
1669
1669
|
providerEventName = channelResult.eventName;
|
|
1670
|
-
|
|
1670
|
+
channelData = channelResult.data;
|
|
1671
1671
|
}
|
|
1672
1672
|
const variables = getProviderVariables(destination, pkg.name);
|
|
1673
1673
|
const result = {};
|
|
@@ -1686,7 +1686,7 @@ const processTag = async (destination, eventName, data = {}, providers, options)
|
|
|
1686
1686
|
continue;
|
|
1687
1687
|
}
|
|
1688
1688
|
let instanceEventName = providerEventName;
|
|
1689
|
-
let instanceData =
|
|
1689
|
+
let instanceData = channelData;
|
|
1690
1690
|
if (plugins.length > 0) {
|
|
1691
1691
|
const instanceResult = await runPluginHook(plugins, 'tagInstance', {
|
|
1692
1692
|
payload: {
|