koa-router
Advanced tools
Comparing version 3.3.1 to 3.4.0
@@ -186,3 +186,3 @@ /** | ||
middleware.unshift(function *(next) { | ||
yield fn.call(this, this.params[param], next); | ||
yield *fn.call(this, this.params[param], next); | ||
}); | ||
@@ -189,0 +189,0 @@ this.middleware = compose(middleware); |
@@ -89,3 +89,3 @@ /** | ||
debug('dispatch "%s" %s', route.path, route.regexp); | ||
return yield route.middleware.call(this, next); | ||
return yield *route.middleware.call(this, next); | ||
} | ||
@@ -103,3 +103,3 @@ } | ||
// simply yield to downstream koa middleware | ||
return yield next; | ||
return yield *next; | ||
} | ||
@@ -106,0 +106,0 @@ |
@@ -9,3 +9,3 @@ { | ||
"author": "Alex Mingoia <talk@alexmingoia.com>", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"keywords": [ | ||
@@ -20,7 +20,7 @@ "koa", | ||
"path-to-regexp": "^1.0.0", | ||
"debug": "^1.0.2", | ||
"debug": "^2.0.0", | ||
"koa-compose": "^2.3.0" | ||
}, | ||
"devDependencies": { | ||
"koa": "^0.10.0", | ||
"koa": "^0.11.0", | ||
"should": "^4.0.4", | ||
@@ -27,0 +27,0 @@ "mocha": "^1.17.1", |
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
37281
+ Addeddebug@2.6.9(transitive)
- Removeddebug@1.0.5(transitive)
Updateddebug@^2.0.0