@middy/http-multipart-body-parser
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -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, |
{ | ||
"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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9790
122
+ Added@middy/util@5.0.3(transitive)
- Removed@middy/util@5.0.2(transitive)
Updated@middy/util@5.0.3