Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "stacked", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Felix Gnass <fgnass@gmail.com>", | ||
"description": "bundle multiple middleware functions into one stack", | ||
"keywords": ["connect", "middleware", "stack"], | ||
"keywords": [ | ||
"connect", | ||
"middleware", | ||
"stack" | ||
], | ||
"homepage": "https://github.com/fgnass/stacked", | ||
@@ -8,0 +12,0 @@ "main": "stacked.js", |
@@ -30,2 +30,3 @@ var URL = require('url') | ||
handle.use = function(fn) { | ||
if (typeof fn == 'object' && fn.handle) fn = fn.handle.bind(fn) | ||
layers.push(fn) | ||
@@ -43,2 +44,3 @@ return this | ||
if (mount.substr(-1) != '/') mount += '/' | ||
if (typeof fn == 'object' && fn.handle) fn = fn.handle.bind(fn) | ||
@@ -45,0 +47,0 @@ return function(req, res, next) { |
2520
52