@amplitude/rrweb-player 2.1.2 → 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.
@@ -17766,6 +17766,7 @@ class Replayer {
17766
17766
  this.usingVirtualDom = false;
17767
17767
  }
17768
17768
  this.mirror.reset();
17769
+ this.styleMirror.reset();
17769
17770
  rebuild(event2.data.node, {
17770
17771
  doc: this.iframe.contentDocument,
17771
17772
  afterAppend,
@@ -18504,6 +18505,7 @@ class Replayer {
18504
18505
  });
18505
18506
  const startTime = Date.now();
18506
18507
  while (queue.length) {
18508
+ const pendingCount = queue.length;
18507
18509
  const resolveTrees = queueToResolveTrees(queue);
18508
18510
  queue.length = 0;
18509
18511
  if (Date.now() - startTime > 500) {
@@ -18526,6 +18528,18 @@ class Replayer {
18526
18528
  });
18527
18529
  }
18528
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
+ }
18529
18543
  }
18530
18544
  if (Object.keys(legacy_missingNodeMap).length) {
18531
18545
  Object.assign(this.legacy_missingNodeRetryMap, legacy_missingNodeMap);