@blotoutio/providers-universal-ads-sdk 1.63.3 → 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 +25 -1
- package/index.js +25 -1
- package/index.mjs +25 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -434,7 +434,31 @@ const usStates = new Map([
|
|
|
434
434
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
435
435
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
436
436
|
]);
|
|
437
|
-
|
|
437
|
+
/**
|
|
438
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
439
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
440
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
441
|
+
*/
|
|
442
|
+
const caProvinces = new Map([
|
|
443
|
+
['CA-AB', 'Alberta'],
|
|
444
|
+
['CA-BC', 'British Columbia'],
|
|
445
|
+
['CA-MB', 'Manitoba'],
|
|
446
|
+
['CA-NB', 'New Brunswick'],
|
|
447
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
448
|
+
['CA-NS', 'Nova Scotia'],
|
|
449
|
+
['CA-NT', 'Northwest Territories'],
|
|
450
|
+
['CA-NU', 'Nunavut'],
|
|
451
|
+
['CA-ON', 'Ontario'],
|
|
452
|
+
['CA-PE', 'Prince Edward Island'],
|
|
453
|
+
['CA-QC', 'Quebec'],
|
|
454
|
+
['CA-SK', 'Saskatchewan'],
|
|
455
|
+
['CA-YT', 'Yukon'],
|
|
456
|
+
]);
|
|
457
|
+
new Set([
|
|
458
|
+
...isoCountries.keys(),
|
|
459
|
+
...usStates.keys(),
|
|
460
|
+
...caProvinces.keys(),
|
|
461
|
+
]);
|
|
438
462
|
|
|
439
463
|
const normalize = (urlString) => {
|
|
440
464
|
try {
|
package/index.js
CHANGED
|
@@ -435,7 +435,31 @@ var ProvidersUniversalAdsSdk = (function () {
|
|
|
435
435
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
436
436
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
437
437
|
]);
|
|
438
|
-
|
|
438
|
+
/**
|
|
439
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
440
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
441
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
442
|
+
*/
|
|
443
|
+
const caProvinces = new Map([
|
|
444
|
+
['CA-AB', 'Alberta'],
|
|
445
|
+
['CA-BC', 'British Columbia'],
|
|
446
|
+
['CA-MB', 'Manitoba'],
|
|
447
|
+
['CA-NB', 'New Brunswick'],
|
|
448
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
449
|
+
['CA-NS', 'Nova Scotia'],
|
|
450
|
+
['CA-NT', 'Northwest Territories'],
|
|
451
|
+
['CA-NU', 'Nunavut'],
|
|
452
|
+
['CA-ON', 'Ontario'],
|
|
453
|
+
['CA-PE', 'Prince Edward Island'],
|
|
454
|
+
['CA-QC', 'Quebec'],
|
|
455
|
+
['CA-SK', 'Saskatchewan'],
|
|
456
|
+
['CA-YT', 'Yukon'],
|
|
457
|
+
]);
|
|
458
|
+
new Set([
|
|
459
|
+
...isoCountries.keys(),
|
|
460
|
+
...usStates.keys(),
|
|
461
|
+
...caProvinces.keys(),
|
|
462
|
+
]);
|
|
439
463
|
|
|
440
464
|
const normalize = (urlString) => {
|
|
441
465
|
try {
|
package/index.mjs
CHANGED
|
@@ -432,7 +432,31 @@ const usStates = new Map([
|
|
|
432
432
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
433
433
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
434
434
|
]);
|
|
435
|
-
|
|
435
|
+
/**
|
|
436
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
437
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
438
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
439
|
+
*/
|
|
440
|
+
const caProvinces = new Map([
|
|
441
|
+
['CA-AB', 'Alberta'],
|
|
442
|
+
['CA-BC', 'British Columbia'],
|
|
443
|
+
['CA-MB', 'Manitoba'],
|
|
444
|
+
['CA-NB', 'New Brunswick'],
|
|
445
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
446
|
+
['CA-NS', 'Nova Scotia'],
|
|
447
|
+
['CA-NT', 'Northwest Territories'],
|
|
448
|
+
['CA-NU', 'Nunavut'],
|
|
449
|
+
['CA-ON', 'Ontario'],
|
|
450
|
+
['CA-PE', 'Prince Edward Island'],
|
|
451
|
+
['CA-QC', 'Quebec'],
|
|
452
|
+
['CA-SK', 'Saskatchewan'],
|
|
453
|
+
['CA-YT', 'Yukon'],
|
|
454
|
+
]);
|
|
455
|
+
new Set([
|
|
456
|
+
...isoCountries.keys(),
|
|
457
|
+
...usStates.keys(),
|
|
458
|
+
...caProvinces.keys(),
|
|
459
|
+
]);
|
|
436
460
|
|
|
437
461
|
const normalize = (urlString) => {
|
|
438
462
|
try {
|