Skip to content

Commit

Permalink
Move strip ansi from message out of the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 29, 2016
1 parent 1f389bf commit b179882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/Default.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
humanizeMs = require 'ms'
chalk = require 'chalk'
formatUtil = require './Format'
stripAnsi = require 'strip-ansi'
CONST = require './Constants'
repeat = require 'repeat-string'

Expand Down Expand Up @@ -92,7 +91,7 @@ module.exports =
this

colorizeMessage: (type, message) ->
return stripAnsi message unless @color
return message unless @color
lineColor = CONST.LINE_COLOR
return @colorize lineColor, message if message.indexOf '=' is -1
typeColor = @types[type].color
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"coffee-script": "~1.11.0",
"lodash.defaults": "~4.2.0",
"ms": "~0.7.1",
"repeat-string": "~1.5.4",
"strip-ansi": "~3.0.1"
"repeat-string": "~1.5.4"
},
"devDependencies": {
"acho-skin-cli": "latest",
Expand Down

0 comments on commit b179882

Please sign in to comment.