@zaplier/sdk 1.4.0 → 1.4.1
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/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +9 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/sdk.js +9 -1
- package/dist/sdk.js.map +1 -1
- package/dist/sdk.min.js +1 -1
- package/dist/src/modules/session-replay.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -19038,8 +19038,16 @@ class SessionReplayEngine {
|
|
|
19038
19038
|
// Simple rrweb recording configuration like official example
|
|
19039
19039
|
this.rrwebStopRecord = record({
|
|
19040
19040
|
emit: (event) => {
|
|
19041
|
-
//
|
|
19041
|
+
// CRITICAL: Ensure FullSnapshot is always first event
|
|
19042
|
+
if (this.events.length === 0 && event.type !== 2) {
|
|
19043
|
+
console.warn(`[Zaplier] First event is type ${event.type}, not FullSnapshot (2). Skipping until FullSnapshot.`);
|
|
19044
|
+
return; // Skip non-FullSnapshot events if no FullSnapshot captured yet
|
|
19045
|
+
}
|
|
19046
|
+
// Simple event capture
|
|
19042
19047
|
this.events.push(event);
|
|
19048
|
+
if (event.type === 2) {
|
|
19049
|
+
console.log(`[Zaplier] ✅ FullSnapshot captured as event #${this.events.length}`);
|
|
19050
|
+
}
|
|
19043
19051
|
},
|
|
19044
19052
|
});
|
|
19045
19053
|
this.isActive = true;
|