Socket
Socket
Sign inDemoInstall

middy

Package Overview
Dependencies
Maintainers
7
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middy - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

src/middlewares/__tests__/s3KeyNormalizer.js

2

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

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