@highlight-run/rrweb 2.0.9 → 2.0.12
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/replay/rrweb-replay-unpack.js +4 -4
- package/dist/replay/rrweb-replay-unpack.min.js +4 -4
- package/dist/replay/rrweb-replay-unpack.min.js.map +1 -1
- package/dist/replay/rrweb-replay.js +4 -4
- package/dist/replay/rrweb-replay.min.js +4 -4
- package/dist/replay/rrweb-replay.min.js.map +1 -1
- package/dist/rrweb-all.js +6 -6
- package/dist/rrweb-all.min.js +6 -6
- package/dist/rrweb-all.min.js.map +1 -1
- package/dist/rrweb.js +5 -5
- package/dist/rrweb.min.js +5 -5
- package/dist/rrweb.min.js.map +1 -1
- package/es/rrweb/packages/rrdom/es/virtual-dom.js +3 -3
- package/lib/replay/rrweb-replay-unpack.js +3 -3
- package/lib/replay/rrweb-replay.js +3 -3
- package/lib/rrweb-all.js +3 -3
- package/lib/rrweb.js +3 -3
- package/package.json +3 -3
|
@@ -624,7 +624,7 @@ function diffProps(oldTree, newTree, rrnodeMirror) {
|
|
|
624
624
|
newTree.scrollTop && (oldTree.scrollTop = newTree.scrollTop);
|
|
625
625
|
}
|
|
626
626
|
function diffChildren(oldChildren, newChildren, parentNode, replayer, rrnodeMirror) {
|
|
627
|
-
var _a
|
|
627
|
+
var _a;
|
|
628
628
|
let oldStartIndex = 0, oldEndIndex = oldChildren.length - 1, newStartIndex = 0, newEndIndex = newChildren.length - 1;
|
|
629
629
|
let oldStartNode = oldChildren[oldStartIndex], oldEndNode = oldChildren[oldEndIndex], newStartNode = newChildren[newStartIndex], newEndNode = newChildren[newEndIndex];
|
|
630
630
|
let oldIdToIndex = undefined, indexInOld;
|
|
@@ -690,8 +690,8 @@ function diffChildren(oldChildren, newChildren, parentNode, replayer, rrnodeMirr
|
|
|
690
690
|
}
|
|
691
691
|
else {
|
|
692
692
|
const newNode = createOrGetNode(newStartNode, replayer.mirror, rrnodeMirror);
|
|
693
|
-
if (
|
|
694
|
-
((
|
|
693
|
+
if (parentNode.nodeName === '#document' &&
|
|
694
|
+
((_a = replayer.mirror.getMeta(newNode)) === null || _a === void 0 ? void 0 : _a.type) === NodeType$1.Element &&
|
|
695
695
|
parentNode.documentElement) {
|
|
696
696
|
parentNode.removeChild(parentNode.documentElement);
|
|
697
697
|
oldChildren[oldStartIndex] = undefined;
|
|
@@ -1543,7 +1543,7 @@ function diffProps(oldTree, newTree, rrnodeMirror) {
|
|
|
1543
1543
|
newTree.scrollTop && (oldTree.scrollTop = newTree.scrollTop);
|
|
1544
1544
|
}
|
|
1545
1545
|
function diffChildren(oldChildren, newChildren, parentNode, replayer, rrnodeMirror) {
|
|
1546
|
-
var _a
|
|
1546
|
+
var _a;
|
|
1547
1547
|
let oldStartIndex = 0, oldEndIndex = oldChildren.length - 1, newStartIndex = 0, newEndIndex = newChildren.length - 1;
|
|
1548
1548
|
let oldStartNode = oldChildren[oldStartIndex], oldEndNode = oldChildren[oldEndIndex], newStartNode = newChildren[newStartIndex], newEndNode = newChildren[newEndIndex];
|
|
1549
1549
|
let oldIdToIndex = undefined, indexInOld;
|
|
@@ -1609,8 +1609,8 @@ function diffChildren(oldChildren, newChildren, parentNode, replayer, rrnodeMirr
|
|
|
1609
1609
|
}
|
|
1610
1610
|
else {
|
|
1611
1611
|
const newNode = createOrGetNode(newStartNode, replayer.mirror, rrnodeMirror);
|
|
1612
|
-
if (
|
|
1613
|
-
((
|
|
1612
|
+
if (parentNode.nodeName === '#document' &&
|
|
1613
|
+
((_a = replayer.mirror.getMeta(newNode)) === null || _a === void 0 ? void 0 : _a.type) === NodeType$1.Element &&
|
|
1614
1614
|
parentNode.documentElement) {
|
|
1615
1615
|
parentNode.removeChild(parentNode.documentElement);
|
|
1616
1616
|
oldChildren[oldStartIndex] = undefined;
|
|
@@ -1543,7 +1543,7 @@ function diffProps(oldTree, newTree, rrnodeMirror) {
|
|
|
1543
1543
|
newTree.scrollTop && (oldTree.scrollTop = newTree.scrollTop);
|
|
1544
1544
|
}
|
|
1545
1545
|
function diffChildren(oldChildren, newChildren, parentNode, replayer, rrnodeMirror) {
|
|
1546
|
-
var _a
|
|
1546
|
+
var _a;
|
|
1547
1547
|
let oldStartIndex = 0, oldEndIndex = oldChildren.length - 1, newStartIndex = 0, newEndIndex = newChildren.length - 1;
|
|
1548
1548
|
let oldStartNode = oldChildren[oldStartIndex], oldEndNode = oldChildren[oldEndIndex], newStartNode = newChildren[newStartIndex], newEndNode = newChildren[newEndIndex];
|
|
1549
1549
|
let oldIdToIndex = undefined, indexInOld;
|
|
@@ -1609,8 +1609,8 @@ function diffChildren(oldChildren, newChildren, parentNode, replayer, rrnodeMirr
|
|
|
1609
1609
|
}
|
|
1610
1610
|
else {
|
|
1611
1611
|
const newNode = createOrGetNode(newStartNode, replayer.mirror, rrnodeMirror);
|
|
1612
|
-
if (
|
|
1613
|
-
((
|
|
1612
|
+
if (parentNode.nodeName === '#document' &&
|
|
1613
|
+
((_a = replayer.mirror.getMeta(newNode)) === null || _a === void 0 ? void 0 : _a.type) === NodeType$1.Element &&
|
|
1614
1614
|
parentNode.documentElement) {
|
|
1615
1615
|
parentNode.removeChild(parentNode.documentElement);
|
|
1616
1616
|
oldChildren[oldStartIndex] = undefined;
|
package/lib/rrweb-all.js
CHANGED
|
@@ -4994,7 +4994,7 @@ function diffProps(oldTree, newTree, rrnodeMirror) {
|
|
|
4994
4994
|
newTree.scrollTop && (oldTree.scrollTop = newTree.scrollTop);
|
|
4995
4995
|
}
|
|
4996
4996
|
function diffChildren(oldChildren, newChildren, parentNode, replayer, rrnodeMirror) {
|
|
4997
|
-
var _a
|
|
4997
|
+
var _a;
|
|
4998
4998
|
let oldStartIndex = 0, oldEndIndex = oldChildren.length - 1, newStartIndex = 0, newEndIndex = newChildren.length - 1;
|
|
4999
4999
|
let oldStartNode = oldChildren[oldStartIndex], oldEndNode = oldChildren[oldEndIndex], newStartNode = newChildren[newStartIndex], newEndNode = newChildren[newEndIndex];
|
|
5000
5000
|
let oldIdToIndex = undefined, indexInOld;
|
|
@@ -5060,8 +5060,8 @@ function diffChildren(oldChildren, newChildren, parentNode, replayer, rrnodeMirr
|
|
|
5060
5060
|
}
|
|
5061
5061
|
else {
|
|
5062
5062
|
const newNode = createOrGetNode(newStartNode, replayer.mirror, rrnodeMirror);
|
|
5063
|
-
if (
|
|
5064
|
-
((
|
|
5063
|
+
if (parentNode.nodeName === '#document' &&
|
|
5064
|
+
((_a = replayer.mirror.getMeta(newNode)) === null || _a === void 0 ? void 0 : _a.type) === NodeType$1.Element &&
|
|
5065
5065
|
parentNode.documentElement) {
|
|
5066
5066
|
parentNode.removeChild(parentNode.documentElement);
|
|
5067
5067
|
oldChildren[oldStartIndex] = undefined;
|
package/lib/rrweb.js
CHANGED
|
@@ -4994,7 +4994,7 @@ function diffProps(oldTree, newTree, rrnodeMirror) {
|
|
|
4994
4994
|
newTree.scrollTop && (oldTree.scrollTop = newTree.scrollTop);
|
|
4995
4995
|
}
|
|
4996
4996
|
function diffChildren(oldChildren, newChildren, parentNode, replayer, rrnodeMirror) {
|
|
4997
|
-
var _a
|
|
4997
|
+
var _a;
|
|
4998
4998
|
let oldStartIndex = 0, oldEndIndex = oldChildren.length - 1, newStartIndex = 0, newEndIndex = newChildren.length - 1;
|
|
4999
4999
|
let oldStartNode = oldChildren[oldStartIndex], oldEndNode = oldChildren[oldEndIndex], newStartNode = newChildren[newStartIndex], newEndNode = newChildren[newEndIndex];
|
|
5000
5000
|
let oldIdToIndex = undefined, indexInOld;
|
|
@@ -5060,8 +5060,8 @@ function diffChildren(oldChildren, newChildren, parentNode, replayer, rrnodeMirr
|
|
|
5060
5060
|
}
|
|
5061
5061
|
else {
|
|
5062
5062
|
const newNode = createOrGetNode(newStartNode, replayer.mirror, rrnodeMirror);
|
|
5063
|
-
if (
|
|
5064
|
-
((
|
|
5063
|
+
if (parentNode.nodeName === '#document' &&
|
|
5064
|
+
((_a = replayer.mirror.getMeta(newNode)) === null || _a === void 0 ? void 0 : _a.type) === NodeType$1.Element &&
|
|
5065
5065
|
parentNode.documentElement) {
|
|
5066
5066
|
parentNode.removeChild(parentNode.documentElement);
|
|
5067
5067
|
oldChildren[oldStartIndex] = undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@highlight-run/rrweb",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "record and replay the web",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "npm run prepack",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "^4.6.2"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@highlight-run/rrdom": "
|
|
77
|
+
"@highlight-run/rrdom": ">=0.1.10",
|
|
78
78
|
"@highlight-run/rrweb-snapshot": ">1.1.15",
|
|
79
79
|
"@types/css-font-loading-module": "0.0.7",
|
|
80
80
|
"@xstate/fsm": "^1.4.0",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"fflate": "^0.4.4",
|
|
83
83
|
"mitt": "^1.1.3"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "30899a324f2f5f9c7a7b146492cd09da180ccfa7"
|
|
86
86
|
}
|