@sentry/rrweb-player 2.44.0 → 2.44.1
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 +23 -8
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +23 -8
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +23 -8
- package/dist/rrweb-player.umd.cjs.map +4 -4
- package/dist/rrweb-player.umd.min.cjs +11 -11
- package/dist/rrweb-player.umd.min.cjs.map +4 -4
- package/package.json +4 -4
|
@@ -4564,7 +4564,7 @@ var NodeType$2 = /* @__PURE__ */ ((NodeType2) => {
|
|
|
4564
4564
|
NodeType2[NodeType2["Comment"] = 5] = "Comment";
|
|
4565
4565
|
return NodeType2;
|
|
4566
4566
|
})(NodeType$2 || {});
|
|
4567
|
-
function isElement(n2) {
|
|
4567
|
+
function isElement$1(n2) {
|
|
4568
4568
|
return n2.nodeType === n2.ELEMENT_NODE;
|
|
4569
4569
|
}
|
|
4570
4570
|
var Mirror = class {
|
|
@@ -4596,6 +4596,9 @@ var Mirror = class {
|
|
|
4596
4596
|
(childNode) => this.removeNodeFromMap(childNode)
|
|
4597
4597
|
);
|
|
4598
4598
|
}
|
|
4599
|
+
if (isElement$1(n2) && n2.shadowRoot) {
|
|
4600
|
+
this.removeNodeFromMap(n2.shadowRoot);
|
|
4601
|
+
}
|
|
4599
4602
|
}
|
|
4600
4603
|
has(id) {
|
|
4601
4604
|
return this.idNodeMap.has(id);
|
|
@@ -5429,7 +5432,7 @@ function buildNodeWithSN(n2, options) {
|
|
|
5429
5432
|
console.warn("Failed to rebuild", childN);
|
|
5430
5433
|
continue;
|
|
5431
5434
|
}
|
|
5432
|
-
if (childN.isShadow && isElement(node) && node.shadowRoot) {
|
|
5435
|
+
if (childN.isShadow && isElement$1(node) && node.shadowRoot) {
|
|
5433
5436
|
node.shadowRoot.appendChild(childNode);
|
|
5434
5437
|
} else if (n2.type === NodeType$2.Document && childN.type == NodeType$2.Element) {
|
|
5435
5438
|
const htmlElement = childNode;
|
|
@@ -5704,8 +5707,9 @@ function getImplementation(name) {
|
|
|
5704
5707
|
if (cached) {
|
|
5705
5708
|
return cached;
|
|
5706
5709
|
}
|
|
5710
|
+
const windowImpl = window[name].bind(window);
|
|
5711
|
+
let impl = windowImpl;
|
|
5707
5712
|
const document2 = window.document;
|
|
5708
|
-
let impl = window[name];
|
|
5709
5713
|
if (document2 && typeof document2.createElement === "function") {
|
|
5710
5714
|
try {
|
|
5711
5715
|
const sandbox = document2.createElement("iframe");
|
|
@@ -5713,16 +5717,21 @@ function getImplementation(name) {
|
|
|
5713
5717
|
document2.head.appendChild(sandbox);
|
|
5714
5718
|
const contentWindow = sandbox.contentWindow;
|
|
5715
5719
|
if (contentWindow && contentWindow[name]) {
|
|
5716
|
-
|
|
5717
|
-
|
|
5720
|
+
const sandboxImpl = contentWindow[name].bind(window);
|
|
5721
|
+
impl = (...args) => {
|
|
5722
|
+
try {
|
|
5723
|
+
return sandboxImpl(...args);
|
|
5724
|
+
} catch {
|
|
5725
|
+
cachedImplementations[name] = windowImpl;
|
|
5726
|
+
return windowImpl(...args);
|
|
5727
|
+
}
|
|
5728
|
+
};
|
|
5718
5729
|
}
|
|
5719
5730
|
document2.head.removeChild(sandbox);
|
|
5720
5731
|
} catch (e2) {
|
|
5721
5732
|
}
|
|
5722
5733
|
}
|
|
5723
|
-
return cachedImplementations[name] = impl
|
|
5724
|
-
window
|
|
5725
|
-
);
|
|
5734
|
+
return cachedImplementations[name] = impl;
|
|
5726
5735
|
}
|
|
5727
5736
|
function onRequestAnimationFrame(...rest) {
|
|
5728
5737
|
return getImplementation("requestAnimationFrame")(...rest);
|
|
@@ -5852,6 +5861,9 @@ var NodeType$1 = /* @__PURE__ */ ((NodeType2) => {
|
|
|
5852
5861
|
NodeType2[NodeType2["Comment"] = 5] = "Comment";
|
|
5853
5862
|
return NodeType2;
|
|
5854
5863
|
})(NodeType$1 || {});
|
|
5864
|
+
function isElement(n2) {
|
|
5865
|
+
return n2.nodeType === n2.ELEMENT_NODE;
|
|
5866
|
+
}
|
|
5855
5867
|
var Mirror$1 = class Mirror2 {
|
|
5856
5868
|
constructor() {
|
|
5857
5869
|
__publicField22(this, "idNodeMap", /* @__PURE__ */ new Map());
|
|
@@ -5881,6 +5893,9 @@ var Mirror$1 = class Mirror2 {
|
|
|
5881
5893
|
(childNode) => this.removeNodeFromMap(childNode)
|
|
5882
5894
|
);
|
|
5883
5895
|
}
|
|
5896
|
+
if (isElement(n2) && n2.shadowRoot) {
|
|
5897
|
+
this.removeNodeFromMap(n2.shadowRoot);
|
|
5898
|
+
}
|
|
5884
5899
|
}
|
|
5885
5900
|
has(id) {
|
|
5886
5901
|
return this.idNodeMap.has(id);
|