logger4node
Advanced tools
Comparing version 1.0.22 to 1.0.23
{ | ||
"name": "logger4node", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,8 +25,9 @@ "use strict"; | ||
}; | ||
const ignoreFolders = [ | ||
`${process.cwd()}/src/logger.ts`, | ||
`${process.cwd()}/src/logger4-node.ts`, | ||
`${process.cwd()}/node_modules/src/logger.ts`, | ||
`${process.cwd()}/node_modules/src/logger4-node.ts`, | ||
]; | ||
const currentFolder = __dirname; | ||
// const ignoreFolders = [ | ||
// `${process.cwd()}/src/logger.ts`, | ||
// `${process.cwd()}/src/logger4-node.ts`, | ||
// `${process.cwd()}/node_modules/src/logger.ts`, | ||
// `${process.cwd()}/node_modules/src/logger4-node.ts`, | ||
// ]; | ||
function generateMatchAndDoesNotMatchArray(input = '') { | ||
@@ -117,4 +118,5 @@ const positive = []; | ||
const logSource = stack.split('\n') | ||
.find((line) => !ignoreFolders.some((folder) => line.includes(folder)) | ||
&& line.trim().startsWith('at ')); | ||
// .find((line): boolean => !ignoreFolders.some((folder: string): boolean => line.includes(folder)) | ||
// && line.trim().startsWith('at ')); | ||
.find((line) => !line.includes(currentFolder) && line.trim().startsWith('at ')); | ||
if (!logSource) { | ||
@@ -121,0 +123,0 @@ return ''; |
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
88574
972