@blotoutio/edgetag-sdk-js 1.22.2 → 1.22.4
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 +9 -3
- package/index.mjs +9 -3
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -222,7 +222,7 @@ const isoCountries = new Map([
|
|
|
222
222
|
['FO', 'Faroe Islands'],
|
|
223
223
|
['FR', 'France'],
|
|
224
224
|
['GA', 'Gabon'],
|
|
225
|
-
['GB', '
|
|
225
|
+
['GB', 'Great Britain'],
|
|
226
226
|
['GD', 'Grenada'],
|
|
227
227
|
['GE', 'Georgia'],
|
|
228
228
|
['GF', 'French Guiana'],
|
|
@@ -377,7 +377,7 @@ const isoCountries = new Map([
|
|
|
377
377
|
['TZ', 'Tanzania, United Republic of'],
|
|
378
378
|
['UA', 'Ukraine'],
|
|
379
379
|
['UG', 'Uganda'],
|
|
380
|
-
['UK', 'United Kingdom'],
|
|
380
|
+
['UK', 'United Kingdom of Great Britain and Northern Ireland'],
|
|
381
381
|
['UM', 'United States Minor Outlying Islands'],
|
|
382
382
|
['US', 'United States of America'],
|
|
383
383
|
['UY', 'Uruguay'],
|
|
@@ -493,6 +493,10 @@ const doesGeoRequestMatchList = (requestCountry, requestRegion, isEUCountry, geo
|
|
|
493
493
|
if (isEUCountry) {
|
|
494
494
|
entries.push('EU');
|
|
495
495
|
}
|
|
496
|
+
// Add UK for Great britain
|
|
497
|
+
if (requestCountry === 'GB') {
|
|
498
|
+
entries.push('UK');
|
|
499
|
+
}
|
|
496
500
|
if (parsed.include.size &&
|
|
497
501
|
entries.every((entry) => !parsed.include.has(entry))) {
|
|
498
502
|
return false;
|
|
@@ -948,7 +952,7 @@ const getStandardPayload = (destination, payload) => {
|
|
|
948
952
|
referrer: getReferrer(destination),
|
|
949
953
|
search: getSearch(destination),
|
|
950
954
|
locale: getLocale(),
|
|
951
|
-
sdkVersion: "1.22.
|
|
955
|
+
sdkVersion: "1.22.4" ,
|
|
952
956
|
...(payload || {}),
|
|
953
957
|
};
|
|
954
958
|
let storage = {};
|
|
@@ -1629,6 +1633,8 @@ const onReady = async (data) => {
|
|
|
1629
1633
|
sessionId: data.session.sessionId,
|
|
1630
1634
|
isNewUser: data.isNewUser,
|
|
1631
1635
|
isNewSession: data.session.isNewSession,
|
|
1636
|
+
consent: data.consent,
|
|
1637
|
+
consentSetting: data.consentSetting,
|
|
1632
1638
|
};
|
|
1633
1639
|
resolved.add(callbackData);
|
|
1634
1640
|
await Promise.all([...callbacks].map(mapData(callbackData)));
|
package/index.mjs
CHANGED
|
@@ -220,7 +220,7 @@ const isoCountries = new Map([
|
|
|
220
220
|
['FO', 'Faroe Islands'],
|
|
221
221
|
['FR', 'France'],
|
|
222
222
|
['GA', 'Gabon'],
|
|
223
|
-
['GB', '
|
|
223
|
+
['GB', 'Great Britain'],
|
|
224
224
|
['GD', 'Grenada'],
|
|
225
225
|
['GE', 'Georgia'],
|
|
226
226
|
['GF', 'French Guiana'],
|
|
@@ -375,7 +375,7 @@ const isoCountries = new Map([
|
|
|
375
375
|
['TZ', 'Tanzania, United Republic of'],
|
|
376
376
|
['UA', 'Ukraine'],
|
|
377
377
|
['UG', 'Uganda'],
|
|
378
|
-
['UK', 'United Kingdom'],
|
|
378
|
+
['UK', 'United Kingdom of Great Britain and Northern Ireland'],
|
|
379
379
|
['UM', 'United States Minor Outlying Islands'],
|
|
380
380
|
['US', 'United States of America'],
|
|
381
381
|
['UY', 'Uruguay'],
|
|
@@ -491,6 +491,10 @@ const doesGeoRequestMatchList = (requestCountry, requestRegion, isEUCountry, geo
|
|
|
491
491
|
if (isEUCountry) {
|
|
492
492
|
entries.push('EU');
|
|
493
493
|
}
|
|
494
|
+
// Add UK for Great britain
|
|
495
|
+
if (requestCountry === 'GB') {
|
|
496
|
+
entries.push('UK');
|
|
497
|
+
}
|
|
494
498
|
if (parsed.include.size &&
|
|
495
499
|
entries.every((entry) => !parsed.include.has(entry))) {
|
|
496
500
|
return false;
|
|
@@ -946,7 +950,7 @@ const getStandardPayload = (destination, payload) => {
|
|
|
946
950
|
referrer: getReferrer(destination),
|
|
947
951
|
search: getSearch(destination),
|
|
948
952
|
locale: getLocale(),
|
|
949
|
-
sdkVersion: "1.22.
|
|
953
|
+
sdkVersion: "1.22.4" ,
|
|
950
954
|
...(payload || {}),
|
|
951
955
|
};
|
|
952
956
|
let storage = {};
|
|
@@ -1627,6 +1631,8 @@ const onReady = async (data) => {
|
|
|
1627
1631
|
sessionId: data.session.sessionId,
|
|
1628
1632
|
isNewUser: data.isNewUser,
|
|
1629
1633
|
isNewSession: data.session.isNewSession,
|
|
1634
|
+
consent: data.consent,
|
|
1635
|
+
consentSetting: data.consentSetting,
|
|
1630
1636
|
};
|
|
1631
1637
|
resolved.add(callbackData);
|
|
1632
1638
|
await Promise.all([...callbacks].map(mapData(callbackData)));
|