Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

houdin

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

houdin - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

.npmignore

7

CHANGELOG.md
# 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)

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc