@brainfish-ai/web-tracker 0.0.21-rc.1 → 0.0.22

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.
@@ -3586,6 +3586,8 @@ class TrackerSdk {
3586
3586
  if (payload.userId) {
3587
3587
  this.userId = payload.userId;
3588
3588
  this.flush();
3589
+ } else {
3590
+ console.warn("BrainfishWidgetWarn: `.identify` called without a userId. User identification requires a valid userId to be provided.");
3589
3591
  }
3590
3592
  const iframe = document.querySelector("#bf-iframe-container .trigger-iframe");
3591
3593
  if (iframe) {
@@ -29279,7 +29281,6 @@ class Sender {
29279
29281
  }
29280
29282
  handle(event) {
29281
29283
  if (event.type === EventType$1.FullSnapshot && this.eventBuffer.find((e) => e.type === EventType$1.FullSnapshot)) {
29282
- console.warn("Full snapshot already in buffer, ignoring...");
29283
29284
  return;
29284
29285
  }
29285
29286
  this.eventBuffer.push(event);
@@ -29290,8 +29291,6 @@ class Sender {
29290
29291
  if (this.agent.sendEvents) {
29291
29292
  const events = this.eventBuffer.flush();
29292
29293
  await this.agent.sendEvents(events);
29293
- } else {
29294
- console.warn("No send function provided to Agent");
29295
29294
  }
29296
29295
  }
29297
29296
  }
@@ -38427,7 +38426,7 @@ function toCamelCase(str) {
38427
38426
  ($1) => $1.toUpperCase().replace("-", "").replace("_", "")
38428
38427
  );
38429
38428
  }
38430
- const VERSION = "0.0.21-rc.1";
38429
+ const VERSION = "0.0.22";
38431
38430
  class Tracker extends TrackerSdk {
38432
38431
  // 750KB
38433
38432
  constructor(options) {
@@ -38460,6 +38459,7 @@ class Tracker extends TrackerSdk {
38460
38459
  }
38461
38460
  if (this.options.enableRecording && this.options._allowScreenRecording) {
38462
38461
  this.startRecording();
38462
+ console.log("Brainfish has started ambient learning");
38463
38463
  }
38464
38464
  }
38465
38465
  }
Binary file