@sailfish-rrweb/replay 0.5.8 → 0.5.9

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/replay.js CHANGED
@@ -6416,8 +6416,8 @@ function Gr(t, e) {
6416
6416
  function Eh(t, e) {
6417
6417
  for (let s = t.length - 1; s >= 0; s--) {
6418
6418
  const r = t[s];
6419
- if (r.type === P.Meta && r.timestamp <= e)
6420
- return t.slice(s);
6419
+ if (r.type === P.FullSnapshot && r.timestamp <= e)
6420
+ return s > 0 && t[s - 1].type === P.Meta && t[s - 1].timestamp <= e ? t.slice(s - 1) : t.slice(s);
6421
6421
  }
6422
6422
  return t;
6423
6423
  }
package/dist/replay.js.br CHANGED
Binary file
package/dist/replay.js.gz CHANGED
Binary file