@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.
- package/dist/devskin.cjs.js +7 -4
- package/dist/devskin.cjs.js.map +1 -1
- package/dist/devskin.esm.js +7 -4
- package/dist/devskin.esm.js.map +1 -1
- package/dist/devskin.umd.js +7 -4
- package/dist/devskin.umd.js.map +1 -1
- package/dist/devskin.umd.min.js +1 -1
- package/dist/devskin.umd.min.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/transport.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/devskin.esm.js
CHANGED
|
@@ -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, {
|
|
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
|
-
|
|
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
|
}
|