@strapi/logger
Advanced tools
Comparing version 0.0.0-experimental.e02b4637b3906c6d31048d00600d09a23a0edc3d to 0.0.0-experimental.e033e9b9c89837331a60b1b6a2c21a779fffc801
@@ -5,2 +5,3 @@ export { default as prettyPrint } from './pretty-print'; | ||
export { default as excludeColors } from './exclude-colors'; | ||
export { default as detailedLogs } from './detailed-log'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -68,4 +68,16 @@ "use strict"; | ||
}); | ||
const detailedLog = winston.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, | ||
"" | ||
); | ||
}); | ||
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
__proto__: null, | ||
detailedLogs: detailedLog, | ||
excludeColors, | ||
@@ -72,0 +84,0 @@ levelFilter, |
{ | ||
"name": "@strapi/logger", | ||
"version": "0.0.0-experimental.e02b4637b3906c6d31048d00600d09a23a0edc3d", | ||
"version": "0.0.0-experimental.e033e9b9c89837331a60b1b6a2c21a779fffc801", | ||
"description": "Strapi's logger", | ||
@@ -31,3 +31,3 @@ "homepage": "https://strapi.io", | ||
"files": [ | ||
"dist/" | ||
"./dist" | ||
], | ||
@@ -46,5 +46,5 @@ "scripts": { | ||
"devDependencies": { | ||
"@strapi/pack-up": "5.0.0", | ||
"eslint-config-custom": "0.0.0-experimental.e02b4637b3906c6d31048d00600d09a23a0edc3d", | ||
"tsconfig": "0.0.0-experimental.e02b4637b3906c6d31048d00600d09a23a0edc3d" | ||
"@strapi/pack-up": "4.23.0", | ||
"eslint-config-custom": "0.0.0-experimental.e033e9b9c89837331a60b1b6a2c21a779fffc801", | ||
"tsconfig": "0.0.0-experimental.e033e9b9c89837331a60b1b6a2c21a779fffc801" | ||
}, | ||
@@ -55,3 +55,3 @@ "engines": { | ||
}, | ||
"gitHead": "e02b4637b3906c6d31048d00600d09a23a0edc3d" | ||
"gitHead": "e033e9b9c89837331a60b1b6a2c21a779fffc801" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30080
28
288
0