rudder-sdk-js 2.17.0 → 2.18.0

Sign up to get free protection for your applications and to get access to all the features.
package/index.es.js CHANGED
@@ -5037,7 +5037,7 @@ var clientToServerNames = {
5037
5037
 
5038
5038
  // Reserved Keywords for properties/traits
5039
5039
  var RESERVED_KEYS = ['anonymous_id', 'id', 'sent_at', 'received_at', 'timestamp', 'original_timestamp', 'event_text', 'event'];
5040
- var CONFIG_URL = 'https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.17.0';
5040
+ var CONFIG_URL = 'https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.18.0';
5041
5041
  var CDN_INT_DIR = 'js-integrations';
5042
5042
  var DEST_SDK_BASE_URL = "https://cdn.rudderlabs.com/v1.1/".concat(CDN_INT_DIR);
5043
5043
  var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
@@ -10736,7 +10736,7 @@ var RudderApp = /*#__PURE__*/_createClass(function RudderApp() {
10736
10736
  this.build = '1.0.0';
10737
10737
  this.name = 'RudderLabs JavaScript SDK';
10738
10738
  this.namespace = 'com.rudderlabs.javascript';
10739
- this.version = '2.17.0';
10739
+ this.version = '2.18.0';
10740
10740
  });
10741
10741
 
10742
10742
  /* eslint-disable max-classes-per-file */
@@ -10745,7 +10745,7 @@ var RudderLibraryInfo = /*#__PURE__*/_createClass(function RudderLibraryInfo() {
10745
10745
  _classCallCheck(this, RudderLibraryInfo);
10746
10746
 
10747
10747
  this.name = 'RudderLabs JavaScript SDK';
10748
- this.version = '2.17.0';
10748
+ this.version = '2.18.0';
10749
10749
  }); // Operating System information class
10750
10750
 
10751
10751
 
@@ -13424,7 +13424,7 @@ function initClient(sourceId) {
13424
13424
  var devHosts = ['localhost', '127.0.0.1', '[::1]'];
13425
13425
  window.rsBugsnagClient = window.Bugsnag.start({
13426
13426
  apiKey: API_KEY,
13427
- appVersion: '2.17.0',
13427
+ appVersion: '2.18.0',
13428
13428
  // Set SDK version as the app version
13429
13429
  metadata: META_DATA,
13430
13430
  onError: function onError(event) {
package/index.js CHANGED
@@ -5043,7 +5043,7 @@
5043
5043
 
5044
5044
  // Reserved Keywords for properties/traits
5045
5045
  var RESERVED_KEYS = ['anonymous_id', 'id', 'sent_at', 'received_at', 'timestamp', 'original_timestamp', 'event_text', 'event'];
5046
- var CONFIG_URL = 'https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.17.0';
5046
+ var CONFIG_URL = 'https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.18.0';
5047
5047
  var CDN_INT_DIR = 'js-integrations';
5048
5048
  var DEST_SDK_BASE_URL = "https://cdn.rudderlabs.com/v1.1/".concat(CDN_INT_DIR);
5049
5049
  var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
@@ -10742,7 +10742,7 @@
10742
10742
  this.build = '1.0.0';
10743
10743
  this.name = 'RudderLabs JavaScript SDK';
10744
10744
  this.namespace = 'com.rudderlabs.javascript';
10745
- this.version = '2.17.0';
10745
+ this.version = '2.18.0';
10746
10746
  });
10747
10747
 
10748
10748
  /* eslint-disable max-classes-per-file */
@@ -10751,7 +10751,7 @@
10751
10751
  _classCallCheck(this, RudderLibraryInfo);
10752
10752
 
10753
10753
  this.name = 'RudderLabs JavaScript SDK';
10754
- this.version = '2.17.0';
10754
+ this.version = '2.18.0';
10755
10755
  }); // Operating System information class
10756
10756
 
10757
10757
 
@@ -13430,7 +13430,7 @@
13430
13430
  var devHosts = ['localhost', '127.0.0.1', '[::1]'];
13431
13431
  window.rsBugsnagClient = window.Bugsnag.start({
13432
13432
  apiKey: API_KEY,
13433
- appVersion: '2.17.0',
13433
+ appVersion: '2.18.0',
13434
13434
  // Set SDK version as the app version
13435
13435
  metadata: META_DATA,
13436
13436
  onError: function onError(event) {
package/package.json CHANGED
@@ -1,15 +1,27 @@
1
1
  {
2
2
  "name": "rudder-sdk-js",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "RudderStack Javascript SDK",
5
5
  "main": "index.js",
6
6
  "module": "index.es.js",
7
7
  "exports": {
8
- ".": {
9
- "service-worker": "./service-worker/index.es.js"
8
+ ".": "./index.js",
9
+ "./service-worker": "./service-worker/index.js",
10
+ "./service-worker/index.es": "./service-worker/index.es.js"
11
+ },
12
+ "typesVersions": {
13
+ "*": {
14
+ ".": [
15
+ "index.d.ts"
16
+ ],
17
+ "service-worker": [
18
+ "service-worker/index.d.ts"
19
+ ],
20
+ "service-worker/index.es": [
21
+ "service-worker/index.d.ts"
22
+ ]
10
23
  }
11
24
  },
12
- "types": "index.d.ts",
13
25
  "scripts": {
14
26
  "test": "echo \"Error: no test specified\" && exit 1"
15
27
  },
@@ -1,4 +1,6 @@
1
- export default Analytics;
1
+ export {
2
+ Analytics
3
+ };
2
4
 
3
5
  /**
4
6
  * Represents a generic object in the APIs
@@ -11,6 +13,7 @@ export interface apiObject {
11
13
  | boolean
12
14
  | undefined
13
15
  | apiObject
16
+ | unknown
14
17
  | (string | number | boolean | apiObject)[];
15
18
  }
16
19
 
@@ -18879,7 +18879,7 @@ function removeTrailingSlashes(inURL) {
18879
18879
  return inURL && inURL.endsWith('/') ? inURL.replace(/\/+$/, '') : inURL;
18880
18880
  }
18881
18881
 
18882
- var version$1 = "2.17.0";
18882
+ var version$1 = "2.18.0";
18883
18883
 
18884
18884
  var version = version$1;
18885
18885
  var setImmediate = global$1.setImmediate || nextTick.bind(process);
@@ -18885,7 +18885,7 @@
18885
18885
  return inURL && inURL.endsWith('/') ? inURL.replace(/\/+$/, '') : inURL;
18886
18886
  }
18887
18887
 
18888
- var version$1 = "2.17.0";
18888
+ var version$1 = "2.18.0";
18889
18889
 
18890
18890
  var version = version$1;
18891
18891
  var setImmediate = global$1.setImmediate || nextTick.bind(process);