Comparing version 0.4.0 to 0.4.1
@@ -24,3 +24,3 @@ | ||
exports.version = '0.4.0'; | ||
exports.version = '0.4.1'; | ||
@@ -60,3 +60,3 @@ /** | ||
var isatty = tty.isatty(1); | ||
var isatty = tty.isatty(2); | ||
@@ -113,3 +113,3 @@ /** | ||
console.log.apply(this, arguments); | ||
console.error.apply(this, arguments); | ||
} | ||
@@ -120,6 +120,8 @@ | ||
+ ' ' + name + ' ' + fmt; | ||
console.log.apply(this, arguments); | ||
console.error.apply(this, arguments); | ||
} | ||
return isatty ? colored : plain; | ||
return isatty | ||
? colored | ||
: plain; | ||
} |
{ | ||
"name": "debug" | ||
, "version": "0.4.0" | ||
, "version": "0.4.1" | ||
, "description": "small debugging utility" | ||
@@ -5,0 +5,0 @@ , "keywords": ["debug", "log", "debugger"] |
10045
203