@openreplay/tracker 17.2.5 → 17.2.6
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 +11 -4
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +11 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/lib/entry.js +11 -4
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +11 -4
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -3810,7 +3810,7 @@ class App {
|
|
|
3810
3810
|
this.stopCallbacks = [];
|
|
3811
3811
|
this.commitCallbacks = [];
|
|
3812
3812
|
this.activityState = ActivityState.NotActive;
|
|
3813
|
-
this.version = '17.2.
|
|
3813
|
+
this.version = '17.2.6'; // TODO: version compatability check inside each plugin.
|
|
3814
3814
|
this.socketMode = false;
|
|
3815
3815
|
this.compressionThreshold = 24 * 1000;
|
|
3816
3816
|
this.bc = null;
|
|
@@ -3835,6 +3835,9 @@ class App {
|
|
|
3835
3835
|
if (this.active())
|
|
3836
3836
|
return;
|
|
3837
3837
|
try {
|
|
3838
|
+
if (data.token) {
|
|
3839
|
+
this.session.setSessionToken(data.token, this.projectKey);
|
|
3840
|
+
}
|
|
3838
3841
|
this.allowAppStart();
|
|
3839
3842
|
void this.start();
|
|
3840
3843
|
}
|
|
@@ -3975,8 +3978,12 @@ class App {
|
|
|
3975
3978
|
}
|
|
3976
3979
|
if (this.pollingQueue[nextCommand].includes(data.context)) {
|
|
3977
3980
|
this.pollingQueue[nextCommand] = this.pollingQueue[nextCommand].filter((c) => c !== data.context);
|
|
3981
|
+
const message = { line: nextCommand };
|
|
3982
|
+
if (nextCommand === proto.startIframe) {
|
|
3983
|
+
message.token = this.session.getSessionToken(this.projectKey);
|
|
3984
|
+
}
|
|
3978
3985
|
// @ts-ignore
|
|
3979
|
-
event.source?.postMessage(
|
|
3986
|
+
event.source?.postMessage(message, '*');
|
|
3980
3987
|
if (this.pollingQueue[nextCommand].length === 0) {
|
|
3981
3988
|
this.pollingQueue.order.shift();
|
|
3982
3989
|
}
|
|
@@ -8665,7 +8672,7 @@ class ConstantProperties {
|
|
|
8665
8672
|
user_id: this.user_id,
|
|
8666
8673
|
distinct_id: this.deviceId,
|
|
8667
8674
|
sdk_edition: 'web',
|
|
8668
|
-
sdk_version: '17.2.
|
|
8675
|
+
sdk_version: '17.2.6',
|
|
8669
8676
|
timezone: getUTCOffsetString(),
|
|
8670
8677
|
search_engine: this.searchEngine,
|
|
8671
8678
|
};
|
|
@@ -9367,7 +9374,7 @@ class API {
|
|
|
9367
9374
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9368
9375
|
const doNotTrack = this.checkDoNotTrack();
|
|
9369
9376
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9370
|
-
trackerVersion: '17.2.
|
|
9377
|
+
trackerVersion: '17.2.6',
|
|
9371
9378
|
projectKey: this.options.projectKey,
|
|
9372
9379
|
doNotTrack,
|
|
9373
9380
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|