@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 CHANGED
@@ -4729,7 +4729,7 @@ class App {
4729
4729
  this.stopCallbacks = [];
4730
4730
  this.commitCallbacks = [];
4731
4731
  this.activityState = ActivityState.NotActive;
4732
- this.version = '16.0.3-beta-1'; // TODO: version compatability check inside each plugin.
4732
+ this.version = '16.0.3'; // TODO: version compatability check inside each plugin.
4733
4733
  this.socketMode = false;
4734
4734
  this.compressionThreshold = 24 * 1000;
4735
4735
  this.bc = null;
@@ -5342,7 +5342,8 @@ class App {
5342
5342
  * */
5343
5343
  _nCommit() {
5344
5344
  if (this.socketMode) {
5345
- this.messages.unshift(Timestamp(this.timestamp()), TabData(this.session.getTabId()));
5345
+ this.messages.unshift(TabData(this.session.getTabId()));
5346
+ this.messages.unshift(Timestamp(this.timestamp()));
5346
5347
  this.commitCallbacks.forEach((cb) => cb(this.messages));
5347
5348
  this.messages.length = 0;
5348
5349
  return;
@@ -5361,7 +5362,8 @@ class App {
5361
5362
  }
5362
5363
  try {
5363
5364
  requestIdleCb(() => {
5364
- this.messages.unshift(Timestamp(this.timestamp()), TabData(this.session.getTabId()));
5365
+ this.messages.unshift(TabData(this.session.getTabId()));
5366
+ this.messages.unshift(Timestamp(this.timestamp()));
5365
5367
  this.worker?.postMessage(this.messages);
5366
5368
  this.commitCallbacks.forEach((cb) => cb(this.messages));
5367
5369
  this.messages.length = 0;
@@ -5384,9 +5386,10 @@ class App {
5384
5386
  _cStartCommit() {
5385
5387
  this.coldStartCommitN += 1;
5386
5388
  if (this.coldStartCommitN === 2) {
5387
- const payload = [Timestamp(this.timestamp()), TabData(this.session.getTabId())];
5388
- this.bufferedMessages1.push(...payload);
5389
- this.bufferedMessages2.push(...payload);
5389
+ this.bufferedMessages1.push(Timestamp(this.timestamp()));
5390
+ this.bufferedMessages1.push(TabData(this.session.getTabId()));
5391
+ this.bufferedMessages2.push(Timestamp(this.timestamp()));
5392
+ this.bufferedMessages2.push(TabData(this.session.getTabId()));
5390
5393
  this.coldStartCommitN = 0;
5391
5394
  }
5392
5395
  }
@@ -9189,7 +9192,7 @@ class API {
9189
9192
  this.signalStartIssue = (reason, missingApi) => {
9190
9193
  const doNotTrack = this.checkDoNotTrack();
9191
9194
  console.log("Tracker couldn't start due to:", JSON.stringify({
9192
- trackerVersion: '16.0.3-beta-1',
9195
+ trackerVersion: '16.0.3',
9193
9196
  projectKey: this.options.projectKey,
9194
9197
  doNotTrack,
9195
9198
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,