Comparing version 5.0.0 to 5.0.1
# Changelog | ||
## [v5.0.1](https://github.com/ruiquelhas/houdin/tree/v5.0.1) (2017-11-07) | ||
[Full Changelog](https://github.com/ruiquelhas/houdin/compare/v5.0.0...v5.0.1) | ||
**Merged pull requests:** | ||
- Update documentation to match the API [\#39](https://github.com/ruiquelhas/houdin/pull/39) ([ruiquelhas](https://github.com/ruiquelhas)) | ||
## [v5.0.0](https://github.com/ruiquelhas/houdin/tree/v5.0.0) (2017-11-06) | ||
@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/ruiquelhas/houdin/compare/v4.0.2...v5.0.0) |
{ | ||
"name": "houdin", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Route-level file type validation for hapi parsed in-memory request payloads", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -9,3 +9,3 @@ # houdin | ||
- [Usage](#usage) | ||
- [`validate(payload, options, fn)`](#validatepayload-options-fn) | ||
- [`validate(payload, options)`](#validatepayload-options) | ||
- [Hapi](#hapi) | ||
@@ -23,4 +23,4 @@ - [Standalone](#standalone) | ||
## Usage | ||
### `validate(payload, options, fn)` | ||
Validates all `Buffer` values in a `payload` given a `whitelist` of file types provided in the `options`. Results in a [joi](https://github.com/hapijs/joi)-like `ValidationError` if some file type is not allowed or unknown otherwise it returns the original parsed payload to account for additional custom validation. | ||
### `validate(payload, options)` | ||
Validates all `Buffer` values in a `payload` given a `whitelist` of file types provided in the `options`. Throws a [joi](https://github.com/hapijs/joi)-like `ValidationError` if some file type is not allowed or unknown otherwise it returns the original payload. | ||
@@ -27,0 +27,0 @@ #### Hapi |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
105564
10
2649