@middy/http-router
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -1,5 +0,18 @@ | ||
// import middy from '@middy/core' | ||
import middy from '@middy/core' | ||
import { | ||
APIGatewayProxyEvent, | ||
APIGatewayProxyResult, | ||
Handler as LambdaHandler | ||
} from 'aws-lambda' | ||
declare function httpRouterHandler (): any | ||
type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'ANY' | ||
interface Route { | ||
method: Method | ||
path: string | ||
handler: LambdaHandler<APIGatewayProxyEvent, APIGatewayProxyResult> | ||
} | ||
declare function httpRouterHandler (routes: Route[]): middy.MiddlewareObj | ||
export default httpRouterHandler |
{ | ||
"name": "@middy/http-router", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "HTTP event router for the middy framework", | ||
@@ -58,8 +58,9 @@ "type": "module", | ||
"dependencies": { | ||
"@middy/util": "^3.0.2" | ||
"@middy/util": "3.0.3" | ||
}, | ||
"devDependencies": { | ||
"@middy/core": "^3.0.2" | ||
"@middy/core": "3.0.3", | ||
"@types/aws-lambda": "^8.10.97" | ||
}, | ||
"gitHead": "983649b8359ea32a786e75dfc2953aeee8ec6052" | ||
"gitHead": "ea9e5e8cce754d0c467c7dd3ac9a7601149efea2" | ||
} |
@@ -12,4 +12,4 @@ <div align="center"> | ||
</a> | ||
<a href="https://github.com/middyjs/middy/actions"> | ||
<img src="https://github.com/middyjs/middy/workflows/Tests/badge.svg" alt="GitHub Actions test status badge" style="max-width:100%;"> | ||
<a href="https://github.com/middyjs/middy/actions/workflows/tests.yml"> | ||
<img src="https://github.com/middyjs/middy/actions/workflows/tests.yml/badge.svg?branch=main&event=push" alt="GitHub Actions CI status badge" style="max-width:100%;"> | ||
</a> | ||
@@ -37,2 +37,3 @@ <br/> | ||
</p> | ||
<p>You can read the documentation at: <a href="https://middy.js.org/docs/routers/http-router">https://middy.js.org/docs/routers/http-router</a></p> | ||
</div> | ||
@@ -116,3 +117,3 @@ | ||
Licensed under [MIT License](LICENSE). Copyright (c) 2017-2022 Luciano Mammino, will Farrell, and the [Middy team](https://github.com/middyjs/middy/graphs/contributors). | ||
Licensed under [MIT License](LICENSE). Copyright (c) 2017-2022 [Luciano Mammino](https://github.com/lmammino), [will Farrell](https://github.com/willfarrell), and the [Middy team](https://github.com/middyjs/middy/graphs/contributors). | ||
@@ -119,0 +120,0 @@ <a href="https://app.fossa.io/projects/git%2Bgithub.com%2Fmiddyjs%2Fmiddy?ref=badge_large"> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
12126
30
120
2
+ Added@middy/util@3.0.3(transitive)
- Removed@middy/util@3.6.2(transitive)
Updated@middy/util@3.0.3