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.2.7 to 4.2.8

20

index.js

@@ -44,13 +44,11 @@ import { createError } from '@middy/util';

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

@@ -57,0 +55,0 @@ if (method === 'ANY') {

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

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

"dependencies": {
"@middy/util": "4.2.7"
"@middy/util": "4.2.8"
},
"devDependencies": {
"@middy/core": "4.2.7",
"@middy/core": "4.2.8",
"@types/aws-lambda": "^8.10.97"
},
"gitHead": "f17e0e371d1d1c7a67365c895775a847aab5aa0b"
"gitHead": "9e7eec0f50fd1edef232edb7a99c035f9bc1f159"
}

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc