File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ node_js:
1313 - " 0.8"
1414script :
1515 - npm install
16- - " ./node_modules/.bin/eslint . "
16+ - npm install if-node-version
17+ - if-node-version ">=4" "./node_modules/.bin/eslint . "
1718 - npm test
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ function applyStyle() {
105105 var args = Array . prototype . slice . call ( arguments ) ;
106106
107107 var str = args . map ( function ( arg ) {
108- return typeof arg === 'object' ? util . inspect ( arg ) : arg ;
108+ return arg . constructor === String ? arg : util . inspect ( arg ) ;
109109 } ) . join ( ' ' ) ;
110110
111111 if ( ! colors . enabled || ! str ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " colors" ,
33 "description" : " get colors in your node.js console" ,
4- "version" : " 1.2.3 " ,
4+ "version" : " 1.2.4 " ,
55 "author" : " Marak Squires" ,
66 "homepage" : " https://github.com/Marak/colors.js" ,
77 "bugs" : " https://github.com/Marak/colors.js/issues" ,
You can’t perform that action at this time.
0 commit comments