@screeb/rrweb 1.0.13 → 1.0.15
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/rrweb.cjs +5 -1
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +5 -1
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +5 -1
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +1 -1
- package/dist/rrweb.umd.min.cjs.map +3 -3
- package/package.json +1 -1
package/dist/rrweb.cjs
CHANGED
|
@@ -14678,9 +14678,13 @@ function v(t2) {
|
|
|
14678
14678
|
return c2;
|
|
14679
14679
|
}
|
|
14680
14680
|
function discardPriorSnapshots(events, baselineTime) {
|
|
14681
|
+
let goFullSnapshot = false;
|
|
14681
14682
|
for (let idx = events.length - 1; idx >= 0; idx--) {
|
|
14682
14683
|
const event = events[idx];
|
|
14683
|
-
if (event.type === EventType.
|
|
14684
|
+
if (event.type === EventType.FullSnapshot) {
|
|
14685
|
+
goFullSnapshot = true;
|
|
14686
|
+
}
|
|
14687
|
+
if (event.type === EventType.Meta && goFullSnapshot) {
|
|
14684
14688
|
if (event.timestamp <= baselineTime) {
|
|
14685
14689
|
return events.slice(idx);
|
|
14686
14690
|
}
|