@middy/http-router
Advanced tools
Comparing version 4.0.9 to 4.0.10
18
index.js
@@ -44,10 +44,12 @@ import { createError } from '@middy/util'; | ||
const regexpDynamicParameters = /\/\{([^/]+)\}/g; | ||
const methods = [ | ||
'GET', | ||
'POST', | ||
'PUT', | ||
'PATCH', | ||
'DELETE', | ||
'OPTIONS' | ||
]; | ||
export const Method = { | ||
Get: 'GET', | ||
Post: 'POST', | ||
Put: 'PUT', | ||
Patch: 'PATCH', | ||
Delete: 'DELETE', | ||
Options: 'OPTIONS', | ||
Any: 'ANY' | ||
}; | ||
const methods = Object.values(Method).filter((method)=>method !== 'ANY'); | ||
const attachStaticRoute = (method, path, handler, routesType)=>{ | ||
@@ -54,0 +56,0 @@ if (method === 'ANY') { |
{ | ||
"name": "@middy/http-router", | ||
"version": "4.0.9", | ||
"version": "4.0.10", | ||
"description": "HTTP event router for the middy framework", | ||
@@ -65,9 +65,9 @@ "type": "module", | ||
"dependencies": { | ||
"@middy/util": "4.0.9" | ||
"@middy/util": "4.0.10" | ||
}, | ||
"devDependencies": { | ||
"@middy/core": "4.0.9", | ||
"@middy/core": "4.0.10", | ||
"@types/aws-lambda": "^8.10.97" | ||
}, | ||
"gitHead": "02210765f9154584c242e4440d086abcf3321028" | ||
"gitHead": "e2a97d380fc4150781004092ea054f5d0fc7a8c0" | ||
} |
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
12931
233
+ Added@middy/util@4.0.10(transitive)
- Removed@middy/util@4.0.9(transitive)
Updated@middy/util@4.0.10