New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

beautiful-log

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beautiful-log - npm Package Compare versions

Comparing version 2.0.0-3 to 2.0.0-4

2

package.json
{
"name": "beautiful-log",
"version": "2.0.0-3",
"version": "2.0.0-4",
"description": "Because logging should be beautiful.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -11,3 +11,3 @@ "use strict";

let started = false;
let broadcast: (event: string, data: any) => void = undefined;
let broadcast: (event: string, data: any) => void = (event, data) => undefined;
let loggers: Logger[] = [];

@@ -36,3 +36,3 @@

}
}
};
break;

@@ -47,12 +47,11 @@

}
for (let logger of loggers) {
logger.announce();
}
}
export function make(loggerName: string): CallableLogger {
if (!started) {
throw new Error("Can't make a logger until init() is called.");
}
let log = new Logger(loggerName) as CallableLogger;
loggers.push(log);
log.announce();
return log;

@@ -59,0 +58,0 @@ }

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