@openreplay/tracker 16.4.4 → 16.4.5

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
@@ -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.4'; // TODO: version compatability check inside each plugin.
5275
+ this.version = '16.4.5'; // TODO: version compatability check inside each plugin.
5276
5276
  this.socketMode = false;
5277
5277
  this.compressionThreshold = 24 * 1000;
5278
5278
  this.bc = null;
@@ -7857,9 +7857,10 @@ function Viewport (app, options) {
7857
7857
  const sendSetPageLocation = app.safe(() => {
7858
7858
  const { URL } = document;
7859
7859
  if (URL !== url) {
7860
- url = urlSanitizer(URL);
7860
+ url = URL;
7861
+ const sanitized = urlSanitizer(url);
7861
7862
  const safeTitle = app.sanitizer.privateMode ? stringWiper(document.title) : titleSanitizer(document.title);
7862
- const safeUrl = app.sanitizer.privateMode ? stringWiper(url) : url;
7863
+ const safeUrl = app.sanitizer.privateMode ? stringWiper(sanitized) : sanitized;
7863
7864
  const safeReferrer = app.sanitizer.privateMode ? stringWiper(referrer) : referrer;
7864
7865
  app.send(SetPageLocation(safeUrl, safeReferrer, navigationStart, safeTitle));
7865
7866
  navigationStart = 0;
@@ -9648,7 +9649,7 @@ class API {
9648
9649
  this.signalStartIssue = (reason, missingApi) => {
9649
9650
  const doNotTrack = this.checkDoNotTrack();
9650
9651
  console.log("Tracker couldn't start due to:", JSON.stringify({
9651
- trackerVersion: '16.4.4',
9652
+ trackerVersion: '16.4.5',
9652
9653
  projectKey: this.options.projectKey,
9653
9654
  doNotTrack,
9654
9655
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,