@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.
@@ -17771,6 +17771,7 @@ class Replayer {
17771
17771
  this.usingVirtualDom = false;
17772
17772
  }
17773
17773
  this.mirror.reset();
17774
+ this.styleMirror.reset();
17774
17775
  rebuild(event2.data.node, {
17775
17776
  doc: this.iframe.contentDocument,
17776
17777
  afterAppend,
@@ -18510,6 +18511,7 @@ class Replayer {
18510
18511
  });
18511
18512
  const startTime = Date.now();
18512
18513
  while (queue.length) {
18514
+ const pendingCount = queue.length;
18513
18515
  const resolveTrees = queueToResolveTrees(queue);
18514
18516
  queue.length = 0;
18515
18517
  if (Date.now() - startTime > 500) {
@@ -18532,6 +18534,18 @@ class Replayer {
18532
18534
  });
18533
18535
  }
18534
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
+ }
18535
18549
  }
18536
18550
  if (Object.keys(legacy_missingNodeMap).length) {
18537
18551
  Object.assign(this.legacy_missingNodeRetryMap, legacy_missingNodeMap);