Skip to content

Commit 32906a2

Browse files
committed
Merge develop
2 parents 1e0c77c + 42ed947 commit 32906a2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ node_js:
1313
- "0.8"
1414
script:
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

lib/colors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)