Skip to content

v2.1.0

Compare
Choose a tag to compare
@fiznool fiznool released this 11 May 15:50
· 10 commits to master since this release
565c1ea

Added

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