@amplitude/rrweb-player 2.1.3 → 2.1.4
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-player.cjs +13 -0
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +13 -0
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +13 -0
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +1 -1
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +3 -3
package/dist/rrweb-player.cjs
CHANGED
|
@@ -18511,6 +18511,7 @@ class Replayer {
|
|
|
18511
18511
|
});
|
|
18512
18512
|
const startTime = Date.now();
|
|
18513
18513
|
while (queue.length) {
|
|
18514
|
+
const pendingCount = queue.length;
|
|
18514
18515
|
const resolveTrees = queueToResolveTrees(queue);
|
|
18515
18516
|
queue.length = 0;
|
|
18516
18517
|
if (Date.now() - startTime > 500) {
|
|
@@ -18533,6 +18534,18 @@ class Replayer {
|
|
|
18533
18534
|
});
|
|
18534
18535
|
}
|
|
18535
18536
|
}
|
|
18537
|
+
if (queue.length === pendingCount) {
|
|
18538
|
+
this.warn(
|
|
18539
|
+
"Dropping the resolve queue since none of the remaining nodes can be resolved",
|
|
18540
|
+
resolveTrees.map((tree) => ({
|
|
18541
|
+
id: tree.value.node.id,
|
|
18542
|
+
parentId: tree.value.parentId,
|
|
18543
|
+
nextId: tree.value.nextId,
|
|
18544
|
+
children: tree.children.length
|
|
18545
|
+
}))
|
|
18546
|
+
);
|
|
18547
|
+
break;
|
|
18548
|
+
}
|
|
18536
18549
|
}
|
|
18537
18550
|
if (Object.keys(legacy_missingNodeMap).length) {
|
|
18538
18551
|
Object.assign(this.legacy_missingNodeRetryMap, legacy_missingNodeMap);
|