@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.cjs
CHANGED
|
@@ -19042,8 +19042,16 @@ class SessionReplayEngine {
|
|
|
19042
19042
|
// Simple rrweb recording configuration like official example
|
|
19043
19043
|
this.rrwebStopRecord = record({
|
|
19044
19044
|
emit: (event) => {
|
|
19045
|
-
//
|
|
19045
|
+
// CRITICAL: Ensure FullSnapshot is always first event
|
|
19046
|
+
if (this.events.length === 0 && event.type !== 2) {
|
|
19047
|
+
console.warn(`[Zaplier] First event is type ${event.type}, not FullSnapshot (2). Skipping until FullSnapshot.`);
|
|
19048
|
+
return; // Skip non-FullSnapshot events if no FullSnapshot captured yet
|
|
19049
|
+
}
|
|
19050
|
+
// Simple event capture
|
|
19046
19051
|
this.events.push(event);
|
|
19052
|
+
if (event.type === 2) {
|
|
19053
|
+
console.log(`[Zaplier] ✅ FullSnapshot captured as event #${this.events.length}`);
|
|
19054
|
+
}
|
|
19047
19055
|
},
|
|
19048
19056
|
});
|
|
19049
19057
|
this.isActive = true;
|