@middy/http-multipart-body-parser
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -28,5 +28,8 @@ "use strict"; | ||
}).catch(() => { | ||
const createError = require('http-errors'); | ||
const { | ||
createError | ||
} = require('@middy/util'); // UnprocessableEntity | ||
throw new createError.UnprocessableEntity('Invalid or malformed multipart/form-data was provided'); | ||
throw createError(422, 'Invalid or malformed multipart/form-data was provided'); | ||
}); | ||
@@ -33,0 +36,0 @@ }; |
{ | ||
"name": "@middy/http-multipart-body-parser", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Http event normalizer middleware for the middy framework", | ||
@@ -49,9 +49,10 @@ "type": "commonjs", | ||
"dependencies": { | ||
"busboy": "0.3.1", | ||
"http-errors": "1.8.0" | ||
"@middy/util": "^2.4.0", | ||
"busboy": "0.3.1" | ||
}, | ||
"devDependencies": { | ||
"@middy/core": "^2.3.0" | ||
"@middy/core": "^2.4.0", | ||
"http-errors": "^1.8.0" | ||
}, | ||
"gitHead": "bfde6fec04cea012747c547d0cfd44bb2ea4e1ef" | ||
"gitHead": "d20d67c6ec1c8dc1f58b1bedbcbb71f70d302fb5" | ||
} |
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
9937
95
0
2
+ Added@middy/util@^2.4.0
+ Added@middy/util@2.5.7(transitive)
- Removedhttp-errors@1.8.0
- Removeddepd@1.1.2(transitive)
- Removedhttp-errors@1.8.0(transitive)
- Removedinherits@2.0.4(transitive)
- Removedsetprototypeof@1.2.0(transitive)
- Removedstatuses@1.5.0(transitive)
- Removedtoidentifier@1.0.0(transitive)