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