bump finished and mocha

This commit is contained in:
Jonathan Ong 2014-01-16 22:33:02 -08:00
parent 794f08faaa
commit ea1a631bb1
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
*/ */
var debug = require('debug')('koa:application'); var debug = require('debug')('koa:application');
var onSocketError = require('on-socket-error'); var onFinished = require('finished');
var Emitter = require('events').EventEmitter; var Emitter = require('events').EventEmitter;
var compose = require('koa-compose'); var compose = require('koa-compose');
var context = require('./context'); var context = require('./context');
@ -101,7 +101,7 @@ app.callback = function(){
return function(req, res){ return function(req, res){
var ctx = self.createContext(req, res); var ctx = self.createContext(req, res);
onSocketError(ctx, ctx.onerror); onFinished(ctx, ctx.onerror);
fn.call(ctx, ctx.onerror); fn.call(ctx, ctx.onerror);
} }
}; };

View file

@ -23,7 +23,7 @@
"dependencies": { "dependencies": {
"accepts": "~1.0.0", "accepts": "~1.0.0",
"type-is": "~1.0.0", "type-is": "~1.0.0",
"on-socket-error": "~1.1.0", "finished": "~1.1.1",
"co": "~3.0.2", "co": "~3.0.2",
"debug": "*", "debug": "*",
"mime": "~1.2.11", "mime": "~1.2.11",
@ -36,7 +36,7 @@
"devDependencies": { "devDependencies": {
"bytes": "~0.2.1", "bytes": "~0.2.1",
"should": "~2.1.0", "should": "~2.1.0",
"mocha": "~1.16.0", "mocha": "~1.17.0",
"supertest": "~0.8.1", "supertest": "~0.8.1",
"co-fs": "~1.1", "co-fs": "~1.1",
"co-views": "~0.1.0", "co-views": "~0.1.0",