@blotoutio/providers-google-ads-clicks-sdk 1.5.0 → 1.6.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 CHANGED
@@ -322,7 +322,70 @@ const isoCountries = new Map([
322
322
  ['ZM', 'Zambia'],
323
323
  ['ZW', 'Zimbabwe'],
324
324
  ]);
325
- new Set(isoCountries.keys());
325
+ /**
326
+ * ISO-3166 US state ISO codes
327
+ * @see https://en.wikipedia.org/wiki/ISO_3166-2:US
328
+ * */
329
+ const usStates = new Map([
330
+ ['US-AL', 'Alabama'],
331
+ ['US-AK', 'Alaska'],
332
+ ['US-AZ', 'Arizona'],
333
+ ['US-AR', 'Arkansas'],
334
+ ['US-CA', 'California'],
335
+ ['US-CO', 'Colorado'],
336
+ ['US-CT', 'Connecticut'],
337
+ ['US-DE', 'Delaware'],
338
+ ['US-FL', 'Florida'],
339
+ ['US-GA', 'Georgia'],
340
+ ['US-HI', 'Hawaii'],
341
+ ['US-ID', 'Idaho'],
342
+ ['US-IL', 'Illinois'],
343
+ ['US-IN', 'Indiana'],
344
+ ['US-IA', 'Iowa'],
345
+ ['US-KS', 'Kansas'],
346
+ ['US-KY', 'Kentucky'],
347
+ ['US-LA', 'Louisiana'],
348
+ ['US-ME', 'Maine'],
349
+ ['US-MD', 'Maryland'],
350
+ ['US-MA', 'Massachusetts'],
351
+ ['US-MI', 'Michigan'],
352
+ ['US-MN', 'Minnesota'],
353
+ ['US-MS', 'Mississippi'],
354
+ ['US-MO', 'Missouri'],
355
+ ['US-MT', 'Montana'],
356
+ ['US-NE', 'Nebraska'],
357
+ ['US-NV', 'Nevada'],
358
+ ['US-NH', 'New Hampshire'],
359
+ ['US-NJ', 'New Jersey'],
360
+ ['US-NM', 'New Mexico'],
361
+ ['US-NY', 'New York'],
362
+ ['US-NC', 'North Carolina'],
363
+ ['US-ND', 'North Dakota'],
364
+ ['US-OH', 'Ohio'],
365
+ ['US-OK', 'Oklahoma'],
366
+ ['US-OR', 'Oregon'],
367
+ ['US-PA', 'Pennsylvania'],
368
+ ['US-RI', 'Rhode Island'],
369
+ ['US-SC', 'South Carolina'],
370
+ ['US-SD', 'South Dakota'],
371
+ ['US-TN', 'Tennessee'],
372
+ ['US-TX', 'Texas'],
373
+ ['US-UT', 'Utah'],
374
+ ['US-VT', 'Vermont'],
375
+ ['US-VA', 'Virginia'],
376
+ ['US-WA', 'Washington'],
377
+ ['US-WV', 'West Virginia'],
378
+ ['US-WI', 'Wisconsin'],
379
+ ['US-WY', 'Wyoming'],
380
+ ['US-DC', 'District of Columbia'],
381
+ ['US-AS', 'American Samoa'],
382
+ ['US-GU', 'Guam'],
383
+ ['US-MP', 'Northern Mariana Islands'],
384
+ ['US-PR', 'Puerto Rico'],
385
+ ['US-UM', 'United States Minor Outlying Islands'],
386
+ ['US-VI', 'Virgin Islands, U.S.'],
387
+ ]);
388
+ new Set([...isoCountries.keys(), ...usStates.keys()]);
326
389
 
327
390
  // eslint-disable-next-line @nx/enforce-module-boundaries
328
391
  // TODO: once categories becomes a stable field, we need to remove this and start using categories data for google consent mode.
@@ -575,7 +638,7 @@ const tag = ({ data, eventName, manifestVariables, eventId, destination, }) => {
575
638
  }
576
639
  return {
577
640
  loaded: isLoaded,
578
- sdkVersion: "1.5.0" ,
641
+ sdkVersion: "1.6.0" ,
579
642
  };
580
643
  };
581
644
 
package/index.js CHANGED
@@ -323,7 +323,70 @@ var ProvidersGoogleAdsClicksSdk = (function () {
323
323
  ['ZM', 'Zambia'],
324
324
  ['ZW', 'Zimbabwe'],
325
325
  ]);
326
- new Set(isoCountries.keys());
326
+ /**
327
+ * ISO-3166 US state ISO codes
328
+ * @see https://en.wikipedia.org/wiki/ISO_3166-2:US
329
+ * */
330
+ const usStates = new Map([
331
+ ['US-AL', 'Alabama'],
332
+ ['US-AK', 'Alaska'],
333
+ ['US-AZ', 'Arizona'],
334
+ ['US-AR', 'Arkansas'],
335
+ ['US-CA', 'California'],
336
+ ['US-CO', 'Colorado'],
337
+ ['US-CT', 'Connecticut'],
338
+ ['US-DE', 'Delaware'],
339
+ ['US-FL', 'Florida'],
340
+ ['US-GA', 'Georgia'],
341
+ ['US-HI', 'Hawaii'],
342
+ ['US-ID', 'Idaho'],
343
+ ['US-IL', 'Illinois'],
344
+ ['US-IN', 'Indiana'],
345
+ ['US-IA', 'Iowa'],
346
+ ['US-KS', 'Kansas'],
347
+ ['US-KY', 'Kentucky'],
348
+ ['US-LA', 'Louisiana'],
349
+ ['US-ME', 'Maine'],
350
+ ['US-MD', 'Maryland'],
351
+ ['US-MA', 'Massachusetts'],
352
+ ['US-MI', 'Michigan'],
353
+ ['US-MN', 'Minnesota'],
354
+ ['US-MS', 'Mississippi'],
355
+ ['US-MO', 'Missouri'],
356
+ ['US-MT', 'Montana'],
357
+ ['US-NE', 'Nebraska'],
358
+ ['US-NV', 'Nevada'],
359
+ ['US-NH', 'New Hampshire'],
360
+ ['US-NJ', 'New Jersey'],
361
+ ['US-NM', 'New Mexico'],
362
+ ['US-NY', 'New York'],
363
+ ['US-NC', 'North Carolina'],
364
+ ['US-ND', 'North Dakota'],
365
+ ['US-OH', 'Ohio'],
366
+ ['US-OK', 'Oklahoma'],
367
+ ['US-OR', 'Oregon'],
368
+ ['US-PA', 'Pennsylvania'],
369
+ ['US-RI', 'Rhode Island'],
370
+ ['US-SC', 'South Carolina'],
371
+ ['US-SD', 'South Dakota'],
372
+ ['US-TN', 'Tennessee'],
373
+ ['US-TX', 'Texas'],
374
+ ['US-UT', 'Utah'],
375
+ ['US-VT', 'Vermont'],
376
+ ['US-VA', 'Virginia'],
377
+ ['US-WA', 'Washington'],
378
+ ['US-WV', 'West Virginia'],
379
+ ['US-WI', 'Wisconsin'],
380
+ ['US-WY', 'Wyoming'],
381
+ ['US-DC', 'District of Columbia'],
382
+ ['US-AS', 'American Samoa'],
383
+ ['US-GU', 'Guam'],
384
+ ['US-MP', 'Northern Mariana Islands'],
385
+ ['US-PR', 'Puerto Rico'],
386
+ ['US-UM', 'United States Minor Outlying Islands'],
387
+ ['US-VI', 'Virgin Islands, U.S.'],
388
+ ]);
389
+ new Set([...isoCountries.keys(), ...usStates.keys()]);
327
390
 
328
391
  // eslint-disable-next-line @nx/enforce-module-boundaries
329
392
  // TODO: once categories becomes a stable field, we need to remove this and start using categories data for google consent mode.
@@ -576,7 +639,7 @@ var ProvidersGoogleAdsClicksSdk = (function () {
576
639
  }
577
640
  return {
578
641
  loaded: isLoaded,
579
- sdkVersion: "1.5.0" ,
642
+ sdkVersion: "1.6.0" ,
580
643
  };
581
644
  };
582
645
 
package/index.mjs CHANGED
@@ -320,7 +320,70 @@ const isoCountries = new Map([
320
320
  ['ZM', 'Zambia'],
321
321
  ['ZW', 'Zimbabwe'],
322
322
  ]);
323
- new Set(isoCountries.keys());
323
+ /**
324
+ * ISO-3166 US state ISO codes
325
+ * @see https://en.wikipedia.org/wiki/ISO_3166-2:US
326
+ * */
327
+ const usStates = new Map([
328
+ ['US-AL', 'Alabama'],
329
+ ['US-AK', 'Alaska'],
330
+ ['US-AZ', 'Arizona'],
331
+ ['US-AR', 'Arkansas'],
332
+ ['US-CA', 'California'],
333
+ ['US-CO', 'Colorado'],
334
+ ['US-CT', 'Connecticut'],
335
+ ['US-DE', 'Delaware'],
336
+ ['US-FL', 'Florida'],
337
+ ['US-GA', 'Georgia'],
338
+ ['US-HI', 'Hawaii'],
339
+ ['US-ID', 'Idaho'],
340
+ ['US-IL', 'Illinois'],
341
+ ['US-IN', 'Indiana'],
342
+ ['US-IA', 'Iowa'],
343
+ ['US-KS', 'Kansas'],
344
+ ['US-KY', 'Kentucky'],
345
+ ['US-LA', 'Louisiana'],
346
+ ['US-ME', 'Maine'],
347
+ ['US-MD', 'Maryland'],
348
+ ['US-MA', 'Massachusetts'],
349
+ ['US-MI', 'Michigan'],
350
+ ['US-MN', 'Minnesota'],
351
+ ['US-MS', 'Mississippi'],
352
+ ['US-MO', 'Missouri'],
353
+ ['US-MT', 'Montana'],
354
+ ['US-NE', 'Nebraska'],
355
+ ['US-NV', 'Nevada'],
356
+ ['US-NH', 'New Hampshire'],
357
+ ['US-NJ', 'New Jersey'],
358
+ ['US-NM', 'New Mexico'],
359
+ ['US-NY', 'New York'],
360
+ ['US-NC', 'North Carolina'],
361
+ ['US-ND', 'North Dakota'],
362
+ ['US-OH', 'Ohio'],
363
+ ['US-OK', 'Oklahoma'],
364
+ ['US-OR', 'Oregon'],
365
+ ['US-PA', 'Pennsylvania'],
366
+ ['US-RI', 'Rhode Island'],
367
+ ['US-SC', 'South Carolina'],
368
+ ['US-SD', 'South Dakota'],
369
+ ['US-TN', 'Tennessee'],
370
+ ['US-TX', 'Texas'],
371
+ ['US-UT', 'Utah'],
372
+ ['US-VT', 'Vermont'],
373
+ ['US-VA', 'Virginia'],
374
+ ['US-WA', 'Washington'],
375
+ ['US-WV', 'West Virginia'],
376
+ ['US-WI', 'Wisconsin'],
377
+ ['US-WY', 'Wyoming'],
378
+ ['US-DC', 'District of Columbia'],
379
+ ['US-AS', 'American Samoa'],
380
+ ['US-GU', 'Guam'],
381
+ ['US-MP', 'Northern Mariana Islands'],
382
+ ['US-PR', 'Puerto Rico'],
383
+ ['US-UM', 'United States Minor Outlying Islands'],
384
+ ['US-VI', 'Virgin Islands, U.S.'],
385
+ ]);
386
+ new Set([...isoCountries.keys(), ...usStates.keys()]);
324
387
 
325
388
  // eslint-disable-next-line @nx/enforce-module-boundaries
326
389
  // TODO: once categories becomes a stable field, we need to remove this and start using categories data for google consent mode.
@@ -573,7 +636,7 @@ const tag = ({ data, eventName, manifestVariables, eventId, destination, }) => {
573
636
  }
574
637
  return {
575
638
  loaded: isLoaded,
576
- sdkVersion: "1.5.0" ,
639
+ sdkVersion: "1.6.0" ,
577
640
  };
578
641
  };
579
642
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-google-ads-clicks-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Google Ads Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",