mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-29 11:00:11 +00:00
Update supports-colors.js
This commit is contained in:
parent
493733638d
commit
2c38a68a7c
@ -76,7 +76,7 @@ function supportsColor(stream) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const min = forceColor ? 1 : 0;
|
var min = forceColor ? 1 : 0;
|
||||||
|
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
// Node.js 7.5.0 is the first version of Node.js to include a patch to
|
// Node.js 7.5.0 is the first version of Node.js to include a patch to
|
||||||
@ -143,7 +143,7 @@ function supportsColor(stream) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getSupportLevel(stream) {
|
function getSupportLevel(stream) {
|
||||||
const level = supportsColor(stream);
|
var level = supportsColor(stream);
|
||||||
return translateLevel(level);
|
return translateLevel(level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user