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 4.0.9 to 4.0.10

18

index.js

@@ -44,10 +44,12 @@ import { createError } from '@middy/util';

const regexpDynamicParameters = /\/\{([^/]+)\}/g;
const methods = [
'GET',
'POST',
'PUT',
'PATCH',
'DELETE',
'OPTIONS'
];
export const Method = {
Get: 'GET',
Post: 'POST',
Put: 'PUT',
Patch: 'PATCH',
Delete: 'DELETE',
Options: 'OPTIONS',
Any: 'ANY'
};
const methods = Object.values(Method).filter((method)=>method !== 'ANY');
const attachStaticRoute = (method, path, handler, routesType)=>{

@@ -54,0 +56,0 @@ if (method === 'ANY') {

{
"name": "@middy/http-router",
"version": "4.0.9",
"version": "4.0.10",
"description": "HTTP event router for the middy framework",

@@ -65,9 +65,9 @@ "type": "module",

"dependencies": {
"@middy/util": "4.0.9"
"@middy/util": "4.0.10"
},
"devDependencies": {
"@middy/core": "4.0.9",
"@middy/core": "4.0.10",
"@types/aws-lambda": "^8.10.97"
},
"gitHead": "02210765f9154584c242e4440d086abcf3321028"
"gitHead": "e2a97d380fc4150781004092ea054f5d0fc7a8c0"
}

Sorry, the diff of this file is not supported yet

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