Socket
Socket
Sign inDemoInstall

supports-color

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supports-color - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

18

index.js

@@ -44,10 +44,2 @@ 'use strict';

if ('CI' in env) {
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env)) {
return 1;
}
return 0;
}
if (process.stdout && !process.stdout.isTTY) {

@@ -75,2 +67,10 @@ return 0;

if ('CI' in env) {
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
return 1;
}
return 0;
}
if ('TEAMCITY_VERSION' in env) {

@@ -94,3 +94,3 @@ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;

if (/^(screen|xterm)-256(?:color)?/.test(env.TERM)) {
if (/-256(color)?$/i.test(env.TERM)) {
return 2;

@@ -97,0 +97,0 @@ }

{
"name": "supports-color",
"version": "4.3.0",
"version": "4.4.0",
"description": "Detect whether a terminal supports color",

@@ -5,0 +5,0 @@ "license": "MIT",

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