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