@middy/http-json-body-parser
Advanced tools
Comparing version 5.0.0-alpha.2 to 5.0.0-rc.0
import middy from '@middy/core' | ||
import { APIGatewayEvent, APIGatewayProxyEventV2 } from 'aws-lambda' | ||
import { JsonValue } from 'type-fest' | ||
@@ -10,13 +9,6 @@ interface Options { | ||
type VersionedApiGatewayEvent = APIGatewayEvent | APIGatewayProxyEventV2 | ||
export type VersionedApiGatewayEvent = APIGatewayEvent | APIGatewayProxyEventV2 | ||
export type Event<APIGatewayEventType extends VersionedApiGatewayEvent = VersionedApiGatewayEvent> = Omit<APIGatewayEventType, 'body'> & { | ||
/** | ||
* The body of the HTTP request. | ||
*/ | ||
body: JsonValue | ||
} | ||
declare function jsonBodyParser<APIGatewayEventType extends VersionedApiGatewayEvent = VersionedApiGatewayEvent> (options?: Options): middy.MiddlewareObj<APIGatewayEventType> | ||
declare function jsonBodyParser<APIGatewayEventType extends VersionedApiGatewayEvent = VersionedApiGatewayEvent> (options?: Options): middy.MiddlewareObj<Event<APIGatewayEventType>> | ||
export default jsonBodyParser |
{ | ||
"name": "@middy/http-json-body-parser", | ||
"version": "5.0.0-alpha.2", | ||
"version": "5.0.0-rc.0", | ||
"description": "Http JSON body parser middleware for the middy framework", | ||
@@ -65,10 +65,10 @@ "type": "module", | ||
"dependencies": { | ||
"@middy/util": "5.0.0-alpha.2" | ||
"@middy/util": "5.0.0-rc.0" | ||
}, | ||
"devDependencies": { | ||
"@middy/core": "5.0.0-alpha.2", | ||
"@middy/core": "5.0.0-rc.0", | ||
"@types/aws-lambda": "^8.10.101", | ||
"type-fest": "^4.0.0" | ||
}, | ||
"gitHead": "ebce8d5df8783077fa49ba62ee9be20e8486a7f1" | ||
"gitHead": "403c54ba9f05e038d1ee7541f9e4a7a6d46e9916" | ||
} |
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
7725
52
+ Added@middy/util@5.0.0-rc.0(transitive)
- Removed@middy/util@5.0.0-alpha.2(transitive)
Updated@middy/util@5.0.0-rc.0