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-2 to 2.0.0-3

7

dist/main/beautiful-log.d.ts

@@ -1,7 +0,2 @@

export declare enum Mode {
DISABLED = "disabled",
CONSOLE = "console",
IPC = "ipc",
}
export declare function init(appName: string, mode: Mode): void;
export declare function init(appName: string, mode: "disabled" | "console" | "ipc"): void;
export declare function make(loggerName: string): CallableLogger;

@@ -8,0 +3,0 @@ export interface CallableLogger extends Logger {

14

dist/main/beautiful-log.js

@@ -12,8 +12,2 @@ "use strict";

let loggers = [];
var Mode;
(function (Mode) {
Mode["DISABLED"] = "disabled";
Mode["CONSOLE"] = "console";
Mode["IPC"] = "ipc";
})(Mode = exports.Mode || (exports.Mode = {}));
function init(appName, mode) {

@@ -25,3 +19,3 @@ if (started) {

switch (mode) {
case Mode.IPC:
case "ipc":
ipc.config.silent = true;

@@ -31,3 +25,3 @@ ipc.connectTo(appName);

break;
case Mode.CONSOLE:
case "console":
let { create, message } = output_1.make();

@@ -45,3 +39,3 @@ broadcast = (event, data) => {

break;
case Mode.DISABLED:
case "disabled":
broadcast = (event, data) => undefined;

@@ -66,3 +60,3 @@ break;

constructor(name) {
this.silent = true;
this.silent = false;
this.name = name;

@@ -69,0 +63,0 @@ this.colormap = new Map();

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

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

@@ -14,9 +14,3 @@ "use strict";

export enum Mode {
DISABLED = "disabled",
CONSOLE = "console",
IPC = "ipc"
}
export function init(appName: string, mode: Mode) {
export function init(appName: string, mode: "disabled" | "console" | "ipc") {
if (started) {

@@ -29,3 +23,3 @@ throw new Error("Can't init the logger more than once.");

switch (mode) {
case Mode.IPC:
case "ipc":
ipc.config.silent = true;

@@ -36,3 +30,3 @@ ipc.connectTo(appName);

case Mode.CONSOLE:
case "console":
let { create, message } = makeOutput();

@@ -47,3 +41,3 @@ broadcast = (event, data) => {

case Mode.DISABLED:
case "disabled":
broadcast = (event, data) => undefined; // noop

@@ -82,3 +76,3 @@ break;

public constructor(name: string) {
this.silent = true;
this.silent = false;
this.name = name;

@@ -85,0 +79,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