@screeb/rrweb 1.0.14 → 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.js
CHANGED
|
@@ -14676,9 +14676,13 @@ function v(t2) {
|
|
|
14676
14676
|
return c2;
|
|
14677
14677
|
}
|
|
14678
14678
|
function discardPriorSnapshots(events, baselineTime) {
|
|
14679
|
+
let goFullSnapshot = false;
|
|
14679
14680
|
for (let idx = events.length - 1; idx >= 0; idx--) {
|
|
14680
14681
|
const event = events[idx];
|
|
14681
|
-
if (event.type === EventType.
|
|
14682
|
+
if (event.type === EventType.FullSnapshot) {
|
|
14683
|
+
goFullSnapshot = true;
|
|
14684
|
+
}
|
|
14685
|
+
if (event.type === EventType.Meta && goFullSnapshot) {
|
|
14682
14686
|
if (event.timestamp <= baselineTime) {
|
|
14683
14687
|
return events.slice(idx);
|
|
14684
14688
|
}
|