From ab42ad9d846447c2392b6adbce4c65c062745368 Mon Sep 17 00:00:00 2001 From: DABH Date: Wed, 2 May 2018 12:28:19 -0700 Subject: [PATCH 1/4] only run eslint with newer node versions --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cc939e9..1e02b1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,5 +13,6 @@ node_js: - "0.8" script: - npm install - - "./node_modules/.bin/eslint . " + - npm install if-node-version + - if-node-version ">=4" node "./node_modules/.bin/eslint . " - npm test From ffeba270e8732f13eacde27efa8b3b71dce31d27 Mon Sep 17 00:00:00 2001 From: DABH Date: Wed, 2 May 2018 18:44:17 -0700 Subject: [PATCH 2/4] fix --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1e02b1b..d209446 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,5 +14,5 @@ node_js: script: - npm install - npm install if-node-version - - if-node-version ">=4" node "./node_modules/.bin/eslint . " + - if-node-version ">=4" "./node_modules/.bin/eslint . " - npm test From 855e342c9e26ab3d7232506cc42c240b7d800bf1 Mon Sep 17 00:00:00 2001 From: DABH Date: Fri, 4 May 2018 17:53:43 -0700 Subject: [PATCH 3/4] arg is a String object not a string literal (fixes #226) --- lib/colors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/colors.js b/lib/colors.js index 0b97172..db4d851 100644 --- a/lib/colors.js +++ b/lib/colors.js @@ -105,7 +105,7 @@ function applyStyle() { var args = Array.prototype.slice.call(arguments); var str = args.map(function(arg) { - return typeof arg === 'object' ? util.inspect(arg) : arg; + return arg.constructor === String ? arg : util.inspect(arg); }).join(' '); if (!colors.enabled || !str) { From 42ed947036bfaa0b94396e71c692e61bee10a001 Mon Sep 17 00:00:00 2001 From: DABH Date: Fri, 4 May 2018 17:54:13 -0700 Subject: [PATCH 4/4] v1.2.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 47278b0..cccdde4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "colors", "description": "get colors in your node.js console", - "version": "1.2.3", + "version": "1.2.4", "author": "Marak Squires", "homepage": "https://github.com/Marak/colors.js", "bugs": "https://github.com/Marak/colors.js/issues",