colors 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/colors.js +5 -1
- package/package.json +1 -1
package/lib/colors.js
CHANGED
@@ -105,7 +105,11 @@ function applyStyle() {
|
|
105
105
|
var args = Array.prototype.slice.call(arguments);
|
106
106
|
|
107
107
|
var str = args.map(function(arg) {
|
108
|
-
|
108
|
+
if (arg !== undefined && arg.constructor === String) {
|
109
|
+
return arg;
|
110
|
+
} else {
|
111
|
+
return util.inspect(arg);
|
112
|
+
}
|
109
113
|
}).join(' ');
|
110
114
|
|
111
115
|
if (!colors.enabled || !str) {
|
package/package.json
CHANGED