@devskin/browser-sdk 1.0.7 → 1.0.8
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 +9 -1
- package/dist/devskin.cjs.js.map +1 -1
- package/dist/devskin.esm.js +9 -1
- package/dist/devskin.esm.js.map +1 -1
- package/dist/devskin.umd.js +9 -1
- 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/recorder/rrweb.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/devskin.umd.js
CHANGED
|
@@ -5005,13 +5005,15 @@
|
|
|
5005
5005
|
}
|
|
5006
5006
|
try {
|
|
5007
5007
|
console.log('[RRWeb] Starting session recording:', this.sessionId);
|
|
5008
|
+
console.log('[RRWeb] SDK Version: 1.0.7');
|
|
5008
5009
|
this.stopFn = record({
|
|
5009
5010
|
emit: (event) => {
|
|
5011
|
+
console.log('[RRWeb] Event emitted:', { type: event.type, timestamp: event.timestamp });
|
|
5010
5012
|
this.events.push(event);
|
|
5011
5013
|
// Check if this is a FullSnapshot (type 2)
|
|
5012
5014
|
if (event.type === 2) {
|
|
5013
5015
|
this.hasFullSnapshot = true;
|
|
5014
|
-
console.log('[RRWeb] FullSnapshot captured! Sending immediately...');
|
|
5016
|
+
console.log('[RRWeb] ✅ FullSnapshot captured! Sending immediately...');
|
|
5015
5017
|
// Send immediately to ensure FullSnapshot reaches backend first
|
|
5016
5018
|
this.flush();
|
|
5017
5019
|
}
|
|
@@ -5091,6 +5093,12 @@
|
|
|
5091
5093
|
return;
|
|
5092
5094
|
const eventsToSend = [...this.events];
|
|
5093
5095
|
this.events = [];
|
|
5096
|
+
// Log event types being sent
|
|
5097
|
+
const typeCounts = {};
|
|
5098
|
+
eventsToSend.forEach(e => {
|
|
5099
|
+
typeCounts[e.type] = (typeCounts[e.type] || 0) + 1;
|
|
5100
|
+
});
|
|
5101
|
+
console.log('[RRWeb] Flushing events:', typeCounts);
|
|
5094
5102
|
if (this.onEventsReady) {
|
|
5095
5103
|
this.onEventsReady(eventsToSend);
|
|
5096
5104
|
}
|