bumpity boop co

This commit is contained in:
Jonathan Ong 2013-12-19 22:33:35 -08:00
parent 938a67c94f
commit 38d5bad4d1
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
HEAD
==================
* update co
0.1.1 / 2013-12-19
==================

View file

@ -94,13 +94,14 @@ app.use = function(fn){
app.callback = function(){
var mw = [respond].concat(this.middleware);
var gen = compose(mw);
var fn = co(gen);
var self = this;
return function(req, res, next){
var ctx = self.createContext(req, res);
next = next || ctx.onerror;
ctx.onSocketError(next);
co.call(ctx, gen)(next);
fn.call(ctx, next);
}
};

View file

@ -21,7 +21,7 @@
],
"license": "MIT",
"dependencies": {
"co": "~2.3.0",
"co": "~3.0.0",
"debug": "*",
"mime": "~1.2.11",
"fresh": "~0.2.0",