Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "middy", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "The simple (but cool 😎) middleware engine for AWS lambda in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -362,8 +362,12 @@ <div align="center"> | ||
- [`httpErrorHandler`](/docs/middlewares.md#httpErrorHandler): creates a proper HTTP response for errors that are created with the [http-errors](https://www.npmjs.com/package/http-errors) module and represents proper HTTP errors. | ||
- [`jsonBodyParser`](/docs/middlewares.md#jsonBodyParser): automatically parses HTTP requests with JSON body and converts the body into an object. Also handles gracefully broken JSON if used in combination of | ||
`httpErrorHanler`. | ||
- [s3KeyNormalizer](/docs/middlewares.md#s3KeyNormalizer): normalizes key names in s3 events. | ||
- [`urlencodeBodyParser`](/docs/middlewares.md#urlencodeBodyParser): automatically parses HTTP requests with URL encoded body (typically the result of a form submit). | ||
- [`validator`](/docs/middlewares.md#validator): automatically validates incoming events and outgoing responses against custom schemas | ||
- [`httpErrorHandler`](/docs/middlewares.md#httpErrorHandler): creates a proper HTTP response for errors that are created with the [http-errors](https://www.npmjs.com/package/http-errors) module and represents proper HTTP errors. | ||
For a dedicated documentation on those middlewares check out the [Middlewares | ||
@@ -370,0 +374,0 @@ documentation](/docs/middlewares.md) |
module.exports = { | ||
httpErrorHandler: require('./httpErrorHandler'), | ||
jsonBodyParser: require('./jsonBodyParser'), | ||
validator: require('./validator'), | ||
urlencodeBodyParser: require('./urlencodeBodyParser') | ||
s3KeyNormalizer: require('./s3KeyNormalizer'), | ||
urlencodeBodyParser: require('./urlencodeBodyParser'), | ||
validator: require('./validator') | ||
} |
Sorry, the diff of this file is not supported yet
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
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
221739
25
5684
483