@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/cjs/index.js
CHANGED
|
@@ -3814,7 +3814,7 @@ class App {
|
|
|
3814
3814
|
this.stopCallbacks = [];
|
|
3815
3815
|
this.commitCallbacks = [];
|
|
3816
3816
|
this.activityState = ActivityState.NotActive;
|
|
3817
|
-
this.version = '17.2.
|
|
3817
|
+
this.version = '17.2.6'; // TODO: version compatability check inside each plugin.
|
|
3818
3818
|
this.socketMode = false;
|
|
3819
3819
|
this.compressionThreshold = 24 * 1000;
|
|
3820
3820
|
this.bc = null;
|
|
@@ -3839,6 +3839,9 @@ class App {
|
|
|
3839
3839
|
if (this.active())
|
|
3840
3840
|
return;
|
|
3841
3841
|
try {
|
|
3842
|
+
if (data.token) {
|
|
3843
|
+
this.session.setSessionToken(data.token, this.projectKey);
|
|
3844
|
+
}
|
|
3842
3845
|
this.allowAppStart();
|
|
3843
3846
|
void this.start();
|
|
3844
3847
|
}
|
|
@@ -3979,8 +3982,12 @@ class App {
|
|
|
3979
3982
|
}
|
|
3980
3983
|
if (this.pollingQueue[nextCommand].includes(data.context)) {
|
|
3981
3984
|
this.pollingQueue[nextCommand] = this.pollingQueue[nextCommand].filter((c) => c !== data.context);
|
|
3985
|
+
const message = { line: nextCommand };
|
|
3986
|
+
if (nextCommand === proto.startIframe) {
|
|
3987
|
+
message.token = this.session.getSessionToken(this.projectKey);
|
|
3988
|
+
}
|
|
3982
3989
|
// @ts-ignore
|
|
3983
|
-
event.source?.postMessage(
|
|
3990
|
+
event.source?.postMessage(message, '*');
|
|
3984
3991
|
if (this.pollingQueue[nextCommand].length === 0) {
|
|
3985
3992
|
this.pollingQueue.order.shift();
|
|
3986
3993
|
}
|
|
@@ -8669,7 +8676,7 @@ class ConstantProperties {
|
|
|
8669
8676
|
user_id: this.user_id,
|
|
8670
8677
|
distinct_id: this.deviceId,
|
|
8671
8678
|
sdk_edition: 'web',
|
|
8672
|
-
sdk_version: '17.2.
|
|
8679
|
+
sdk_version: '17.2.6',
|
|
8673
8680
|
timezone: getUTCOffsetString(),
|
|
8674
8681
|
search_engine: this.searchEngine,
|
|
8675
8682
|
};
|
|
@@ -9371,7 +9378,7 @@ class API {
|
|
|
9371
9378
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9372
9379
|
const doNotTrack = this.checkDoNotTrack();
|
|
9373
9380
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9374
|
-
trackerVersion: '17.2.
|
|
9381
|
+
trackerVersion: '17.2.6',
|
|
9375
9382
|
projectKey: this.options.projectKey,
|
|
9376
9383
|
doNotTrack,
|
|
9377
9384
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|