@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.umd.cjs
CHANGED
|
@@ -682,6 +682,21 @@ function needMaskingText(node2, maskTextClass, maskTextSelector, checkAncestors)
|
|
|
682
682
|
el = index$1.parentElement(node2);
|
|
683
683
|
}
|
|
684
684
|
try {
|
|
685
|
+
if (el.tagName === "INPUT") {
|
|
686
|
+
const autocomplete = el.getAttribute("autocomplete");
|
|
687
|
+
const disallowedAutocompleteValues = [
|
|
688
|
+
"current-password",
|
|
689
|
+
"new-password",
|
|
690
|
+
"cc-number",
|
|
691
|
+
"cc-exp",
|
|
692
|
+
"cc-exp-month",
|
|
693
|
+
"cc-exp-year",
|
|
694
|
+
"cc-csc"
|
|
695
|
+
];
|
|
696
|
+
if (disallowedAutocompleteValues.includes(autocomplete)) {
|
|
697
|
+
return true;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
685
700
|
if (typeof maskTextClass === "string") {
|
|
686
701
|
if (checkAncestors) {
|
|
687
702
|
if (el.closest(`.${maskTextClass}`)) return true;
|