rudder-sdk-js 1.3.3 → 1.3.4

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 (2) hide show
  1. package/index.js +430 -431
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5148,6 +5148,21 @@
5148
5148
  return isobject(val) || Array.isArray(val) || typeof val === 'function';
5149
5149
  }
5150
5150
 
5151
+ /*!
5152
+ * is-primitive <https://github.com/jonschlinkert/is-primitive>
5153
+ *
5154
+ * Copyright (c) 2014-present, Jon Schlinkert.
5155
+ * Released under the MIT License.
5156
+ */
5157
+
5158
+ var isPrimitive = function isPrimitive(val) {
5159
+ if (_typeof(val) === 'object') {
5160
+ return val === null;
5161
+ }
5162
+
5163
+ return typeof val !== 'function';
5164
+ };
5165
+
5151
5166
  function isObjectObject(o) {
5152
5167
  return isobject(o) === true && Object.prototype.toString.call(o) === '[object Object]';
5153
5168
  }
@@ -5170,113 +5185,162 @@
5170
5185
  return true;
5171
5186
  };
5172
5187
 
5173
- function set(target, path, value, options) {
5174
- if (!isObject(target)) {
5175
- return target;
5176
- }
5177
-
5178
- var opts = options || {};
5179
- var isArray = Array.isArray(path);
5188
+ var deleteProperty = Reflect.deleteProperty;
5180
5189
 
5181
- if (!isArray && typeof path !== 'string') {
5182
- return target;
5183
- }
5190
+ var isObject = function isObject(value) {
5191
+ return _typeof(value) === 'object' && value !== null || typeof value === 'function';
5192
+ };
5184
5193
 
5185
- var merge = opts.merge;
5194
+ var isUnsafeKey = function isUnsafeKey(key) {
5195
+ return key === '__proto__' || key === 'constructor' || key === 'prototype';
5196
+ };
5186
5197
 
5187
- if (merge && typeof merge !== 'function') {
5188
- merge = Object.assign;
5198
+ var validateKey = function validateKey(key) {
5199
+ if (!isPrimitive(key)) {
5200
+ throw new TypeError('Object keys must be strings or symbols');
5189
5201
  }
5190
5202
 
5191
- var keys = (isArray ? path : split$1(path, opts)).filter(isValidKey);
5192
- var len = keys.length;
5193
- var orig = target;
5194
-
5195
- if (!options && keys.length === 1) {
5196
- result(target, keys[0], value, merge);
5197
- return target;
5203
+ if (isUnsafeKey(key)) {
5204
+ throw new Error("Cannot set unsafe key: \"".concat(key, "\""));
5198
5205
  }
5206
+ };
5199
5207
 
5200
- for (var i = 0; i < len; i++) {
5201
- var prop = keys[i];
5208
+ var toStringKey = function toStringKey(input) {
5209
+ return Array.isArray(input) ? input.flat().map(String).join(',') : input;
5210
+ };
5202
5211
 
5203
- if (!isObject(target[prop])) {
5204
- target[prop] = {};
5205
- }
5212
+ var createMemoKey = function createMemoKey(input, options) {
5213
+ if (typeof input !== 'string' || !options) return input;
5214
+ var key = input + ';';
5215
+ if (options.arrays !== undefined) key += "arrays=".concat(options.arrays, ";");
5216
+ if (options.separator !== undefined) key += "separator=".concat(options.separator, ";");
5217
+ if (options.split !== undefined) key += "split=".concat(options.split, ";");
5218
+ if (options.merge !== undefined) key += "merge=".concat(options.merge, ";");
5219
+ if (options.preservePaths !== undefined) key += "preservePaths=".concat(options.preservePaths, ";");
5220
+ return key;
5221
+ };
5206
5222
 
5207
- if (i === len - 1) {
5208
- result(target, prop, value, merge);
5209
- break;
5210
- }
5223
+ var memoize = function memoize(input, options, fn) {
5224
+ var key = toStringKey(options ? createMemoKey(input, options) : input);
5225
+ validateKey(key);
5226
+ var value = setValue.cache.get(key) || fn();
5227
+ setValue.cache.set(key, value);
5228
+ return value;
5229
+ };
5211
5230
 
5212
- target = target[prop];
5231
+ var splitString = function splitString(input) {
5232
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5233
+ var sep = options.separator || '.';
5234
+ var preserve = sep === '/' ? false : options.preservePaths;
5235
+
5236
+ if (typeof input === 'string' && preserve !== false && /\//.test(input)) {
5237
+ return [input];
5213
5238
  }
5214
5239
 
5215
- return orig;
5216
- }
5240
+ var parts = [];
5241
+ var part = '';
5217
5242
 
5218
- function result(target, path, value, merge) {
5219
- if (merge && isPlainObject(target[path]) && isPlainObject(value)) {
5220
- target[path] = merge({}, target[path], value);
5221
- } else {
5222
- target[path] = value;
5223
- }
5224
- }
5243
+ var push = function push(part) {
5244
+ var number;
5225
5245
 
5226
- function split$1(path, options) {
5227
- var id = createKey(path, options);
5228
- if (set.memo[id]) return set.memo[id];
5229
- var char = options && options.separator ? options.separator : '.';
5230
- var keys = [];
5231
- var res = [];
5246
+ if (part.trim() !== '' && Number.isInteger(number = Number(part))) {
5247
+ parts.push(number);
5248
+ } else {
5249
+ parts.push(part);
5250
+ }
5251
+ };
5232
5252
 
5233
- if (options && typeof options.split === 'function') {
5234
- keys = options.split(path);
5235
- } else {
5236
- keys = path.split(char);
5237
- }
5253
+ for (var i = 0; i < input.length; i++) {
5254
+ var value = input[i];
5238
5255
 
5239
- for (var i = 0; i < keys.length; i++) {
5240
- var prop = keys[i];
5256
+ if (value === '\\') {
5257
+ part += input[++i];
5258
+ continue;
5259
+ }
5241
5260
 
5242
- while (prop && prop.slice(-1) === '\\' && keys[i + 1] != null) {
5243
- prop = prop.slice(0, -1) + char + keys[++i];
5261
+ if (value === sep) {
5262
+ push(part);
5263
+ part = '';
5264
+ continue;
5244
5265
  }
5245
5266
 
5246
- res.push(prop);
5267
+ part += value;
5247
5268
  }
5248
5269
 
5249
- set.memo[id] = res;
5250
- return res;
5251
- }
5270
+ if (part) {
5271
+ push(part);
5272
+ }
5273
+
5274
+ return parts;
5275
+ };
5252
5276
 
5253
- function createKey(pattern, options) {
5254
- var id = pattern;
5277
+ var split$1 = function split(input, options) {
5278
+ if (options && typeof options.split === 'function') return options.split(input);
5279
+ if (_typeof(input) === 'symbol') return [input];
5280
+ if (Array.isArray(input)) return input;
5281
+ return memoize(input, options, function () {
5282
+ return splitString(input, options);
5283
+ });
5284
+ };
5285
+
5286
+ var assignProp = function assignProp(obj, prop, value, options) {
5287
+ validateKey(prop); // Delete property when "value" is undefined
5288
+
5289
+ if (value === undefined) {
5290
+ deleteProperty(obj, prop);
5291
+ } else if (options && options.merge) {
5292
+ var merge = options.merge === 'function' ? options.merge : Object.assign; // Only merge plain objects
5255
5293
 
5256
- if (typeof options === 'undefined') {
5257
- return id + '';
5294
+ if (merge && isPlainObject(obj[prop]) && isPlainObject(value)) {
5295
+ obj[prop] = merge(obj[prop], value);
5296
+ } else {
5297
+ obj[prop] = value;
5298
+ }
5299
+ } else {
5300
+ obj[prop] = value;
5258
5301
  }
5259
5302
 
5260
- var keys = Object.keys(options);
5303
+ return obj;
5304
+ };
5305
+
5306
+ var setValue = function setValue(target, path, value, options) {
5307
+ if (!path || !isObject(target)) return target;
5308
+ var keys = split$1(path, options);
5309
+ var obj = target;
5261
5310
 
5262
5311
  for (var i = 0; i < keys.length; i++) {
5263
5312
  var key = keys[i];
5264
- id += ';' + key + '=' + String(options[key]);
5313
+ var next = keys[i + 1];
5314
+ validateKey(key);
5315
+
5316
+ if (next === undefined) {
5317
+ assignProp(obj, key, value, options);
5318
+ break;
5319
+ }
5320
+
5321
+ if (typeof next === 'number' && !Array.isArray(obj[key])) {
5322
+ obj = obj[key] = [];
5323
+ continue;
5324
+ }
5325
+
5326
+ if (!isObject(obj[key])) {
5327
+ obj[key] = {};
5328
+ }
5329
+
5330
+ obj = obj[key];
5265
5331
  }
5266
5332
 
5267
- return id;
5268
- }
5333
+ return target;
5334
+ };
5269
5335
 
5270
- function isValidKey(key) {
5271
- return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';
5272
- }
5336
+ setValue.split = split$1;
5337
+ setValue.cache = new Map();
5273
5338
 
5274
- function isObject(val) {
5275
- return val !== null && (_typeof(val) === 'object' || typeof val === 'function');
5276
- }
5339
+ setValue.clear = function () {
5340
+ setValue.cache = new Map();
5341
+ };
5277
5342
 
5278
- set.memo = {};
5279
- var setValue = set;
5343
+ var setValue_1 = setValue;
5280
5344
 
5281
5345
  var LOG_LEVEL_INFO = 1;
5282
5346
  var LOG_LEVEL_DEBUG = 2;
@@ -5328,160 +5392,237 @@
5328
5392
  }
5329
5393
  };
5330
5394
 
5331
- // for sdk side native integration identification
5395
+ var _CNameMapping;
5396
+
5397
+ var NAME = "ADOBE_ANALYTICS";
5398
+ var CNameMapping = (_CNameMapping = {
5399
+ "Adobe Analytics": NAME
5400
+ }, _defineProperty(_CNameMapping, NAME, NAME), _defineProperty(_CNameMapping, "AdobeAnalytics", NAME), _defineProperty(_CNameMapping, "adobeanalytics", NAME), _CNameMapping);
5401
+
5402
+ var _CNameMapping$1;
5403
+
5404
+ var NAME$1 = "AM";
5405
+ var CNameMapping$1 = (_CNameMapping$1 = {}, _defineProperty(_CNameMapping$1, NAME$1, NAME$1), _defineProperty(_CNameMapping$1, "AMPLITUDE", NAME$1), _defineProperty(_CNameMapping$1, "Amplitude", NAME$1), _CNameMapping$1);
5406
+
5407
+ var _CNameMapping$2;
5408
+
5409
+ var NAME$2 = "APPCUES";
5410
+ var CNameMapping$2 = (_CNameMapping$2 = {}, _defineProperty(_CNameMapping$2, NAME$2, NAME$2), _defineProperty(_CNameMapping$2, "Appcues", NAME$2), _CNameMapping$2);
5411
+
5412
+ var _CNameMapping$3;
5413
+
5414
+ var NAME$3 = "BINGADS";
5415
+ var CNameMapping$3 = (_CNameMapping$3 = {}, _defineProperty(_CNameMapping$3, NAME$3, NAME$3), _defineProperty(_CNameMapping$3, "BingAds", NAME$3), _CNameMapping$3);
5416
+
5417
+ var _CNameMapping$4;
5418
+
5419
+ var NAME$4 = "BRAZE";
5420
+ var CNameMapping$4 = (_CNameMapping$4 = {}, _defineProperty(_CNameMapping$4, NAME$4, NAME$4), _defineProperty(_CNameMapping$4, "Braze", NAME$4), _CNameMapping$4);
5421
+
5422
+ var NAME$5 = "BUGSNAG";
5423
+
5424
+ var CNameMapping$5 = _defineProperty({}, NAME$5, NAME$5);
5425
+
5426
+ var _CNameMapping$5;
5427
+
5428
+ var NAME$6 = "CHARTBEAT";
5429
+ var CNameMapping$6 = (_CNameMapping$5 = {}, _defineProperty(_CNameMapping$5, NAME$6, NAME$6), _defineProperty(_CNameMapping$5, "Chartbeat", NAME$6), _CNameMapping$5);
5430
+
5431
+ var _CNameMapping$6;
5432
+
5433
+ var NAME$7 = "CLEVERTAP";
5434
+ var CNameMapping$7 = (_CNameMapping$6 = {}, _defineProperty(_CNameMapping$6, NAME$7, NAME$7), _defineProperty(_CNameMapping$6, "Clevertap", NAME$7), _CNameMapping$6);
5435
+
5436
+ var _CNameMapping$7;
5437
+
5438
+ var NAME$8 = "COMSCORE";
5439
+ var CNameMapping$8 = (_CNameMapping$7 = {}, _defineProperty(_CNameMapping$7, NAME$8, NAME$8), _defineProperty(_CNameMapping$7, "Comscore", NAME$8), _CNameMapping$7);
5440
+
5441
+ var _CNameMapping$8;
5442
+
5443
+ var NAME$9 = "CRITEO";
5444
+ var CNameMapping$9 = (_CNameMapping$8 = {}, _defineProperty(_CNameMapping$8, NAME$9, NAME$9), _defineProperty(_CNameMapping$8, "Criteo", NAME$9), _defineProperty(_CNameMapping$8, "criteo", NAME$9), _CNameMapping$8);
5445
+
5446
+ var _CNameMapping$9;
5447
+
5448
+ var NAME$a = "CUSTOMERIO";
5449
+ var CNameMapping$a = (_CNameMapping$9 = {}, _defineProperty(_CNameMapping$9, NAME$a, NAME$a), _defineProperty(_CNameMapping$9, "Customerio", NAME$a), _defineProperty(_CNameMapping$9, "Customer.io", NAME$a), _CNameMapping$9);
5450
+
5451
+ var _CNameMapping$a;
5452
+
5453
+ var NAME$b = "DRIP";
5454
+ var CNameMapping$b = (_CNameMapping$a = {}, _defineProperty(_CNameMapping$a, NAME$b, NAME$b), _defineProperty(_CNameMapping$a, "Drip", NAME$b), _defineProperty(_CNameMapping$a, "drip", NAME$b), _CNameMapping$a);
5455
+
5456
+ var _CNameMapping$b;
5457
+
5458
+ var NAME$c = "FACEBOOK_PIXEL";
5459
+ var CNameMapping$c = (_CNameMapping$b = {}, _defineProperty(_CNameMapping$b, NAME$c, NAME$c), _defineProperty(_CNameMapping$b, "FB Pixel", NAME$c), _defineProperty(_CNameMapping$b, "Facebook Pixel", NAME$c), _defineProperty(_CNameMapping$b, "FB_PIXEL", NAME$c), _CNameMapping$b);
5460
+
5461
+ var _CNameMapping$c;
5462
+
5463
+ var NAME$d = "FULLSTORY";
5464
+ var CNameMapping$d = (_CNameMapping$c = {}, _defineProperty(_CNameMapping$c, NAME$d, NAME$d), _defineProperty(_CNameMapping$c, "Fullstory", NAME$d), _defineProperty(_CNameMapping$c, "FullStory", NAME$d), _CNameMapping$c);
5465
+
5466
+ var _CNameMapping$d;
5467
+
5468
+ var NAME$e = "GA";
5469
+ var CNameMapping$e = (_CNameMapping$d = {}, _defineProperty(_CNameMapping$d, NAME$e, NAME$e), _defineProperty(_CNameMapping$d, "Google Analytics", NAME$e), _defineProperty(_CNameMapping$d, "GoogleAnalytics", NAME$e), _CNameMapping$d);
5470
+
5471
+ var _CNameMapping$e;
5472
+
5473
+ var NAME$f = "GA4";
5474
+ var CNameMapping$f = (_CNameMapping$e = {}, _defineProperty(_CNameMapping$e, NAME$f, NAME$f), _defineProperty(_CNameMapping$e, "Google Analytics 4", NAME$f), _defineProperty(_CNameMapping$e, "GoogleAnalytics4", NAME$f), _CNameMapping$e);
5475
+
5476
+ var _CNameMapping$f;
5477
+
5478
+ var NAME$g = "GOOGLEADS";
5479
+ var CNameMapping$g = (_CNameMapping$f = {}, _defineProperty(_CNameMapping$f, NAME$g, NAME$g), _defineProperty(_CNameMapping$f, "Google Ads", NAME$g), _defineProperty(_CNameMapping$f, "GoogleAds", NAME$g), _CNameMapping$f);
5480
+
5481
+ var _CNameMapping$g;
5482
+
5483
+ var NAME$h = "GOOGLE_OPTIMIZE";
5484
+ var CNameMapping$h = (_CNameMapping$g = {}, _defineProperty(_CNameMapping$g, NAME$h, NAME$h), _defineProperty(_CNameMapping$g, "Google Optimize", NAME$h), _defineProperty(_CNameMapping$g, "GoogleOptimize", NAME$h), _defineProperty(_CNameMapping$g, "Googleoptimize", NAME$h), _defineProperty(_CNameMapping$g, "GOOGLEOPTIMIZE", NAME$h), _CNameMapping$g);
5485
+
5486
+ var _CNameMapping$h;
5487
+
5488
+ var NAME$i = "GTM";
5489
+ var CNameMapping$i = (_CNameMapping$h = {}, _defineProperty(_CNameMapping$h, NAME$i, NAME$i), _defineProperty(_CNameMapping$h, "Google Tag Manager", NAME$i), _CNameMapping$h);
5490
+
5491
+ var _CNameMapping$i;
5492
+
5493
+ var NAME$j = "HEAP";
5494
+ var CNameMapping$j = (_CNameMapping$i = {}, _defineProperty(_CNameMapping$i, NAME$j, NAME$j), _defineProperty(_CNameMapping$i, "Heap", NAME$j), _defineProperty(_CNameMapping$i, "heap", NAME$j), _defineProperty(_CNameMapping$i, "Heap.io", NAME$j), _CNameMapping$i);
5495
+
5496
+ var _CNameMapping$j;
5497
+
5498
+ var NAME$k = "HOTJAR";
5499
+ var CNameMapping$k = (_CNameMapping$j = {}, _defineProperty(_CNameMapping$j, NAME$k, NAME$k), _defineProperty(_CNameMapping$j, "Hotjar", NAME$k), _defineProperty(_CNameMapping$j, "hotjar", NAME$k), _CNameMapping$j);
5500
+
5501
+ var _CNameMapping$k;
5502
+
5503
+ var NAME$l = "HS";
5504
+ var CNameMapping$l = (_CNameMapping$k = {}, _defineProperty(_CNameMapping$k, NAME$l, NAME$l), _defineProperty(_CNameMapping$k, "Hubspot", NAME$l), _defineProperty(_CNameMapping$k, "HUBSPOT", NAME$l), _CNameMapping$k);
5505
+
5506
+ var _CNameMapping$l;
5507
+
5508
+ var NAME$m = "INTERCOM";
5509
+ var CNameMapping$m = (_CNameMapping$l = {}, _defineProperty(_CNameMapping$l, NAME$m, NAME$m), _defineProperty(_CNameMapping$l, "Intercom", NAME$m), _CNameMapping$l);
5510
+
5511
+ var _CNameMapping$m;
5512
+
5513
+ var NAME$n = "KEEN";
5514
+ var CNameMapping$n = (_CNameMapping$m = {}, _defineProperty(_CNameMapping$m, NAME$n, NAME$n), _defineProperty(_CNameMapping$m, "Keen", NAME$n), _defineProperty(_CNameMapping$m, "Keen.io", NAME$n), _CNameMapping$m);
5515
+
5516
+ var _CNameMapping$n;
5517
+
5518
+ var NAME$o = "KISSMETRICS";
5519
+ var CNameMapping$o = (_CNameMapping$n = {}, _defineProperty(_CNameMapping$n, NAME$o, NAME$o), _defineProperty(_CNameMapping$n, "Kissmetrics", NAME$o), _CNameMapping$n);
5520
+
5521
+ var _CNameMapping$o;
5522
+
5523
+ var NAME$p = "KLAVIYO";
5524
+ var CNameMapping$p = (_CNameMapping$o = {}, _defineProperty(_CNameMapping$o, NAME$p, NAME$p), _defineProperty(_CNameMapping$o, "Klaviyo", NAME$p), _CNameMapping$o);
5525
+
5526
+ var _CNameMapping$p;
5527
+
5528
+ var NAME$q = "LAUNCHDARKLY";
5529
+ var CNameMapping$q = (_CNameMapping$p = {}, _defineProperty(_CNameMapping$p, NAME$q, NAME$q), _defineProperty(_CNameMapping$p, "LaunchDarkly", NAME$q), _defineProperty(_CNameMapping$p, "Launch_Darkly", NAME$q), _defineProperty(_CNameMapping$p, "Launch Darkly", NAME$q), _defineProperty(_CNameMapping$p, "launchDarkly", NAME$q), _CNameMapping$p);
5530
+
5531
+ var _CNameMapping$q;
5532
+
5533
+ var NAME$r = "LINKEDIN_INSIGHT_TAG";
5534
+ var CNameMapping$r = (_CNameMapping$q = {}, _defineProperty(_CNameMapping$q, NAME$r, NAME$r), _defineProperty(_CNameMapping$q, "LinkedIn Insight Tag", NAME$r), _defineProperty(_CNameMapping$q, "Linkedin_insight_tag", NAME$r), _defineProperty(_CNameMapping$q, "LinkedinInsighttag", NAME$r), _defineProperty(_CNameMapping$q, "LinkedinInsightTag", NAME$r), _defineProperty(_CNameMapping$q, "LinkedInInsightTag", NAME$r), _defineProperty(_CNameMapping$q, "Linkedininsighttag", NAME$r), _defineProperty(_CNameMapping$q, "LINKEDININSIGHTTAG", NAME$r), _CNameMapping$q);
5535
+
5536
+ var _CNameMapping$r;
5537
+
5538
+ var NAME$s = "LOTAME";
5539
+ var CNameMapping$s = (_CNameMapping$r = {}, _defineProperty(_CNameMapping$r, NAME$s, NAME$s), _defineProperty(_CNameMapping$r, "Lotame", NAME$s), _CNameMapping$r);
5540
+
5541
+ var _CNameMapping$s;
5542
+
5543
+ var NAME$t = "LYTICS";
5544
+ var CNameMapping$t = (_CNameMapping$s = {}, _defineProperty(_CNameMapping$s, NAME$t, NAME$t), _defineProperty(_CNameMapping$s, "Lytics", NAME$t), _CNameMapping$s);
5545
+
5546
+ var _CNameMapping$t;
5547
+
5548
+ var NAME$u = "MP";
5549
+ var CNameMapping$u = (_CNameMapping$t = {}, _defineProperty(_CNameMapping$t, NAME$u, NAME$u), _defineProperty(_CNameMapping$t, "MIXPANEL", NAME$u), _defineProperty(_CNameMapping$t, "Mixpanel", NAME$u), _CNameMapping$t);
5550
+
5551
+ var _CNameMapping$u;
5552
+
5553
+ var NAME$v = "MOENGAGE";
5554
+ var CNameMapping$v = (_CNameMapping$u = {}, _defineProperty(_CNameMapping$u, NAME$v, NAME$v), _defineProperty(_CNameMapping$u, "MoEngage", NAME$v), _CNameMapping$u);
5555
+
5556
+ var _CNameMapping$v;
5557
+
5558
+ var NAME$w = "OPTIMIZELY";
5559
+ var CNameMapping$w = (_CNameMapping$v = {}, _defineProperty(_CNameMapping$v, NAME$w, NAME$w), _defineProperty(_CNameMapping$v, "Optimizely", NAME$w), _CNameMapping$v);
5560
+
5561
+ var _CNameMapping$w;
5562
+
5563
+ var NAME$x = "PENDO";
5564
+ var CNameMapping$x = (_CNameMapping$w = {}, _defineProperty(_CNameMapping$w, NAME$x, NAME$x), _defineProperty(_CNameMapping$w, "Pendo", NAME$x), _CNameMapping$w);
5565
+
5566
+ var _CNameMapping$x;
5567
+
5568
+ var NAME$y = "PINTEREST_TAG";
5569
+ var CNameMapping$y = (_CNameMapping$x = {}, _defineProperty(_CNameMapping$x, NAME$y, NAME$y), _defineProperty(_CNameMapping$x, "PinterestTag", NAME$y), _defineProperty(_CNameMapping$x, "Pinterest_Tag", NAME$y), _defineProperty(_CNameMapping$x, "PINTERESTTAG", NAME$y), _defineProperty(_CNameMapping$x, "pinterest", NAME$y), _defineProperty(_CNameMapping$x, "PinterestAds", NAME$y), _defineProperty(_CNameMapping$x, "Pinterest_Ads", NAME$y), _defineProperty(_CNameMapping$x, "Pinterest", NAME$y), _CNameMapping$x);
5570
+
5571
+ var _CNameMapping$y;
5572
+
5573
+ var NAME$z = "POST_AFFILIATE_PRO";
5574
+ var CNameMapping$z = (_CNameMapping$y = {}, _defineProperty(_CNameMapping$y, NAME$z, NAME$z), _defineProperty(_CNameMapping$y, "PostAffiliatePro", NAME$z), _defineProperty(_CNameMapping$y, "Post_affiliate_pro", NAME$z), _defineProperty(_CNameMapping$y, "Post Affiliate Pro", NAME$z), _defineProperty(_CNameMapping$y, "postaffiliatepro", NAME$z), _defineProperty(_CNameMapping$y, "POSTAFFILIATEPRO", NAME$z), _CNameMapping$y);
5575
+
5576
+ var _CNameMapping$z;
5577
+
5578
+ var NAME$A = "POSTHOG";
5579
+ var CNameMapping$A = (_CNameMapping$z = {}, _defineProperty(_CNameMapping$z, NAME$A, NAME$A), _defineProperty(_CNameMapping$z, "PostHog", NAME$A), _defineProperty(_CNameMapping$z, "Posthog", NAME$A), _CNameMapping$z);
5580
+
5581
+ var _CNameMapping$A;
5582
+
5583
+ var NAME$B = "PROFITWELL";
5584
+ var CNameMapping$B = (_CNameMapping$A = {}, _defineProperty(_CNameMapping$A, NAME$B, NAME$B), _defineProperty(_CNameMapping$A, "ProfitWell", NAME$B), _defineProperty(_CNameMapping$A, "profitwell", NAME$B), _defineProperty(_CNameMapping$A, "Profitwell", NAME$B), _CNameMapping$A);
5585
+
5586
+ var _CNameMapping$B;
5587
+
5588
+ var NAME$C = "QUALTRICS";
5589
+ var CNameMapping$C = (_CNameMapping$B = {}, _defineProperty(_CNameMapping$B, NAME$C, NAME$C), _defineProperty(_CNameMapping$B, "Qualtrics", NAME$C), _defineProperty(_CNameMapping$B, "qualtrics", NAME$C), _CNameMapping$B);
5590
+
5591
+ var _CNameMapping$C;
5592
+
5593
+ var NAME$D = "QUANTUMMETRIC";
5594
+ var CNameMapping$D = (_CNameMapping$C = {}, _defineProperty(_CNameMapping$C, NAME$D, NAME$D), _defineProperty(_CNameMapping$C, "Quantum Metric", NAME$D), _defineProperty(_CNameMapping$C, "QuantumMetric", NAME$D), _defineProperty(_CNameMapping$C, "quantumMetric", NAME$D), _defineProperty(_CNameMapping$C, "quantummetric", NAME$D), _defineProperty(_CNameMapping$C, "Quantum_Metric", NAME$D), _CNameMapping$C);
5595
+
5596
+ var _CNameMapping$D;
5597
+
5598
+ var NAME$E = "REDDIT_PIXEL";
5599
+ var CNameMapping$E = (_CNameMapping$D = {}, _defineProperty(_CNameMapping$D, NAME$E, NAME$E), _defineProperty(_CNameMapping$D, "Reddit_Pixel", NAME$E), _defineProperty(_CNameMapping$D, "RedditPixel", NAME$E), _defineProperty(_CNameMapping$D, "REDDITPIXEL", NAME$E), _defineProperty(_CNameMapping$D, "redditpixel", NAME$E), _defineProperty(_CNameMapping$D, "Reddit Pixel", NAME$E), _defineProperty(_CNameMapping$D, "REDDIT PIXEL", NAME$E), _defineProperty(_CNameMapping$D, "reddit pixel", NAME$E), _CNameMapping$D);
5600
+
5601
+ var _CNameMapping$E;
5602
+
5603
+ var NAME$F = "SENTRY";
5604
+ var CNameMapping$F = (_CNameMapping$E = {}, _defineProperty(_CNameMapping$E, NAME$F, NAME$F), _defineProperty(_CNameMapping$E, "sentry", NAME$F), _defineProperty(_CNameMapping$E, "Sentry", NAME$F), _CNameMapping$E);
5605
+
5606
+ var _CNameMapping$F;
5607
+
5608
+ var NAME$G = "SNAP_PIXEL";
5609
+ var CNameMapping$G = (_CNameMapping$F = {}, _defineProperty(_CNameMapping$F, NAME$G, NAME$G), _defineProperty(_CNameMapping$F, "Snap_Pixel", NAME$G), _defineProperty(_CNameMapping$F, "SnapPixel", NAME$G), _defineProperty(_CNameMapping$F, "SNAPPIXEL", NAME$G), _defineProperty(_CNameMapping$F, "snappixel", NAME$G), _defineProperty(_CNameMapping$F, "Snap Pixel", NAME$G), _defineProperty(_CNameMapping$F, "SNAP PIXEL", NAME$G), _defineProperty(_CNameMapping$F, "snap pixel", NAME$G), _CNameMapping$F);
5610
+
5611
+ var _CNameMapping$G;
5612
+
5613
+ var NAME$H = "TVSQUARED";
5614
+ var CNameMapping$H = (_CNameMapping$G = {}, _defineProperty(_CNameMapping$G, NAME$H, NAME$H), _defineProperty(_CNameMapping$G, "TVSquared", NAME$H), _CNameMapping$G);
5615
+
5616
+ var _CNameMapping$H;
5617
+
5618
+ var NAME$I = "VWO";
5619
+ var CNameMapping$I = (_CNameMapping$H = {}, _defineProperty(_CNameMapping$H, NAME$I, NAME$I), _defineProperty(_CNameMapping$H, "Visual Website Optimizer", NAME$I), _CNameMapping$H);
5620
+
5332
5621
  // add a mapping from common names to index.js exported key names as identified by Rudder
5333
- var commonNames = {
5334
- All: "All",
5335
- "Google Analytics": "GA",
5336
- GoogleAnalytics: "GA",
5337
- GA: "GA",
5338
- "Google Ads": "GOOGLEADS",
5339
- GoogleAds: "GOOGLEADS",
5340
- GOOGLEADS: "GOOGLEADS",
5341
- Braze: "BRAZE",
5342
- BRAZE: "BRAZE",
5343
- Chartbeat: "CHARTBEAT",
5344
- CHARTBEAT: "CHARTBEAT",
5345
- Comscore: "COMSCORE",
5346
- COMSCORE: "COMSCORE",
5347
- Customerio: "CUSTOMERIO",
5348
- CUSTOMERIO: "CUSTOMERIO",
5349
- "Customer.io": "CUSTOMERIO",
5350
- "FB Pixel": "FACEBOOK_PIXEL",
5351
- "Facebook Pixel": "FACEBOOK_PIXEL",
5352
- FB_PIXEL: "FACEBOOK_PIXEL",
5353
- FACEBOOK_PIXEL: "FACEBOOK_PIXEL",
5354
- "Google Tag Manager": "GTM",
5355
- GTM: "GTM",
5356
- Hotjar: "HOTJAR",
5357
- hotjar: "HOTJAR",
5358
- HOTJAR: "HOTJAR",
5359
- Hubspot: "HS",
5360
- HUBSPOT: "HS",
5361
- HS: "HS",
5362
- Intercom: "INTERCOM",
5363
- INTERCOM: "INTERCOM",
5364
- Keen: "KEEN",
5365
- "Keen.io": "KEEN",
5366
- KEEN: "KEEN",
5367
- Kissmetrics: "KISSMETRICS",
5368
- KISSMETRICS: "KISSMETRICS",
5369
- Lotame: "LOTAME",
5370
- LOTAME: "LOTAME",
5371
- "Visual Website Optimizer": "VWO",
5372
- VWO: "VWO",
5373
- OPTIMIZELY: "OPTIMIZELY",
5374
- Optimizely: "OPTIMIZELY",
5375
- FULLSTORY: "FULLSTORY",
5376
- Fullstory: "FULLSTORY",
5377
- FullStory: "FULLSTORY",
5378
- BUGSNAG: "BUGSNAG",
5379
- TVSQUARED: "TVSQUARED",
5380
- TVSquared: "TVSQUARED",
5381
- "Google Analytics 4": "GA4",
5382
- GoogleAnalytics4: "GA4",
5383
- GA4: "GA4",
5384
- MoEngage: "MOENGAGE",
5385
- MOENGAGE: "MOENGAGE",
5386
- AM: "AM",
5387
- AMPLITUDE: "AM",
5388
- Amplitude: "AM",
5389
- Pendo: "PENDO",
5390
- PENDO: "PENDO",
5391
- Lytics: "LYTICS",
5392
- LYTICS: "LYTICS",
5393
- Appcues: "APPCUES",
5394
- APPCUES: "APPCUES",
5395
- POSTHOG: "POSTHOG",
5396
- PostHog: "POSTHOG",
5397
- Posthog: "POSTHOG",
5398
- KLAVIYO: "KLAVIYO",
5399
- Klaviyo: "KLAVIYO",
5400
- CLEVERTAP: "CLEVERTAP",
5401
- Clevertap: "CLEVERTAP",
5402
- BingAds: "BINGADS",
5403
- BINGADS: "BINGADS",
5404
- PinterestTag: "PINTEREST_TAG",
5405
- Pinterest_Tag: "PINTEREST_TAG",
5406
- PINTERESTTAG: "PINTEREST_TAG",
5407
- PINTEREST_TAG: "PINTEREST_TAG",
5408
- pinterest: "PINTEREST_TAG",
5409
- PinterestAds: "PINTEREST_TAG",
5410
- Pinterest_Ads: "PINTEREST_TAG",
5411
- Pinterest: "PINTEREST_TAG",
5412
- "Adobe Analytics": "ADOBE_ANALYTICS",
5413
- ADOBE_ANALYTICS: "ADOBE_ANALYTICS",
5414
- AdobeAnalytics: "ADOBE_ANALYTICS",
5415
- adobeanalytics: "ADOBE_ANALYTICS",
5416
- "LinkedIn Insight Tag": "LINKEDIN_INSIGHT_TAG",
5417
- LINKEDIN_INSIGHT_TAG: "LINKEDIN_INSIGHT_TAG",
5418
- Linkedin_insight_tag: "LINKEDIN_INSIGHT_TAG",
5419
- LinkedinInsighttag: "LINKEDIN_INSIGHT_TAG",
5420
- LinkedinInsightTag: "LINKEDIN_INSIGHT_TAG",
5421
- LinkedInInsightTag: "LINKEDIN_INSIGHT_TAG",
5422
- Linkedininsighttag: "LINKEDIN_INSIGHT_TAG",
5423
- LINKEDININSIGHTTAG: "LINKEDIN_INSIGHT_TAG",
5424
- Reddit_Pixel: "REDDIT_PIXEL",
5425
- REDDIT_PIXEL: "REDDIT_PIXEL",
5426
- RedditPixel: "REDDIT_PIXEL",
5427
- REDDITPIXEL: "REDDIT_PIXEL",
5428
- redditpixel: "REDDIT_PIXEL",
5429
- "Reddit Pixel": "REDDIT_PIXEL",
5430
- "REDDIT PIXEL": "REDDIT_PIXEL",
5431
- "reddit pixel": "REDDIT_PIXEL",
5432
- Drip: "DRIP",
5433
- drip: "DRIP",
5434
- DRIP: "DRIP",
5435
- Heap: "HEAP",
5436
- heap: "HEAP",
5437
- "Heap.io": "HEAP",
5438
- HEAP: "HEAP",
5439
- Criteo: "CRITEO",
5440
- criteo: "CRITEO",
5441
- CRITEO: "CRITEO",
5442
- MIXPANEL: "MP",
5443
- Mixpanel: "MP",
5444
- MP: "MP",
5445
- Qualtrics: "QUALTRICS",
5446
- qualtrics: "QUALTRICS",
5447
- QUALTRICS: "QUALTRICS",
5448
- Snap_Pixel: "SNAP_PIXEL",
5449
- SnapPixel: "SNAP_PIXEL",
5450
- SNAPPIXEL: "SNAP_PIXEL",
5451
- snappixel: "SNAP_PIXEL",
5452
- SNAP_PIXEL: "SNAP_PIXEL",
5453
- "Snap Pixel": "SNAP_PIXEL",
5454
- "SNAP PIXEL": "SNAP_PIXEL",
5455
- "snap pixel": "SNAP_PIXEL",
5456
- PROFITWELL: "PROFITWELL",
5457
- ProfitWell: "PROFITWELL",
5458
- profitwell: "PROFITWELL",
5459
- SENTRY: "SENTRY",
5460
- sentry: "SENTRY",
5461
- Sentry: "SENTRY",
5462
- "Quantum Metric": "QUANTUMMETRIC",
5463
- QuantumMetric: "QUANTUMMETRIC",
5464
- quantumMetric: "QUANTUMMETRIC",
5465
- quantummetric: "QUANTUMMETRIC",
5466
- Quantum_Metric: "QUANTUMMETRIC",
5467
- QUANTUMMETRIC: "QUANTUMMETRIC",
5468
- "Google Optimize": "GOOGLE_OPTIMIZE",
5469
- GOOGLE_OPTIMIZE: "GOOGLE_OPTIMIZE",
5470
- GoogleOptimize: "GOOGLE_OPTIMIZE",
5471
- Googleoptimize: "GOOGLE_OPTIMIZE",
5472
- GOOGLEOPTIMIZE: "GOOGLE_OPTIMIZE",
5473
- PostAffiliatePro: "POST_AFFILIATE_PRO",
5474
- Post_affiliate_pro: "POST_AFFILIATE_PRO",
5475
- "Post Affiliate Pro": "POST_AFFILIATE_PRO",
5476
- postaffiliatepro: "POST_AFFILIATE_PRO",
5477
- POSTAFFILIATEPRO: "POST_AFFILIATE_PRO",
5478
- POST_AFFILIATE_PRO: "POST_AFFILIATE_PRO",
5479
- LaunchDarkly: "LAUNCHDARKLY",
5480
- Launch_Darkly: "LAUNCHDARKLY",
5481
- LAUNCHDARKLY: "LAUNCHDARKLY",
5482
- "Launch Darkly": "LAUNCHDARKLY",
5483
- launchDarkly: "LAUNCHDARKLY"
5484
- };
5622
+
5623
+ var commonNames = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
5624
+ All: "All"
5625
+ }, CNameMapping), CNameMapping$1), CNameMapping$2), CNameMapping$3), CNameMapping$4), CNameMapping$5), CNameMapping$6), CNameMapping$7), CNameMapping$8), CNameMapping$9), CNameMapping$a), CNameMapping$b), CNameMapping$c), CNameMapping$d), CNameMapping$e), CNameMapping$f), CNameMapping$g), CNameMapping$h), CNameMapping$i), CNameMapping$j), CNameMapping$k), CNameMapping$l), CNameMapping$m), CNameMapping$n), CNameMapping$o), CNameMapping$p), CNameMapping$q), CNameMapping$r), CNameMapping$s), CNameMapping$t), CNameMapping$u), CNameMapping$v), CNameMapping$w), CNameMapping$x), CNameMapping$y), CNameMapping$z), CNameMapping$A), CNameMapping$B), CNameMapping$C), CNameMapping$D), CNameMapping$E), CNameMapping$F), CNameMapping$G), CNameMapping$H), CNameMapping$I);
5485
5626
 
5486
5627
  // from client native integration name to server identified display name
5487
5628
  // add a mapping from Rudder identified key names to Rudder server recognizable names
@@ -5572,7 +5713,7 @@
5572
5713
  PRODUCT_REVIEWED: "Product Reviewed"
5573
5714
  }; // Enumeration for integrations supported
5574
5715
 
5575
- var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=1.3.3";
5716
+ var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=1.3.4";
5576
5717
  var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
5577
5718
  var INTEGRATION_LOAD_CHECK_INTERVAL = 1000;
5578
5719
  /* module.exports = {
@@ -8710,7 +8851,7 @@
8710
8851
  switch (arguments.length) {
8711
8852
  case 3:
8712
8853
  case 2:
8713
- return set$1(name, value, options);
8854
+ return set(name, value, options);
8714
8855
 
8715
8856
  case 1:
8716
8857
  return get(name);
@@ -8729,7 +8870,7 @@
8729
8870
  */
8730
8871
 
8731
8872
 
8732
- function set$1(name, value, options) {
8873
+ function set(name, value, options) {
8733
8874
  options = options || {};
8734
8875
  var str = encode$1(name) + '=' + encode$1(value);
8735
8876
  if (null == value) options.maxage = -1;
@@ -10901,7 +11042,7 @@
10901
11042
  switch (arguments.length) {
10902
11043
  case 3:
10903
11044
  case 2:
10904
- return set$2(name, value, options);
11045
+ return set$1(name, value, options);
10905
11046
 
10906
11047
  case 1:
10907
11048
  return get$1(name);
@@ -10920,7 +11061,7 @@
10920
11061
  */
10921
11062
 
10922
11063
 
10923
- function set$2(name, value, options) {
11064
+ function set$1(name, value, options) {
10924
11065
  options = options || {};
10925
11066
  var str = encode$2(name) + '=' + encode$2(value);
10926
11067
  if (null == value) options.maxage = -1;
@@ -12336,7 +12477,7 @@
12336
12477
  });
12337
12478
  objKeys.map(function (k) {
12338
12479
  if (!(typeof messageContext[k] === "undefined")) {
12339
- setValue(destination, k, getValue(messageContext, k));
12480
+ setValue_1(destination, k, getValue(messageContext, k));
12340
12481
  }
12341
12482
  });
12342
12483
  }
@@ -12364,7 +12505,7 @@
12364
12505
  };
12365
12506
 
12366
12507
  if (!getValue(traitsValue, "name") && getValue(traitsValue, "firstName") && getValue(traitsValue, "lastName")) {
12367
- setValue(traitsValue, "name", "".concat(getValue(traitsValue, "firstName"), " ").concat(getValue(traitsValue, "lastName")));
12508
+ setValue_1(traitsValue, "name", "".concat(getValue(traitsValue, "firstName"), " ").concat(getValue(traitsValue, "lastName")));
12368
12509
  }
12369
12510
 
12370
12511
  return traitsValue;
@@ -22919,7 +23060,7 @@
22919
23060
  this.proxyNormalUrl = config.proxyNormalUrl;
22920
23061
  this.proxyHeartbeatUrl = config.proxyHeartbeatUrl;
22921
23062
  this.pageName = "";
22922
- this.name = "ADOBE_ANALYTICS";
23063
+ this.name = NAME;
22923
23064
  setConfig(config);
22924
23065
  }
22925
23066
 
@@ -23201,7 +23342,7 @@
23201
23342
 
23202
23343
  _classCallCheck(this, Amplitude);
23203
23344
 
23204
- this.name = "AM";
23345
+ this.name = NAME$1;
23205
23346
  this.analytics = analytics;
23206
23347
  this.apiKey = config.apiKey;
23207
23348
  this.trackAllPages = config.trackAllPages || false;
@@ -23628,6 +23769,12 @@
23628
23769
  amplitudeRevenue.setProductId(productId);
23629
23770
  }
23630
23771
 
23772
+ if (amplitudeRevenue._properties) {
23773
+ delete amplitudeRevenue._properties.price;
23774
+ delete amplitudeRevenue._properties.productId;
23775
+ delete amplitudeRevenue._properties.quantity;
23776
+ }
23777
+
23631
23778
  window.amplitude.getInstance().logRevenueV2(amplitudeRevenue);
23632
23779
  }
23633
23780
  }, {
@@ -23664,7 +23811,7 @@
23664
23811
 
23665
23812
  this.accountId = config.accountId;
23666
23813
  this.apiKey = config.apiKey;
23667
- this.name = "APPCUES"; //this.sendToAllDestinations = config.sendToAll;
23814
+ this.name = NAME$2; // this.sendToAllDestinations = config.sendToAll;
23668
23815
  }
23669
23816
 
23670
23817
  _createClass(Appcues, [{
@@ -23812,11 +23959,11 @@
23812
23959
  };
23813
23960
 
23814
23961
  this.page = function () {
23815
- window.uetq.push('pageLoad');
23962
+ window.uetq.push("pageLoad");
23816
23963
  };
23817
23964
 
23818
23965
  this.tagID = config.tagID;
23819
- this.name = "BINGADS";
23966
+ this.name = NAME$3;
23820
23967
  });
23821
23968
 
23822
23969
  /*
@@ -23844,7 +23991,7 @@
23844
23991
  }
23845
23992
  }
23846
23993
 
23847
- this.name = "BRAZE";
23994
+ this.name = NAME$4;
23848
23995
  logger.debug("Config ", config);
23849
23996
  }
23850
23997
  /** https://js.appboycdn.com/web-sdk/latest/doc/ab.User.html#toc4
@@ -24023,7 +24170,7 @@
24023
24170
 
24024
24171
  this.releaseStage = config.releaseStage;
24025
24172
  this.apiKey = config.apiKey;
24026
- this.name = "BUGSNAG";
24173
+ this.name = NAME$5;
24027
24174
  this.setIntervalHandler = undefined;
24028
24175
  }
24029
24176
 
@@ -24497,7 +24644,7 @@
24497
24644
  this.replayEvents = [];
24498
24645
  this.failed = false;
24499
24646
  this.isFirstPageCallMade = false;
24500
- this.name = "CHARTBEAT";
24647
+ this.name = NAME$6;
24501
24648
  }
24502
24649
 
24503
24650
  _createClass(Chartbeat, [{
@@ -24660,7 +24807,7 @@
24660
24807
 
24661
24808
  this.accountId = config.accountId;
24662
24809
  this.apiKey = config.passcode;
24663
- this.name = "CLEVERTAP";
24810
+ this.name = NAME$7;
24664
24811
  this.region = config.region;
24665
24812
  this.keysToExtract = ["context.traits"];
24666
24813
  this.exclusionKeys = ["email", "E-mail", "Email", "phone", "Phone", "name", "Name", "gender", "Gender", "birthday", "Birthday", "anonymousId", "userId", "lastName", "lastname", "last_name", "firstName", "firstname", "first_name", "employed", "education", "married", "customerType"];
@@ -24831,7 +24978,7 @@
24831
24978
  this.failed = false;
24832
24979
  this.comScoreParams = {};
24833
24980
  this.replayEvents = [];
24834
- this.name = "COMSCORE";
24981
+ this.name = NAME$8;
24835
24982
  }
24836
24983
 
24837
24984
  _createClass(Comscore, [{
@@ -25516,7 +25663,7 @@
25516
25663
  function Criteo(config) {
25517
25664
  _classCallCheck(this, Criteo);
25518
25665
 
25519
- this.name = "CRITEO";
25666
+ this.name = NAME$9;
25520
25667
  this.hashMethod = config.hashMethod;
25521
25668
  this.accountId = config.accountId;
25522
25669
  this.url = config.homePageUrl; // eslint-disable-next-line no-nested-ternary
@@ -25662,7 +25809,7 @@
25662
25809
 
25663
25810
  this.siteID = config.siteID;
25664
25811
  this.apiKey = config.apiKey;
25665
- this.name = "CUSTOMERIO";
25812
+ this.name = NAME$a;
25666
25813
  }
25667
25814
 
25668
25815
  _createClass(CustomerIO, [{
@@ -25783,7 +25930,7 @@
25783
25930
 
25784
25931
  this.accountId = config.accountId;
25785
25932
  this.campaignId = config.campaignId;
25786
- this.name = "DRIP";
25933
+ this.name = NAME$b;
25787
25934
  this.exclusionFields = ["email", "new_email", "newEmail", "tags", "remove_tags", "removeTags", "prospect", "eu_consent", "euConsent", "eu_consent_message", "euConsentMessage"];
25788
25935
  }
25789
25936
 
@@ -26941,7 +27088,7 @@
26941
27088
  this.legacyConversionPixelId = config.legacyConversionPixelId;
26942
27089
  this.userIdAsPixelId = config.userIdAsPixelId;
26943
27090
  this.whitelistPiiProperties = config.whitelistPiiProperties;
26944
- this.name = "FACEBOOK_PIXEL";
27091
+ this.name = NAME$c;
26945
27092
  }
26946
27093
 
26947
27094
  _createClass(FacebookPixel, [{
@@ -27570,7 +27717,7 @@
27570
27717
 
27571
27718
  this.fs_org = config.fs_org;
27572
27719
  this.fs_debug_mode = config.fs_debug_mode;
27573
- this.name = "FULLSTORY";
27720
+ this.name = NAME$d;
27574
27721
  this.analytics = analytics;
27575
27722
  }
27576
27723
 
@@ -27840,7 +27987,7 @@
27840
27987
  this.resetCustomDimensionsOnPage = config.resetCustomDimensionsOnPage || [];
27841
27988
  this.enhancedEcommerceLoaded = 0;
27842
27989
  this.namedTracker = config.namedTracker || false;
27843
- this.name = "GA";
27990
+ this.name = NAME$e;
27844
27991
  this.eventWithCategoryFieldProductScoped = ["product clicked", "product added", "product viewed", "product removed"];
27845
27992
  }
27846
27993
 
@@ -28983,7 +29130,7 @@
28983
29130
  this.blockPageView = config.blockPageViewEvent || false;
28984
29131
  this.extendPageViewParams = config.extendPageViewParams || false;
28985
29132
  this.extendGroupPayload = config.extendGroupPayload || false;
28986
- this.name = "GA4";
29133
+ this.name = NAME$f;
28987
29134
  }
28988
29135
 
28989
29136
  _createClass(GA4, [{
@@ -29217,7 +29364,7 @@
29217
29364
  this.sendPageView = config.sendPageView || true;
29218
29365
  this.conversionLinker = config.conversionLinker || true;
29219
29366
  this.disableAdPersonalization = config.disableAdPersonalization || false;
29220
- this.name = "GOOGLEADS";
29367
+ this.name = NAME$g;
29221
29368
  }
29222
29369
 
29223
29370
  _createClass(GoogleAds, [{
@@ -29383,7 +29530,7 @@
29383
29530
  _classCallCheck(this, GoogleTagManager);
29384
29531
 
29385
29532
  this.containerID = config.containerID;
29386
- this.name = "GTM";
29533
+ this.name = NAME$i;
29387
29534
  this.serverUrl = config.serverUrl;
29388
29535
  }
29389
29536
 
@@ -29513,7 +29660,7 @@
29513
29660
  _classCallCheck(this, Heap);
29514
29661
 
29515
29662
  this.appId = config.appId;
29516
- this.name = "HEAP";
29663
+ this.name = NAME$j;
29517
29664
  }
29518
29665
  /**
29519
29666
  * Initialise Heap
@@ -29594,7 +29741,7 @@
29594
29741
  _classCallCheck(this, Hotjar);
29595
29742
 
29596
29743
  this.siteId = config.siteID;
29597
- this.name = "HOTJAR";
29744
+ this.name = NAME$k;
29598
29745
  this._ready = false;
29599
29746
  }
29600
29747
 
@@ -29682,7 +29829,7 @@
29682
29829
 
29683
29830
  this.hubId = config.hubID; // 6405167
29684
29831
 
29685
- this.name = "HS";
29832
+ this.name = NAME$l;
29686
29833
  }
29687
29834
 
29688
29835
  _createClass(HubSpot, [{
@@ -29799,7 +29946,7 @@
29799
29946
  function INTERCOM(config) {
29800
29947
  _classCallCheck(this, INTERCOM);
29801
29948
 
29802
- this.name = "INTERCOM";
29949
+ this.name = NAME$m;
29803
29950
  this.API_KEY = config.apiKey;
29804
29951
  this.APP_ID = config.appId;
29805
29952
  this.MOBILE_APP_ID = config.mobileAppId;
@@ -29993,7 +30140,7 @@
29993
30140
  this.urlAddon = config.urlAddon;
29994
30141
  this.referrerAddon = config.referrerAddon;
29995
30142
  this.client = null;
29996
- this.name = "KEEN";
30143
+ this.name = NAME$n;
29997
30144
  }
29998
30145
 
29999
30146
  _createClass(Keen, [{
@@ -30177,161 +30324,13 @@
30177
30324
 
30178
30325
  var extend_1 = extend;
30179
30326
 
30180
- var objCase = createCommonjsModule(function (module) {
30181
- /**
30182
- * Module exports, export
30183
- */
30184
-
30185
-
30186
- module.exports = multiple(find);
30187
- module.exports.find = module.exports;
30188
- /**
30189
- * Export the replacement function, return the modified object
30190
- */
30191
-
30192
- module.exports.replace = function (obj, key, val, options) {
30193
- multiple(replace).call(this, obj, key, val, options);
30194
- return obj;
30195
- };
30196
- /**
30197
- * Export the delete function, return the modified object
30198
- */
30199
-
30200
-
30201
- module.exports.del = function (obj, key, options) {
30202
- multiple(del).call(this, obj, key, null, options);
30203
- return obj;
30204
- };
30205
- /**
30206
- * Compose applying the function to a nested key
30207
- */
30208
-
30209
-
30210
- function multiple(fn) {
30211
- return function (obj, path, val, options) {
30212
- var normalize = options && isFunction(options.normalizer) ? options.normalizer : defaultNormalize;
30213
- path = normalize(path);
30214
- var key;
30215
- var finished = false;
30216
-
30217
- while (!finished) {
30218
- loop();
30219
- }
30220
-
30221
- function loop() {
30222
- for (key in obj) {
30223
- var normalizedKey = normalize(key);
30224
-
30225
- if (0 === path.indexOf(normalizedKey)) {
30226
- var temp = path.substr(normalizedKey.length);
30227
-
30228
- if (temp.charAt(0) === '.' || temp.length === 0) {
30229
- path = temp.substr(1);
30230
- var child = obj[key]; // we're at the end and there is nothing.
30231
-
30232
- if (null == child) {
30233
- finished = true;
30234
- return;
30235
- } // we're at the end and there is something.
30236
-
30237
-
30238
- if (!path.length) {
30239
- finished = true;
30240
- return;
30241
- } // step into child
30242
-
30243
-
30244
- obj = child; // but we're done here
30245
-
30246
- return;
30247
- }
30248
- }
30249
- }
30250
-
30251
- key = undefined; // if we found no matching properties
30252
- // on the current object, there's no match.
30253
-
30254
- finished = true;
30255
- }
30256
-
30257
- if (!key) return;
30258
- if (null == obj) return obj; // the `obj` and `key` is one above the leaf object and key, so
30259
- // start object: { a: { 'b.c': 10 } }
30260
- // end object: { 'b.c': 10 }
30261
- // end key: 'b.c'
30262
- // this way, you can do `obj[key]` and get `10`.
30263
-
30264
- return fn(obj, key, val);
30265
- };
30266
- }
30267
- /**
30268
- * Find an object by its key
30269
- *
30270
- * find({ first_name : 'Calvin' }, 'firstName')
30271
- */
30272
-
30273
-
30274
- function find(obj, key) {
30275
- if (obj.hasOwnProperty(key)) return obj[key];
30276
- }
30277
- /**
30278
- * Delete a value for a given key
30279
- *
30280
- * del({ a : 'b', x : 'y' }, 'X' }) -> { a : 'b' }
30281
- */
30282
-
30283
-
30284
- function del(obj, key) {
30285
- if (obj.hasOwnProperty(key)) delete obj[key];
30286
- return obj;
30287
- }
30288
- /**
30289
- * Replace an objects existing value with a new one
30290
- *
30291
- * replace({ a : 'b' }, 'a', 'c') -> { a : 'c' }
30292
- */
30293
-
30294
-
30295
- function replace(obj, key, val) {
30296
- if (obj.hasOwnProperty(key)) obj[key] = val;
30297
- return obj;
30298
- }
30299
- /**
30300
- * Normalize a `dot.separated.path`.
30301
- *
30302
- * A.HELL(!*&#(!)O_WOR LD.bar => ahelloworldbar
30303
- *
30304
- * @param {String} path
30305
- * @return {String}
30306
- */
30307
-
30308
-
30309
- function defaultNormalize(path) {
30310
- return path.replace(/[^a-zA-Z0-9\.]+/g, '').toLowerCase();
30311
- }
30312
- /**
30313
- * Check if a value is a function.
30314
- *
30315
- * @param {*} val
30316
- * @return {boolean} Returns `true` if `val` is a function, otherwise `false`.
30317
- */
30318
-
30319
-
30320
- function isFunction(val) {
30321
- return typeof val === 'function';
30322
- }
30323
- });
30324
- var objCase_1 = objCase.find;
30325
- var objCase_2 = objCase.replace;
30326
- var objCase_3 = objCase.del;
30327
-
30328
30327
  var Kissmetrics = /*#__PURE__*/function () {
30329
30328
  function Kissmetrics(config) {
30330
30329
  _classCallCheck(this, Kissmetrics);
30331
30330
 
30332
30331
  this.apiKey = config.apiKey;
30333
30332
  this.prefixProperties = config.prefixProperties;
30334
- this.name = "KISSMETRICS";
30333
+ this.name = NAME$o;
30335
30334
  }
30336
30335
 
30337
30336
  _createClass(Kissmetrics, [{
@@ -30718,7 +30717,7 @@
30718
30717
  this.sendPageAsTrack = config.sendPageAsTrack;
30719
30718
  this.additionalPageInfo = config.additionalPageInfo;
30720
30719
  this.enforceEmailAsPrimary = config.enforceEmailAsPrimary;
30721
- this.name = "KLAVIYO";
30720
+ this.name = NAME$p;
30722
30721
  this.keysToExtract = ["context.traits"];
30723
30722
  this.exclusionKeys = ["email", "E-mail", "Email", "firstName", "firstname", "first_name", "lastName", "lastname", "last_name", "phone", "Phone", "title", "organization", "city", "City", "region", "country", "Country", "zip", "image", "timezone", "anonymousId", "userId", "properties"];
30724
30723
  this.ecomExclusionKeys = ["name", "product_id", "sku", "image_url", "url", "brand", "price", "compare_at_price", "quantity", "categories", "products", "product_names", "order_id", "value", "checkout_url", "item_names", "items", "checkout_url"];
@@ -30870,7 +30869,7 @@
30870
30869
  function LinkedInInsightTag(config) {
30871
30870
  _classCallCheck(this, LinkedInInsightTag);
30872
30871
 
30873
- this.name = "LINKEDIN_INSIGHT_TAG";
30872
+ this.name = NAME$r;
30874
30873
  this.partnerId = config.partnerId;
30875
30874
  }
30876
30875
 
@@ -30937,7 +30936,7 @@
30937
30936
 
30938
30937
  _classCallCheck(this, Lotame);
30939
30938
 
30940
- this.name = "LOTAME";
30939
+ this.name = NAME$s;
30941
30940
  this.analytics = analytics;
30942
30941
  this.storage = lotameStorage;
30943
30942
  this.bcpUrlSettingsPixel = config.bcpUrlSettingsPixel;
@@ -31126,7 +31125,7 @@
31126
31125
  this.stream = config.stream;
31127
31126
  this.blockload = config.blockload;
31128
31127
  this.loadid = config.loadid;
31129
- this.name = "LYTICS";
31128
+ this.name = NAME$t;
31130
31129
  this.forFirstName = ["firstname", "firstName"];
31131
31130
  this.forLastName = ["lastname", "lastName"];
31132
31131
  }
@@ -31432,7 +31431,7 @@
31432
31431
  function Mixpanel(config) {
31433
31432
  _classCallCheck(this, Mixpanel);
31434
31433
 
31435
- this.name = "MP";
31434
+ this.name = NAME$u;
31436
31435
  this.accountId = config.accountId;
31437
31436
  this.token = config.token;
31438
31437
  this.people = config.people || false;
@@ -31857,7 +31856,7 @@
31857
31856
  this.apiId = config.apiId;
31858
31857
  this.debug = config.debug;
31859
31858
  this.region = config.region;
31860
- this.name = "MOENGAGE";
31859
+ this.name = NAME$v;
31861
31860
  this.analyticsinstance = analyticsinstance;
31862
31861
  }
31863
31862
 
@@ -32114,7 +32113,7 @@
32114
32113
  this.trackNamedPages = config.trackNamedPages;
32115
32114
  this.customCampaignProperties = config.customCampaignProperties ? config.customCampaignProperties : [];
32116
32115
  this.customExperimentProperties = config.customExperimentProperties ? config.customExperimentProperties : [];
32117
- this.name = "OPTIMIZELY";
32116
+ this.name = NAME$w;
32118
32117
  }
32119
32118
 
32120
32119
  _createClass(Optimizely, [{
@@ -32273,7 +32272,7 @@
32273
32272
 
32274
32273
  this.analytics = analytics;
32275
32274
  this.apiKey = !config.apiKey ? "" : config.apiKey;
32276
- this.name = "PENDO";
32275
+ this.name = NAME$x;
32277
32276
  logger.debug("Config ", config);
32278
32277
  }
32279
32278
 
@@ -32474,7 +32473,7 @@
32474
32473
  this.enhancedMatch = config.enhancedMatch || false;
32475
32474
  this.customProperties = config.customProperties || [];
32476
32475
  this.userDefinedEventsMapping = config.eventsMapping || [];
32477
- this.name = "PINTEREST_TAG";
32476
+ this.name = NAME$y;
32478
32477
  logger.debug("config", config);
32479
32478
  }
32480
32479
 
@@ -32723,7 +32722,7 @@
32723
32722
 
32724
32723
  this.siteId = config.siteID; // 1549611
32725
32724
 
32726
- this.name = "QUANTUMMETRIC";
32725
+ this.name = NAME$D;
32727
32726
  this._ready = false;
32728
32727
  }
32729
32728
 
@@ -32782,7 +32781,7 @@
32782
32781
 
32783
32782
  _classCallCheck(this, Posthog);
32784
32783
 
32785
- this.name = "POSTHOG";
32784
+ this.name = NAME$A;
32786
32785
  this.analytics = analytics;
32787
32786
  this.teamApiKey = config.teamApiKey;
32788
32787
  this.yourInstance = removeTrailingSlashes(config.yourInstance) || "https://app.posthog.com";
@@ -32932,7 +32931,7 @@
32932
32931
  value: function page(rudderElement) {
32933
32932
  logger.debug("in Posthog page");
32934
32933
  this.processSuperProperties(rudderElement);
32935
- posthog.capture('$pageview');
32934
+ posthog.capture("$pageview");
32936
32935
  }
32937
32936
  }, {
32938
32937
  key: "isLoaded",
@@ -32956,7 +32955,7 @@
32956
32955
 
32957
32956
  this.publicApiKey = config.publicApiKey;
32958
32957
  this.siteType = config.siteType;
32959
- this.name = "PROFITWELL";
32958
+ this.name = NAME$B;
32960
32959
  }
32961
32960
 
32962
32961
  _createClass(ProfitWell, [{
@@ -33039,7 +33038,7 @@
33039
33038
  function Qualtrics(config) {
33040
33039
  _classCallCheck(this, Qualtrics);
33041
33040
 
33042
- this.name = "QUALTRICS";
33041
+ this.name = NAME$C;
33043
33042
  this.projectId = config.projectId;
33044
33043
  this.brandId = config.brandId;
33045
33044
  this.enableGenericPageTitle = config.enableGenericPageTitle;
@@ -33203,7 +33202,7 @@
33203
33202
  _classCallCheck(this, RedditPixel);
33204
33203
 
33205
33204
  this.advertiserId = config.advertiserId;
33206
- this.name = "REDDIT_PIXEL";
33205
+ this.name = NAME$E;
33207
33206
  }
33208
33207
 
33209
33208
  _createClass(RedditPixel, [{
@@ -33388,7 +33387,7 @@
33388
33387
  function Sentry(config) {
33389
33388
  _classCallCheck(this, Sentry);
33390
33389
 
33391
- this.name = "SENTRY";
33390
+ this.name = NAME$F;
33392
33391
  this.dsn = config.dsn;
33393
33392
  this.debugMode = config.debugMode;
33394
33393
  this.environment = config.environment;
@@ -33656,7 +33655,7 @@
33656
33655
 
33657
33656
  this.pixelId = config.pixelId;
33658
33657
  this.hashMethod = config.hashMethod;
33659
- this.name = "SNAP_PIXEL";
33658
+ this.name = NAME$G;
33660
33659
  this.trackEvents = ["SIGN_UP", "OPEN_APP", "SAVE", "VIEW_CONTENT", "SEARCH", "SUBSCRIBE", "COMPLETE_TUTORIAL", "INVITE", "LOGIN", "SHARE", "RESERVE", "ACHIEVEMENT_UNLOCKED", "SPENT_CREDITS", "RATE", "START_TRIAL", "LIST_VIEW"];
33661
33660
  this.ecomEvents = {
33662
33661
  PURCHASE: "PURCHASE",
@@ -33850,7 +33849,7 @@
33850
33849
  this.clientId = config.clientId;
33851
33850
  this.eventWhiteList = config.eventWhiteList || [];
33852
33851
  this.customMetrics = config.customMetrics || [];
33853
- this.name = "TVSQUARED";
33852
+ this.name = NAME$H;
33854
33853
  }
33855
33854
 
33856
33855
  _createClass(TVSquared, [{
@@ -33955,7 +33954,7 @@
33955
33954
  this.useExistingJquery = config.useExistingJquery;
33956
33955
  this.sendExperimentTrack = config.sendExperimentTrack;
33957
33956
  this.sendExperimentIdentify = config.sendExperimentIdentify;
33958
- this.name = "VWO";
33957
+ this.name = NAME$I;
33959
33958
  this.analytics = analytics;
33960
33959
  logger.debug("Config ", config);
33961
33960
  }
@@ -34107,7 +34106,7 @@
34107
34106
  function GoogleOptimize(config) {
34108
34107
  _classCallCheck(this, GoogleOptimize);
34109
34108
 
34110
- this.name = "GOOGLE_OPTIMIZE";
34109
+ this.name = NAME$h;
34111
34110
  this.ga = config.ga;
34112
34111
  this.trackingId = config.trackingId;
34113
34112
  this.containerId = config.containerId;
@@ -34197,7 +34196,7 @@
34197
34196
  function PostAffiliatePro(config) {
34198
34197
  _classCallCheck(this, PostAffiliatePro);
34199
34198
 
34200
- this.name = "POST_AFFILIATE_PRO";
34199
+ this.name = NAME$z;
34201
34200
  this.url = config.url;
34202
34201
  this.mergeProducts = config.mergeProducts;
34203
34202
  this.accountId = config.accountId;
@@ -34348,7 +34347,7 @@
34348
34347
  function LaunchDarkly(config) {
34349
34348
  _classCallCheck(this, LaunchDarkly);
34350
34349
 
34351
- this.name = "LAUNCHDARKLY";
34350
+ this.name = NAME$q;
34352
34351
  this.clientSideId = config.clientSideId;
34353
34352
  }
34354
34353
 
@@ -34473,7 +34472,7 @@
34473
34472
  this.build = "1.0.0";
34474
34473
  this.name = "RudderLabs JavaScript SDK";
34475
34474
  this.namespace = "com.rudderlabs.javascript";
34476
- this.version = "1.3.3";
34475
+ this.version = "1.3.4";
34477
34476
  });
34478
34477
 
34479
34478
  // Library information class
@@ -34481,7 +34480,7 @@
34481
34480
  _classCallCheck(this, RudderLibraryInfo);
34482
34481
 
34483
34482
  this.name = "RudderLabs JavaScript SDK";
34484
- this.version = "1.3.3";
34483
+ this.version = "1.3.4";
34485
34484
  }); // Operating System information class
34486
34485
 
34487
34486
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rudder-sdk-js",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "RudderStack Javascript SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",