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.
package/dist/index.mjs CHANGED
@@ -2766,7 +2766,7 @@ var SitePongClient = class {
2766
2766
  }
2767
2767
  for (const hook of this.identifyHooks) {
2768
2768
  try {
2769
- hook(userId);
2769
+ hook(userId, traits);
2770
2770
  } catch (err) {
2771
2771
  this.log("identify hook failed:", err);
2772
2772
  }
@@ -2872,6 +2872,10 @@ var SitePongClient = class {
2872
2872
  flushInterval: opts.flushInterval,
2873
2873
  blockSelector: opts.blockSelector,
2874
2874
  maskSelector: opts.maskSelector,
2875
+ // Channel defaults to the SDK environment; ignoreChannels defaults to
2876
+ // ['development'] inside the capture when omitted.
2877
+ channel: opts.channel ?? this.config.environment,
2878
+ ignoreChannels: opts.ignoreChannels,
2875
2879
  debug: this.config.debug
2876
2880
  });
2877
2881
  this.watchtowerCapture.start(this.analyticsManager?.getAutocaptureModule() ?? null);