@blotoutio/providers-audiohook-sdk 1.63.3 → 1.64.1
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
|
@@ -473,7 +473,31 @@ const usStates = new Map([
|
|
|
473
473
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
474
474
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
475
475
|
]);
|
|
476
|
-
|
|
476
|
+
/**
|
|
477
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
478
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
479
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
480
|
+
*/
|
|
481
|
+
const caProvinces = new Map([
|
|
482
|
+
['CA-AB', 'Alberta'],
|
|
483
|
+
['CA-BC', 'British Columbia'],
|
|
484
|
+
['CA-MB', 'Manitoba'],
|
|
485
|
+
['CA-NB', 'New Brunswick'],
|
|
486
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
487
|
+
['CA-NS', 'Nova Scotia'],
|
|
488
|
+
['CA-NT', 'Northwest Territories'],
|
|
489
|
+
['CA-NU', 'Nunavut'],
|
|
490
|
+
['CA-ON', 'Ontario'],
|
|
491
|
+
['CA-PE', 'Prince Edward Island'],
|
|
492
|
+
['CA-QC', 'Quebec'],
|
|
493
|
+
['CA-SK', 'Saskatchewan'],
|
|
494
|
+
['CA-YT', 'Yukon'],
|
|
495
|
+
]);
|
|
496
|
+
new Set([
|
|
497
|
+
...isoCountries.keys(),
|
|
498
|
+
...usStates.keys(),
|
|
499
|
+
...caProvinces.keys(),
|
|
500
|
+
]);
|
|
477
501
|
|
|
478
502
|
/**
|
|
479
503
|
* Exact utm_source normalization (lowercase key → canonical name).
|
|
@@ -641,7 +665,7 @@ const prepareData = (data) => {
|
|
|
641
665
|
};
|
|
642
666
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
643
667
|
const payload = {
|
|
644
|
-
sdkVersion: "1.
|
|
668
|
+
sdkVersion: "1.64.1" ,
|
|
645
669
|
};
|
|
646
670
|
const windowWithAH = window;
|
|
647
671
|
if (windowWithAH.ahTrack &&
|
package/index.js
CHANGED
|
@@ -474,7 +474,31 @@ var ProvidersAudiohookSdk = (function () {
|
|
|
474
474
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
475
475
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
476
476
|
]);
|
|
477
|
-
|
|
477
|
+
/**
|
|
478
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
479
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
480
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
481
|
+
*/
|
|
482
|
+
const caProvinces = new Map([
|
|
483
|
+
['CA-AB', 'Alberta'],
|
|
484
|
+
['CA-BC', 'British Columbia'],
|
|
485
|
+
['CA-MB', 'Manitoba'],
|
|
486
|
+
['CA-NB', 'New Brunswick'],
|
|
487
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
488
|
+
['CA-NS', 'Nova Scotia'],
|
|
489
|
+
['CA-NT', 'Northwest Territories'],
|
|
490
|
+
['CA-NU', 'Nunavut'],
|
|
491
|
+
['CA-ON', 'Ontario'],
|
|
492
|
+
['CA-PE', 'Prince Edward Island'],
|
|
493
|
+
['CA-QC', 'Quebec'],
|
|
494
|
+
['CA-SK', 'Saskatchewan'],
|
|
495
|
+
['CA-YT', 'Yukon'],
|
|
496
|
+
]);
|
|
497
|
+
new Set([
|
|
498
|
+
...isoCountries.keys(),
|
|
499
|
+
...usStates.keys(),
|
|
500
|
+
...caProvinces.keys(),
|
|
501
|
+
]);
|
|
478
502
|
|
|
479
503
|
/**
|
|
480
504
|
* Exact utm_source normalization (lowercase key → canonical name).
|
|
@@ -642,7 +666,7 @@ var ProvidersAudiohookSdk = (function () {
|
|
|
642
666
|
};
|
|
643
667
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
644
668
|
const payload = {
|
|
645
|
-
sdkVersion: "1.
|
|
669
|
+
sdkVersion: "1.64.1" ,
|
|
646
670
|
};
|
|
647
671
|
const windowWithAH = window;
|
|
648
672
|
if (windowWithAH.ahTrack &&
|
package/index.mjs
CHANGED
|
@@ -471,7 +471,31 @@ const usStates = new Map([
|
|
|
471
471
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
472
472
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
473
473
|
]);
|
|
474
|
-
|
|
474
|
+
/**
|
|
475
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
476
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
477
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
478
|
+
*/
|
|
479
|
+
const caProvinces = new Map([
|
|
480
|
+
['CA-AB', 'Alberta'],
|
|
481
|
+
['CA-BC', 'British Columbia'],
|
|
482
|
+
['CA-MB', 'Manitoba'],
|
|
483
|
+
['CA-NB', 'New Brunswick'],
|
|
484
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
485
|
+
['CA-NS', 'Nova Scotia'],
|
|
486
|
+
['CA-NT', 'Northwest Territories'],
|
|
487
|
+
['CA-NU', 'Nunavut'],
|
|
488
|
+
['CA-ON', 'Ontario'],
|
|
489
|
+
['CA-PE', 'Prince Edward Island'],
|
|
490
|
+
['CA-QC', 'Quebec'],
|
|
491
|
+
['CA-SK', 'Saskatchewan'],
|
|
492
|
+
['CA-YT', 'Yukon'],
|
|
493
|
+
]);
|
|
494
|
+
new Set([
|
|
495
|
+
...isoCountries.keys(),
|
|
496
|
+
...usStates.keys(),
|
|
497
|
+
...caProvinces.keys(),
|
|
498
|
+
]);
|
|
475
499
|
|
|
476
500
|
/**
|
|
477
501
|
* Exact utm_source normalization (lowercase key → canonical name).
|
|
@@ -639,7 +663,7 @@ const prepareData = (data) => {
|
|
|
639
663
|
};
|
|
640
664
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
641
665
|
const payload = {
|
|
642
|
-
sdkVersion: "1.
|
|
666
|
+
sdkVersion: "1.64.1" ,
|
|
643
667
|
};
|
|
644
668
|
const windowWithAH = window;
|
|
645
669
|
if (windowWithAH.ahTrack &&
|