@highlight-run/rrweb 2.0.0-lambda.4 → 2.0.0-lambda.5
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.cjs +5 -1
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +5 -1
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +5 -1
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +2 -2
- package/dist/rrweb.umd.min.cjs.map +2 -2
- package/package.json +5 -5
package/dist/rrweb.js
CHANGED
|
@@ -622,7 +622,10 @@ function markCssSplits(cssText, style) {
|
|
|
622
622
|
}
|
|
623
623
|
function obfuscateText(text) {
|
|
624
624
|
text = text.replace(/[^ -~]+/g, "");
|
|
625
|
-
text = (text == null ? void 0 : text.split(" ").map((word) =>
|
|
625
|
+
text = (text == null ? void 0 : text.split(" ").map((word) => {
|
|
626
|
+
if (!word) return "";
|
|
627
|
+
return Math.random().toString(20).substring(2, word.length + 2);
|
|
628
|
+
}).join(" ")) || "";
|
|
626
629
|
return text;
|
|
627
630
|
}
|
|
628
631
|
function isElementSrcBlocked(tagName) {
|
|
@@ -16851,6 +16854,7 @@ class Replayer {
|
|
|
16851
16854
|
this.usingVirtualDom = false;
|
|
16852
16855
|
}
|
|
16853
16856
|
this.mirror.reset();
|
|
16857
|
+
this.newDocumentQueue = [];
|
|
16854
16858
|
rebuild(event.data.node, {
|
|
16855
16859
|
doc: this.iframe.contentDocument,
|
|
16856
16860
|
afterAppend,
|