@blotoutio/edgetag-sdk-js 1.57.1 → 1.58.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 +5 -2
- package/index.mjs +5 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -566,7 +566,10 @@ const isEuUkRegion = (country, isEURequest) => {
|
|
|
566
566
|
* visitors on normal consent unless the merchant explicitly opts those regions
|
|
567
567
|
* in. Returns whether a server-side event should fire for a non-consented user.
|
|
568
568
|
*/
|
|
569
|
-
const greySwitchAllowsServerEvent = ({ greySwitch, greySwitchEuUk, country, isEURequest, }) => {
|
|
569
|
+
const greySwitchAllowsServerEvent = ({ greySwitch, greySwitchEuUk, country, isEURequest, isGPC, }) => {
|
|
570
|
+
if (isGPC) {
|
|
571
|
+
return false;
|
|
572
|
+
}
|
|
570
573
|
if (!greySwitch) {
|
|
571
574
|
return false;
|
|
572
575
|
}
|
|
@@ -1538,7 +1541,7 @@ const getStandardPayload = (destination, payload) => {
|
|
|
1538
1541
|
referrer: getReferrer(destination),
|
|
1539
1542
|
search: getSearch(destination),
|
|
1540
1543
|
locale: getLocale(),
|
|
1541
|
-
sdkVersion: "1.
|
|
1544
|
+
sdkVersion: "1.58.1" ,
|
|
1542
1545
|
...(payload || {}),
|
|
1543
1546
|
};
|
|
1544
1547
|
let storage = {};
|
package/index.mjs
CHANGED
|
@@ -564,7 +564,10 @@ const isEuUkRegion = (country, isEURequest) => {
|
|
|
564
564
|
* visitors on normal consent unless the merchant explicitly opts those regions
|
|
565
565
|
* in. Returns whether a server-side event should fire for a non-consented user.
|
|
566
566
|
*/
|
|
567
|
-
const greySwitchAllowsServerEvent = ({ greySwitch, greySwitchEuUk, country, isEURequest, }) => {
|
|
567
|
+
const greySwitchAllowsServerEvent = ({ greySwitch, greySwitchEuUk, country, isEURequest, isGPC, }) => {
|
|
568
|
+
if (isGPC) {
|
|
569
|
+
return false;
|
|
570
|
+
}
|
|
568
571
|
if (!greySwitch) {
|
|
569
572
|
return false;
|
|
570
573
|
}
|
|
@@ -1536,7 +1539,7 @@ const getStandardPayload = (destination, payload) => {
|
|
|
1536
1539
|
referrer: getReferrer(destination),
|
|
1537
1540
|
search: getSearch(destination),
|
|
1538
1541
|
locale: getLocale(),
|
|
1539
|
-
sdkVersion: "1.
|
|
1542
|
+
sdkVersion: "1.58.1" ,
|
|
1540
1543
|
...(payload || {}),
|
|
1541
1544
|
};
|
|
1542
1545
|
let storage = {};
|