supports-color
Advanced tools
Comparing version 5.2.0 to 5.3.0
10
index.js
@@ -51,2 +51,6 @@ 'use strict'; | ||
if (stream && !stream.isTTY && forceColor !== true) { | ||
// VS code debugger doesn't have isTTY set | ||
if (env.VSCODE_PID) { | ||
return 1; | ||
} | ||
return 0; | ||
@@ -88,2 +92,6 @@ } | ||
if (env.COLORTERM === 'truecolor') { | ||
return 3; | ||
} | ||
if ('TERM_PROGRAM' in env) { | ||
@@ -95,4 +103,2 @@ const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); | ||
return version >= 3 ? 3 : 2; | ||
case 'Hyper': | ||
return 3; | ||
case 'Apple_Terminal': | ||
@@ -99,0 +105,0 @@ return 2; |
{ | ||
"name": "supports-color", | ||
"version": "5.2.0", | ||
"version": "5.3.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
6779
116