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 6.0.4 to 6.1.1

6

lib/index.js
/**
* Print ansi-colored message to stdout/stderr.
* @version 6.0.4
* @version 6.1.1
* @module colorprint
* @author {@link http://okunishitaka.com|Taka Okunishi
* @see https://github.com/okunishinishi/node-colorprint#readme
* @requires {@link https://www.npmjs.org/package/cli-color|cli-color@^1.1.0
* @requires {@link https://www.npmjs.org/package/supports-color|supports-color@^7.0.0
* @requires {@link https://www.npmjs.org/package/cli-color|cli-color@^2.0.0
* @requires {@link https://www.npmjs.org/package/supports-color|supports-color@^7.1.0
*/

@@ -10,0 +10,0 @@

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

@@ -29,4 +29,4 @@ "main": "lib",

"dependencies": {
"cli-color": "^1.1.0",
"supports-color": "^7.0.0"
"cli-color": "^2.0.0",
"supports-color": "^7.1.0"
},

@@ -33,0 +33,0 @@ "devDependencies": {

/**
* Print ansi-colored message to stdout/stderr.
* @version 6.0.4
* @version 6.1.1
* @module colorprint
* @author {@link http://okunishitaka.com|Taka Okunishi
* @see https://github.com/okunishinishi/node-colorprint#readme
* @requires {@link https://www.npmjs.org/package/cli-color|cli-color@^1.1.0
* @requires {@link https://www.npmjs.org/package/supports-color|supports-color@^7.0.0
* @requires {@link https://www.npmjs.org/package/cli-color|cli-color@^2.0.0
* @requires {@link https://www.npmjs.org/package/supports-color|supports-color@^7.1.0
*/

@@ -28,2 +28,2 @@ 'use strict';

module.exports = colorprint;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbIkNvbG9ycHJpbnQiLCJyZX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cmVxdWlyZSgnLi9jb2xvcnByaW50JylcbmNvbnN0IGNsaUNvbG9yID0gcmVxdWlyZSgnY2xpLWNvbG9yJylcbmNvbnN0IGRlZmluZSA9IHJlcXVpcmUoJy4vZGVmaW5lJylcbmNvbnN0IGNyZWF0ZSA9IHJlcXVpcmUoJy4vY3JlYXRlJylcblxubGV0IGNvbG9ycHJpbnQgPSBjcmVhdGUoKVxuT2JqZWN0LmFzc2lnbihjb2xvcnByaW50LCB7XG4gY3JlYXRlLFxuIGRlZmluZSxcbiBDb2xvcnByaW50LFxuIGNvbG9yczogY2xpQ29sb3Jcbn0pXG5cbm1vZHVsZS5leHBvcnRzID0gY29sb3JwcmludFxuIl19

@@ -18,3 +18,3 @@ /**

msg = Array.prototype.slice.call(arguments, 0).map(function (msg) {
if ((0, _typeof2.default)(msg) === 'object') {
if ((0, _typeof2["default"])(msg) === 'object') {
try {

@@ -56,2 +56,2 @@ return JSON.stringify(msg, null, 2);

module.exports = formatMsg;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvcm1hdF9tc2cuanMiXSwibmFtZXMiOlsiZm9ybWF0TXNnIiwibXNnIiwicyIsIkFycmF5IiwicHJvdG90eXBlIiwic2xpY2UiLCJjYWxsIiwiYXJndW1lbnRzIiwibWFwIiwiSlNPTiIsInN0cmluZ2lmeSIsImUiLCJmaWx0ZXIiLCJTdHJpbmciLCJsZW5ndGgiLCJmb3JtYXR0ZWQiLCJzaGlmdCIsInJlcGxhY2UiLCIkMCIsIiQxIiwicGFyc2VJbnQiLCJwYXJzZUZsb2F0IiwiY29uY2F0Iiwiam9pbiIsIm1vZHVsZSIsImV4cG9ydHMiXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7O0FBUUE7QUFFQTs7Ozs7O0FBQ0EsU0FBU0EsU0FBVCxDQUFvQkMsR0FBcEIsRUFBeUI7QUFDdkIsTUFBTUMsQ0FBQyxHQUFHLElBQVY7QU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4gU3RyaW5nKG1zZykpXG4gIGlmICghbXNnLmxlbmd0aCkge1xuICAgIHJldHVybiAnJ1xuICB9XG4gIGxldCBmb3JtYXR0ZWQgPSBtc2cuc2hpZnQoKS5yZXBsYWNlKC8lKC4pL2csICgkMCwgJDEpID0+IHtcbiAgICBzd2l0Y2ggKCQxKSB7XG4gICAgICBjYXNlICdzJzpcbiAgICAgICAgcmV0dXJuIFN0cmluZyhtc2cuc2hpZnQoKSlcbiAgICAgIGNhc2UgJ2QnOlxuICAgICAgICByZXR1cm4gcGFyc2VJbnQobXNnLnNoaWZ0KCkpXG4gICAgICBjYXNlICdmJzpcbiAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQobXNnLnNoaWZ0KCkpXG4gICAgICBkZWZhdWx0OlxuICAgICAgICByZXR1cm4gJDBcbiAgICB9XG4gIH0pXG4gIHJldHVybiBbIGZvcm1hdHRlZCBdLmNvbmNhdChtc2cpLmpvaW4oJyAnKVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IGZvcm1hdE1zZ1xuIl19

@@ -13,2 +13,3 @@ /**

if (process.env.CI) {
done()
return;

@@ -23,2 +24,3 @@ }

if (process.env.CI) {
done()
return;

@@ -25,0 +27,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