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 1.2.0 to 1.2.1

6

index.js

@@ -23,2 +23,3 @@ "use strict";

COLOR_FN_MAP.set("default", (x) => "\x1b[39m" + x + "\x1b[39m");
COLOR_FN_MAP.set("blink", (x) => "\x1b[5m" + x + "\x1b[0m");
const INDENT_WIDTH = 4;

@@ -44,4 +45,7 @@ let INDENT = 0;

}
else if (arg === undefined) {
return "undefined";
}
else {
return arg.toString();
return arg;
}

@@ -48,0 +52,0 @@ }

@@ -27,2 +27,4 @@ "use strict";

COLOR_FN_MAP.set("blink", (x) => "\x1b[5m" + x + "\x1b[0m");
const INDENT_WIDTH: number = 4;

@@ -58,4 +60,6 @@ let INDENT: number = 0;

return util.inspect(arg, { colors: true });
} else if (arg === undefined) {
return "undefined";
} else {
return arg.toString();
return arg;
}

@@ -62,0 +66,0 @@ }

2

package.json
{
"name": "beautiful-log",
"version": "1.2.0",
"version": "1.2.1",
"description": "Because logging should be beautiful.",

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

@@ -42,2 +42,3 @@ "use strict";

log.log(data);
log.log(undefined, null, [], "", false);
log.divider("TESTING COLOR TAGS");

@@ -44,0 +45,0 @@ log.log("<gray><blue>beautiful-log</blue> can be used to higlight important <magenta>keywords</magenta> that may be relevant to <red>errors</red>.</gray>");

@@ -49,3 +49,5 @@ "use strict";

log.log(undefined, null, [], "", false);
log.divider("TESTING COLOR TAGS");

@@ -52,0 +54,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