Socket
Socket
Sign inDemoInstall

@middy/http-router

Package Overview
Dependencies
Maintainers
3
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@middy/http-router - npm Package Compare versions

Comparing version 3.3.2 to 3.3.3

20

index.d.ts
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

8

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc