koa-route
Advanced tools
Comparing version 2.4.0 to 2.4.1
2.4.1 / 2015-04-12 | ||
=================== | ||
* add ALL method to debug | ||
* add return statement in case of path miss | ||
2.4.0 / 2014-11-27 | ||
================== | ||
* use `yield*` | ||
2.3.0 / 2014-11-27 | ||
================== | ||
* fix HEAD method w/ GET routes | ||
2.2.0 / 2014-10-15 | ||
@@ -3,0 +19,0 @@ ================== |
@@ -21,3 +21,3 @@ /** | ||
var re = pathToRegexp(path, opts); | ||
debug('%s %s -> %s', method, path, re); | ||
debug('%s %s -> %s', method || 'ALL', path, re); | ||
@@ -40,3 +40,3 @@ return function *(next){ | ||
// miss | ||
yield* next; | ||
return yield* next; | ||
} | ||
@@ -43,0 +43,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/route", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "koa", |
@@ -5,3 +5,3 @@ # koa-route | ||
``` | ||
```js | ||
var _ = require('koa-route'); | ||
@@ -8,0 +8,0 @@ app.use(_.get('/pets', pets.list)); |
4088