We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d188464 + dafc16e commit 820f351Copy full SHA for 820f351
node.js
@@ -80,17 +80,21 @@ exports.formatters.o = exports.formatters.O = function(v) {
80
*/
81
82
function formatArgs() {
83
- var args = arguments;
+ var args = [];
84
+ var len = arguments.length;
85
var useColors = this.useColors;
86
var name = this.namespace;
87
+ for (var i = 0; i < len; i++) {
88
+ args.push(arguments[i]);
89
+ }
90
91
if (useColors) {
92
var c = this.color;
93
94
args[0] = ' \u001b[3' + c + ';1m' + name + ' '
95
+ '\u001b[0m'
- + args[0] + '\u001b[3' + c + 'm'
- + ' +' + exports.humanize(this.diff) + '\u001b[0m';
96
+ + args[0];
97
+ args.push('\u001b[3' + c + 'm+' + exports.humanize(this.diff) + '\u001b[0m');
98
} else {
99
args[0] = new Date().toUTCString()
100
+ ' ' + name + ' ' + args[0];
0 commit comments