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