You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@middy/http-router

Package Overview
Dependencies
Maintainers
3
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.0.3

17

index.d.ts

@@ -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

9

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc