@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 CHANGED
@@ -19042,16 +19042,8 @@ class SessionReplayEngine {
19042
19042
  // Simple rrweb recording configuration like official example
19043
19043
  this.rrwebStopRecord = record({
19044
19044
  emit: (event) => {
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
19045
  // Simple event capture
19051
19046
  this.events.push(event);
19052
- if (event.type === 2) {
19053
- console.log(`[Zaplier] ✅ FullSnapshot captured as event #${this.events.length}`);
19054
- }
19055
19047
  },
19056
19048
  });
19057
19049
  this.isActive = true;