Comparing version 3.0.2 to 3.0.3
@@ -13,3 +13,3 @@ var is = require('./is') | ||
// wrap generator with caco | ||
var fn = caco(gen) | ||
var fn = caco.wrap(gen) | ||
return function (ctx, next) { | ||
@@ -42,4 +42,5 @@ fn.call(this, ctx, next) | ||
// concat hooks | ||
for (key in args[0]._hooks) | ||
for (key in args[0]._hooks) { | ||
use.call(this, key, args[0]._hooks[key]) | ||
} | ||
return this | ||
@@ -46,0 +47,0 @@ } |
{ | ||
"name": "ginga", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Middleware framework for async functions using callback, promise or generator", | ||
@@ -17,3 +17,3 @@ "scripts": { | ||
"dependencies": { | ||
"caco": "^1.0.0", | ||
"caco": "^2.0.0", | ||
"is-generator-function": "^1.0.3" | ||
@@ -23,5 +23,5 @@ }, | ||
"derequire": "^2.0.0", | ||
"standard": "^5.1.1", | ||
"standard": "^7.1.2", | ||
"tape": "^3.0.2" | ||
} | ||
} |
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
21297
15
533
+ Addedcaco@2.0.6(transitive)
+ Addedcallback-all@1.0.0(transitive)
- Removedcaco@1.2.0(transitive)
Updatedcaco@^2.0.0