rudder-sdk-js 2.8.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +186 -132
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4511,6 +4511,39 @@
4511
4511
  return isObject$1(val) || Array.isArray(val) || typeof val === 'function';
4512
4512
  }
4513
4513
 
4514
+ var IDX$1 = 256,
4515
+ HEX$1 = [],
4516
+ BUFFER$1;
4517
+
4518
+ while (IDX$1--) {
4519
+ HEX$1[IDX$1] = (IDX$1 + 256).toString(16).substring(1);
4520
+ }
4521
+
4522
+ function v4$2() {
4523
+ var i = 0,
4524
+ num,
4525
+ out = '';
4526
+
4527
+ if (!BUFFER$1 || IDX$1 + 16 > 256) {
4528
+ BUFFER$1 = Array(i = 256);
4529
+
4530
+ while (i--) {
4531
+ BUFFER$1[i] = 256 * Math.random() | 0;
4532
+ }
4533
+
4534
+ i = IDX$1 = 0;
4535
+ }
4536
+
4537
+ for (; i < 16; i++) {
4538
+ num = BUFFER$1[IDX$1 + i];
4539
+ if (i == 6) out += HEX$1[num & 15 | 64];else if (i == 8) out += HEX$1[num & 63 | 128];else out += HEX$1[num];
4540
+ if (i & 1 && i > 1 && i < 11) out += '-';
4541
+ }
4542
+
4543
+ IDX$1++;
4544
+ return out;
4545
+ }
4546
+
4514
4547
  /* eslint-disable no-use-before-define */
4515
4548
  // import logger from "../utils/logUtil";
4516
4549
  var defaultAsyncState = true;
@@ -4552,15 +4585,15 @@
4552
4585
  var logger = {
4553
4586
  setLogLevel: function setLogLevel(logLevel) {
4554
4587
  switch (logLevel.toUpperCase()) {
4555
- case "INFO":
4588
+ case 'INFO':
4556
4589
  LOG_LEVEL = LOG_LEVEL_INFO;
4557
4590
  return;
4558
4591
 
4559
- case "DEBUG":
4592
+ case 'DEBUG':
4560
4593
  LOG_LEVEL = LOG_LEVEL_DEBUG;
4561
4594
  return;
4562
4595
 
4563
- case "WARN":
4596
+ case 'WARN':
4564
4597
  LOG_LEVEL = LOG_LEVEL_WARN;
4565
4598
  }
4566
4599
  },
@@ -4568,7 +4601,7 @@
4568
4601
  if (LOG_LEVEL <= LOG_LEVEL_INFO) {
4569
4602
  var _console;
4570
4603
 
4571
- (_console = console).log.apply(_console, arguments);
4604
+ (_console = console).info.apply(_console, arguments);
4572
4605
  }
4573
4606
  },
4574
4607
  debug: function debug() {
@@ -4582,264 +4615,274 @@
4582
4615
  if (LOG_LEVEL <= LOG_LEVEL_WARN) {
4583
4616
  var _console3;
4584
4617
 
4585
- (_console3 = console).log.apply(_console3, arguments);
4618
+ (_console3 = console).warn.apply(_console3, arguments);
4586
4619
  }
4587
4620
  },
4588
4621
  error: function error() {
4589
4622
  if (LOG_LEVEL <= LOG_LEVEL_ERROR) {
4590
4623
  var _console4;
4591
4624
 
4592
- (_console4 = console).log.apply(_console4, arguments);
4625
+ (_console4 = console).error.apply(_console4, arguments);
4593
4626
  }
4594
4627
  }
4595
4628
  };
4596
4629
 
4630
+ var _CNameMapping$M;
4631
+
4632
+ var NAME$N = "ADOBE_ANALYTICS";
4633
+ var CNameMapping$N = (_CNameMapping$M = {
4634
+ "Adobe Analytics": NAME$N
4635
+ }, _defineProperty(_CNameMapping$M, NAME$N, NAME$N), _defineProperty(_CNameMapping$M, "AdobeAnalytics", NAME$N), _defineProperty(_CNameMapping$M, "adobeanalytics", NAME$N), _CNameMapping$M);
4636
+
4637
+ var _CNameMapping$L;
4638
+
4639
+ var NAME$M = "AM";
4640
+ var CNameMapping$M = (_CNameMapping$L = {}, _defineProperty(_CNameMapping$L, NAME$M, NAME$M), _defineProperty(_CNameMapping$L, "AMPLITUDE", NAME$M), _defineProperty(_CNameMapping$L, "Amplitude", NAME$M), _CNameMapping$L);
4641
+
4597
4642
  var _CNameMapping$K;
4598
4643
 
4599
- var NAME$L = "ADOBE_ANALYTICS";
4600
- var CNameMapping$L = (_CNameMapping$K = {
4601
- "Adobe Analytics": NAME$L
4602
- }, _defineProperty(_CNameMapping$K, NAME$L, NAME$L), _defineProperty(_CNameMapping$K, "AdobeAnalytics", NAME$L), _defineProperty(_CNameMapping$K, "adobeanalytics", NAME$L), _CNameMapping$K);
4644
+ var NAME$L = "APPCUES";
4645
+ var CNameMapping$L = (_CNameMapping$K = {}, _defineProperty(_CNameMapping$K, NAME$L, NAME$L), _defineProperty(_CNameMapping$K, "Appcues", NAME$L), _CNameMapping$K);
4603
4646
 
4604
4647
  var _CNameMapping$J;
4605
4648
 
4606
- var NAME$K = "AM";
4607
- var CNameMapping$K = (_CNameMapping$J = {}, _defineProperty(_CNameMapping$J, NAME$K, NAME$K), _defineProperty(_CNameMapping$J, "AMPLITUDE", NAME$K), _defineProperty(_CNameMapping$J, "Amplitude", NAME$K), _CNameMapping$J);
4649
+ var NAME$K = "BINGADS";
4650
+ var CNameMapping$K = (_CNameMapping$J = {}, _defineProperty(_CNameMapping$J, NAME$K, NAME$K), _defineProperty(_CNameMapping$J, "BingAds", NAME$K), _CNameMapping$J);
4608
4651
 
4609
4652
  var _CNameMapping$I;
4610
4653
 
4611
- var NAME$J = "APPCUES";
4612
- var CNameMapping$J = (_CNameMapping$I = {}, _defineProperty(_CNameMapping$I, NAME$J, NAME$J), _defineProperty(_CNameMapping$I, "Appcues", NAME$J), _CNameMapping$I);
4654
+ var NAME$J = "BRAZE";
4655
+ var CNameMapping$J = (_CNameMapping$I = {}, _defineProperty(_CNameMapping$I, NAME$J, NAME$J), _defineProperty(_CNameMapping$I, "Braze", NAME$J), _CNameMapping$I);
4613
4656
 
4614
- var _CNameMapping$H;
4657
+ var NAME$I = "BUGSNAG";
4615
4658
 
4616
- var NAME$I = "BINGADS";
4617
- var CNameMapping$I = (_CNameMapping$H = {}, _defineProperty(_CNameMapping$H, NAME$I, NAME$I), _defineProperty(_CNameMapping$H, "BingAds", NAME$I), _CNameMapping$H);
4659
+ var CNameMapping$I = _defineProperty({}, NAME$I, NAME$I);
4618
4660
 
4619
- var _CNameMapping$G;
4661
+ var _CNameMapping$H;
4620
4662
 
4621
- var NAME$H = "BRAZE";
4622
- var CNameMapping$H = (_CNameMapping$G = {}, _defineProperty(_CNameMapping$G, NAME$H, NAME$H), _defineProperty(_CNameMapping$G, "Braze", NAME$H), _CNameMapping$G);
4663
+ var NAME$H = "CHARTBEAT";
4664
+ var CNameMapping$H = (_CNameMapping$H = {}, _defineProperty(_CNameMapping$H, NAME$H, NAME$H), _defineProperty(_CNameMapping$H, "Chartbeat", NAME$H), _CNameMapping$H);
4623
4665
 
4624
- var NAME$G = "BUGSNAG";
4666
+ var _CNameMapping$G;
4625
4667
 
4626
- var CNameMapping$G = _defineProperty({}, NAME$G, NAME$G);
4668
+ var NAME$G = "CLEVERTAP";
4669
+ var CNameMapping$G = (_CNameMapping$G = {}, _defineProperty(_CNameMapping$G, NAME$G, NAME$G), _defineProperty(_CNameMapping$G, "Clevertap", NAME$G), _CNameMapping$G);
4627
4670
 
4628
4671
  var _CNameMapping$F;
4629
4672
 
4630
- var NAME$F = "CHARTBEAT";
4631
- var CNameMapping$F = (_CNameMapping$F = {}, _defineProperty(_CNameMapping$F, NAME$F, NAME$F), _defineProperty(_CNameMapping$F, "Chartbeat", NAME$F), _CNameMapping$F);
4673
+ var NAME$F = "COMSCORE";
4674
+ var CNameMapping$F = (_CNameMapping$F = {}, _defineProperty(_CNameMapping$F, NAME$F, NAME$F), _defineProperty(_CNameMapping$F, "Comscore", NAME$F), _CNameMapping$F);
4632
4675
 
4633
4676
  var _CNameMapping$E;
4634
4677
 
4635
- var NAME$E = "CLEVERTAP";
4636
- var CNameMapping$E = (_CNameMapping$E = {}, _defineProperty(_CNameMapping$E, NAME$E, NAME$E), _defineProperty(_CNameMapping$E, "Clevertap", NAME$E), _CNameMapping$E);
4678
+ var NAME$E = "CRITEO";
4679
+ var CNameMapping$E = (_CNameMapping$E = {}, _defineProperty(_CNameMapping$E, NAME$E, NAME$E), _defineProperty(_CNameMapping$E, "Criteo", NAME$E), _defineProperty(_CNameMapping$E, "criteo", NAME$E), _CNameMapping$E);
4637
4680
 
4638
4681
  var _CNameMapping$D;
4639
4682
 
4640
- var NAME$D = "COMSCORE";
4641
- var CNameMapping$D = (_CNameMapping$D = {}, _defineProperty(_CNameMapping$D, NAME$D, NAME$D), _defineProperty(_CNameMapping$D, "Comscore", NAME$D), _CNameMapping$D);
4683
+ var NAME$D = "CUSTOMERIO";
4684
+ var CNameMapping$D = (_CNameMapping$D = {}, _defineProperty(_CNameMapping$D, NAME$D, NAME$D), _defineProperty(_CNameMapping$D, "Customerio", NAME$D), _defineProperty(_CNameMapping$D, "Customer.io", NAME$D), _CNameMapping$D);
4642
4685
 
4643
4686
  var _CNameMapping$C;
4644
4687
 
4645
- var NAME$C = "CRITEO";
4646
- var CNameMapping$C = (_CNameMapping$C = {}, _defineProperty(_CNameMapping$C, NAME$C, NAME$C), _defineProperty(_CNameMapping$C, "Criteo", NAME$C), _defineProperty(_CNameMapping$C, "criteo", NAME$C), _CNameMapping$C);
4688
+ var NAME$C = "DRIP";
4689
+ var CNameMapping$C = (_CNameMapping$C = {}, _defineProperty(_CNameMapping$C, NAME$C, NAME$C), _defineProperty(_CNameMapping$C, "Drip", NAME$C), _defineProperty(_CNameMapping$C, "drip", NAME$C), _CNameMapping$C);
4647
4690
 
4648
4691
  var _CNameMapping$B;
4649
4692
 
4650
- var NAME$B = "CUSTOMERIO";
4651
- var CNameMapping$B = (_CNameMapping$B = {}, _defineProperty(_CNameMapping$B, NAME$B, NAME$B), _defineProperty(_CNameMapping$B, "Customerio", NAME$B), _defineProperty(_CNameMapping$B, "Customer.io", NAME$B), _CNameMapping$B);
4693
+ var NAME$B = "FACEBOOK_PIXEL";
4694
+ var CNameMapping$B = (_CNameMapping$B = {}, _defineProperty(_CNameMapping$B, NAME$B, NAME$B), _defineProperty(_CNameMapping$B, "FB Pixel", NAME$B), _defineProperty(_CNameMapping$B, "Facebook Pixel", NAME$B), _defineProperty(_CNameMapping$B, "FB_PIXEL", NAME$B), _CNameMapping$B);
4652
4695
 
4653
4696
  var _CNameMapping$A;
4654
4697
 
4655
- var NAME$A = "DRIP";
4656
- var CNameMapping$A = (_CNameMapping$A = {}, _defineProperty(_CNameMapping$A, NAME$A, NAME$A), _defineProperty(_CNameMapping$A, "Drip", NAME$A), _defineProperty(_CNameMapping$A, "drip", NAME$A), _CNameMapping$A);
4698
+ var NAME$A = "FULLSTORY";
4699
+ var CNameMapping$A = (_CNameMapping$A = {}, _defineProperty(_CNameMapping$A, NAME$A, NAME$A), _defineProperty(_CNameMapping$A, "Fullstory", NAME$A), _defineProperty(_CNameMapping$A, "FullStory", NAME$A), _CNameMapping$A);
4657
4700
 
4658
4701
  var _CNameMapping$z;
4659
4702
 
4660
- var NAME$z = "FACEBOOK_PIXEL";
4661
- var CNameMapping$z = (_CNameMapping$z = {}, _defineProperty(_CNameMapping$z, NAME$z, NAME$z), _defineProperty(_CNameMapping$z, "FB Pixel", NAME$z), _defineProperty(_CNameMapping$z, "Facebook Pixel", NAME$z), _defineProperty(_CNameMapping$z, "FB_PIXEL", NAME$z), _CNameMapping$z);
4703
+ var NAME$z = "GA";
4704
+ var CNameMapping$z = (_CNameMapping$z = {}, _defineProperty(_CNameMapping$z, NAME$z, NAME$z), _defineProperty(_CNameMapping$z, "Google Analytics", NAME$z), _defineProperty(_CNameMapping$z, "GoogleAnalytics", NAME$z), _CNameMapping$z);
4662
4705
 
4663
4706
  var _CNameMapping$y;
4664
4707
 
4665
- var NAME$y = "FULLSTORY";
4666
- var CNameMapping$y = (_CNameMapping$y = {}, _defineProperty(_CNameMapping$y, NAME$y, NAME$y), _defineProperty(_CNameMapping$y, "Fullstory", NAME$y), _defineProperty(_CNameMapping$y, "FullStory", NAME$y), _CNameMapping$y);
4708
+ var NAME$y = "GA4";
4709
+ var CNameMapping$y = (_CNameMapping$y = {}, _defineProperty(_CNameMapping$y, NAME$y, NAME$y), _defineProperty(_CNameMapping$y, "Google Analytics 4", NAME$y), _defineProperty(_CNameMapping$y, "GoogleAnalytics4", NAME$y), _CNameMapping$y);
4667
4710
 
4668
4711
  var _CNameMapping$x;
4669
4712
 
4670
- var NAME$x = "GA";
4671
- var CNameMapping$x = (_CNameMapping$x = {}, _defineProperty(_CNameMapping$x, NAME$x, NAME$x), _defineProperty(_CNameMapping$x, "Google Analytics", NAME$x), _defineProperty(_CNameMapping$x, "GoogleAnalytics", NAME$x), _CNameMapping$x);
4713
+ var NAME$x = "GOOGLEADS";
4714
+ var CNameMapping$x = (_CNameMapping$x = {}, _defineProperty(_CNameMapping$x, NAME$x, NAME$x), _defineProperty(_CNameMapping$x, "Google Ads", NAME$x), _defineProperty(_CNameMapping$x, "GoogleAds", NAME$x), _CNameMapping$x);
4672
4715
 
4673
4716
  var _CNameMapping$w;
4674
4717
 
4675
- var NAME$w = "GA4";
4676
- var CNameMapping$w = (_CNameMapping$w = {}, _defineProperty(_CNameMapping$w, NAME$w, NAME$w), _defineProperty(_CNameMapping$w, "Google Analytics 4", NAME$w), _defineProperty(_CNameMapping$w, "GoogleAnalytics4", NAME$w), _CNameMapping$w);
4718
+ var NAME$w = "GOOGLE_OPTIMIZE";
4719
+ var CNameMapping$w = (_CNameMapping$w = {}, _defineProperty(_CNameMapping$w, NAME$w, NAME$w), _defineProperty(_CNameMapping$w, "Google Optimize", NAME$w), _defineProperty(_CNameMapping$w, "GoogleOptimize", NAME$w), _defineProperty(_CNameMapping$w, "Googleoptimize", NAME$w), _defineProperty(_CNameMapping$w, "GOOGLEOPTIMIZE", NAME$w), _CNameMapping$w);
4677
4720
 
4678
4721
  var _CNameMapping$v;
4679
4722
 
4680
- var NAME$v = "GOOGLEADS";
4681
- var CNameMapping$v = (_CNameMapping$v = {}, _defineProperty(_CNameMapping$v, NAME$v, NAME$v), _defineProperty(_CNameMapping$v, "Google Ads", NAME$v), _defineProperty(_CNameMapping$v, "GoogleAds", NAME$v), _CNameMapping$v);
4723
+ var NAME$v = "GTM";
4724
+ var CNameMapping$v = (_CNameMapping$v = {}, _defineProperty(_CNameMapping$v, NAME$v, NAME$v), _defineProperty(_CNameMapping$v, "Google Tag Manager", NAME$v), _CNameMapping$v);
4682
4725
 
4683
4726
  var _CNameMapping$u;
4684
4727
 
4685
- var NAME$u = "GOOGLE_OPTIMIZE";
4686
- var CNameMapping$u = (_CNameMapping$u = {}, _defineProperty(_CNameMapping$u, NAME$u, NAME$u), _defineProperty(_CNameMapping$u, "Google Optimize", NAME$u), _defineProperty(_CNameMapping$u, "GoogleOptimize", NAME$u), _defineProperty(_CNameMapping$u, "Googleoptimize", NAME$u), _defineProperty(_CNameMapping$u, "GOOGLEOPTIMIZE", NAME$u), _CNameMapping$u);
4728
+ var NAME$u = "HEAP";
4729
+ var CNameMapping$u = (_CNameMapping$u = {}, _defineProperty(_CNameMapping$u, NAME$u, NAME$u), _defineProperty(_CNameMapping$u, "Heap", NAME$u), _defineProperty(_CNameMapping$u, "heap", NAME$u), _defineProperty(_CNameMapping$u, "Heap.io", NAME$u), _CNameMapping$u);
4687
4730
 
4688
4731
  var _CNameMapping$t;
4689
4732
 
4690
- var NAME$t = "GTM";
4691
- var CNameMapping$t = (_CNameMapping$t = {}, _defineProperty(_CNameMapping$t, NAME$t, NAME$t), _defineProperty(_CNameMapping$t, "Google Tag Manager", NAME$t), _CNameMapping$t);
4733
+ var NAME$t = "HOTJAR";
4734
+ var CNameMapping$t = (_CNameMapping$t = {}, _defineProperty(_CNameMapping$t, NAME$t, NAME$t), _defineProperty(_CNameMapping$t, "Hotjar", NAME$t), _defineProperty(_CNameMapping$t, "hotjar", NAME$t), _CNameMapping$t);
4692
4735
 
4693
4736
  var _CNameMapping$s;
4694
4737
 
4695
- var NAME$s = "HEAP";
4696
- var CNameMapping$s = (_CNameMapping$s = {}, _defineProperty(_CNameMapping$s, NAME$s, NAME$s), _defineProperty(_CNameMapping$s, "Heap", NAME$s), _defineProperty(_CNameMapping$s, "heap", NAME$s), _defineProperty(_CNameMapping$s, "Heap.io", NAME$s), _CNameMapping$s);
4738
+ var NAME$s = "HS";
4739
+ var CNameMapping$s = (_CNameMapping$s = {}, _defineProperty(_CNameMapping$s, NAME$s, NAME$s), _defineProperty(_CNameMapping$s, "Hubspot", NAME$s), _defineProperty(_CNameMapping$s, "HUBSPOT", NAME$s), _CNameMapping$s);
4697
4740
 
4698
4741
  var _CNameMapping$r;
4699
4742
 
4700
- var NAME$r = "HOTJAR";
4701
- var CNameMapping$r = (_CNameMapping$r = {}, _defineProperty(_CNameMapping$r, NAME$r, NAME$r), _defineProperty(_CNameMapping$r, "Hotjar", NAME$r), _defineProperty(_CNameMapping$r, "hotjar", NAME$r), _CNameMapping$r);
4743
+ var NAME$r = "INTERCOM";
4744
+ var CNameMapping$r = (_CNameMapping$r = {}, _defineProperty(_CNameMapping$r, NAME$r, NAME$r), _defineProperty(_CNameMapping$r, "Intercom", NAME$r), _CNameMapping$r);
4702
4745
 
4703
4746
  var _CNameMapping$q;
4704
4747
 
4705
- var NAME$q = "HS";
4706
- var CNameMapping$q = (_CNameMapping$q = {}, _defineProperty(_CNameMapping$q, NAME$q, NAME$q), _defineProperty(_CNameMapping$q, "Hubspot", NAME$q), _defineProperty(_CNameMapping$q, "HUBSPOT", NAME$q), _CNameMapping$q);
4748
+ var NAME$q = "KEEN";
4749
+ var CNameMapping$q = (_CNameMapping$q = {}, _defineProperty(_CNameMapping$q, NAME$q, NAME$q), _defineProperty(_CNameMapping$q, "Keen", NAME$q), _defineProperty(_CNameMapping$q, "Keen.io", NAME$q), _CNameMapping$q);
4707
4750
 
4708
4751
  var _CNameMapping$p;
4709
4752
 
4710
- var NAME$p = "INTERCOM";
4711
- var CNameMapping$p = (_CNameMapping$p = {}, _defineProperty(_CNameMapping$p, NAME$p, NAME$p), _defineProperty(_CNameMapping$p, "Intercom", NAME$p), _CNameMapping$p);
4753
+ var NAME$p = "KISSMETRICS";
4754
+ var CNameMapping$p = (_CNameMapping$p = {}, _defineProperty(_CNameMapping$p, NAME$p, NAME$p), _defineProperty(_CNameMapping$p, "Kissmetrics", NAME$p), _CNameMapping$p);
4712
4755
 
4713
4756
  var _CNameMapping$o;
4714
4757
 
4715
- var NAME$o = "KEEN";
4716
- var CNameMapping$o = (_CNameMapping$o = {}, _defineProperty(_CNameMapping$o, NAME$o, NAME$o), _defineProperty(_CNameMapping$o, "Keen", NAME$o), _defineProperty(_CNameMapping$o, "Keen.io", NAME$o), _CNameMapping$o);
4758
+ var NAME$o = "KLAVIYO";
4759
+ var CNameMapping$o = (_CNameMapping$o = {}, _defineProperty(_CNameMapping$o, NAME$o, NAME$o), _defineProperty(_CNameMapping$o, "Klaviyo", NAME$o), _CNameMapping$o);
4717
4760
 
4718
4761
  var _CNameMapping$n;
4719
4762
 
4720
- var NAME$n = "KISSMETRICS";
4721
- var CNameMapping$n = (_CNameMapping$n = {}, _defineProperty(_CNameMapping$n, NAME$n, NAME$n), _defineProperty(_CNameMapping$n, "Kissmetrics", NAME$n), _CNameMapping$n);
4763
+ var NAME$n = "LAUNCHDARKLY";
4764
+ var CNameMapping$n = (_CNameMapping$n = {}, _defineProperty(_CNameMapping$n, NAME$n, NAME$n), _defineProperty(_CNameMapping$n, "LaunchDarkly", NAME$n), _defineProperty(_CNameMapping$n, "Launch_Darkly", NAME$n), _defineProperty(_CNameMapping$n, "Launch Darkly", NAME$n), _defineProperty(_CNameMapping$n, "launchDarkly", NAME$n), _CNameMapping$n);
4722
4765
 
4723
4766
  var _CNameMapping$m;
4724
4767
 
4725
- var NAME$m = "KLAVIYO";
4726
- var CNameMapping$m = (_CNameMapping$m = {}, _defineProperty(_CNameMapping$m, NAME$m, NAME$m), _defineProperty(_CNameMapping$m, "Klaviyo", NAME$m), _CNameMapping$m);
4768
+ var NAME$m = "LINKEDIN_INSIGHT_TAG";
4769
+ var CNameMapping$m = (_CNameMapping$m = {}, _defineProperty(_CNameMapping$m, NAME$m, NAME$m), _defineProperty(_CNameMapping$m, "LinkedIn Insight Tag", NAME$m), _defineProperty(_CNameMapping$m, "Linkedin_insight_tag", NAME$m), _defineProperty(_CNameMapping$m, "LinkedinInsighttag", NAME$m), _defineProperty(_CNameMapping$m, "LinkedinInsightTag", NAME$m), _defineProperty(_CNameMapping$m, "LinkedInInsightTag", NAME$m), _defineProperty(_CNameMapping$m, "Linkedininsighttag", NAME$m), _defineProperty(_CNameMapping$m, "LINKEDININSIGHTTAG", NAME$m), _CNameMapping$m);
4727
4770
 
4728
4771
  var _CNameMapping$l;
4729
4772
 
4730
- var NAME$l = "LAUNCHDARKLY";
4731
- var CNameMapping$l = (_CNameMapping$l = {}, _defineProperty(_CNameMapping$l, NAME$l, NAME$l), _defineProperty(_CNameMapping$l, "LaunchDarkly", NAME$l), _defineProperty(_CNameMapping$l, "Launch_Darkly", NAME$l), _defineProperty(_CNameMapping$l, "Launch Darkly", NAME$l), _defineProperty(_CNameMapping$l, "launchDarkly", NAME$l), _CNameMapping$l);
4773
+ var NAME$l = "LOTAME";
4774
+ var CNameMapping$l = (_CNameMapping$l = {}, _defineProperty(_CNameMapping$l, NAME$l, NAME$l), _defineProperty(_CNameMapping$l, "Lotame", NAME$l), _CNameMapping$l);
4732
4775
 
4733
4776
  var _CNameMapping$k;
4734
4777
 
4735
- var NAME$k = "LINKEDIN_INSIGHT_TAG";
4736
- var CNameMapping$k = (_CNameMapping$k = {}, _defineProperty(_CNameMapping$k, NAME$k, NAME$k), _defineProperty(_CNameMapping$k, "LinkedIn Insight Tag", NAME$k), _defineProperty(_CNameMapping$k, "Linkedin_insight_tag", NAME$k), _defineProperty(_CNameMapping$k, "LinkedinInsighttag", NAME$k), _defineProperty(_CNameMapping$k, "LinkedinInsightTag", NAME$k), _defineProperty(_CNameMapping$k, "LinkedInInsightTag", NAME$k), _defineProperty(_CNameMapping$k, "Linkedininsighttag", NAME$k), _defineProperty(_CNameMapping$k, "LINKEDININSIGHTTAG", NAME$k), _CNameMapping$k);
4778
+ var NAME$k = "LYTICS";
4779
+ var CNameMapping$k = (_CNameMapping$k = {}, _defineProperty(_CNameMapping$k, NAME$k, NAME$k), _defineProperty(_CNameMapping$k, "Lytics", NAME$k), _CNameMapping$k);
4737
4780
 
4738
4781
  var _CNameMapping$j;
4739
4782
 
4740
- var NAME$j = "LOTAME";
4741
- var CNameMapping$j = (_CNameMapping$j = {}, _defineProperty(_CNameMapping$j, NAME$j, NAME$j), _defineProperty(_CNameMapping$j, "Lotame", NAME$j), _CNameMapping$j);
4783
+ var NAME$j = "MP";
4784
+ var CNameMapping$j = (_CNameMapping$j = {}, _defineProperty(_CNameMapping$j, NAME$j, NAME$j), _defineProperty(_CNameMapping$j, "MIXPANEL", NAME$j), _defineProperty(_CNameMapping$j, "Mixpanel", NAME$j), _CNameMapping$j);
4742
4785
 
4743
4786
  var _CNameMapping$i;
4744
4787
 
4745
- var NAME$i = "LYTICS";
4746
- var CNameMapping$i = (_CNameMapping$i = {}, _defineProperty(_CNameMapping$i, NAME$i, NAME$i), _defineProperty(_CNameMapping$i, "Lytics", NAME$i), _CNameMapping$i);
4788
+ var NAME$i = "MOENGAGE";
4789
+ var CNameMapping$i = (_CNameMapping$i = {}, _defineProperty(_CNameMapping$i, NAME$i, NAME$i), _defineProperty(_CNameMapping$i, "MoEngage", NAME$i), _CNameMapping$i);
4747
4790
 
4748
4791
  var _CNameMapping$h;
4749
4792
 
4750
- var NAME$h = "MP";
4751
- var CNameMapping$h = (_CNameMapping$h = {}, _defineProperty(_CNameMapping$h, NAME$h, NAME$h), _defineProperty(_CNameMapping$h, "MIXPANEL", NAME$h), _defineProperty(_CNameMapping$h, "Mixpanel", NAME$h), _CNameMapping$h);
4793
+ var NAME$h = "OPTIMIZELY";
4794
+ var CNameMapping$h = (_CNameMapping$h = {}, _defineProperty(_CNameMapping$h, NAME$h, NAME$h), _defineProperty(_CNameMapping$h, "Optimizely", NAME$h), _CNameMapping$h);
4752
4795
 
4753
4796
  var _CNameMapping$g;
4754
4797
 
4755
- var NAME$g = "MOENGAGE";
4756
- var CNameMapping$g = (_CNameMapping$g = {}, _defineProperty(_CNameMapping$g, NAME$g, NAME$g), _defineProperty(_CNameMapping$g, "MoEngage", NAME$g), _CNameMapping$g);
4798
+ var NAME$g = "PENDO";
4799
+ var CNameMapping$g = (_CNameMapping$g = {}, _defineProperty(_CNameMapping$g, NAME$g, NAME$g), _defineProperty(_CNameMapping$g, "Pendo", NAME$g), _CNameMapping$g);
4757
4800
 
4758
4801
  var _CNameMapping$f;
4759
4802
 
4760
- var NAME$f = "OPTIMIZELY";
4761
- var CNameMapping$f = (_CNameMapping$f = {}, _defineProperty(_CNameMapping$f, NAME$f, NAME$f), _defineProperty(_CNameMapping$f, "Optimizely", NAME$f), _CNameMapping$f);
4803
+ var NAME$f = "PINTEREST_TAG";
4804
+ var CNameMapping$f = (_CNameMapping$f = {}, _defineProperty(_CNameMapping$f, NAME$f, NAME$f), _defineProperty(_CNameMapping$f, "PinterestTag", NAME$f), _defineProperty(_CNameMapping$f, "Pinterest_Tag", NAME$f), _defineProperty(_CNameMapping$f, "PINTERESTTAG", NAME$f), _defineProperty(_CNameMapping$f, "pinterest", NAME$f), _defineProperty(_CNameMapping$f, "PinterestAds", NAME$f), _defineProperty(_CNameMapping$f, "Pinterest_Ads", NAME$f), _defineProperty(_CNameMapping$f, "Pinterest", NAME$f), _CNameMapping$f);
4762
4805
 
4763
4806
  var _CNameMapping$e;
4764
4807
 
4765
- var NAME$e = "PENDO";
4766
- var CNameMapping$e = (_CNameMapping$e = {}, _defineProperty(_CNameMapping$e, NAME$e, NAME$e), _defineProperty(_CNameMapping$e, "Pendo", NAME$e), _CNameMapping$e);
4808
+ var NAME$e = "POST_AFFILIATE_PRO";
4809
+ var CNameMapping$e = (_CNameMapping$e = {}, _defineProperty(_CNameMapping$e, NAME$e, NAME$e), _defineProperty(_CNameMapping$e, "PostAffiliatePro", NAME$e), _defineProperty(_CNameMapping$e, "Post_affiliate_pro", NAME$e), _defineProperty(_CNameMapping$e, "Post Affiliate Pro", NAME$e), _defineProperty(_CNameMapping$e, "postaffiliatepro", NAME$e), _defineProperty(_CNameMapping$e, "POSTAFFILIATEPRO", NAME$e), _CNameMapping$e);
4767
4810
 
4768
4811
  var _CNameMapping$d;
4769
4812
 
4770
- var NAME$d = "PINTEREST_TAG";
4771
- var CNameMapping$d = (_CNameMapping$d = {}, _defineProperty(_CNameMapping$d, NAME$d, NAME$d), _defineProperty(_CNameMapping$d, "PinterestTag", NAME$d), _defineProperty(_CNameMapping$d, "Pinterest_Tag", NAME$d), _defineProperty(_CNameMapping$d, "PINTERESTTAG", NAME$d), _defineProperty(_CNameMapping$d, "pinterest", NAME$d), _defineProperty(_CNameMapping$d, "PinterestAds", NAME$d), _defineProperty(_CNameMapping$d, "Pinterest_Ads", NAME$d), _defineProperty(_CNameMapping$d, "Pinterest", NAME$d), _CNameMapping$d);
4813
+ var NAME$d = "POSTHOG";
4814
+ var CNameMapping$d = (_CNameMapping$d = {}, _defineProperty(_CNameMapping$d, NAME$d, NAME$d), _defineProperty(_CNameMapping$d, "PostHog", NAME$d), _defineProperty(_CNameMapping$d, "Posthog", NAME$d), _CNameMapping$d);
4772
4815
 
4773
4816
  var _CNameMapping$c;
4774
4817
 
4775
- var NAME$c = "POST_AFFILIATE_PRO";
4776
- var CNameMapping$c = (_CNameMapping$c = {}, _defineProperty(_CNameMapping$c, NAME$c, NAME$c), _defineProperty(_CNameMapping$c, "PostAffiliatePro", NAME$c), _defineProperty(_CNameMapping$c, "Post_affiliate_pro", NAME$c), _defineProperty(_CNameMapping$c, "Post Affiliate Pro", NAME$c), _defineProperty(_CNameMapping$c, "postaffiliatepro", NAME$c), _defineProperty(_CNameMapping$c, "POSTAFFILIATEPRO", NAME$c), _CNameMapping$c);
4818
+ var NAME$c = "PROFITWELL";
4819
+ var CNameMapping$c = (_CNameMapping$c = {}, _defineProperty(_CNameMapping$c, NAME$c, NAME$c), _defineProperty(_CNameMapping$c, "ProfitWell", NAME$c), _defineProperty(_CNameMapping$c, "profitwell", NAME$c), _defineProperty(_CNameMapping$c, "Profitwell", NAME$c), _CNameMapping$c);
4777
4820
 
4778
4821
  var _CNameMapping$b;
4779
4822
 
4780
- var NAME$b = "POSTHOG";
4781
- var CNameMapping$b = (_CNameMapping$b = {}, _defineProperty(_CNameMapping$b, NAME$b, NAME$b), _defineProperty(_CNameMapping$b, "PostHog", NAME$b), _defineProperty(_CNameMapping$b, "Posthog", NAME$b), _CNameMapping$b);
4823
+ var NAME$b = "QUALTRICS";
4824
+ var CNameMapping$b = (_CNameMapping$b = {}, _defineProperty(_CNameMapping$b, NAME$b, NAME$b), _defineProperty(_CNameMapping$b, "Qualtrics", NAME$b), _defineProperty(_CNameMapping$b, "qualtrics", NAME$b), _CNameMapping$b);
4782
4825
 
4783
4826
  var _CNameMapping$a;
4784
4827
 
4785
- var NAME$a = "PROFITWELL";
4786
- var CNameMapping$a = (_CNameMapping$a = {}, _defineProperty(_CNameMapping$a, NAME$a, NAME$a), _defineProperty(_CNameMapping$a, "ProfitWell", NAME$a), _defineProperty(_CNameMapping$a, "profitwell", NAME$a), _defineProperty(_CNameMapping$a, "Profitwell", NAME$a), _CNameMapping$a);
4828
+ var NAME$a = "QUANTUMMETRIC";
4829
+ var CNameMapping$a = (_CNameMapping$a = {}, _defineProperty(_CNameMapping$a, NAME$a, NAME$a), _defineProperty(_CNameMapping$a, "Quantum Metric", NAME$a), _defineProperty(_CNameMapping$a, "QuantumMetric", NAME$a), _defineProperty(_CNameMapping$a, "quantumMetric", NAME$a), _defineProperty(_CNameMapping$a, "quantummetric", NAME$a), _defineProperty(_CNameMapping$a, "Quantum_Metric", NAME$a), _CNameMapping$a);
4787
4830
 
4788
4831
  var _CNameMapping$9;
4789
4832
 
4790
- var NAME$9 = "QUALTRICS";
4791
- var CNameMapping$9 = (_CNameMapping$9 = {}, _defineProperty(_CNameMapping$9, NAME$9, NAME$9), _defineProperty(_CNameMapping$9, "Qualtrics", NAME$9), _defineProperty(_CNameMapping$9, "qualtrics", NAME$9), _CNameMapping$9);
4833
+ var NAME$9 = "REDDIT_PIXEL";
4834
+ var CNameMapping$9 = (_CNameMapping$9 = {}, _defineProperty(_CNameMapping$9, NAME$9, NAME$9), _defineProperty(_CNameMapping$9, "Reddit_Pixel", NAME$9), _defineProperty(_CNameMapping$9, "RedditPixel", NAME$9), _defineProperty(_CNameMapping$9, "REDDITPIXEL", NAME$9), _defineProperty(_CNameMapping$9, "redditpixel", NAME$9), _defineProperty(_CNameMapping$9, "Reddit Pixel", NAME$9), _defineProperty(_CNameMapping$9, "REDDIT PIXEL", NAME$9), _defineProperty(_CNameMapping$9, "reddit pixel", NAME$9), _CNameMapping$9);
4792
4835
 
4793
4836
  var _CNameMapping$8;
4794
4837
 
4795
- var NAME$8 = "QUANTUMMETRIC";
4796
- var CNameMapping$8 = (_CNameMapping$8 = {}, _defineProperty(_CNameMapping$8, NAME$8, NAME$8), _defineProperty(_CNameMapping$8, "Quantum Metric", NAME$8), _defineProperty(_CNameMapping$8, "QuantumMetric", NAME$8), _defineProperty(_CNameMapping$8, "quantumMetric", NAME$8), _defineProperty(_CNameMapping$8, "quantummetric", NAME$8), _defineProperty(_CNameMapping$8, "Quantum_Metric", NAME$8), _CNameMapping$8);
4838
+ var NAME$8 = "SENTRY";
4839
+ var CNameMapping$8 = (_CNameMapping$8 = {}, _defineProperty(_CNameMapping$8, NAME$8, NAME$8), _defineProperty(_CNameMapping$8, "sentry", NAME$8), _defineProperty(_CNameMapping$8, "Sentry", NAME$8), _CNameMapping$8);
4797
4840
 
4798
4841
  var _CNameMapping$7;
4799
4842
 
4800
- var NAME$7 = "REDDIT_PIXEL";
4801
- var CNameMapping$7 = (_CNameMapping$7 = {}, _defineProperty(_CNameMapping$7, NAME$7, NAME$7), _defineProperty(_CNameMapping$7, "Reddit_Pixel", NAME$7), _defineProperty(_CNameMapping$7, "RedditPixel", NAME$7), _defineProperty(_CNameMapping$7, "REDDITPIXEL", NAME$7), _defineProperty(_CNameMapping$7, "redditpixel", NAME$7), _defineProperty(_CNameMapping$7, "Reddit Pixel", NAME$7), _defineProperty(_CNameMapping$7, "REDDIT PIXEL", NAME$7), _defineProperty(_CNameMapping$7, "reddit pixel", NAME$7), _CNameMapping$7);
4843
+ var NAME$7 = "SNAP_PIXEL";
4844
+ var CNameMapping$7 = (_CNameMapping$7 = {}, _defineProperty(_CNameMapping$7, NAME$7, NAME$7), _defineProperty(_CNameMapping$7, "Snap_Pixel", NAME$7), _defineProperty(_CNameMapping$7, "SnapPixel", NAME$7), _defineProperty(_CNameMapping$7, "SNAPPIXEL", NAME$7), _defineProperty(_CNameMapping$7, "snappixel", NAME$7), _defineProperty(_CNameMapping$7, "Snap Pixel", NAME$7), _defineProperty(_CNameMapping$7, "SNAP PIXEL", NAME$7), _defineProperty(_CNameMapping$7, "snap pixel", NAME$7), _CNameMapping$7);
4802
4845
 
4803
4846
  var _CNameMapping$6;
4804
4847
 
4805
- var NAME$6 = "SENTRY";
4806
- var CNameMapping$6 = (_CNameMapping$6 = {}, _defineProperty(_CNameMapping$6, NAME$6, NAME$6), _defineProperty(_CNameMapping$6, "sentry", NAME$6), _defineProperty(_CNameMapping$6, "Sentry", NAME$6), _CNameMapping$6);
4848
+ var NAME$6 = "TVSQUARED";
4849
+ var CNameMapping$6 = (_CNameMapping$6 = {}, _defineProperty(_CNameMapping$6, NAME$6, NAME$6), _defineProperty(_CNameMapping$6, "TVSquared", NAME$6), _CNameMapping$6);
4807
4850
 
4808
4851
  var _CNameMapping$5;
4809
4852
 
4810
- var NAME$5 = "SNAP_PIXEL";
4811
- var CNameMapping$5 = (_CNameMapping$5 = {}, _defineProperty(_CNameMapping$5, NAME$5, NAME$5), _defineProperty(_CNameMapping$5, "Snap_Pixel", NAME$5), _defineProperty(_CNameMapping$5, "SnapPixel", NAME$5), _defineProperty(_CNameMapping$5, "SNAPPIXEL", NAME$5), _defineProperty(_CNameMapping$5, "snappixel", NAME$5), _defineProperty(_CNameMapping$5, "Snap Pixel", NAME$5), _defineProperty(_CNameMapping$5, "SNAP PIXEL", NAME$5), _defineProperty(_CNameMapping$5, "snap pixel", NAME$5), _CNameMapping$5);
4853
+ var NAME$5 = "VWO";
4854
+ var CNameMapping$5 = (_CNameMapping$5 = {}, _defineProperty(_CNameMapping$5, NAME$5, NAME$5), _defineProperty(_CNameMapping$5, "Visual Website Optimizer", NAME$5), _CNameMapping$5);
4812
4855
 
4813
4856
  var _CNameMapping$4;
4814
4857
 
4815
- var NAME$4 = "TVSQUARED";
4816
- var CNameMapping$4 = (_CNameMapping$4 = {}, _defineProperty(_CNameMapping$4, NAME$4, NAME$4), _defineProperty(_CNameMapping$4, "TVSquared", NAME$4), _CNameMapping$4);
4858
+ var NAME$4 = "GA360";
4859
+ var CNameMapping$4 = (_CNameMapping$4 = {}, _defineProperty(_CNameMapping$4, NAME$4, NAME$4), _defineProperty(_CNameMapping$4, "Google Analytics 360", NAME$4), _defineProperty(_CNameMapping$4, "GoogleAnalytics360", NAME$4), _defineProperty(_CNameMapping$4, "GA 360", NAME$4), _CNameMapping$4);
4817
4860
 
4818
4861
  var _CNameMapping$3;
4819
4862
 
4820
- var NAME$3 = "VWO";
4821
- var CNameMapping$3 = (_CNameMapping$3 = {}, _defineProperty(_CNameMapping$3, NAME$3, NAME$3), _defineProperty(_CNameMapping$3, "Visual Website Optimizer", NAME$3), _CNameMapping$3);
4863
+ var NAME$3 = "ADROLL";
4864
+ var CNameMapping$3 = (_CNameMapping$3 = {}, _defineProperty(_CNameMapping$3, NAME$3, NAME$3), _defineProperty(_CNameMapping$3, "Adroll", NAME$3), _defineProperty(_CNameMapping$3, "Ad roll", NAME$3), _CNameMapping$3);
4822
4865
 
4823
4866
  var _CNameMapping$2;
4824
4867
 
4825
- var NAME$2 = "GA360";
4826
- var CNameMapping$2 = (_CNameMapping$2 = {}, _defineProperty(_CNameMapping$2, NAME$2, NAME$2), _defineProperty(_CNameMapping$2, "Google Analytics 360", NAME$2), _defineProperty(_CNameMapping$2, "GoogleAnalytics360", NAME$2), _defineProperty(_CNameMapping$2, "GA 360", NAME$2), _CNameMapping$2);
4868
+ var NAME$2 = "DCM_FLOODLIGHT";
4869
+ var CNameMapping$2 = (_CNameMapping$2 = {}, _defineProperty(_CNameMapping$2, NAME$2, NAME$2), _defineProperty(_CNameMapping$2, "DCM Floodlight", NAME$2), _defineProperty(_CNameMapping$2, "dcm floodlight", NAME$2), _defineProperty(_CNameMapping$2, "Dcm Floodlight", NAME$2), _defineProperty(_CNameMapping$2, "DCMFloodlight", NAME$2), _defineProperty(_CNameMapping$2, "dcmfloodlight", NAME$2), _defineProperty(_CNameMapping$2, "DcmFloodlight", NAME$2), _defineProperty(_CNameMapping$2, "DCM_FLOODLIGHT", NAME$2), _defineProperty(_CNameMapping$2, "dcm_floodlight", NAME$2), _defineProperty(_CNameMapping$2, "DCM_Floodlight", NAME$2), _CNameMapping$2);
4827
4870
 
4828
4871
  var _CNameMapping$1;
4829
4872
 
4830
- var NAME$1 = "ADROLL";
4831
- var CNameMapping$1 = (_CNameMapping$1 = {}, _defineProperty(_CNameMapping$1, NAME$1, NAME$1), _defineProperty(_CNameMapping$1, "Adroll", NAME$1), _defineProperty(_CNameMapping$1, "Ad roll", NAME$1), _CNameMapping$1);
4873
+ var NAME$1 = "MATOMO";
4874
+ var CNameMapping$1 = (_CNameMapping$1 = {}, _defineProperty(_CNameMapping$1, NAME$1, NAME$1), _defineProperty(_CNameMapping$1, "MATOMO", NAME$1), _defineProperty(_CNameMapping$1, "Matomo", NAME$1), _defineProperty(_CNameMapping$1, "matomo", NAME$1), _CNameMapping$1);
4832
4875
 
4833
4876
  var _CNameMapping;
4834
4877
 
4835
- var NAME = "DCM_FLOODLIGHT";
4836
- var CNameMapping = (_CNameMapping = {}, _defineProperty(_CNameMapping, NAME, NAME), _defineProperty(_CNameMapping, "DCM Floodlight", NAME), _defineProperty(_CNameMapping, "dcm floodlight", NAME), _defineProperty(_CNameMapping, "Dcm Floodlight", NAME), _defineProperty(_CNameMapping, "DCMFloodlight", NAME), _defineProperty(_CNameMapping, "dcmfloodlight", NAME), _defineProperty(_CNameMapping, "DcmFloodlight", NAME), _defineProperty(_CNameMapping, "DCM_FLOODLIGHT", NAME), _defineProperty(_CNameMapping, "dcm_floodlight", NAME), _defineProperty(_CNameMapping, "DCM_Floodlight", NAME), _CNameMapping);
4878
+ var NAME = "VERO";
4879
+ var CNameMapping = (_CNameMapping = {}, _defineProperty(_CNameMapping, NAME, NAME), _defineProperty(_CNameMapping, "Vero", NAME), _defineProperty(_CNameMapping, "vero", NAME), _CNameMapping);
4837
4880
 
4838
4881
  // add a mapping from common names to index.js exported key names as identified by Rudder
4839
4882
 
4840
- 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(_objectSpread2(_objectSpread2(_objectSpread2({
4883
+ 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(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
4841
4884
  All: "All"
4842
- }, CNameMapping$L), CNameMapping$K), CNameMapping$J), CNameMapping$I), CNameMapping$H), CNameMapping$G), CNameMapping$F), CNameMapping$E), CNameMapping$D), CNameMapping$C), CNameMapping$B), CNameMapping$A), CNameMapping$z), CNameMapping$y), CNameMapping$x), CNameMapping$w), CNameMapping$2), CNameMapping$v), CNameMapping$u), CNameMapping$t), CNameMapping$s), CNameMapping$r), CNameMapping$q), CNameMapping$p), CNameMapping$o), CNameMapping$n), CNameMapping$m), CNameMapping$l), CNameMapping$k), CNameMapping$j), CNameMapping$i), CNameMapping$h), CNameMapping$g), CNameMapping$f), CNameMapping$e), CNameMapping$d), CNameMapping$c), CNameMapping$b), CNameMapping$a), CNameMapping$9), CNameMapping$8), CNameMapping$7), CNameMapping$6), CNameMapping$5), CNameMapping$4), CNameMapping$3), CNameMapping$1), CNameMapping);
4885
+ }, CNameMapping$N), CNameMapping$M), CNameMapping$L), CNameMapping$K), CNameMapping$J), CNameMapping$I), CNameMapping$H), CNameMapping$G), CNameMapping$F), CNameMapping$E), CNameMapping$D), CNameMapping$C), CNameMapping$B), CNameMapping$A), CNameMapping$z), CNameMapping$y), CNameMapping$4), CNameMapping$x), CNameMapping$w), CNameMapping$v), CNameMapping$u), CNameMapping$t), CNameMapping$s), CNameMapping$r), CNameMapping$q), CNameMapping$p), CNameMapping$o), CNameMapping$n), CNameMapping$m), CNameMapping$l), CNameMapping$k), CNameMapping$j), CNameMapping$i), CNameMapping$h), CNameMapping$g), CNameMapping$f), CNameMapping$e), CNameMapping$d), CNameMapping$c), CNameMapping$b), CNameMapping$a), CNameMapping$9), CNameMapping$8), CNameMapping$7), CNameMapping$6), CNameMapping$5), CNameMapping$3), CNameMapping$2), CNameMapping$1), CNameMapping);
4843
4886
 
4844
4887
  // from client native integration name to server identified display name
4845
4888
  // add a mapping from Rudder identified key names to Rudder server recognizable names
@@ -4889,12 +4932,14 @@
4889
4932
  POST_AFFILIATE_PRO: "Post Affiliate Pro",
4890
4933
  LAUNCHDARKLY: "LaunchDarkly",
4891
4934
  GA360: "Google Analytics 360",
4892
- ADROLL: "Adroll"
4935
+ ADROLL: "Adroll",
4936
+ VERO: "Vero",
4937
+ MATOMO: "Matomo"
4893
4938
  };
4894
4939
 
4895
4940
  // Reserved Keywords for properties/traits
4896
4941
  var RESERVED_KEYS = ['anonymous_id', 'id', 'sent_at', 'received_at', 'timestamp', 'original_timestamp', 'event_text', 'event'];
4897
- var CONFIG_URL = 'https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.8.0';
4942
+ var CONFIG_URL = 'https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.9.0';
4898
4943
  var CDN_INT_DIR = 'js-integrations';
4899
4944
  var DEST_SDK_BASE_URL = "https://cdn.rudderlabs.com/v1.1/".concat(CDN_INT_DIR);
4900
4945
  var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
@@ -10191,18 +10236,7 @@
10191
10236
 
10192
10237
 
10193
10238
  function generateUUID() {
10194
- // Public Domain/MIT
10195
- var d = new Date().getTime();
10196
-
10197
- if (typeof performance !== "undefined" && typeof performance.now === "function") {
10198
- d += performance.now(); // use high-precision timer if available
10199
- }
10200
-
10201
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
10202
- var r = (d + Math.random() * 16) % 16 | 0;
10203
- d = Math.floor(d / 16);
10204
- return (c === "x" ? r : r & 0x3 | 0x8).toString(16);
10205
- });
10239
+ return v4$2();
10206
10240
  }
10207
10241
  /**
10208
10242
  *
@@ -10555,7 +10589,7 @@
10555
10589
  this.build = "1.0.0";
10556
10590
  this.name = "RudderLabs JavaScript SDK";
10557
10591
  this.namespace = "com.rudderlabs.javascript";
10558
- this.version = "2.8.0";
10592
+ this.version = "2.9.0";
10559
10593
  });
10560
10594
 
10561
10595
  /* eslint-disable max-classes-per-file */
@@ -10564,7 +10598,7 @@
10564
10598
  _classCallCheck(this, RudderLibraryInfo);
10565
10599
 
10566
10600
  this.name = "RudderLabs JavaScript SDK";
10567
- this.version = "2.8.0";
10601
+ this.version = "2.9.0";
10568
10602
  }); // Operating System information class
10569
10603
 
10570
10604
 
@@ -10622,6 +10656,21 @@
10622
10656
  }
10623
10657
  });
10624
10658
 
10659
+ function generateMessageId() {
10660
+ // Convert timestamp to microseconds
10661
+ var ts = 1000 * new Date().getTime(); // Add actual microseconds
10662
+ // if high-precision timer if available
10663
+
10664
+ if (typeof performance !== "undefined" && typeof performance.now === "function") {
10665
+ var pNow = performance.now();
10666
+ var microSec = 1000 * (pNow - Math.floor(pNow));
10667
+ ts += microSec;
10668
+ }
10669
+
10670
+ var uuid = generateUUID();
10671
+ return "".concat(ts, "-").concat(uuid);
10672
+ }
10673
+
10625
10674
  var RudderMessage = /*#__PURE__*/function () {
10626
10675
  function RudderMessage() {
10627
10676
  _classCallCheck(this, RudderMessage);
@@ -10629,7 +10678,7 @@
10629
10678
  this.channel = "web";
10630
10679
  this.context = new RudderContext();
10631
10680
  this.type = null;
10632
- this.messageId = generateUUID().toString();
10681
+ this.messageId = generateMessageId();
10633
10682
  this.originalTimestamp = new Date().toISOString();
10634
10683
  this.anonymousId = null;
10635
10684
  this.userId = null;
@@ -13039,7 +13088,9 @@
13039
13088
  LAUNCHDARKLY: "LaunchDarkly",
13040
13089
  GA360: "GA360",
13041
13090
  ADROLL: "Adroll",
13042
- DCM_FLOODLIGHT: "DCMFloodlight"
13091
+ DCM_FLOODLIGHT: "DCMFloodlight",
13092
+ MATOMO: "Matomo",
13093
+ VERO: "VERO"
13043
13094
  };
13044
13095
 
13045
13096
  /* eslint-disable class-methods-use-this */
@@ -13209,7 +13260,7 @@
13209
13260
  if (API_KEY.match(apiKeyRegex) !== null) return;
13210
13261
  window.rsBugsnagClient = window.Bugsnag.start({
13211
13262
  apiKey: API_KEY,
13212
- appVersion: "2.8.0",
13263
+ appVersion: "2.9.0",
13213
13264
  // Set SDK version as the app version
13214
13265
  metadata: META_DATA,
13215
13266
  onError: function onError(event) {
@@ -13869,9 +13920,14 @@
13869
13920
  this.processOptionsParam(rudderElement, options); // logger.debug(JSON.stringify(rudderElement))
13870
13921
  // check for reserved keys and log
13871
13922
 
13872
- checkReservedKeywords(rudderElement.message, type); // structure user supplied integrations object to rudder format
13923
+ checkReservedKeywords(rudderElement.message, type); // if not specified at event level, All: true is default
13873
13924
 
13874
- transformToRudderNames(rudderElement.message.integrations); // config plane native enabled destinations, still not completely loaded
13925
+ var clientSuppliedIntegrations = rudderElement.message.integrations || {
13926
+ 'All': true
13927
+ }; // structure user supplied integrations object to rudder format
13928
+
13929
+ transformToRudderNames(clientSuppliedIntegrations);
13930
+ rudderElement.message.integrations = clientSuppliedIntegrations; // config plane native enabled destinations, still not completely loaded
13875
13931
  // in the page, add the events to a queue and process later
13876
13932
 
13877
13933
  if (!this.clientIntegrationObjects) {
@@ -13879,10 +13935,8 @@
13879
13935
  // new event processing after analytics initialized but integrations not fetched from BE
13880
13936
  this.toBeProcessedByIntegrationArray.push([type, rudderElement]);
13881
13937
  } else {
13882
- // if not specified at event level, All: true is default
13883
- var clientSuppliedIntegrations = rudderElement.message.integrations; // get intersection between config plane native enabled destinations
13938
+ // get intersection between config plane native enabled destinations
13884
13939
  // (which were able to successfully load on the page) vs user supplied integrations
13885
-
13886
13940
  var succesfulLoadedIntersectClientSuppliedIntegrations = findAllEnabledDestinations(clientSuppliedIntegrations, this.clientIntegrationObjects); // try to first send to all integrations, if list populated from BE
13887
13941
 
13888
13942
  succesfulLoadedIntersectClientSuppliedIntegrations.forEach(function (obj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rudder-sdk-js",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "RudderStack Javascript SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",