@openreplay/tracker 16.0.3-beta-1 → 16.0.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 +10 -7
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +10 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/lib/entry.js +10 -7
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +10 -7
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -4725,7 +4725,7 @@ class App {
|
|
|
4725
4725
|
this.stopCallbacks = [];
|
|
4726
4726
|
this.commitCallbacks = [];
|
|
4727
4727
|
this.activityState = ActivityState.NotActive;
|
|
4728
|
-
this.version = '16.0.3
|
|
4728
|
+
this.version = '16.0.3'; // TODO: version compatability check inside each plugin.
|
|
4729
4729
|
this.socketMode = false;
|
|
4730
4730
|
this.compressionThreshold = 24 * 1000;
|
|
4731
4731
|
this.bc = null;
|
|
@@ -5338,7 +5338,8 @@ class App {
|
|
|
5338
5338
|
* */
|
|
5339
5339
|
_nCommit() {
|
|
5340
5340
|
if (this.socketMode) {
|
|
5341
|
-
this.messages.unshift(
|
|
5341
|
+
this.messages.unshift(TabData(this.session.getTabId()));
|
|
5342
|
+
this.messages.unshift(Timestamp(this.timestamp()));
|
|
5342
5343
|
this.commitCallbacks.forEach((cb) => cb(this.messages));
|
|
5343
5344
|
this.messages.length = 0;
|
|
5344
5345
|
return;
|
|
@@ -5357,7 +5358,8 @@ class App {
|
|
|
5357
5358
|
}
|
|
5358
5359
|
try {
|
|
5359
5360
|
requestIdleCb(() => {
|
|
5360
|
-
this.messages.unshift(
|
|
5361
|
+
this.messages.unshift(TabData(this.session.getTabId()));
|
|
5362
|
+
this.messages.unshift(Timestamp(this.timestamp()));
|
|
5361
5363
|
this.worker?.postMessage(this.messages);
|
|
5362
5364
|
this.commitCallbacks.forEach((cb) => cb(this.messages));
|
|
5363
5365
|
this.messages.length = 0;
|
|
@@ -5380,9 +5382,10 @@ class App {
|
|
|
5380
5382
|
_cStartCommit() {
|
|
5381
5383
|
this.coldStartCommitN += 1;
|
|
5382
5384
|
if (this.coldStartCommitN === 2) {
|
|
5383
|
-
|
|
5384
|
-
this.bufferedMessages1.push(
|
|
5385
|
-
this.bufferedMessages2.push(
|
|
5385
|
+
this.bufferedMessages1.push(Timestamp(this.timestamp()));
|
|
5386
|
+
this.bufferedMessages1.push(TabData(this.session.getTabId()));
|
|
5387
|
+
this.bufferedMessages2.push(Timestamp(this.timestamp()));
|
|
5388
|
+
this.bufferedMessages2.push(TabData(this.session.getTabId()));
|
|
5386
5389
|
this.coldStartCommitN = 0;
|
|
5387
5390
|
}
|
|
5388
5391
|
}
|
|
@@ -9185,7 +9188,7 @@ class API {
|
|
|
9185
9188
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9186
9189
|
const doNotTrack = this.checkDoNotTrack();
|
|
9187
9190
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9188
|
-
trackerVersion: '16.0.3
|
|
9191
|
+
trackerVersion: '16.0.3',
|
|
9189
9192
|
projectKey: this.options.projectKey,
|
|
9190
9193
|
doNotTrack,
|
|
9191
9194
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|