Skip to content

Commit

Permalink
Release 2.5.2. LoggingRoute logs null and undefined bodies. Update de…
Browse files Browse the repository at this point in the history
…v dependencies.
  • Loading branch information
jeff committed Nov 13, 2019
1 parent d293a9a commit 237902f
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 60 deletions.
96 changes: 45 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cassava",
"version": "2.5.1",
"version": "2.5.2",
"description": "AWS API Gateway Router",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -37,22 +37,22 @@
},
"homepage": "https://github.com/Giftbit/cassava#readme",
"devDependencies": {
"@types/aws-lambda": "^8.10.33",
"@types/chai": "^4.2.3",
"@types/aws-lambda": "^8.10.35",
"@types/chai": "^4.2.5",
"@types/cookie": "^0.3.3",
"@types/mocha": "^5.2.7",
"@types/negotiator": "^0.6.1",
"@types/node": "^10.12.18",
"@types/uuid": "^3.4.5",
"@types/uuid": "^3.4.6",
"chai": "^4.2.0",
"gh-pages": "^2.1.1",
"mocha": "^6.2.2",
"rimraf": "^3.0.0",
"touch": "^3.1.0",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"typedoc": "^0.15.0",
"typescript": "^3.6.4"
"ts-node": "^8.5.0",
"tslint": "^5.20.1",
"typedoc": "^0.15.1",
"typescript": "^3.7.2"
},
"dependencies": {
"cookie": "^0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/routes/LoggingRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class LoggingRoute implements Route {

responseToString(resp: RouterResponse): string {
let msg = `status=${resp.statusCode || 200}`;
if (!this.options.hideResponseBody && resp.body != null) {
if (!this.options.hideResponseBody) {
msg += ` respbody=${JSON.stringify(resp.body)}`;
}
if (this.options.logResponseHeaders) {
Expand Down

0 comments on commit 237902f

Please sign in to comment.