You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/user/project/node_modules/fast-redact/lib/modifiers.js:54
current[path[0]] = value
^
TypeError: Cannot create property 'secret' on string '**SECRET**'
at Object.nestedRestore (/Users/user/project/node_modules/fast-redact/lib/modifiers.js:54:22)
at Object.eval (eval at compileRestore (/Users/user/project/node_modules/fast-redact/lib/restorer.js:15:20), <anonymous>:12:17)
at Object.eval (eval at redactor (/Users/user/project/node_modules/fast-redact/lib/redactor.js:9:18), <anonymous>:24:10)
at Object.<anonymous> (/Users/user/project/test.js:18:13)
The conditions to generate this failure seem to be:
You are redacting a node (e.g top), but also one of it's child (e.g top.secret)
In the redaction paths, you specify the child redaction pattern before the parent redaction pattern (e.g ['*.*.secret', '*.top'] fails but ['*.top', '*.*.secret'] works)
Would appreciate some help to understand whether this is working as designed, a bug or known limitation.
The text was updated successfully, but these errors were encountered:
The following redaction pattern works on
v3.1.2
andv3.2.0
but not onv3.3.0
:On v3.3.0 it fails with the following error:
The conditions to generate this failure seem to be:
top
), but also one of it's child (e.gtop.secret
)['*.*.secret', '*.top']
fails but['*.top', '*.*.secret']
works)Would appreciate some help to understand whether this is working as designed, a bug or known limitation.
The text was updated successfully, but these errors were encountered: