@middy/http-router
Advanced tools
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
13915
194
+ Added@middy/util@3.2.1(transitive)
- Removed@middy/util@3.2.0(transitive)
Updated@middy/util@3.2.1