@devskin/browser-sdk 1.0.13 → 1.0.14

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.
@@ -5562,7 +5562,7 @@ class RRWebRecorder {
5562
5562
  }
5563
5563
  try {
5564
5564
  console.log('[RRWeb] Starting session recording:', this.sessionId);
5565
- console.log('[RRWeb] SDK Version: 1.0.13');
5565
+ console.log('[RRWeb] SDK Version: 1.0.14');
5566
5566
  this.stopFn = record({
5567
5567
  emit: (event) => {
5568
5568
  // DEBUG: Log ALL event types to diagnose issue
@@ -5751,7 +5751,18 @@ class Transport {
5751
5751
  acc[e.type] = (acc[e.type] || 0) + 1;
5752
5752
  return acc;
5753
5753
  }, {});
5754
+ // Calculate payload size
5755
+ const payload = {
5756
+ session_id: sessionId,
5757
+ events,
5758
+ timestamp: new Date().toISOString(),
5759
+ apiKey: this.config.apiKey,
5760
+ appId: this.config.appId,
5761
+ };
5762
+ const payloadSize = new Blob([JSON.stringify(payload)]).size;
5763
+ const payloadSizeMB = (payloadSize / 1024 / 1024).toFixed(2);
5754
5764
  console.log(`[DevSkin SDK] Sending ${events.length} recording events:`, eventTypes);
5765
+ console.log(`[DevSkin SDK] Payload size: ${payloadSizeMB} MB (${payloadSize} bytes)`);
5755
5766
  console.log(`[DevSkin SDK] First 3 events:`, events.slice(0, 3).map(e => ({ type: e.type, timestamp: e.timestamp })));
5756
5767
  // Check if this batch contains FullSnapshot (type 2)
5757
5768
  const hasFullSnapshot = events.some(e => e.type === 2);