Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge develop
  • Loading branch information
DABH committed May 5, 2018
2 parents 1e0c77c + 42ed947 commit 32906a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -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_modules/.bin/eslint . "
- npm test
2 changes: 1 addition & 1 deletion lib/colors.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion 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",
Expand Down

0 comments on commit 32906a2

Please sign in to comment.