@blotoutio/edgetag-sdk-browser 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.
Files changed (2) hide show
  1. package/index.js +26 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -507,7 +507,31 @@
507
507
  ['US-UM', 'United States Minor Outlying Islands'],
508
508
  ['US-VI', 'Virgin Islands, U.S.'],
509
509
  ]);
510
- new Set([...isoCountries.keys(), ...usStates.keys()]);
510
+ /**
511
+ * ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
512
+ * `usStates`. Used by the consent banner's Canada region to offer province
513
+ * selection (Québec is treated specially by the regional consent config).
514
+ */
515
+ const caProvinces = new Map([
516
+ ['CA-AB', 'Alberta'],
517
+ ['CA-BC', 'British Columbia'],
518
+ ['CA-MB', 'Manitoba'],
519
+ ['CA-NB', 'New Brunswick'],
520
+ ['CA-NL', 'Newfoundland and Labrador'],
521
+ ['CA-NS', 'Nova Scotia'],
522
+ ['CA-NT', 'Northwest Territories'],
523
+ ['CA-NU', 'Nunavut'],
524
+ ['CA-ON', 'Ontario'],
525
+ ['CA-PE', 'Prince Edward Island'],
526
+ ['CA-QC', 'Quebec'],
527
+ ['CA-SK', 'Saskatchewan'],
528
+ ['CA-YT', 'Yukon'],
529
+ ]);
530
+ new Set([
531
+ ...isoCountries.keys(),
532
+ ...usStates.keys(),
533
+ ...caProvinces.keys(),
534
+ ]);
511
535
  const parseCache = new Map();
512
536
  const parseRegions = (regionString) => {
513
537
  const include = new Set();
@@ -1471,7 +1495,7 @@
1471
1495
  referrer: getReferrer(destination),
1472
1496
  search: getSearch(destination),
1473
1497
  locale: getLocale(),
1474
- sdkVersion: "1.63.3" ,
1498
+ sdkVersion: "1.64.0" ,
1475
1499
  ...(payload || {}),
1476
1500
  };
1477
1501
  let storage = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/edgetag-sdk-browser",
3
- "version": "1.63.3",
3
+ "version": "1.64.0",
4
4
  "description": "Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",