Comparing version 1.1.2 to 1.1.3
@@ -0,1 +1,11 @@ | ||
1.1.3 / 2015-08-02 | ||
================== | ||
* Fix infinite loop condition using `mergeParams: true` | ||
* Fix inner numeric indices incorrectly altering parent `req.params` | ||
* deps: array-flatten@1.1.1 | ||
- perf: enable strict mode | ||
* deps: path-to-regexp@0.1.7 | ||
- Fix regression with escaped round brackets and matching groups | ||
1.1.2 / 2015-07-06 | ||
@@ -2,0 +12,0 @@ ================== |
14
index.js
@@ -631,8 +631,12 @@ /*! | ||
// determine numeric gaps | ||
while (i === o || o in parent) { | ||
if (i in params) i++ | ||
if (o in parent) o++ | ||
// determine numeric gap in params | ||
while (i in params) { | ||
i++ | ||
} | ||
// determine numeric gap in parent | ||
while (o in parent) { | ||
o++ | ||
} | ||
// offset numeric indices in params before merge | ||
@@ -648,3 +652,3 @@ for (i--; i >= 0; i--) { | ||
return mixin(parent, params) | ||
return mixin(obj, params) | ||
} | ||
@@ -651,0 +655,0 @@ |
{ | ||
"name": "router", | ||
"description": "Simple middleware-style router", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
@@ -9,7 +9,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"array-flatten": "1.1.0", | ||
"array-flatten": "1.1.1", | ||
"debug": "~2.2.0", | ||
"methods": "~1.1.1", | ||
"parseurl": "~1.3.0", | ||
"path-to-regexp": "0.1.6", | ||
"path-to-regexp": "0.1.7", | ||
"setprototypeof": "1.0.0", | ||
@@ -16,0 +16,0 @@ "utils-merge": "1.0.0" |
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
34849
906
+ Addedarray-flatten@1.1.1(transitive)
+ Addedpath-to-regexp@0.1.7(transitive)
- Removedarray-flatten@1.1.0(transitive)
- Removedpath-to-regexp@0.1.6(transitive)
Updatedarray-flatten@1.1.1
Updatedpath-to-regexp@0.1.7