New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added docs about the new censor function. #553
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nit. Might also want to mention that the function must be synchronous.
docs/api.md
Outdated
@@ -105,7 +105,9 @@ Each path must be a string using a syntax which corresponds to JavaScript dot an | |||
|
|||
If an object is supplied, three options can be specified: | |||
* `paths` (array): Required. An array of paths. See [redaction - Path Syntax ⇗](/docs/redaction.md#paths) for specifics. | |||
* `censor` (String): Optional. A value to overwrite key which are to be redacted. Default: `'[Redacted]'` | |||
* `censor` (String|Function): Optional. A value to overwrite key which are to be redacted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
“key” => “keys”
PTAL |
Co-Authored-By: mcollina <matteo.collina@gmail.com>
Co-Authored-By: mcollina <matteo.collina@gmail.com>
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
We missed to update the docs.