@openreplay/tracker 16.4.1 → 16.4.2-beta.1

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/lib/index.js CHANGED
@@ -5255,7 +5255,7 @@ class App {
5255
5255
  this.stopCallbacks = [];
5256
5256
  this.commitCallbacks = [];
5257
5257
  this.activityState = ActivityState.NotActive;
5258
- this.version = '16.4.1'; // TODO: version compatability check inside each plugin.
5258
+ this.version = '16.4.2-beta.1'; // TODO: version compatability check inside each plugin.
5259
5259
  this.socketMode = false;
5260
5260
  this.compressionThreshold = 24 * 1000;
5261
5261
  this.bc = null;
@@ -5690,12 +5690,13 @@ class App {
5690
5690
  line: proto.ask,
5691
5691
  source: thisTab,
5692
5692
  context: this.contextId,
5693
+ projectKey: this.projectKey,
5693
5694
  });
5694
5695
  this.startTimeout = setTimeout(() => {
5695
5696
  this.allowAppStart();
5696
5697
  }, 250);
5697
5698
  this.bc.onmessage = (ev) => {
5698
- if (ev.data.context === this.contextId) {
5699
+ if (ev.data.context === this.contextId || this.projectKey !== ev.data.projectKey) {
5699
5700
  return;
5700
5701
  }
5701
5702
  this.debug.log(ev);
@@ -5718,6 +5719,7 @@ class App {
5718
5719
  token,
5719
5720
  source: thisTab,
5720
5721
  context: this.contextId,
5722
+ projectKey: this.projectKey,
5721
5723
  });
5722
5724
  }
5723
5725
  }
@@ -9628,7 +9630,7 @@ class API {
9628
9630
  this.signalStartIssue = (reason, missingApi) => {
9629
9631
  const doNotTrack = this.checkDoNotTrack();
9630
9632
  console.log("Tracker couldn't start due to:", JSON.stringify({
9631
- trackerVersion: '16.4.1',
9633
+ trackerVersion: '16.4.2-beta.1',
9632
9634
  projectKey: this.options.projectKey,
9633
9635
  doNotTrack,
9634
9636
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,