node_modules: update
This commit is contained in:
parent
4a21c51f2f
commit
b91baffed3
107 changed files with 3886 additions and 2943 deletions
3
node_modules/fast-redact/index.js
generated
vendored
3
node_modules/fast-redact/index.js
generated
vendored
|
|
@ -32,6 +32,7 @@ function fastRedact (opts = {}) {
|
|||
: 'censor' in opts ? opts.censor : DEFAULT_CENSOR
|
||||
|
||||
const isCensorFct = typeof censor === 'function'
|
||||
const censorFctTakesPath = isCensorFct && censor.length > 1
|
||||
|
||||
if (paths.length === 0) return serialize || noop
|
||||
|
||||
|
|
@ -42,7 +43,7 @@ function fastRedact (opts = {}) {
|
|||
const compileRestore = restorer({ secret, wcLen })
|
||||
const strict = 'strict' in opts ? opts.strict : true
|
||||
|
||||
return redactor({ secret, wcLen, serialize, strict, isCensorFct }, state({
|
||||
return redactor({ secret, wcLen, serialize, strict, isCensorFct, censorFctTakesPath }, state({
|
||||
secret,
|
||||
censor,
|
||||
compileRestore,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue