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

@middy/http-json-body-parser

Package Overview
Dependencies
Maintainers
3
Versions
223
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 4.6.1 to 4.6.2

3

index.js

@@ -14,3 +14,3 @@ import { createError } from '@middy/util';

const { headers, body } = request.event;
const contentType = headers['Content-Type'] ?? headers['content-type'];
const contentType = headers?.['Content-Type'] ?? headers?.['content-type'];
if (!mimePattern.test(contentType)) {

@@ -28,2 +28,3 @@ if (options.disableContentTypeError) {

} catch (cause) {
// UnprocessableEntity
throw createError(415, 'Invalid or malformed JSON was provided', {

@@ -30,0 +31,0 @@ cause

{
"name": "@middy/http-json-body-parser",
"version": "4.6.1",
"version": "4.6.2",
"description": "Http JSON body parser middleware for the middy framework",

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

"dependencies": {
"@middy/util": "4.6.1"
"@middy/util": "4.6.2"
},
"devDependencies": {
"@middy/core": "4.6.1",
"@middy/core": "4.6.2",
"@types/aws-lambda": "^8.10.101",
"type-fest": "^4.0.0"
},
"gitHead": "253ed0e4ca95623decbade03938a07d837a1eba2"
"gitHead": "8b03a01abf5a9c08231ec5ced775e87f8be8f67d"
}

Sorry, the diff of this file is not supported yet

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