@rentspree/express-elasticsearch-logger
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -69,2 +69,9 @@ /*! | ||
'took' | ||
], | ||
error: [ | ||
'message', | ||
'stack', | ||
'type', | ||
'name', | ||
'code' | ||
] | ||
@@ -245,3 +252,5 @@ }, | ||
Object.getOwnPropertyNames(res.error).forEach(function (key) { | ||
request.error[key] = res.error[key]; | ||
if (config.whitelist.error.includes(key)) { | ||
request.error[key] = res.error[key]; | ||
} | ||
}); | ||
@@ -248,0 +257,0 @@ } |
{ | ||
"name": "@rentspree/express-elasticsearch-logger", | ||
"description": "Log Express app requests to ElasticSearch.", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"homepage": "https://github.com/rentspree/express-elasticsearch-logger", | ||
@@ -68,2 +68,3 @@ "author": { | ||
"npm-watch": "^0.3.0", | ||
"sinon": "^7.0.0", | ||
"supertest": "^1.2.0", | ||
@@ -70,0 +71,0 @@ "vinyl-buffer": "^1.0.0", |
19726
383
21