log-segment
Advanced tools
Comparing version 1.7.4 to 1.7.5
@@ -364,6 +364,6 @@ 'use strict' | ||
const __color = function (segment, message) { | ||
if (chalk[__segments[segment].color] && | ||
__segments[segment] && | ||
if (__segments[segment] && | ||
__segments[segment].color && | ||
__segments[segment].mode === mode.CONSOLE) { | ||
__segments[segment].mode === mode.CONSOLE && | ||
chalk[__segments[segment].color]) { | ||
return chalk[__segments[segment].color](message) | ||
@@ -370,0 +370,0 @@ } |
{ | ||
"name": "log-segment", | ||
"version": "1.7.4", | ||
"version": "1.7.5", | ||
"description": "logger with partition", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |