@middy/http-multipart-body-parser 3.6.2 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +3 -3
- package/index.js +3 -3
- package/package.json +5 -5
package/index.cjs
CHANGED
|
@@ -30,9 +30,9 @@ const httpMultipartBodyParserMiddleware = (opts = {})=>{
|
|
|
30
30
|
return parseMultipartData(request.event, options.busboy).then((multipartData)=>{
|
|
31
31
|
request.event.body = multipartData;
|
|
32
32
|
}).catch((cause)=>{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
throw (0, _util.createError)(422, 'Invalid or malformed multipart/form-data was provided', {
|
|
34
|
+
cause
|
|
35
|
+
});
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
return {
|
package/index.js
CHANGED
|
@@ -17,9 +17,9 @@ const httpMultipartBodyParserMiddleware = (opts = {})=>{
|
|
|
17
17
|
return parseMultipartData(request.event, options.busboy).then((multipartData)=>{
|
|
18
18
|
request.event.body = multipartData;
|
|
19
19
|
}).catch((cause)=>{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
throw createError(422, 'Invalid or malformed multipart/form-data was provided', {
|
|
21
|
+
cause
|
|
22
|
+
});
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
return {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/http-multipart-body-parser",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.1",
|
|
4
4
|
"description": "Http event normalizer middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
7
|
+
"node": ">=16"
|
|
8
8
|
},
|
|
9
9
|
"engineStrict": true,
|
|
10
10
|
"publishConfig": {
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
},
|
|
63
63
|
"homepage": "https://middy.js.org",
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@middy/util": "
|
|
65
|
+
"@middy/util": "4.0.0-alpha.1",
|
|
66
66
|
"busboy": "1.6.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@middy/core": "
|
|
69
|
+
"@middy/core": "4.0.0-alpha.1",
|
|
70
70
|
"@types/aws-lambda": "^8.10.101",
|
|
71
71
|
"type-fest": "^3.0.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "b531f61dac3a5268728a21fc4b2b32054b170f88"
|
|
74
74
|
}
|