@brainfish-ai/web-tracker 0.0.5-beta.3 → 0.0.6-alpha.0

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.5-beta.3";
3775
+ const Mi = "0.0.6-alpha.0";
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(), 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(), 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());
3784
3784
  }
3785
3785
  debounce(t, n) {
3786
3786
  this.debounceTimer && clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(t, n);
@@ -3841,6 +3841,7 @@ 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...");
3844
3845
  const s = yield function() {
3845
3846
  return O(this, null, function* () {
3846
3847
  try {
@@ -3854,7 +3855,7 @@ class Mn extends Er {
3854
3855
  }
3855
3856
  });
3856
3857
  }();
3857
- o.__screenshot = s;
3858
+ o.__screenshot = s, console.log("...done");
3858
3859
  }
3859
3860
  ia(Mn.prototype, this, "track").call(this, "screen_view", o);
3860
3861
  });
package/dist/index.js.gz CHANGED
Binary file