rudder-sdk-js 2.3.0 → 2.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 +13 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4677,9 +4677,9 @@
4677
4677
  KISSMETRICS: "Kiss Metrics",
4678
4678
  LOTAME: "Lotame",
4679
4679
  VWO: "VWO",
4680
- OPTIMIZELY: "Optimizely",
4680
+ OPTIMIZELY: "Optimizely Web",
4681
4681
  FULLSTORY: "Fullstory",
4682
- TVSQUUARED: "TVSquared",
4682
+ TVSQUARED: "TVSquared",
4683
4683
  GA4: "Google Analytics 4",
4684
4684
  MOENGAGE: "MoEngage",
4685
4685
  AM: "Amplitude",
@@ -4689,11 +4689,11 @@
4689
4689
  POSTHOG: "PostHog",
4690
4690
  PROFITWELL: "ProfitWell",
4691
4691
  KLAVIYO: "Klaviyo",
4692
- CLEVERTAP: "Clevertap",
4693
- BINGADS: "BingAds",
4694
- PINTEREST_TAG: "PinterestTag",
4692
+ CLEVERTAP: "CleverTap",
4693
+ BINGADS: "Bing Ads",
4694
+ PINTEREST_TAG: "Pinterest Tag",
4695
4695
  SNAP_PIXEL: "Snap Pixel",
4696
- LINKEDIN_INSIGHT_TAG: "LinkedInInsightTag",
4696
+ LINKEDIN_INSIGHT_TAG: "Linkedin Insight Tag",
4697
4697
  REDDIT_PIXEL: "Reddit Pixel",
4698
4698
  DRIP: "Drip",
4699
4699
  HEAP: "Heap.io",
@@ -4701,15 +4701,15 @@
4701
4701
  MP: "Mixpanel",
4702
4702
  QUALTRICS: "Qualtrics",
4703
4703
  SENTRY: "Sentry",
4704
- GOOGLE_OPTIMIZE: "GoogleOptimize",
4705
- POST_AFFILIATE_PRO: "PostAffiliatePro",
4704
+ GOOGLE_OPTIMIZE: "Google Optimize",
4705
+ POST_AFFILIATE_PRO: "Post Affiliate Pro",
4706
4706
  LAUNCHDARKLY: "LaunchDarkly",
4707
4707
  GA360: "Google Analytics 360"
4708
4708
  };
4709
4709
 
4710
4710
  // Reserved Keywords for properties/traits
4711
4711
  var ReservedPropertyKeywords = ["anonymous_id", "id", "sent_at", "received_at", "timestamp", "original_timestamp", "event_text", "event"]; // ECommerce Parameter Names Enumeration
4712
- var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.3.0";
4712
+ var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.3.4";
4713
4713
  var CDN_INT_DIR = "js-integrations";
4714
4714
  var DEST_SDK_BASE_URL = "https://cdn.rudderlabs.com/v1.1/".concat(CDN_INT_DIR);
4715
4715
  var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
@@ -11306,7 +11306,7 @@
11306
11306
  this.build = "1.0.0";
11307
11307
  this.name = "RudderLabs JavaScript SDK";
11308
11308
  this.namespace = "com.rudderlabs.javascript";
11309
- this.version = "2.3.0";
11309
+ this.version = "2.3.4";
11310
11310
  });
11311
11311
 
11312
11312
  /* eslint-disable max-classes-per-file */
@@ -11315,7 +11315,7 @@
11315
11315
  _classCallCheck(this, RudderLibraryInfo);
11316
11316
 
11317
11317
  this.name = "RudderLabs JavaScript SDK";
11318
- this.version = "2.3.0";
11318
+ this.version = "2.3.4";
11319
11319
  }); // Operating System information class
11320
11320
 
11321
11321
 
@@ -13085,7 +13085,7 @@
13085
13085
  key: "enqueue",
13086
13086
  value: function enqueue(rudderElement, type) {
13087
13087
  var message = rudderElement.getElementContent();
13088
- message.originalTimestamp = getCurrentTimeFormatted();
13088
+ message.originalTimestamp = message.originalTimestamp || getCurrentTimeFormatted();
13089
13089
  message.sentAt = getCurrentTimeFormatted(); // add this, will get modified when actually being sent
13090
13090
  // check message size, if greater log an error
13091
13091
 
@@ -14660,7 +14660,7 @@
14660
14660
 
14661
14661
 
14662
14662
  parseQueryString(window.location.search);
14663
- argumentsArray.forEach(function (x) {
14663
+ if (Array.isArray(argumentsArray)) argumentsArray.forEach(function (x) {
14664
14664
  return instance.toBeProcessedArray.push(x);
14665
14665
  });
14666
14666
  processDataInAnalyticsArray(instance);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rudder-sdk-js",
3
- "version": "2.3.0",
3
+ "version": "2.3.4",
4
4
  "description": "RudderStack Javascript SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",