@strapi/logger
Advanced tools
Comparing version 0.0.0-experimental.545ccead2ee1717bbc7ab950455dbb0ddb9924a3 to 0.0.0-experimental.550e739e36d7678bd8317b48acab2f24b1f4dcd6
@@ -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 |
@@ -5,4 +5,3 @@ "use strict"; | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) | ||
return e; | ||
if (e && e.__esModule) return e; | ||
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } }); | ||
@@ -69,4 +68,16 @@ if (e) { | ||
}); | ||
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, | ||
@@ -73,0 +84,0 @@ levelFilter, |
{ | ||
"name": "@strapi/logger", | ||
"version": "0.0.0-experimental.545ccead2ee1717bbc7ab950455dbb0ddb9924a3", | ||
"version": "0.0.0-experimental.550e739e36d7678bd8317b48acab2f24b1f4dcd6", | ||
"description": "Strapi's logger", | ||
@@ -45,11 +45,11 @@ "homepage": "https://strapi.io", | ||
"devDependencies": { | ||
"@strapi/pack-up": "5.0.0", | ||
"eslint-config-custom": "0.0.0-experimental.545ccead2ee1717bbc7ab950455dbb0ddb9924a3", | ||
"tsconfig": "0.0.0-experimental.545ccead2ee1717bbc7ab950455dbb0ddb9924a3" | ||
"@strapi/pack-up": "5.0.2", | ||
"eslint-config-custom": "0.0.0-experimental.550e739e36d7678bd8317b48acab2f24b1f4dcd6", | ||
"tsconfig": "0.0.0-experimental.550e739e36d7678bd8317b48acab2f24b1f4dcd6" | ||
}, | ||
"engines": { | ||
"node": ">=18.0.0 <=20.x.x", | ||
"node": ">=18.0.0 <=22.x.x", | ||
"npm": ">=6.0.0" | ||
}, | ||
"gitHead": "545ccead2ee1717bbc7ab950455dbb0ddb9924a3" | ||
"gitHead": "550e739e36d7678bd8317b48acab2f24b1f4dcd6" | ||
} |
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
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
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
30107
28
287
0