@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.
@@ -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);