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