Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

logger4node

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logger4node - npm Package Compare versions

Comparing version 1.0.22 to 1.0.23

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc