@openreplay/tracker 3.5.5 → 3.5.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.
@@ -16,7 +16,7 @@ export interface OnStartInfo {
16
16
  export interface StartOptions {
17
17
  userID?: string;
18
18
  metadata?: Record<string, string>;
19
- forceNew: boolean;
19
+ forceNew?: boolean;
20
20
  }
21
21
  declare type AppOptions = {
22
22
  revID: string;
package/cjs/app/index.js CHANGED
@@ -29,7 +29,7 @@ class App {
29
29
  this.stopCallbacks = [];
30
30
  this.commitCallbacks = [];
31
31
  this.activityState = ActivityState.NotActive;
32
- this.version = '3.5.5'; // TODO: version compatability check inside each plugin.
32
+ this.version = '3.5.8'; // TODO: version compatability check inside each plugin.
33
33
  this.preStartMessages = [];
34
34
  this.projectKey = projectKey;
35
35
  this.options = Object.assign({
@@ -308,7 +308,7 @@ class App {
308
308
  return Promise.reject(reason);
309
309
  });
310
310
  }
311
- start(options = { forceNew: false }) {
311
+ start(options = {}) {
312
312
  if (!document.hidden) {
313
313
  return this._start(options);
314
314
  }
package/cjs/index.js CHANGED
@@ -127,7 +127,7 @@ class API {
127
127
  // no-cors issue only with text/plain or not-set Content-Type
128
128
  // req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
129
129
  req.send(JSON.stringify({
130
- trackerVersion: '3.5.5',
130
+ trackerVersion: '3.5.8',
131
131
  projectKey: options.projectKey,
132
132
  doNotTrack,
133
133
  // TODO: add precise reason (an exact API missing)
@@ -16,7 +16,7 @@ export interface OnStartInfo {
16
16
  export interface StartOptions {
17
17
  userID?: string;
18
18
  metadata?: Record<string, string>;
19
- forceNew: boolean;
19
+ forceNew?: boolean;
20
20
  }
21
21
  declare type AppOptions = {
22
22
  revID: string;
package/lib/app/index.js CHANGED
@@ -26,7 +26,7 @@ export default class App {
26
26
  this.stopCallbacks = [];
27
27
  this.commitCallbacks = [];
28
28
  this.activityState = ActivityState.NotActive;
29
- this.version = '3.5.5'; // TODO: version compatability check inside each plugin.
29
+ this.version = '3.5.8'; // TODO: version compatability check inside each plugin.
30
30
  this.preStartMessages = [];
31
31
  this.projectKey = projectKey;
32
32
  this.options = Object.assign({
@@ -305,7 +305,7 @@ export default class App {
305
305
  return Promise.reject(reason);
306
306
  });
307
307
  }
308
- start(options = { forceNew: false }) {
308
+ start(options = {}) {
309
309
  if (!document.hidden) {
310
310
  return this._start(options);
311
311
  }
package/lib/index.js CHANGED
@@ -123,7 +123,7 @@ export default class API {
123
123
  // no-cors issue only with text/plain or not-set Content-Type
124
124
  // req.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
125
125
  req.send(JSON.stringify({
126
- trackerVersion: '3.5.5',
126
+ trackerVersion: '3.5.8',
127
127
  projectKey: options.projectKey,
128
128
  doNotTrack,
129
129
  // TODO: add precise reason (an exact API missing)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openreplay/tracker",
3
3
  "description": "The OpenReplay tracker main package",
4
- "version": "3.5.5",
4
+ "version": "3.5.8",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"