koa-compose
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -20,12 +20,11 @@ | ||
return function *(next){ | ||
if (!next) next = noop(); | ||
var i = middleware.length; | ||
var prev = next || noop(); | ||
var curr; | ||
while (i--) { | ||
curr = middleware[i]; | ||
prev = curr.call(this, prev); | ||
next = middleware[i].call(this, next); | ||
} | ||
yield *prev; | ||
return yield *next; | ||
} | ||
@@ -32,0 +31,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/compose", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"keywords": [ | ||
@@ -17,11 +17,13 @@ "koa", | ||
"devDependencies": { | ||
"co": "~3.0.1", | ||
"mocha": "~1.6.0", | ||
"should": "~2.1.0", | ||
"koa": "~0.3.0" | ||
"co": "^3.0.0", | ||
"istanbul": "^0.4.2", | ||
"mocha": "^2.4.5", | ||
"should": "^2.0.0" | ||
}, | ||
"scripts": { | ||
"test": "make test" | ||
"test": "mocha --harmony --require should --reporter spec", | ||
"test-cov": "node --harmony ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --require should", | ||
"test-travis": "node --harmony ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- --require should" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -6,2 +6,8 @@ | ||
## Installation | ||
```js | ||
$ npm install koa-compose | ||
``` | ||
## API | ||
@@ -15,2 +21,2 @@ | ||
MIT | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1940
4
21
29