@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.
- package/dist/rrweb-player.cjs +14 -0
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +14 -0
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +14 -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 +4 -4
package/dist/rrweb-player.js
CHANGED
|
@@ -17769,6 +17769,7 @@ class Replayer {
|
|
|
17769
17769
|
this.usingVirtualDom = false;
|
|
17770
17770
|
}
|
|
17771
17771
|
this.mirror.reset();
|
|
17772
|
+
this.styleMirror.reset();
|
|
17772
17773
|
rebuild(event2.data.node, {
|
|
17773
17774
|
doc: this.iframe.contentDocument,
|
|
17774
17775
|
afterAppend,
|
|
@@ -18508,6 +18509,7 @@ class Replayer {
|
|
|
18508
18509
|
});
|
|
18509
18510
|
const startTime = Date.now();
|
|
18510
18511
|
while (queue.length) {
|
|
18512
|
+
const pendingCount = queue.length;
|
|
18511
18513
|
const resolveTrees = queueToResolveTrees(queue);
|
|
18512
18514
|
queue.length = 0;
|
|
18513
18515
|
if (Date.now() - startTime > 500) {
|
|
@@ -18530,6 +18532,18 @@ class Replayer {
|
|
|
18530
18532
|
});
|
|
18531
18533
|
}
|
|
18532
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
|
+
}
|
|
18533
18547
|
}
|
|
18534
18548
|
if (Object.keys(legacy_missingNodeMap).length) {
|
|
18535
18549
|
Object.assign(this.legacy_missingNodeRetryMap, legacy_missingNodeMap);
|