Comparing version 1.0.0 to 1.0.1
@@ -59,2 +59,3 @@ 'use strict' | ||
for (let j = 0; j < route.keys.length;) params[route.keys[j]] = matches[++j] | ||
} else { | ||
@@ -103,4 +104,5 @@ matches = route.pattern.exec(req.path) | ||
} | ||
return | ||
if (req.app.mounted) return | ||
} | ||
if (route.starCatchAll) { // the http://example.com/* route ;) | ||
@@ -112,2 +114,3 @@ onChange.target(req.params)['0'] = '/' + decodeURIComponent(params['0']) | ||
prevParams = JSON.stringify(prevParams) | ||
if (prevParams !== JSON.stringify(params)) req.paramsPrev.push(Object.assign({}, params)) | ||
@@ -114,0 +117,0 @@ Object.keys(params).forEach(key => { |
@@ -133,3 +133,4 @@ 'use strict' | ||
fn = function (err) { | ||
req.params = req.paramsPrev[req.paramsPrev.length - 1 || 0] | ||
req.params = req.paramsPrev[req.paramsPrev.length - 2 ] || req.paramsPrev[req.paramsPrev.length - 1] || req.params | ||
try { | ||
@@ -136,0 +137,0 @@ return step(err) |
{ | ||
"name": "fyrejet", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Web Framework for node.js that strives to provide (almost) perfect compatibility with Express, while providing better performance, where you need it.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
108747