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