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.2.0 to 3.2.1

12

index.js

@@ -6,4 +6,4 @@ import { createError } from '@middy/util';

const enumMethods = methods.concat('ANY');
for (const route1 of routes){
let { method , path , handler } = route1;
for (const route of routes){
let { method , path , handler } = route;
if (!enumMethods.includes(method)) {

@@ -50,4 +50,4 @@ throw new Error('[http-router] Method not allowed');

if (method === 'ANY') {
for (const method of methods){
attachStaticRoute(method, path, handler, routesType);
for (const method1 of methods){
attachStaticRoute(method1, path, handler, routesType);
}

@@ -63,4 +63,4 @@ return;

if (method === 'ANY') {
for (const method of methods){
attachDynamicRoute(method, path, handler, routesType);
for (const method1 of methods){
attachDynamicRoute(method1, path, handler, routesType);
}

@@ -67,0 +67,0 @@ return;

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

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

"dependencies": {
"@middy/util": "3.2.0"
"@middy/util": "3.2.1"
},
"devDependencies": {
"@middy/core": "3.2.0",
"@middy/core": "3.2.1",
"@types/aws-lambda": "^8.10.97"
},
"gitHead": "ac46270daa388b52a81472ae8f9b8808a0136940"
"gitHead": "b4169ec20b798650e934a7c25ee80ae98d11e03a"
}

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