@devskin/browser-sdk 1.0.37 → 1.0.39

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.
@@ -13696,8 +13696,12 @@ class Transport {
13696
13696
  this.sendToBackend('/v1/rum/events/batch', { events: dataArray }, useBeacon);
13697
13697
  }
13698
13698
  else if (type === 'heatmap') {
13699
- // Heatmap expects array format
13700
- this.sendToBackend(endpoint, { heatmaps: dataArray }, useBeacon);
13699
+ // Heatmap expects array format with apiKey and appId
13700
+ this.sendToBackend(endpoint, {
13701
+ heatmaps: dataArray,
13702
+ apiKey: this.config.apiKey,
13703
+ appId: this.config.appId
13704
+ }, useBeacon);
13701
13705
  }
13702
13706
  else {
13703
13707
  // Send each item individually (network, performance, error)
@@ -13931,8 +13935,7 @@ class DevSkinSDK {
13931
13935
  this.heatmapCollector.start();
13932
13936
  // Initialize screenshot collector and capture page
13933
13937
  this.screenshotCollector = new ScreenshotCollector(this.config, this.transport);
13934
- // Send only the pathname (not full URL) for consistent hashing
13935
- this.screenshotCollector.captureAndSend(this.sessionId, window.location.pathname);
13938
+ this.screenshotCollector.captureAndSend(this.sessionId, window.location.href);
13936
13939
  if (this.config.debug) {
13937
13940
  console.log('[DevSkin] Heatmap collection enabled (always on)');
13938
13941
  }