colors 1.2.3 → 1.2.4

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.
Files changed (2) hide show
  1. package/lib/colors.js +1 -1
  2. package/package.json +1 -1
package/lib/colors.js CHANGED
@@ -105,7 +105,7 @@ function applyStyle() {
105
105
  var args = Array.prototype.slice.call(arguments);
106
106
 
107
107
  var str = args.map(function(arg) {
108
- return typeof arg === 'object' ? util.inspect(arg) : arg;
108
+ return arg.constructor === String ? arg : util.inspect(arg);
109
109
  }).join(' ');
110
110
 
111
111
  if (!colors.enabled || !str) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "colors",
3
3
  "description": "get colors in your node.js console",
4
- "version": "1.2.3",
4
+ "version": "1.2.4",
5
5
  "author": "Marak Squires",
6
6
  "homepage": "https://github.com/Marak/colors.js",
7
7
  "bugs": "https://github.com/Marak/colors.js/issues",