Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

Commit

Permalink
Updated dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Aug 20, 2016
1 parent 0f7eb7a commit 4c5a781
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file starting from version **v0.10.0**.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.8.7] - 2016-08-20

### change

- Updated dependencies.
- clear up code.

## [1.8.6] - 2016-08-17

### change
Expand Down
3 changes: 1 addition & 2 deletions bench/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ while (n--) {
})
}

var body = new Buffer('Hello World')
app.use(function (req, res) {
res.setHeader('Content-Type', 'text/plain; charset=utf-8')
res.end(body)
res.end('Hello World')
})

app.listen(port)
3 changes: 1 addition & 2 deletions bench/koa.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ while (n--) {
})
}

var body = new Buffer('Hello World')
app.use(function * () {
this.body = body
this.body = 'Hello World'
})

app.listen(port)
3 changes: 1 addition & 2 deletions bench/toa.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ while (n--) {
app.use(function * () {})
}

var body = new Buffer('Hello World')
app.use(function * () {
this.body = body
this.body = 'Hello World'
})

app.listen(port)
1 change: 0 additions & 1 deletion lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ module.exports = {
* @api public
*/
get socket () {
// TODO: TLS
return this.req.socket
},

Expand Down
2 changes: 1 addition & 1 deletion lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
* @api public
*/
get socket () {
return this.ctx.req.socket
return this.req.socket
},

/**
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"authors": [
"Yan Qing <admin@zensh.com>"
],
"version": "1.8.6",
"version": "1.8.7",
"main": "lib/application.js",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -40,7 +40,7 @@
"mime-types": "~2.1.11",
"parseurl": "~1.3.1",
"statuses": "~1.3.0",
"thunks": "^4.4.3",
"thunks": "^4.5.0",
"type-is": "~1.6.13",
"vary": "~1.1.0"
},
Expand All @@ -56,7 +56,7 @@
"supertest": "^2.0.0",
"test-console": "^1.0.0",
"through2": "^2.0.1",
"tman": "^1.0.5",
"tman": "^1.0.6",
"vinyl": "^1.2.0",
"vinyl-fs": "^2.4.3"
},
Expand Down

0 comments on commit 4c5a781

Please sign in to comment.