Comparing version 0.3.1 to 0.3.2
@@ -10,4 +10,2 @@ var http = require('http'); | ||
Object.keys(from).forEach(function(key) { | ||
if (key in to) return; | ||
var getter = from.__lookupGetter__(key); | ||
@@ -55,7 +53,6 @@ var setter = from.__lookupSetter__(key); | ||
req.url = url; | ||
if (!next) return (callback || onerror)(err, req, res); | ||
if (route) { | ||
if (req.url.substr(0, route.length) !== route) return loop(err); | ||
req.url = req.url.substr(route.length-1); | ||
req.url = req.url.substr(route.length-1); | ||
} | ||
@@ -62,0 +59,0 @@ try { |
{ | ||
"name":"protein", | ||
"version":"0.3.1", | ||
"version":"0.3.2", | ||
"repository": "git://github.com/mafintosh/protein", | ||
@@ -5,0 +5,0 @@ "description":"Protein is connect compatible middleware with support for prototype methods, getters, and setters", |
@@ -14,3 +14,5 @@ var protein = require('../index'); | ||
fn({}, {}); | ||
fn({}, {}, function(err) { | ||
throw err; | ||
}); | ||
assert.ok(complete); |
334