v2.1.0
Added
- New
config
options:onSanitize
callback: this will be called after the request's value was sanitized, with two named parameters: thekey
that was sanitized, and the rawreq
object.dryRun
boolean: if set, sanitization will not take place. Useful when combined withonSanitize
to report on the keys which would have been sanitized.
- TypeScript types
- Official support for node v16.