@devskin/browser-sdk 1.0.36 → 1.0.38
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 +12 -7
- package/dist/devskin.cjs.js.map +1 -1
- package/dist/devskin.esm.js +12 -7
- package/dist/devskin.esm.js.map +1 -1
- package/dist/devskin.umd.js +12 -7
- package/dist/devskin.umd.js.map +1 -1
- package/dist/devskin.umd.min.js +2 -2
- 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.umd.js
CHANGED
|
@@ -930,7 +930,7 @@
|
|
|
930
930
|
element: this.getElementSelector(target),
|
|
931
931
|
elementId: target.id || undefined,
|
|
932
932
|
elementClass: target.className || undefined,
|
|
933
|
-
pageUrl: window.location.
|
|
933
|
+
pageUrl: window.location.pathname,
|
|
934
934
|
timestamp: new Date().toISOString(),
|
|
935
935
|
viewportWidth: window.innerWidth,
|
|
936
936
|
viewportHeight: window.innerHeight,
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
maxDepth: this.maxScrollDepth,
|
|
959
959
|
pageHeight: documentHeight,
|
|
960
960
|
viewportHeight: windowHeight,
|
|
961
|
-
pageUrl: window.location.
|
|
961
|
+
pageUrl: window.location.pathname,
|
|
962
962
|
timestamp: new Date().toISOString(),
|
|
963
963
|
};
|
|
964
964
|
this.scrollData.push(scrollData);
|
|
@@ -995,7 +995,7 @@
|
|
|
995
995
|
const mouseMoveData = {
|
|
996
996
|
x: event.clientX + window.scrollX,
|
|
997
997
|
y: event.clientY + window.scrollY,
|
|
998
|
-
pageUrl: window.location.
|
|
998
|
+
pageUrl: window.location.pathname,
|
|
999
999
|
timestamp: new Date().toISOString(),
|
|
1000
1000
|
};
|
|
1001
1001
|
this.mouseMoveData.push(mouseMoveData);
|
|
@@ -13702,8 +13702,12 @@
|
|
|
13702
13702
|
this.sendToBackend('/v1/rum/events/batch', { events: dataArray }, useBeacon);
|
|
13703
13703
|
}
|
|
13704
13704
|
else if (type === 'heatmap') {
|
|
13705
|
-
// Heatmap expects array format
|
|
13706
|
-
this.sendToBackend(endpoint, {
|
|
13705
|
+
// Heatmap expects array format with apiKey and appId
|
|
13706
|
+
this.sendToBackend(endpoint, {
|
|
13707
|
+
heatmaps: dataArray,
|
|
13708
|
+
apiKey: this.config.apiKey,
|
|
13709
|
+
appId: this.config.appId
|
|
13710
|
+
}, useBeacon);
|
|
13707
13711
|
}
|
|
13708
13712
|
else {
|
|
13709
13713
|
// Send each item individually (network, performance, error)
|
|
@@ -13937,7 +13941,8 @@
|
|
|
13937
13941
|
this.heatmapCollector.start();
|
|
13938
13942
|
// Initialize screenshot collector and capture page
|
|
13939
13943
|
this.screenshotCollector = new ScreenshotCollector(this.config, this.transport);
|
|
13940
|
-
|
|
13944
|
+
// Send only the pathname (not full URL) for consistent hashing
|
|
13945
|
+
this.screenshotCollector.captureAndSend(this.sessionId, window.location.pathname);
|
|
13941
13946
|
if (this.config.debug) {
|
|
13942
13947
|
console.log('[DevSkin] Heatmap collection enabled (always on)');
|
|
13943
13948
|
}
|
|
@@ -14008,7 +14013,7 @@
|
|
|
14008
14013
|
userId: this.userId || undefined,
|
|
14009
14014
|
anonymousId: this.anonymousId || undefined,
|
|
14010
14015
|
properties: Object.assign(Object.assign({}, properties), this.getContextData()),
|
|
14011
|
-
pageUrl: window.location.
|
|
14016
|
+
pageUrl: window.location.pathname,
|
|
14012
14017
|
pageTitle: document.title,
|
|
14013
14018
|
};
|
|
14014
14019
|
(_a = this.transport) === null || _a === void 0 ? void 0 : _a.sendEvent(eventData);
|