@middy/http-json-body-parser 5.3.1 → 5.3.2

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.
Files changed (2) hide show
  1. package/index.d.ts +3 -3
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import middy from '@middy/core'
2
- import { APIGatewayEvent, APIGatewayProxyEventV2 } from 'aws-lambda'
2
+ import { APIGatewayEvent, APIGatewayProxyEventV2, ALBEvent } from 'aws-lambda'
3
3
 
4
4
  interface Options {
5
5
  reviver?: (key: string, value: any) => any
6
6
  disableContentTypeError?: boolean
7
7
  }
8
8
 
9
- export type VersionedApiGatewayEvent = APIGatewayEvent | APIGatewayProxyEventV2
9
+ export type RequestEvent = APIGatewayEvent | APIGatewayProxyEventV2 | ALBEvent
10
10
 
11
- declare function jsonBodyParser<APIGatewayEventType extends VersionedApiGatewayEvent = VersionedApiGatewayEvent> (options?: Options): middy.MiddlewareObj<APIGatewayEventType>
11
+ declare function jsonBodyParser<EventType extends RequestEvent = RequestEvent> (options?: Options): middy.MiddlewareObj<EventType>
12
12
 
13
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.3.1",
3
+ "version": "5.3.2",
4
4
  "description": "Http JSON body parser middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -62,11 +62,11 @@
62
62
  "url": "https://github.com/sponsors/willfarrell"
63
63
  },
64
64
  "dependencies": {
65
- "@middy/util": "5.3.1"
65
+ "@middy/util": "5.3.2"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/aws-lambda": "^8.10.101",
69
69
  "type-fest": "^4.0.0"
70
70
  },
71
- "gitHead": "d25628bf7ebf0c4f00ed2e789d0b3edae2be4dae"
71
+ "gitHead": "56b1431f6feeef398a85054691977ee5c0212f55"
72
72
  }