From ea1a631bb1a8c20571713f9ebef1213c148602d3 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Thu, 16 Jan 2014 22:33:02 -0800 Subject: [PATCH] bump finished and mocha --- lib/application.js | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/application.js b/lib/application.js index 589a26b..5918241 100644 --- a/lib/application.js +++ b/lib/application.js @@ -3,7 +3,7 @@ */ var debug = require('debug')('koa:application'); -var onSocketError = require('on-socket-error'); +var onFinished = require('finished'); var Emitter = require('events').EventEmitter; var compose = require('koa-compose'); var context = require('./context'); @@ -101,7 +101,7 @@ app.callback = function(){ return function(req, res){ var ctx = self.createContext(req, res); - onSocketError(ctx, ctx.onerror); + onFinished(ctx, ctx.onerror); fn.call(ctx, ctx.onerror); } }; diff --git a/package.json b/package.json index 9980235..afabdfc 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "dependencies": { "accepts": "~1.0.0", "type-is": "~1.0.0", - "on-socket-error": "~1.1.0", + "finished": "~1.1.1", "co": "~3.0.2", "debug": "*", "mime": "~1.2.11", @@ -36,7 +36,7 @@ "devDependencies": { "bytes": "~0.2.1", "should": "~2.1.0", - "mocha": "~1.16.0", + "mocha": "~1.17.0", "supertest": "~0.8.1", "co-fs": "~1.1", "co-views": "~0.1.0",