heroku-cli-util
Advanced tools
Comparing version 5.6.0 to 5.6.1
@@ -7,2 +7,8 @@ 'use strict'; | ||
function concatArguments(args) { | ||
return Array.prototype.map.call(args, function(arg) { | ||
return arg + ''; | ||
}).join(' '); | ||
} | ||
/** | ||
@@ -15,3 +21,3 @@ * log is a wrapper for console.log() but can be mocked | ||
if (mocking) { | ||
cli.stdout += Array.prototype.slice.call(arguments, 0).join() + '\n'; | ||
cli.stdout += concatArguments(arguments) + '\n'; | ||
} else { | ||
@@ -29,3 +35,3 @@ console.log.apply(null, arguments); | ||
if (mocking) { | ||
cli.stdout += Array.prototype.slice.call(arguments, 0).join(); | ||
cli.stdout += concatArguments(arguments); | ||
} else { | ||
@@ -50,3 +56,3 @@ process.stdout.write.apply(process.stdout, arguments); | ||
if (mocking) { | ||
cli.stderr += Array.prototype.slice.call(arguments, 0).join() + '\n'; | ||
cli.stderr += concatArguments(arguments) + '\n'; | ||
} else { | ||
@@ -64,3 +70,3 @@ console.error.apply(null, arguments); | ||
if (mocking) { | ||
cli.stderr += Array.prototype.slice.call(arguments, 0).join(); | ||
cli.stderr += concatArguments(arguments); | ||
} else { | ||
@@ -67,0 +73,0 @@ process.stderr.write.apply(process.stderr, arguments); |
@@ -21,3 +21,3 @@ 'use strict'; | ||
let colDefaults = { | ||
format: value => value.toString(), | ||
format: value => value ? value.toString() : '', | ||
width: 0, | ||
@@ -24,0 +24,0 @@ label: function() { return this.key.toString(); }, |
{ | ||
"name": "heroku-cli-util", | ||
"version": "5.6.0", | ||
"version": "5.6.1", | ||
"description": "Set of helpful CLI utilities", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71017
1716