supports-color
Advanced tools
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6051