Socket
Socket
Sign inDemoInstall

@middy/http-multipart-body-parser

Package Overview
Dependencies
Maintainers
3
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 5.0.2 to 5.0.3

4

index.js

@@ -6,3 +6,2 @@ import BusBoy from 'busboy';

const defaults = {
// busboy options as per documentation: https://www.npmjs.com/package/busboy#busboy-methods
busboy: {},

@@ -32,6 +31,4 @@ charset: 'utf8',

return parseMultipartData(request.event, options).then((multipartData)=>{
// request.event.rawBody = body
request.event.body = multipartData;
}).catch((err)=>{
// UnprocessableEntity
throw createError(415, 'Invalid or malformed multipart/form-data was provided', {

@@ -52,3 +49,2 @@ cause: {

const charset = event.isBase64Encoded ? 'base64' : options.charset;
// header must be lowercase (content-type)
const busboy = BusBoy({

@@ -55,0 +51,0 @@ ...options.busboy,

8

package.json
{
"name": "@middy/http-multipart-body-parser",
"version": "5.0.2",
"version": "5.0.3",
"description": "Http event normalizer middleware for the middy framework",

@@ -63,11 +63,11 @@ "type": "module",

"dependencies": {
"@middy/util": "5.0.2",
"@middy/util": "5.0.3",
"busboy": "1.6.0"
},
"devDependencies": {
"@middy/core": "5.0.2",
"@middy/core": "5.0.3",
"@types/aws-lambda": "^8.10.101",
"type-fest": "^4.0.0"
},
"gitHead": "6d17e155237022f2a0abd095ac7cd99ebfc7fc71"
"gitHead": "87660575a7ac2b52e4153c407a4c63c9449dcd0d"
}
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