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.
Files changed (2) hide show
  1. package/lib/colors.js +5 -1
  2. 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
- return arg.constructor === String ? arg : util.inspect(arg);
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "colors",
3
3
  "description": "get colors in your node.js console",
4
- "version": "1.2.4",
4
+ "version": "1.2.5",
5
5
  "author": "Marak Squires",
6
6
  "homepage": "https://github.com/Marak/colors.js",
7
7
  "bugs": "https://github.com/Marak/colors.js/issues",