Socket
Socket
Sign inDemoInstall

middy

Package Overview
Dependencies
Maintainers
8
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.8.4 to 0.8.5

src/middlewares/__tests__/httpEventNormalizer.js

2

package.json
{
"name": "middy",
"version": "0.8.4",
"version": "0.8.5",
"description": "The simple (but cool 😎) middleware engine for AWS lambda in Node.js",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -501,2 +501,3 @@ <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.
- [`httpEventNormalizer`](/docs/middlewares.md#httpEventNormalizer): Normalizes HTTP events by adding an empty object for `queryStringParameters` and `pathParameters` if they are missing.
- [`httpHeaderNormalizer`](/docs/middlewares.md#httpHeaderNormalizer): Normalizes HTTP header names to their canonical format

@@ -503,0 +504,0 @@ - [`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

@@ -6,2 +6,3 @@ module.exports = {

httpErrorHandler: require('./httpErrorHandler'),
httpEventNormalizer: require('./httpEventNormalizer'),
httpHeaderNormalizer: require('./httpHeaderNormalizer'),

@@ -8,0 +9,0 @@ jsonBodyParser: require('./jsonBodyParser'),

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