Comparing version 1.1.0 to 1.2.0
@@ -37,4 +37,4 @@ | ||
var downstream = app.middleware | ||
? compose(app.middleware)(upstream) | ||
: app(upstream); | ||
? compose(app.middleware) | ||
: app; | ||
@@ -50,3 +50,3 @@ return function *(){ | ||
debug('enter %s -> %s', prev, this.path); | ||
yield downstream; | ||
yield downstream.call(this, upstream); | ||
debug('leave %s -> %s', prev, this.path); | ||
@@ -53,0 +53,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/mount", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"keywords": [ | ||
@@ -17,3 +17,3 @@ "koa", | ||
"devDependencies": { | ||
"koa": "0.0.1", | ||
"koa": "koajs/koa", | ||
"should": "~1.2.2", | ||
@@ -25,5 +25,5 @@ "mocha": "~1.12.1", | ||
"dependencies": { | ||
"koa-compose": "~1.0.0", | ||
"koa-compose": "2.0.0", | ||
"debug": "*" | ||
} | ||
} |
@@ -34,7 +34,5 @@ | ||
a.use(function(next){ | ||
return function *(){ | ||
yield next; | ||
this.body = 'Hello'; | ||
} | ||
a.use(function *(next){ | ||
yield next; | ||
this.body = 'Hello'; | ||
}); | ||
@@ -46,7 +44,5 @@ | ||
b.use(function(next){ | ||
return function *(){ | ||
yield next; | ||
this.body = 'World'; | ||
} | ||
b.use(function *(next){ | ||
yield next; | ||
this.body = 'World'; | ||
}); | ||
@@ -87,14 +83,10 @@ | ||
function hello(next){ | ||
return function *(){ | ||
yield next; | ||
this.body = 'Hello'; | ||
} | ||
function *hello(next){ | ||
yield next; | ||
this.body = 'Hello'; | ||
} | ||
function world(next){ | ||
return function *(){ | ||
yield next; | ||
this.body = 'World'; | ||
} | ||
function *world(next){ | ||
yield next; | ||
this.body = 'World'; | ||
} | ||
@@ -101,0 +93,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
4096
128
+ Addedkoa-compose@2.0.0(transitive)
- Removedkoa-compose@1.0.0(transitive)
Updatedkoa-compose@2.0.0