@middy/http-router
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -58,2 +58,3 @@ import { createError } from '@middy/util'; | ||
routesType[method][path] = handler; | ||
routesType[method][path + '/'] = handler; | ||
}; | ||
@@ -71,3 +72,3 @@ const attachDynamicRoute = (method, path, handler, routesType)=>{ | ||
path = path.replace(regexpDynamicWildcards, '/?.*').replace(regexpDynamicParameters, '/[^/]+'); | ||
path = new RegExp(`^${path}$`); | ||
path = new RegExp(`^${path}/?$`); | ||
routesType[method].push({ | ||
@@ -74,0 +75,0 @@ path, |
{ | ||
"name": "@middy/http-router", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "HTTP event router for the middy framework", | ||
@@ -65,9 +65,9 @@ "type": "module", | ||
"dependencies": { | ||
"@middy/util": "3.4.0" | ||
"@middy/util": "3.5.0" | ||
}, | ||
"devDependencies": { | ||
"@middy/core": "3.4.0", | ||
"@middy/core": "3.5.0", | ||
"@types/aws-lambda": "^8.10.97" | ||
}, | ||
"gitHead": "13abdd39fdd2f3888f1d913d3a45a4f5567edb5d" | ||
"gitHead": "61d1bb405d23702dd8ee83b65d8b98bef7acaeeb" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14166
208
+ Added@middy/util@3.5.0(transitive)
- Removed@middy/util@3.4.0(transitive)
Updated@middy/util@3.5.0