node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { format } from 'winston';
/**
* This will remove the chalk color codes from the message provided.
* It's used to log plain text in the log file
*/ var detailedLog = format.printf(({ message, level, timestamp })=>{
if (typeof message !== 'string') {
return message;
}
const newMessage = `[${timestamp}] ${level}: ${message}`;
return newMessage.replace(// eslint-disable-next-line no-control-regex
/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, '');
});
export { detailedLog as default };
//# sourceMappingURL=detailed-log.mjs.map