@middy/http-router
Advanced tools
Comparing version 3.3.1 to 3.3.2
@@ -37,4 +37,4 @@ import { createError } from '@middy/util'; | ||
}; | ||
const regexpDynamicWildcards = /\/\{proxy\+\}/g; | ||
const regexpDynamicParameters = /\/\{.+\}/g; | ||
const regexpDynamicWildcards = /\/\{proxy\+\}$/; | ||
const regexpDynamicParameters = /\/\{[^/]+\}/g; | ||
const methods = [ | ||
@@ -70,3 +70,3 @@ 'GET', | ||
} | ||
path = path.replace(regexpDynamicWildcards, '/?.*').replace(regexpDynamicParameters, '/.+'); | ||
path = path.replace(regexpDynamicWildcards, '/?.*').replace(regexpDynamicParameters, '/[^/]+'); | ||
path = new RegExp(`^${path}$`); | ||
@@ -73,0 +73,0 @@ routesType[method].push({ |
{ | ||
"name": "@middy/http-router", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "HTTP event router for the middy framework", | ||
@@ -65,9 +65,9 @@ "type": "module", | ||
"dependencies": { | ||
"@middy/util": "3.3.1" | ||
"@middy/util": "3.3.2" | ||
}, | ||
"devDependencies": { | ||
"@middy/core": "3.3.1", | ||
"@middy/core": "3.3.2", | ||
"@types/aws-lambda": "^8.10.97" | ||
}, | ||
"gitHead": "513a8d0c1bc9d647552fa16b42004bad4eee07ee" | ||
"gitHead": "5fcd6655e7f076615c2dcb877a36f6c4fc3164d3" | ||
} |
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
13926
+ Added@middy/util@3.3.2(transitive)
- Removed@middy/util@3.3.1(transitive)
Updated@middy/util@3.3.2