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

colorprint

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorprint - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

2

lib/index.js
/**
* Print ansi-colored message to stdout/stderr.
* @version 3.0.2
* @version 3.0.3
* @module colorprint

@@ -5,0 +5,0 @@ * @author {@link http://okunishitaka.com|Taka Okunishi

@@ -14,12 +14,14 @@ /**

let s = this;
msg = Array.prototype.slice.call(arguments, 0).map((msg) => {
if (typeof(msg) === 'object') {
try {
return JSON.stringify(msg, null, 4);
} catch (e) {
// Do nothing.
msg = Array.prototype.slice.call(arguments, 0).map(msg => {
if (typeof(msg) === 'object') {
try {
return JSON.stringify(msg, null, 4);
} catch (e) {
// Do nothing.
}
}
}
return msg;
});
return msg;
})
.filter(msg => !!msg)
.map(msg => String(msg));
if (!msg.length) {

@@ -26,0 +28,0 @@ return '';

{
"name": "colorprint",
"version": "3.0.2",
"version": "3.0.3",
"description": "Print ansi-colored message to stdout/stderr.",

@@ -48,2 +48,2 @@ "main": "lib",

}
}
}
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