Socket
Socket
Sign inDemoInstall

egg-logger

Package Overview
Dependencies
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-logger - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

6

History.md
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 @@ ==================

10

lib/utils.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc