@openreplay/tracker 16.4.7-beta.1 → 16.4.7

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/entry.js CHANGED
@@ -5272,7 +5272,7 @@ class App {
5272
5272
  this.stopCallbacks = [];
5273
5273
  this.commitCallbacks = [];
5274
5274
  this.activityState = ActivityState.NotActive;
5275
- this.version = '16.4.7-beta.1'; // TODO: version compatability check inside each plugin.
5275
+ this.version = '16.4.7'; // TODO: version compatability check inside each plugin.
5276
5276
  this.socketMode = false;
5277
5277
  this.compressionThreshold = 24 * 1000;
5278
5278
  this.bc = null;
@@ -5376,13 +5376,6 @@ class App {
5376
5376
  }
5377
5377
  };
5378
5378
  void signalId();
5379
- if (this.active()) {
5380
- // @ts-ignore
5381
- event.source?.postMessage({ line: proto.startIframe }, '*');
5382
- }
5383
- else {
5384
- this.addCommand(proto.startIframe);
5385
- }
5386
5379
  }
5387
5380
  /**
5388
5381
  * proxying messages from iframe to main body, so they can be in one batch (same indexes, etc)
@@ -7683,15 +7676,9 @@ function Timing (app, opts) {
7683
7676
  const entryName = options.resourceNameSanitizer
7684
7677
  ? options.resourceNameSanitizer(entry.name)
7685
7678
  : entry.name;
7686
- const cached =
7679
+ app.send(ResourceTiming(entry.startTime + getTimeOrigin(), entry.duration, entry.responseStart && entry.startTime ? entry.responseStart - entry.startTime : 0, entry.transferSize > entry.encodedBodySize ? entry.transferSize - entry.encodedBodySize : 0, entry.encodedBodySize || 0, entry.decodedBodySize || 0, app.sanitizer.privateMode ? entry.name.replaceAll(/./g, '*') : entryName, entry.initiatorType, entry.transferSize,
7687
7680
  // @ts-ignore
7688
- (entry.responseStatus && entry.responseStatus === 304) ||
7689
- // @ts-ignore
7690
- (entry.deliveryType && entry.deliveryType === 'cache') ||
7691
- (entry.transferSize === 0 && entry.decodedBodySize > 0);
7692
- const requestFailed = entry.responseStatus && entry.responseStatus >= 400;
7693
- const decodedBodySize = requestFailed ? -111 : entry.decodedBodySize || 0;
7694
- app.send(ResourceTiming(entry.startTime + getTimeOrigin(), entry.duration, entry.responseStart && entry.startTime ? entry.responseStart - entry.startTime : 0, entry.transferSize > entry.encodedBodySize ? entry.transferSize - entry.encodedBodySize : 0, entry.encodedBodySize || 0, decodedBodySize, app.sanitizer.privateMode ? entry.name.replaceAll(/./g, '*') : entryName, entry.initiatorType, entry.transferSize, cached));
7681
+ (entry.responseStatus && entry.responseStatus === 304) || entry.transferSize === 0));
7695
7682
  }
7696
7683
  const observer = new PerformanceObserver((list) => list.getEntries().forEach(resourceTiming));
7697
7684
  function onVitalsSignal(msg) {
@@ -9665,7 +9652,7 @@ class API {
9665
9652
  this.signalStartIssue = (reason, missingApi) => {
9666
9653
  const doNotTrack = this.checkDoNotTrack();
9667
9654
  console.log("Tracker couldn't start due to:", JSON.stringify({
9668
- trackerVersion: '16.4.7-beta.1',
9655
+ trackerVersion: '16.4.7',
9669
9656
  projectKey: this.options.projectKey,
9670
9657
  doNotTrack,
9671
9658
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,