@mparticle/web-adwords-kit 2.3.0 → 2.3.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.
@@ -398,7 +398,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
398
398
 
399
399
  for (var i = 0; i <= mappings.length - 1; i++) {
400
400
  var mappingEntry = mappings[i];
401
- var mpMappedConsentName = mappingEntry.map;
401
+ // Although consent purposes can be inputted into the UI in any casing
402
+ // the SDK will automatically lowercase them to prevent pseudo-duplicate
403
+ // consent purposes, so we call `toLowerCase` on the consentMapping purposes here
404
+ var mpMappedConsentName = mappingEntry.map.toLowerCase();
405
+ // var mpMappedConsentName = mappingEntry.map;
402
406
  var googleMappedConsentName = mappingEntry.value;
403
407
 
404
408
  if (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mparticle/web-adwords-kit",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "author": "mParticle Developers <developers@mparticle.com> (https://www.mparticle.com)",
5
5
  "description": "mParticle integration sdk for Google Adwords",
6
6
  "main": "dist/GoogleAdWordsEventForwarder.common.js",