@brainfish-ai/web-tracker 0.0.6-alpha.0 → 0.0.6-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/index.js CHANGED
@@ -3772,7 +3772,7 @@ const Te = class Te {
3772
3772
  };
3773
3773
  N(Te, "instance");
3774
3774
  let Ut = Te;
3775
- const Mi = "0.0.6-alpha.0";
3775
+ const Mi = "0.0.6-beta.1";
3776
3776
  class Mn extends Er {
3777
3777
  constructor(t) {
3778
3778
  super(de({ sdk: "web", sdkVersion: Mi }, t));
@@ -3780,7 +3780,7 @@ class Mn extends Er {
3780
3780
  N(this, "debounceTimer", null);
3781
3781
  N(this, "agent");
3782
3782
  N(this, "sessionManager", Ut.getInstance());
3783
- this.options = t, this.agent = new Ni(), console.log("tracker options", this.options), this.isServer() || (this.setGlobalProperties({ __referrer: document.referrer }), this.options.trackOutgoingLinks && this.trackOutgoingLinks(), this.options.trackScreenViews && this.trackScreenViews(), this.options.trackAttributes && this.trackAttributes(), this.options.enableRecording && this.startRecording());
3783
+ this.options = t, this.agent = new Ni(), this.isServer() || (this.setGlobalProperties({ __referrer: document.referrer }), this.options.trackOutgoingLinks && this.trackOutgoingLinks(), this.options.trackScreenViews && this.trackScreenViews(), this.options.trackAttributes && this.trackAttributes(), this.options.enableRecording && typeof window != "undefined" && window.location.hostname === "localhost" && this.startRecording());
3784
3784
  }
3785
3785
  debounce(t, n) {
3786
3786
  this.debounceTimer && clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(t, n);
@@ -3841,7 +3841,6 @@ class Mn extends Er {
3841
3841
  this.lastPath = r;
3842
3842
  const o = Me(de({}, i != null ? i : {}), { __path: r, __title: document.title });
3843
3843
  if (this.options.enableRecording) {
3844
- console.log("taking screenshot...");
3845
3844
  const s = yield function() {
3846
3845
  return O(this, null, function* () {
3847
3846
  try {
@@ -3855,7 +3854,7 @@ class Mn extends Er {
3855
3854
  }
3856
3855
  });
3857
3856
  }();
3858
- o.__screenshot = s, console.log("...done");
3857
+ o.__screenshot = s;
3859
3858
  }
3860
3859
  ia(Mn.prototype, this, "track").call(this, "screen_view", o);
3861
3860
  });
package/dist/index.js.gz CHANGED
Binary file