@blotoutio/providers-bing-sdk 1.63.2 → 1.64.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 +26 -2
- package/index.js +26 -2
- package/index.mjs +26 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -425,7 +425,31 @@ const usStates = new Map([
|
|
|
425
425
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
426
426
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
427
427
|
]);
|
|
428
|
-
|
|
428
|
+
/**
|
|
429
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
430
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
431
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
432
|
+
*/
|
|
433
|
+
const caProvinces = new Map([
|
|
434
|
+
['CA-AB', 'Alberta'],
|
|
435
|
+
['CA-BC', 'British Columbia'],
|
|
436
|
+
['CA-MB', 'Manitoba'],
|
|
437
|
+
['CA-NB', 'New Brunswick'],
|
|
438
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
439
|
+
['CA-NS', 'Nova Scotia'],
|
|
440
|
+
['CA-NT', 'Northwest Territories'],
|
|
441
|
+
['CA-NU', 'Nunavut'],
|
|
442
|
+
['CA-ON', 'Ontario'],
|
|
443
|
+
['CA-PE', 'Prince Edward Island'],
|
|
444
|
+
['CA-QC', 'Quebec'],
|
|
445
|
+
['CA-SK', 'Saskatchewan'],
|
|
446
|
+
['CA-YT', 'Yukon'],
|
|
447
|
+
]);
|
|
448
|
+
new Set([
|
|
449
|
+
...isoCountries.keys(),
|
|
450
|
+
...usStates.keys(),
|
|
451
|
+
...caProvinces.keys(),
|
|
452
|
+
]);
|
|
429
453
|
|
|
430
454
|
/**
|
|
431
455
|
* Exact utm_source normalization (lowercase key → canonical name).
|
|
@@ -694,7 +718,7 @@ const handleTag = ({ data, eventName, manifestVariables, }) => {
|
|
|
694
718
|
|
|
695
719
|
const tag = ({ data, eventName, manifestVariables }) => {
|
|
696
720
|
const payload = {
|
|
697
|
-
sdkVersion: "1.
|
|
721
|
+
sdkVersion: "1.64.0" ,
|
|
698
722
|
};
|
|
699
723
|
if (window.edgeUET && manifestVariables['enableBrowser'] === '1') {
|
|
700
724
|
handleTag({ data, eventName, manifestVariables });
|
package/index.js
CHANGED
|
@@ -426,7 +426,31 @@ var ProvidersBingSdk = (function () {
|
|
|
426
426
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
427
427
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
428
428
|
]);
|
|
429
|
-
|
|
429
|
+
/**
|
|
430
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
431
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
432
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
433
|
+
*/
|
|
434
|
+
const caProvinces = new Map([
|
|
435
|
+
['CA-AB', 'Alberta'],
|
|
436
|
+
['CA-BC', 'British Columbia'],
|
|
437
|
+
['CA-MB', 'Manitoba'],
|
|
438
|
+
['CA-NB', 'New Brunswick'],
|
|
439
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
440
|
+
['CA-NS', 'Nova Scotia'],
|
|
441
|
+
['CA-NT', 'Northwest Territories'],
|
|
442
|
+
['CA-NU', 'Nunavut'],
|
|
443
|
+
['CA-ON', 'Ontario'],
|
|
444
|
+
['CA-PE', 'Prince Edward Island'],
|
|
445
|
+
['CA-QC', 'Quebec'],
|
|
446
|
+
['CA-SK', 'Saskatchewan'],
|
|
447
|
+
['CA-YT', 'Yukon'],
|
|
448
|
+
]);
|
|
449
|
+
new Set([
|
|
450
|
+
...isoCountries.keys(),
|
|
451
|
+
...usStates.keys(),
|
|
452
|
+
...caProvinces.keys(),
|
|
453
|
+
]);
|
|
430
454
|
|
|
431
455
|
/**
|
|
432
456
|
* Exact utm_source normalization (lowercase key → canonical name).
|
|
@@ -695,7 +719,7 @@ var ProvidersBingSdk = (function () {
|
|
|
695
719
|
|
|
696
720
|
const tag = ({ data, eventName, manifestVariables }) => {
|
|
697
721
|
const payload = {
|
|
698
|
-
sdkVersion: "1.
|
|
722
|
+
sdkVersion: "1.64.0" ,
|
|
699
723
|
};
|
|
700
724
|
if (window.edgeUET && manifestVariables['enableBrowser'] === '1') {
|
|
701
725
|
handleTag({ data, eventName, manifestVariables });
|
package/index.mjs
CHANGED
|
@@ -423,7 +423,31 @@ const usStates = new Map([
|
|
|
423
423
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
424
424
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
425
425
|
]);
|
|
426
|
-
|
|
426
|
+
/**
|
|
427
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
428
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
429
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
430
|
+
*/
|
|
431
|
+
const caProvinces = new Map([
|
|
432
|
+
['CA-AB', 'Alberta'],
|
|
433
|
+
['CA-BC', 'British Columbia'],
|
|
434
|
+
['CA-MB', 'Manitoba'],
|
|
435
|
+
['CA-NB', 'New Brunswick'],
|
|
436
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
437
|
+
['CA-NS', 'Nova Scotia'],
|
|
438
|
+
['CA-NT', 'Northwest Territories'],
|
|
439
|
+
['CA-NU', 'Nunavut'],
|
|
440
|
+
['CA-ON', 'Ontario'],
|
|
441
|
+
['CA-PE', 'Prince Edward Island'],
|
|
442
|
+
['CA-QC', 'Quebec'],
|
|
443
|
+
['CA-SK', 'Saskatchewan'],
|
|
444
|
+
['CA-YT', 'Yukon'],
|
|
445
|
+
]);
|
|
446
|
+
new Set([
|
|
447
|
+
...isoCountries.keys(),
|
|
448
|
+
...usStates.keys(),
|
|
449
|
+
...caProvinces.keys(),
|
|
450
|
+
]);
|
|
427
451
|
|
|
428
452
|
/**
|
|
429
453
|
* Exact utm_source normalization (lowercase key → canonical name).
|
|
@@ -692,7 +716,7 @@ const handleTag = ({ data, eventName, manifestVariables, }) => {
|
|
|
692
716
|
|
|
693
717
|
const tag = ({ data, eventName, manifestVariables }) => {
|
|
694
718
|
const payload = {
|
|
695
|
-
sdkVersion: "1.
|
|
719
|
+
sdkVersion: "1.64.0" ,
|
|
696
720
|
};
|
|
697
721
|
if (window.edgeUET && manifestVariables['enableBrowser'] === '1') {
|
|
698
722
|
handleTag({ data, eventName, manifestVariables });
|