@blotoutio/providers-google-analytics-4-sdk 1.5.0 → 1.6.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 CHANGED
@@ -335,7 +335,70 @@ const isoCountries = new Map([
335
335
  ['ZM', 'Zambia'],
336
336
  ['ZW', 'Zimbabwe'],
337
337
  ]);
338
- new Set(isoCountries.keys());
338
+ /**
339
+ * ISO-3166 US state ISO codes
340
+ * @see https://en.wikipedia.org/wiki/ISO_3166-2:US
341
+ * */
342
+ const usStates = new Map([
343
+ ['US-AL', 'Alabama'],
344
+ ['US-AK', 'Alaska'],
345
+ ['US-AZ', 'Arizona'],
346
+ ['US-AR', 'Arkansas'],
347
+ ['US-CA', 'California'],
348
+ ['US-CO', 'Colorado'],
349
+ ['US-CT', 'Connecticut'],
350
+ ['US-DE', 'Delaware'],
351
+ ['US-FL', 'Florida'],
352
+ ['US-GA', 'Georgia'],
353
+ ['US-HI', 'Hawaii'],
354
+ ['US-ID', 'Idaho'],
355
+ ['US-IL', 'Illinois'],
356
+ ['US-IN', 'Indiana'],
357
+ ['US-IA', 'Iowa'],
358
+ ['US-KS', 'Kansas'],
359
+ ['US-KY', 'Kentucky'],
360
+ ['US-LA', 'Louisiana'],
361
+ ['US-ME', 'Maine'],
362
+ ['US-MD', 'Maryland'],
363
+ ['US-MA', 'Massachusetts'],
364
+ ['US-MI', 'Michigan'],
365
+ ['US-MN', 'Minnesota'],
366
+ ['US-MS', 'Mississippi'],
367
+ ['US-MO', 'Missouri'],
368
+ ['US-MT', 'Montana'],
369
+ ['US-NE', 'Nebraska'],
370
+ ['US-NV', 'Nevada'],
371
+ ['US-NH', 'New Hampshire'],
372
+ ['US-NJ', 'New Jersey'],
373
+ ['US-NM', 'New Mexico'],
374
+ ['US-NY', 'New York'],
375
+ ['US-NC', 'North Carolina'],
376
+ ['US-ND', 'North Dakota'],
377
+ ['US-OH', 'Ohio'],
378
+ ['US-OK', 'Oklahoma'],
379
+ ['US-OR', 'Oregon'],
380
+ ['US-PA', 'Pennsylvania'],
381
+ ['US-RI', 'Rhode Island'],
382
+ ['US-SC', 'South Carolina'],
383
+ ['US-SD', 'South Dakota'],
384
+ ['US-TN', 'Tennessee'],
385
+ ['US-TX', 'Texas'],
386
+ ['US-UT', 'Utah'],
387
+ ['US-VT', 'Vermont'],
388
+ ['US-VA', 'Virginia'],
389
+ ['US-WA', 'Washington'],
390
+ ['US-WV', 'West Virginia'],
391
+ ['US-WI', 'Wisconsin'],
392
+ ['US-WY', 'Wyoming'],
393
+ ['US-DC', 'District of Columbia'],
394
+ ['US-AS', 'American Samoa'],
395
+ ['US-GU', 'Guam'],
396
+ ['US-MP', 'Northern Mariana Islands'],
397
+ ['US-PR', 'Puerto Rico'],
398
+ ['US-UM', 'United States Minor Outlying Islands'],
399
+ ['US-VI', 'Virgin Islands, U.S.'],
400
+ ]);
401
+ new Set([...isoCountries.keys(), ...usStates.keys()]);
339
402
 
340
403
  // eslint-disable-next-line @nx/enforce-module-boundaries
341
404
  const getGoogleConsentFromCategories = (categories) => {
@@ -671,7 +734,7 @@ const tag = ({ data, eventName, manifestVariables, eventId }) => {
671
734
  }
672
735
  return {
673
736
  loaded: isLoaded,
674
- sdkVersion: "1.5.0" ,
737
+ sdkVersion: "1.6.1" ,
675
738
  };
676
739
  };
677
740
 
package/index.js CHANGED
@@ -336,7 +336,70 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
336
336
  ['ZM', 'Zambia'],
337
337
  ['ZW', 'Zimbabwe'],
338
338
  ]);
339
- new Set(isoCountries.keys());
339
+ /**
340
+ * ISO-3166 US state ISO codes
341
+ * @see https://en.wikipedia.org/wiki/ISO_3166-2:US
342
+ * */
343
+ const usStates = new Map([
344
+ ['US-AL', 'Alabama'],
345
+ ['US-AK', 'Alaska'],
346
+ ['US-AZ', 'Arizona'],
347
+ ['US-AR', 'Arkansas'],
348
+ ['US-CA', 'California'],
349
+ ['US-CO', 'Colorado'],
350
+ ['US-CT', 'Connecticut'],
351
+ ['US-DE', 'Delaware'],
352
+ ['US-FL', 'Florida'],
353
+ ['US-GA', 'Georgia'],
354
+ ['US-HI', 'Hawaii'],
355
+ ['US-ID', 'Idaho'],
356
+ ['US-IL', 'Illinois'],
357
+ ['US-IN', 'Indiana'],
358
+ ['US-IA', 'Iowa'],
359
+ ['US-KS', 'Kansas'],
360
+ ['US-KY', 'Kentucky'],
361
+ ['US-LA', 'Louisiana'],
362
+ ['US-ME', 'Maine'],
363
+ ['US-MD', 'Maryland'],
364
+ ['US-MA', 'Massachusetts'],
365
+ ['US-MI', 'Michigan'],
366
+ ['US-MN', 'Minnesota'],
367
+ ['US-MS', 'Mississippi'],
368
+ ['US-MO', 'Missouri'],
369
+ ['US-MT', 'Montana'],
370
+ ['US-NE', 'Nebraska'],
371
+ ['US-NV', 'Nevada'],
372
+ ['US-NH', 'New Hampshire'],
373
+ ['US-NJ', 'New Jersey'],
374
+ ['US-NM', 'New Mexico'],
375
+ ['US-NY', 'New York'],
376
+ ['US-NC', 'North Carolina'],
377
+ ['US-ND', 'North Dakota'],
378
+ ['US-OH', 'Ohio'],
379
+ ['US-OK', 'Oklahoma'],
380
+ ['US-OR', 'Oregon'],
381
+ ['US-PA', 'Pennsylvania'],
382
+ ['US-RI', 'Rhode Island'],
383
+ ['US-SC', 'South Carolina'],
384
+ ['US-SD', 'South Dakota'],
385
+ ['US-TN', 'Tennessee'],
386
+ ['US-TX', 'Texas'],
387
+ ['US-UT', 'Utah'],
388
+ ['US-VT', 'Vermont'],
389
+ ['US-VA', 'Virginia'],
390
+ ['US-WA', 'Washington'],
391
+ ['US-WV', 'West Virginia'],
392
+ ['US-WI', 'Wisconsin'],
393
+ ['US-WY', 'Wyoming'],
394
+ ['US-DC', 'District of Columbia'],
395
+ ['US-AS', 'American Samoa'],
396
+ ['US-GU', 'Guam'],
397
+ ['US-MP', 'Northern Mariana Islands'],
398
+ ['US-PR', 'Puerto Rico'],
399
+ ['US-UM', 'United States Minor Outlying Islands'],
400
+ ['US-VI', 'Virgin Islands, U.S.'],
401
+ ]);
402
+ new Set([...isoCountries.keys(), ...usStates.keys()]);
340
403
 
341
404
  // eslint-disable-next-line @nx/enforce-module-boundaries
342
405
  const getGoogleConsentFromCategories = (categories) => {
@@ -672,7 +735,7 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
672
735
  }
673
736
  return {
674
737
  loaded: isLoaded,
675
- sdkVersion: "1.5.0" ,
738
+ sdkVersion: "1.6.1" ,
676
739
  };
677
740
  };
678
741
 
package/index.mjs CHANGED
@@ -333,7 +333,70 @@ const isoCountries = new Map([
333
333
  ['ZM', 'Zambia'],
334
334
  ['ZW', 'Zimbabwe'],
335
335
  ]);
336
- new Set(isoCountries.keys());
336
+ /**
337
+ * ISO-3166 US state ISO codes
338
+ * @see https://en.wikipedia.org/wiki/ISO_3166-2:US
339
+ * */
340
+ const usStates = new Map([
341
+ ['US-AL', 'Alabama'],
342
+ ['US-AK', 'Alaska'],
343
+ ['US-AZ', 'Arizona'],
344
+ ['US-AR', 'Arkansas'],
345
+ ['US-CA', 'California'],
346
+ ['US-CO', 'Colorado'],
347
+ ['US-CT', 'Connecticut'],
348
+ ['US-DE', 'Delaware'],
349
+ ['US-FL', 'Florida'],
350
+ ['US-GA', 'Georgia'],
351
+ ['US-HI', 'Hawaii'],
352
+ ['US-ID', 'Idaho'],
353
+ ['US-IL', 'Illinois'],
354
+ ['US-IN', 'Indiana'],
355
+ ['US-IA', 'Iowa'],
356
+ ['US-KS', 'Kansas'],
357
+ ['US-KY', 'Kentucky'],
358
+ ['US-LA', 'Louisiana'],
359
+ ['US-ME', 'Maine'],
360
+ ['US-MD', 'Maryland'],
361
+ ['US-MA', 'Massachusetts'],
362
+ ['US-MI', 'Michigan'],
363
+ ['US-MN', 'Minnesota'],
364
+ ['US-MS', 'Mississippi'],
365
+ ['US-MO', 'Missouri'],
366
+ ['US-MT', 'Montana'],
367
+ ['US-NE', 'Nebraska'],
368
+ ['US-NV', 'Nevada'],
369
+ ['US-NH', 'New Hampshire'],
370
+ ['US-NJ', 'New Jersey'],
371
+ ['US-NM', 'New Mexico'],
372
+ ['US-NY', 'New York'],
373
+ ['US-NC', 'North Carolina'],
374
+ ['US-ND', 'North Dakota'],
375
+ ['US-OH', 'Ohio'],
376
+ ['US-OK', 'Oklahoma'],
377
+ ['US-OR', 'Oregon'],
378
+ ['US-PA', 'Pennsylvania'],
379
+ ['US-RI', 'Rhode Island'],
380
+ ['US-SC', 'South Carolina'],
381
+ ['US-SD', 'South Dakota'],
382
+ ['US-TN', 'Tennessee'],
383
+ ['US-TX', 'Texas'],
384
+ ['US-UT', 'Utah'],
385
+ ['US-VT', 'Vermont'],
386
+ ['US-VA', 'Virginia'],
387
+ ['US-WA', 'Washington'],
388
+ ['US-WV', 'West Virginia'],
389
+ ['US-WI', 'Wisconsin'],
390
+ ['US-WY', 'Wyoming'],
391
+ ['US-DC', 'District of Columbia'],
392
+ ['US-AS', 'American Samoa'],
393
+ ['US-GU', 'Guam'],
394
+ ['US-MP', 'Northern Mariana Islands'],
395
+ ['US-PR', 'Puerto Rico'],
396
+ ['US-UM', 'United States Minor Outlying Islands'],
397
+ ['US-VI', 'Virgin Islands, U.S.'],
398
+ ]);
399
+ new Set([...isoCountries.keys(), ...usStates.keys()]);
337
400
 
338
401
  // eslint-disable-next-line @nx/enforce-module-boundaries
339
402
  const getGoogleConsentFromCategories = (categories) => {
@@ -669,7 +732,7 @@ const tag = ({ data, eventName, manifestVariables, eventId }) => {
669
732
  }
670
733
  return {
671
734
  loaded: isLoaded,
672
- sdkVersion: "1.5.0" ,
735
+ sdkVersion: "1.6.1" ,
673
736
  };
674
737
  };
675
738
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-google-analytics-4-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "Google Analytics 4 Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",