@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/cjs/entry.js CHANGED
@@ -5276,7 +5276,7 @@ class App {
5276
5276
  this.stopCallbacks = [];
5277
5277
  this.commitCallbacks = [];
5278
5278
  this.activityState = ActivityState.NotActive;
5279
- this.version = '16.4.7-beta.1'; // TODO: version compatability check inside each plugin.
5279
+ this.version = '16.4.7'; // TODO: version compatability check inside each plugin.
5280
5280
  this.socketMode = false;
5281
5281
  this.compressionThreshold = 24 * 1000;
5282
5282
  this.bc = null;
@@ -5380,13 +5380,6 @@ class App {
5380
5380
  }
5381
5381
  };
5382
5382
  void signalId();
5383
- if (this.active()) {
5384
- // @ts-ignore
5385
- event.source?.postMessage({ line: proto.startIframe }, '*');
5386
- }
5387
- else {
5388
- this.addCommand(proto.startIframe);
5389
- }
5390
5383
  }
5391
5384
  /**
5392
5385
  * proxying messages from iframe to main body, so they can be in one batch (same indexes, etc)
@@ -7687,15 +7680,9 @@ function Timing (app, opts) {
7687
7680
  const entryName = options.resourceNameSanitizer
7688
7681
  ? options.resourceNameSanitizer(entry.name)
7689
7682
  : entry.name;
7690
- const cached =
7683
+ 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,
7691
7684
  // @ts-ignore
7692
- (entry.responseStatus && entry.responseStatus === 304) ||
7693
- // @ts-ignore
7694
- (entry.deliveryType && entry.deliveryType === 'cache') ||
7695
- (entry.transferSize === 0 && entry.decodedBodySize > 0);
7696
- const requestFailed = entry.responseStatus && entry.responseStatus >= 400;
7697
- const decodedBodySize = requestFailed ? -111 : entry.decodedBodySize || 0;
7698
- 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));
7685
+ (entry.responseStatus && entry.responseStatus === 304) || entry.transferSize === 0));
7699
7686
  }
7700
7687
  const observer = new PerformanceObserver((list) => list.getEntries().forEach(resourceTiming));
7701
7688
  function onVitalsSignal(msg) {
@@ -9669,7 +9656,7 @@ class API {
9669
9656
  this.signalStartIssue = (reason, missingApi) => {
9670
9657
  const doNotTrack = this.checkDoNotTrack();
9671
9658
  console.log("Tracker couldn't start due to:", JSON.stringify({
9672
- trackerVersion: '16.4.7-beta.1',
9659
+ trackerVersion: '16.4.7',
9673
9660
  projectKey: this.options.projectKey,
9674
9661
  doNotTrack,
9675
9662
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,