Socket
Socket
Sign inDemoInstall

@middy/http-json-body-parser

Package Overview
Dependencies
Maintainers
3
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@middy/http-json-body-parser - npm Package Compare versions

Comparing version 5.0.0-alpha.2 to 5.0.0-rc.0

12

index.d.ts
import middy from '@middy/core'
import { APIGatewayEvent, APIGatewayProxyEventV2 } from 'aws-lambda'
import { JsonValue } from 'type-fest'

@@ -10,13 +9,6 @@ interface Options {

type VersionedApiGatewayEvent = APIGatewayEvent | APIGatewayProxyEventV2
export type VersionedApiGatewayEvent = APIGatewayEvent | APIGatewayProxyEventV2
export type Event<APIGatewayEventType extends VersionedApiGatewayEvent = VersionedApiGatewayEvent> = Omit<APIGatewayEventType, 'body'> & {
/**
* The body of the HTTP request.
*/
body: JsonValue
}
declare function jsonBodyParser<APIGatewayEventType extends VersionedApiGatewayEvent = VersionedApiGatewayEvent> (options?: Options): middy.MiddlewareObj<APIGatewayEventType>
declare function jsonBodyParser<APIGatewayEventType extends VersionedApiGatewayEvent = VersionedApiGatewayEvent> (options?: Options): middy.MiddlewareObj<Event<APIGatewayEventType>>
export default jsonBodyParser

8

package.json
{
"name": "@middy/http-json-body-parser",
"version": "5.0.0-alpha.2",
"version": "5.0.0-rc.0",
"description": "Http JSON body parser middleware for the middy framework",

@@ -65,10 +65,10 @@ "type": "module",

"dependencies": {
"@middy/util": "5.0.0-alpha.2"
"@middy/util": "5.0.0-rc.0"
},
"devDependencies": {
"@middy/core": "5.0.0-alpha.2",
"@middy/core": "5.0.0-rc.0",
"@types/aws-lambda": "^8.10.101",
"type-fest": "^4.0.0"
},
"gitHead": "ebce8d5df8783077fa49ba62ee9be20e8486a7f1"
"gitHead": "403c54ba9f05e038d1ee7541f9e4a7a6d46e9916"
}
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