@middy/http-router
Advanced tools
Comparing version 3.3.2 to 3.3.3
import middy from '@middy/core' | ||
import { | ||
APIGatewayProxyEvent, | ||
APIGatewayProxyEventV2, | ||
APIGatewayProxyResult, | ||
@@ -8,12 +9,23 @@ Handler as LambdaHandler | ||
export type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'ANY' | ||
export type Method = | ||
| 'GET' | ||
| 'POST' | ||
| 'PUT' | ||
| 'PATCH' | ||
| 'DELETE' | ||
| 'OPTIONS' | ||
| 'ANY' | ||
export interface Route { | ||
export interface Route<TEvent> { | ||
method: Method | ||
path: string | ||
handler: LambdaHandler<APIGatewayProxyEvent, APIGatewayProxyResult> | ||
handler: LambdaHandler<TEvent, APIGatewayProxyResult> | ||
} | ||
declare function httpRouterHandler (routes: Route[]): middy.MiddyfiedHandler | ||
declare function httpRouterHandler< | ||
TEvent extends | ||
| APIGatewayProxyEvent | ||
| APIGatewayProxyEventV2 = APIGatewayProxyEvent | ||
> (routes: Array<Route<TEvent>>): middy.MiddyfiedHandler | ||
export default httpRouterHandler |
{ | ||
"name": "@middy/http-router", | ||
"version": "3.3.2", | ||
"version": "3.3.3", | ||
"description": "HTTP event router for the middy framework", | ||
@@ -65,9 +65,9 @@ "type": "module", | ||
"dependencies": { | ||
"@middy/util": "3.3.2" | ||
"@middy/util": "3.3.3" | ||
}, | ||
"devDependencies": { | ||
"@middy/core": "3.3.2", | ||
"@middy/core": "3.3.3", | ||
"@types/aws-lambda": "^8.10.97" | ||
}, | ||
"gitHead": "5fcd6655e7f076615c2dcb877a36f6c4fc3164d3" | ||
"gitHead": "02ca5e9a539cace47b394fe67bb0a0da23e098bf" | ||
} |
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
14070
206
+ Added@middy/util@3.3.3(transitive)
- Removed@middy/util@3.3.2(transitive)
Updated@middy/util@3.3.3