@middy/http-json-body-parser 5.0.0-alpha.2 → 5.0.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 +2 -10
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import middy from '@middy/core'
|
|
2
2
|
import { APIGatewayEvent, APIGatewayProxyEventV2 } from 'aws-lambda'
|
|
3
|
-
import { JsonValue } from 'type-fest'
|
|
4
3
|
|
|
5
4
|
interface Options {
|
|
6
5
|
reviver?: (key: string, value: any) => any
|
|
7
6
|
disableContentTypeError?: boolean
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
type VersionedApiGatewayEvent = APIGatewayEvent | APIGatewayProxyEventV2
|
|
9
|
+
export type VersionedApiGatewayEvent = APIGatewayEvent | APIGatewayProxyEventV2
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* The body of the HTTP request.
|
|
15
|
-
*/
|
|
16
|
-
body: JsonValue
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare function jsonBodyParser<APIGatewayEventType extends VersionedApiGatewayEvent = VersionedApiGatewayEvent> (options?: Options): middy.MiddlewareObj<Event<APIGatewayEventType>>
|
|
11
|
+
declare function jsonBodyParser<APIGatewayEventType extends VersionedApiGatewayEvent = VersionedApiGatewayEvent> (options?: Options): middy.MiddlewareObj<APIGatewayEventType>
|
|
20
12
|
|
|
21
13
|
export default jsonBodyParser
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/http-json-body-parser",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Http JSON body parser middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"url": "https://github.com/sponsors/willfarrell"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@middy/util": "5.0.0
|
|
65
|
+
"@middy/util": "5.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@middy/core": "5.0.0
|
|
68
|
+
"@middy/core": "5.0.0",
|
|
69
69
|
"@types/aws-lambda": "^8.10.101",
|
|
70
70
|
"type-fest": "^4.0.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "3e7e1c9b5ebb7e9448473a11ab4fb69ef0cc46a1"
|
|
73
73
|
}
|