Skip to content

Commit d051845

Browse files
committed
1.0.1
1 parent 12b0780 commit d051845

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

History.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
1.0.1 / 2013-12-21
3+
==================
4+
5+
* update to new middleware signature

example.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ var app = koa();
55

66
app.use(responseTime());
77

8-
app.use(function(next){
9-
return function *(){
10-
yield next;
11-
yield sleep(150);
12-
this.body = 'Hello';
13-
}
8+
app.use(function *(next){
9+
yield next;
10+
yield sleep(150);
11+
this.body = 'Hello';
1412
});
1513

1614
function sleep(ms) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "koa-response-time",
33
"description": "X-Repsonse-Time middleware for koa",
44
"repository": "koajs/response-time",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"keywords": ["koa", "middleware", "response", "duration"],
77
"files": ["index.js"],
88
"devDependencies": {
9-
"koa": "0.0.1"
9+
"koa": "*"
1010
},
1111
"license": "MIT"
1212
}

0 commit comments

Comments
 (0)