@openreplay/tracker 15.0.2 → 15.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/lib/index.js CHANGED
@@ -4644,7 +4644,7 @@ class App {
4644
4644
  this.stopCallbacks = [];
4645
4645
  this.commitCallbacks = [];
4646
4646
  this.activityState = ActivityState.NotActive;
4647
- this.version = '15.0.2'; // TODO: version compatability check inside each plugin.
4647
+ this.version = '15.0.3'; // TODO: version compatability check inside each plugin.
4648
4648
  this.socketMode = false;
4649
4649
  this.compressionThreshold = 24 * 1000;
4650
4650
  this.bc = null;
@@ -8805,6 +8805,9 @@ function Network (app, opts = {}) {
8805
8805
  /* ====== modern way ====== */
8806
8806
  if (options.useProxy) {
8807
8807
  return createNetworkProxy(context, options.ignoreHeaders, setSessionTokenHeader, sanitize, (message) => {
8808
+ if (options.failuresOnly && message.status < 400) {
8809
+ return;
8810
+ }
8808
8811
  app.send(NetworkRequest(message.requestType, message.method, message.url, message.request, message.response, message.status, message.startTime + getTimeOrigin(), message.duration, message.responseSize));
8809
8812
  }, (url) => app.isServiceURL(url), { xhr: true, fetch: true, beacon: true }, options.tokenUrlMatcher);
8810
8813
  }
@@ -9065,7 +9068,7 @@ class API {
9065
9068
  const orig = this.options.ingestPoint || DEFAULT_INGEST_POINT;
9066
9069
  req.open('POST', orig + '/v1/web/not-started');
9067
9070
  req.send(JSON.stringify({
9068
- trackerVersion: '15.0.2',
9071
+ trackerVersion: '15.0.3',
9069
9072
  projectKey: this.options.projectKey,
9070
9073
  doNotTrack,
9071
9074
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,