rudder-sdk-js 2.2.5 → 2.2.8

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 (3) hide show
  1. package/index.d.ts +6 -0
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -417,6 +417,11 @@ declare module "rudder-sdk-js" {
417
417
  */
418
418
  function reset(flag?: boolean): void;
419
419
 
420
+ /**
421
+ * To get userId set in the SDK
422
+ */
423
+ function getUserId(): string;
424
+
420
425
  export {
421
426
  integrationOptions,
422
427
  loadOptions,
@@ -434,5 +439,6 @@ declare module "rudder-sdk-js" {
434
439
  group,
435
440
  setAnonymousId,
436
441
  getAnonymousId,
442
+ getUserId,
437
443
  };
438
444
  }
package/index.js CHANGED
@@ -4703,7 +4703,7 @@
4703
4703
 
4704
4704
  // Reserved Keywords for properties/traits
4705
4705
  var ReservedPropertyKeywords = ["anonymous_id", "id", "sent_at", "received_at", "timestamp", "original_timestamp", "event_text", "event"]; // ECommerce Parameter Names Enumeration
4706
- var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.2.5";
4706
+ var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.2.8";
4707
4707
  var CDN_INT_DIR = "js-integrations";
4708
4708
  var DEST_SDK_BASE_URL = "https://cdn.rudderlabs.com/v1.1/".concat(CDN_INT_DIR);
4709
4709
  var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
@@ -11300,7 +11300,7 @@
11300
11300
  this.build = "1.0.0";
11301
11301
  this.name = "RudderLabs JavaScript SDK";
11302
11302
  this.namespace = "com.rudderlabs.javascript";
11303
- this.version = "2.2.5";
11303
+ this.version = "2.2.8";
11304
11304
  });
11305
11305
 
11306
11306
  /* eslint-disable max-classes-per-file */
@@ -11309,7 +11309,7 @@
11309
11309
  _classCallCheck(this, RudderLibraryInfo);
11310
11310
 
11311
11311
  this.name = "RudderLabs JavaScript SDK";
11312
- this.version = "2.2.5";
11312
+ this.version = "2.2.8";
11313
11313
  }); // Operating System information class
11314
11314
 
11315
11315
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rudder-sdk-js",
3
- "version": "2.2.5",
3
+ "version": "2.2.8",
4
4
  "description": "RudderStack Javascript SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",