@openreplay/tracker 16.4.3-beta.0 → 16.4.3
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.
- package/dist/cjs/entry.js +6 -5
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +6 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/lib/entry.js +6 -5
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +6 -5
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/entry.js
CHANGED
|
@@ -5098,15 +5098,16 @@ class Session {
|
|
|
5098
5098
|
this.userInfo = userInfo;
|
|
5099
5099
|
}
|
|
5100
5100
|
getSessionToken(projectKey) {
|
|
5101
|
-
const
|
|
5102
|
-
if (projectKey &&
|
|
5103
|
-
const savedProject =
|
|
5101
|
+
const tokenWithProject = this.token || this.app.sessionStorage.getItem(this.options.session_token_key);
|
|
5102
|
+
if (projectKey && tokenWithProject) {
|
|
5103
|
+
const savedProject = tokenWithProject.split('_&_')[1];
|
|
5104
5104
|
if (!savedProject || savedProject !== projectKey) {
|
|
5105
5105
|
this.app.sessionStorage.removeItem(this.options.session_token_key);
|
|
5106
5106
|
this.token = undefined;
|
|
5107
5107
|
return undefined;
|
|
5108
5108
|
}
|
|
5109
5109
|
}
|
|
5110
|
+
const token = tokenWithProject ? tokenWithProject.split('_&_')[0] : null;
|
|
5110
5111
|
return token || undefined;
|
|
5111
5112
|
}
|
|
5112
5113
|
setSessionToken(token, projectKey) {
|
|
@@ -5275,7 +5276,7 @@ class App {
|
|
|
5275
5276
|
this.stopCallbacks = [];
|
|
5276
5277
|
this.commitCallbacks = [];
|
|
5277
5278
|
this.activityState = ActivityState.NotActive;
|
|
5278
|
-
this.version = '16.4.3
|
|
5279
|
+
this.version = '16.4.3'; // TODO: version compatability check inside each plugin.
|
|
5279
5280
|
this.socketMode = false;
|
|
5280
5281
|
this.compressionThreshold = 24 * 1000;
|
|
5281
5282
|
this.bc = null;
|
|
@@ -9655,7 +9656,7 @@ class API {
|
|
|
9655
9656
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9656
9657
|
const doNotTrack = this.checkDoNotTrack();
|
|
9657
9658
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9658
|
-
trackerVersion: '16.4.3
|
|
9659
|
+
trackerVersion: '16.4.3',
|
|
9659
9660
|
projectKey: this.options.projectKey,
|
|
9660
9661
|
doNotTrack,
|
|
9661
9662
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|