@middy/http-multipart-body-parser 3.1.1 → 3.2.0
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.d.ts +9 -1
- package/package.json +6 -4
package/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import middy from '@middy/core'
|
|
2
|
+
import { APIGatewayEvent } from 'aws-lambda'
|
|
3
|
+
import { JsonValue } from 'type-fest'
|
|
2
4
|
|
|
3
5
|
interface Options {
|
|
4
6
|
busboy?: {
|
|
@@ -19,6 +21,12 @@ interface Options {
|
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
export type Event = Omit<APIGatewayEvent, 'body'> & {
|
|
25
|
+
body: JsonValue
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare function multipartBodyParser (
|
|
29
|
+
options?: Options
|
|
30
|
+
): middy.MiddlewareObj<Event>
|
|
23
31
|
|
|
24
32
|
export default multipartBodyParser
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/http-multipart-body-parser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Http event normalizer middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -62,11 +62,13 @@
|
|
|
62
62
|
},
|
|
63
63
|
"homepage": "https://middy.js.org",
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@middy/util": "3.
|
|
65
|
+
"@middy/util": "3.2.0",
|
|
66
66
|
"busboy": "1.6.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@middy/core": "3.
|
|
69
|
+
"@middy/core": "3.2.0",
|
|
70
|
+
"@types/aws-lambda": "^8.10.101",
|
|
71
|
+
"type-fest": "^2.18.0"
|
|
70
72
|
},
|
|
71
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "ac46270daa388b52a81472ae8f9b8808a0136940"
|
|
72
74
|
}
|