egg-logger
Advanced tools
Comparing version 1.6.1 to 1.6.2
1.6.2 / 2018-04-08 | ||
================== | ||
**fixes** | ||
* [[`4669bbe`](http://github.com/eggjs/egg-logger/commit/4669bbeadded1901320285de0725b3b77da5d52d)] - fix: inspect use breakLength: Infinity (#23) (Yiyu He <<dead_horse@qq.com>>) | ||
1.6.1 / 2017-12-27 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -157,11 +157,3 @@ 'use strict'; | ||
function inspect(key, value) { | ||
if (value && typeof value === 'object') { | ||
// force in one line | ||
value = util.inspect(value) | ||
.replace(/^\s+/mg, '') | ||
.replace(/\n/g, ' '); | ||
} else { | ||
value = util.inspect(value); | ||
} | ||
return key + ': ' + value; | ||
return `${key}: ${util.inspect(value, { breakLength: Infinity })}`; | ||
} |
{ | ||
"name": "egg-logger", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "egg logger", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37668
969