Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@buzuli/color

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

@buzuli/color - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

7

lib/color.js

@@ -5,6 +5,7 @@ const chalk = require('chalk')

const defaultColorLevel = 3
const buzLevel = process.env.BUZULI_COLOR_LEVEL
const colorLevel = Number(buzLevel) || undefined
const level = (colorLevel == null) ? colorLevel : (colorLevel < 0) ? 0 : (colorLevel > 3) ? 3 : colorLevel
const chalkContext = new chalk.constructor({ level })
const colorLevel = Number(buzLevel)
const level = isNaN(colorLevel) ? defaultColorLevel : (colorLevel <= 0) ? 0 : (colorLevel > 3) ? 3 : colorLevel
const chalkContext = new chalk.Instance({ level })

@@ -11,0 +12,0 @@ const light = process.env.BUZULI_COLOR_LIGHT

{
"name": "@buzuli/color",
"version": "2.2.2",
"version": "2.2.3",
"description": "Preferred colors for @buzuli's projects",

@@ -22,9 +22,9 @@ "main": "lib/color.js",

"dependencies": {
"chalk": "^2.4.2",
"node-emoji": "^1.10.0"
"chalk": "^4.1.2",
"node-emoji": "^1.11.0"
},
"devDependencies": {
"standard": "^13.1.0",
"tap": "^14.4.3"
"standard": "^16.0.3",
"tap": "^15.0.9"
}
}
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