@screeb/rrweb 1.0.5 → 1.0.6
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 +15 -0
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +15 -0
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +15 -0
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +1 -1
- package/dist/rrweb.umd.min.cjs.map +3 -3
- package/package.json +1 -1
package/dist/rrweb.cjs
CHANGED
|
@@ -637,6 +637,21 @@ function needMaskingText(node2, maskTextClass, maskTextSelector, checkAncestors)
|
|
|
637
637
|
el = index$1.parentElement(node2);
|
|
638
638
|
}
|
|
639
639
|
try {
|
|
640
|
+
if (el.tagName === "INPUT") {
|
|
641
|
+
const autocomplete = el.getAttribute("autocomplete");
|
|
642
|
+
const disallowedAutocompleteValues = [
|
|
643
|
+
"current-password",
|
|
644
|
+
"new-password",
|
|
645
|
+
"cc-number",
|
|
646
|
+
"cc-exp",
|
|
647
|
+
"cc-exp-month",
|
|
648
|
+
"cc-exp-year",
|
|
649
|
+
"cc-csc"
|
|
650
|
+
];
|
|
651
|
+
if (disallowedAutocompleteValues.includes(autocomplete)) {
|
|
652
|
+
return true;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
640
655
|
if (typeof maskTextClass === "string") {
|
|
641
656
|
if (checkAncestors) {
|
|
642
657
|
if (el.closest(`.${maskTextClass}`)) return true;
|