@openreplay/tracker
Advanced tools
Comparing version 12.0.9-beta.2 to 12.0.9-beta.4
@@ -83,3 +83,3 @@ "use strict"; | ||
this.activityState = ActivityState.NotActive; | ||
this.version = '12.0.9-beta.2'; // TODO: version compatability check inside each plugin. | ||
this.version = '12.0.9-beta.4'; // TODO: version compatability check inside each plugin. | ||
this.compressionThreshold = 24 * 1000; | ||
@@ -960,2 +960,8 @@ this.restartAttempts = 0; | ||
start(...args) { | ||
if (this.activityState === ActivityState.Active || | ||
this.activityState === ActivityState.Starting) { | ||
const reason = 'OpenReplay: trying to call `start()` on the instance that has been started already.'; | ||
return Promise.resolve(UnsuccessfulStart(reason)); | ||
} | ||
this.activityState = ActivityState.Starting; | ||
if (!document.hidden) { | ||
@@ -962,0 +968,0 @@ return new Promise((resolve) => { |
@@ -97,2 +97,3 @@ "use strict"; | ||
}; | ||
this.app.nodes.clear(); | ||
// Can observe documentElement (<html>) here, because it is not supposed to be changing. | ||
@@ -99,0 +100,0 @@ // However, it is possible in some exotic cases and may cause an ignorance of the newly created <html> |
@@ -100,3 +100,3 @@ "use strict"; | ||
req.send(JSON.stringify({ | ||
trackerVersion: '12.0.9-beta.2', | ||
trackerVersion: '12.0.9-beta.4', | ||
projectKey: this.options.projectKey, | ||
@@ -103,0 +103,0 @@ doNotTrack, |
@@ -54,3 +54,3 @@ import ConditionsManager from '../modules/conditionsManager.js'; | ||
this.activityState = ActivityState.NotActive; | ||
this.version = '12.0.9-beta.2'; // TODO: version compatability check inside each plugin. | ||
this.version = '12.0.9-beta.4'; // TODO: version compatability check inside each plugin. | ||
this.compressionThreshold = 24 * 1000; | ||
@@ -931,2 +931,8 @@ this.restartAttempts = 0; | ||
start(...args) { | ||
if (this.activityState === ActivityState.Active || | ||
this.activityState === ActivityState.Starting) { | ||
const reason = 'OpenReplay: trying to call `start()` on the instance that has been started already.'; | ||
return Promise.resolve(UnsuccessfulStart(reason)); | ||
} | ||
this.activityState = ActivityState.Starting; | ||
if (!document.hidden) { | ||
@@ -933,0 +939,0 @@ return new Promise((resolve) => { |
@@ -92,2 +92,3 @@ import Observer from './observer.js'; | ||
}; | ||
this.app.nodes.clear(); | ||
// Can observe documentElement (<html>) here, because it is not supposed to be changing. | ||
@@ -94,0 +95,0 @@ // However, it is possible in some exotic cases and may cause an ignorance of the newly created <html> |
@@ -69,3 +69,3 @@ import App, { DEFAULT_INGEST_POINT } from './app/index.js'; | ||
req.send(JSON.stringify({ | ||
trackerVersion: '12.0.9-beta.2', | ||
trackerVersion: '12.0.9-beta.4', | ||
projectKey: this.options.projectKey, | ||
@@ -72,0 +72,0 @@ doNotTrack, |
{ | ||
"name": "@openreplay/tracker", | ||
"description": "The OpenReplay tracker main package", | ||
"version": "12.0.9-beta.2", | ||
"version": "12.0.9-beta.4", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "logging", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3923273
23367