Skip to content

Commit

Permalink
update devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Oct 2, 2016
1 parent f6e9851 commit 94d1949
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions lib/limit.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
'use strict';

const debug = require('debug')('jt.koa-connection-limit');
const util = require('util');
/* istanbul ignore next */
function noop() {}

function get(arr, filter, defaultValue) {
let result;
arr.forEach(tmp => {
arr.forEach((tmp) => {
if (tmp && filter(tmp)) {
result = tmp;
}
Expand Down Expand Up @@ -71,13 +72,13 @@ function limit() {
}

function done(err) {
handlingReqTotal--;
handlingReqTotal -= 1;
checkStatus();
if (err) {
throw err;
}
}
handlingReqTotal++;
handlingReqTotal += 1;
checkStatus();
return next().then(done, done);
};
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "koa-connection-limit",
"description": "connection limit middlware for koa",
"version": "2.0.4",
"version": "2.0.5",
"author": {
"name": "vicanso 小墨鱼",
"email": "vicansocanbico@gmail.com"
Expand All @@ -26,13 +26,15 @@
"test": "node ./node_modules/.bin/eslint ./lib/*.js && NODE_ENV=test node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha ./test/*.js --"
},
"devDependencies": {
"eslint": "^2.9.0",
"eslint-config-airbnb": "^8.0.0",
"eslint-plugin-import": "^1.6.1",
"istanbul": "^0.4.3",
"eslint": "^3.6.1",
"eslint-config-airbnb": "^12.0.0",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-jsx-a11y": "^2.2.2",
"eslint-plugin-react": "^6.3.0",
"istanbul": "^0.4.5",
"koa": "^2.0.0",
"mocha": "^2.4.5",
"supertest": "^1.2.0"
"mocha": "^2.5.3",
"supertest": "^2.0.0"
},
"dependencies": {
"debug": "^2.2.0"
Expand Down

0 comments on commit 94d1949

Please sign in to comment.