sitepong 0.2.13 → 0.2.15

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.
@@ -2773,7 +2773,7 @@ var SitePongClient = class {
2773
2773
  }
2774
2774
  for (const hook of this.identifyHooks) {
2775
2775
  try {
2776
- hook(userId);
2776
+ hook(userId, traits);
2777
2777
  } catch (err) {
2778
2778
  this.log("identify hook failed:", err);
2779
2779
  }
@@ -2879,6 +2879,10 @@ var SitePongClient = class {
2879
2879
  flushInterval: opts.flushInterval,
2880
2880
  blockSelector: opts.blockSelector,
2881
2881
  maskSelector: opts.maskSelector,
2882
+ // Channel defaults to the SDK environment; ignoreChannels defaults to
2883
+ // ['development'] inside the capture when omitted.
2884
+ channel: opts.channel ?? this.config.environment,
2885
+ ignoreChannels: opts.ignoreChannels,
2882
2886
  debug: this.config.debug
2883
2887
  });
2884
2888
  this.watchtowerCapture.start(this.analyticsManager?.getAutocaptureModule() ?? null);