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

log4js

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log4js - npm Package Compare versions

Comparing version 6.1.1 to 6.1.2

4

CHANGELOG.md
# log4js-node changelog
## 6.1.2
- [Handle out-of-order appender loading](https://github.com/log4js-node/log4js-node/pull/986) - thanks [@mvastola](https://github.com/mvastola)
## 6.1.1

@@ -4,0 +8,0 @@

@@ -43,2 +43,18 @@ const path = require('path');

const appendersLoading = new Set();
const getAppender = (name, config) => {
if (appenders.has(name)) return appenders.get(name);
if (!config.appenders[name]) return false;
if (appendersLoading.has(name)) throw new Error(`Dependency loop detected for appender ${name}.`);
appendersLoading.add(name);
debug(`Creating appender ${name}`);
// eslint-disable-next-line no-use-before-define
const appender = createAppender(name, config);
appendersLoading.delete(name);
appenders.set(name, appender);
return appender;
};
const createAppender = (name, config) => {

@@ -67,3 +83,3 @@ const appenderConfig = config.appenders[name];

layouts,
appender => appenders.get(appender),
appender => getAppender(appender, config),
levels

@@ -76,6 +92,5 @@ );

appenders.clear();
appendersLoading.clear();
Object.keys(config.appenders).forEach((name) => {
debug(`Creating appender ${name}`);
appenders.set(name, createAppender(name, config));
getAppender(name, config);
});

@@ -82,0 +97,0 @@ };

2

package.json
{
"name": "log4js",
"version": "6.1.1",
"version": "6.1.2",
"description": "Port of Log4js to work with node.",

@@ -5,0 +5,0 @@ "homepage": "https://log4js-node.github.io/log4js-node/",

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