koa-compose
Advanced tools
Comparing version 2.5.0 to 2.5.1
2.5.1 / 2016-10-26 | ||
================== | ||
* reverts variadic support #64, an unintended breaking change | ||
2.5.0 / 2016-10-25 | ||
@@ -3,0 +8,0 @@ ================== |
/** | ||
* Module dependencies. | ||
*/ | ||
var flatten = require('lodash/flatten'); | ||
/** | ||
* Expose compositor. | ||
@@ -19,3 +13,3 @@ */ | ||
* | ||
* @param {Array|Function...} middleware | ||
* @param {Array} middleware | ||
* @return {Function} | ||
@@ -26,3 +20,2 @@ * @api public | ||
function compose(middleware){ | ||
middleware = flatten(arguments); | ||
return function *(next){ | ||
@@ -29,0 +22,0 @@ if (!next) next = noop(); |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/compose", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"keywords": [ | ||
@@ -15,5 +15,3 @@ "koa", | ||
], | ||
"dependencies": { | ||
"lodash": "^4.16.4" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -20,0 +18,0 @@ "co": "^3.0.0", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
0
2178
29
- Removedlodash@^4.16.4
- Removedlodash@4.17.21(transitive)