@brainfish-ai/web-tracker 0.0.18 → 0.0.19

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.
@@ -3518,7 +3518,7 @@ class TrackerSdk {
3518
3518
  ...properties
3519
3519
  };
3520
3520
  }
3521
- async track(name, properties) {
3521
+ async track(name, properties, widgetSourceOverrides) {
3522
3522
  return this.send({
3523
3523
  type: "event.track",
3524
3524
  payload: {
@@ -3526,7 +3526,9 @@ class TrackerSdk {
3526
3526
  userId: properties?.userId ?? this.userId,
3527
3527
  properties: {
3528
3528
  ...this.global ?? {},
3529
- ...properties ?? {}
3529
+ ...properties ?? {},
3530
+ ...widgetSourceOverrides ? { _bfOverrides: widgetSourceOverrides } : {}
3531
+ // only include jwt overrides if they are provided
3530
3532
  }
3531
3533
  }
3532
3534
  });
@@ -37507,7 +37509,7 @@ function toCamelCase(str) {
37507
37509
  ($1) => $1.toUpperCase().replace("-", "").replace("_", "")
37508
37510
  );
37509
37511
  }
37510
- const VERSION = "0.0.18";
37512
+ const VERSION = "0.0.19";
37511
37513
  class Tracker extends TrackerSdk {
37512
37514
  // 750KB
37513
37515
  constructor(options) {
Binary file