@blotoutio/providers-smblead-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
|
@@ -394,7 +394,31 @@ const usStates = new Map([
|
|
|
394
394
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
395
395
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
396
396
|
]);
|
|
397
|
-
|
|
397
|
+
/**
|
|
398
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
399
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
400
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
401
|
+
*/
|
|
402
|
+
const caProvinces = new Map([
|
|
403
|
+
['CA-AB', 'Alberta'],
|
|
404
|
+
['CA-BC', 'British Columbia'],
|
|
405
|
+
['CA-MB', 'Manitoba'],
|
|
406
|
+
['CA-NB', 'New Brunswick'],
|
|
407
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
408
|
+
['CA-NS', 'Nova Scotia'],
|
|
409
|
+
['CA-NT', 'Northwest Territories'],
|
|
410
|
+
['CA-NU', 'Nunavut'],
|
|
411
|
+
['CA-ON', 'Ontario'],
|
|
412
|
+
['CA-PE', 'Prince Edward Island'],
|
|
413
|
+
['CA-QC', 'Quebec'],
|
|
414
|
+
['CA-SK', 'Saskatchewan'],
|
|
415
|
+
['CA-YT', 'Yukon'],
|
|
416
|
+
]);
|
|
417
|
+
new Set([
|
|
418
|
+
...isoCountries.keys(),
|
|
419
|
+
...usStates.keys(),
|
|
420
|
+
...caProvinces.keys(),
|
|
421
|
+
]);
|
|
398
422
|
|
|
399
423
|
/**
|
|
400
424
|
* Exact utm_source normalization (lowercase key → canonical name).
|
package/index.js
CHANGED
|
@@ -395,7 +395,31 @@ var ProvidersSmbleadSdk = (function () {
|
|
|
395
395
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
396
396
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
397
397
|
]);
|
|
398
|
-
|
|
398
|
+
/**
|
|
399
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
400
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
401
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
402
|
+
*/
|
|
403
|
+
const caProvinces = new Map([
|
|
404
|
+
['CA-AB', 'Alberta'],
|
|
405
|
+
['CA-BC', 'British Columbia'],
|
|
406
|
+
['CA-MB', 'Manitoba'],
|
|
407
|
+
['CA-NB', 'New Brunswick'],
|
|
408
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
409
|
+
['CA-NS', 'Nova Scotia'],
|
|
410
|
+
['CA-NT', 'Northwest Territories'],
|
|
411
|
+
['CA-NU', 'Nunavut'],
|
|
412
|
+
['CA-ON', 'Ontario'],
|
|
413
|
+
['CA-PE', 'Prince Edward Island'],
|
|
414
|
+
['CA-QC', 'Quebec'],
|
|
415
|
+
['CA-SK', 'Saskatchewan'],
|
|
416
|
+
['CA-YT', 'Yukon'],
|
|
417
|
+
]);
|
|
418
|
+
new Set([
|
|
419
|
+
...isoCountries.keys(),
|
|
420
|
+
...usStates.keys(),
|
|
421
|
+
...caProvinces.keys(),
|
|
422
|
+
]);
|
|
399
423
|
|
|
400
424
|
/**
|
|
401
425
|
* Exact utm_source normalization (lowercase key → canonical name).
|
package/index.mjs
CHANGED
|
@@ -392,7 +392,31 @@ const usStates = new Map([
|
|
|
392
392
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
393
393
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
394
394
|
]);
|
|
395
|
-
|
|
395
|
+
/**
|
|
396
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
397
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
398
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
399
|
+
*/
|
|
400
|
+
const caProvinces = new Map([
|
|
401
|
+
['CA-AB', 'Alberta'],
|
|
402
|
+
['CA-BC', 'British Columbia'],
|
|
403
|
+
['CA-MB', 'Manitoba'],
|
|
404
|
+
['CA-NB', 'New Brunswick'],
|
|
405
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
406
|
+
['CA-NS', 'Nova Scotia'],
|
|
407
|
+
['CA-NT', 'Northwest Territories'],
|
|
408
|
+
['CA-NU', 'Nunavut'],
|
|
409
|
+
['CA-ON', 'Ontario'],
|
|
410
|
+
['CA-PE', 'Prince Edward Island'],
|
|
411
|
+
['CA-QC', 'Quebec'],
|
|
412
|
+
['CA-SK', 'Saskatchewan'],
|
|
413
|
+
['CA-YT', 'Yukon'],
|
|
414
|
+
]);
|
|
415
|
+
new Set([
|
|
416
|
+
...isoCountries.keys(),
|
|
417
|
+
...usStates.keys(),
|
|
418
|
+
...caProvinces.keys(),
|
|
419
|
+
]);
|
|
396
420
|
|
|
397
421
|
/**
|
|
398
422
|
* Exact utm_source normalization (lowercase key → canonical name).
|