@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.js
CHANGED
|
@@ -18509,6 +18509,7 @@ class Replayer {
|
|
|
18509
18509
|
});
|
|
18510
18510
|
const startTime = Date.now();
|
|
18511
18511
|
while (queue.length) {
|
|
18512
|
+
const pendingCount = queue.length;
|
|
18512
18513
|
const resolveTrees = queueToResolveTrees(queue);
|
|
18513
18514
|
queue.length = 0;
|
|
18514
18515
|
if (Date.now() - startTime > 500) {
|
|
@@ -18531,6 +18532,18 @@ class Replayer {
|
|
|
18531
18532
|
});
|
|
18532
18533
|
}
|
|
18533
18534
|
}
|
|
18535
|
+
if (queue.length === pendingCount) {
|
|
18536
|
+
this.warn(
|
|
18537
|
+
"Dropping the resolve queue since none of the remaining nodes can be resolved",
|
|
18538
|
+
resolveTrees.map((tree) => ({
|
|
18539
|
+
id: tree.value.node.id,
|
|
18540
|
+
parentId: tree.value.parentId,
|
|
18541
|
+
nextId: tree.value.nextId,
|
|
18542
|
+
children: tree.children.length
|
|
18543
|
+
}))
|
|
18544
|
+
);
|
|
18545
|
+
break;
|
|
18546
|
+
}
|
|
18534
18547
|
}
|
|
18535
18548
|
if (Object.keys(legacy_missingNodeMap).length) {
|
|
18536
18549
|
Object.assign(this.legacy_missingNodeRetryMap, legacy_missingNodeMap);
|