Comparing version 1.3.4 to 1.3.5
@@ -0,1 +1,7 @@ | ||
1.3.5 / 2020-03-24 | ||
================== | ||
* Fix incorrect middleware execution with unanchored `RegExp`s | ||
* perf: use plain object for internal method map | ||
1.3.4 / 2020-01-24 | ||
@@ -2,0 +8,0 @@ ================== |
@@ -305,2 +305,8 @@ /*! | ||
if (layerPath.length !== 0) { | ||
// Validate path is a prefix match | ||
if (layerPath !== path.substr(0, layerPath.length)) { | ||
next(layerError) | ||
return | ||
} | ||
// Validate path breaks on a path separator | ||
@@ -307,0 +313,0 @@ var c = path[layerPath.length] |
@@ -46,3 +46,3 @@ /*! | ||
// route handlers for various http methods | ||
this.methods = {} | ||
this.methods = Object.create(null) | ||
} | ||
@@ -49,0 +49,0 @@ |
{ | ||
"name": "router", | ||
"description": "Simple middleware-style router", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
@@ -23,6 +23,6 @@ "contributors": [ | ||
"eslint": "6.8.0", | ||
"eslint-plugin-markdown": "1.0.1", | ||
"eslint-plugin-markdown": "1.0.2", | ||
"finalhandler": "1.1.2", | ||
"istanbul": "0.4.5", | ||
"mocha": "7.0.0", | ||
"mocha": "7.1.1", | ||
"safe-buffer": "5.2.0", | ||
@@ -29,0 +29,0 @@ "supertest": "4.0.2" |
@@ -151,4 +151,4 @@ # router | ||
Represents a single route as an instance that can be used can be used to handle | ||
http `methods` with it's own, optional middleware. | ||
Represents a single route as an instance that can be used to handle http | ||
`methods` with it's own, optional middleware. | ||
@@ -155,0 +155,0 @@ ### route\[method](handler) |
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
40694
923