Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View File

@ -0,0 +1,24 @@
module.exports = function formatArgs(args) {
var debugApi = args.debugApi;
var options = args.options;
if(options.formatArgs == true){
/*
fixing it so we don't get redundant timestamps on prod
https://github.com/visionmedia/debug/issues/161
*/
debugApi.formatArgs = function() {
if (this.useColors)
arguments[0] = ' \u001b[9' + this.color + 'm' + this.namespace + ' ' + '\u001b[0m' + arguments[0];
else
arguments[0] = ' ' + this.namespace + ' ' + arguments[0];
return arguments;
}
}
else if ( typeof options.formatArgs === 'function'){
debugApi.formatArgs = options.formatArgs;
}
return debugApi;
}