Option to mask inputs (#80)

* Option to mask inputs

Added option 'maskAllInputs' to replace all user inputs with an Asterisk.

* Update types.d.ts
This commit is contained in:
Sebastian Jakob
2019-06-15 06:52:08 +02:00
committed by yz-yu
parent 3bd9bcfe73
commit 189df87b9d
6 changed files with 718 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ function record(options: recordOptions = {}): listenerHandler | undefined {
blockClass = 'rr-block',
ignoreClass = 'rr-ignore',
inlineStylesheet = true,
maskAllInputs = false,
} = options;
// runtime checks for user options
if (!emit) {
@@ -161,6 +162,7 @@ function record(options: recordOptions = {}): listenerHandler | undefined {
),
blockClass,
ignoreClass,
maskAllInputs,
inlineStylesheet,
}),
);