Update supports-colors.js

This commit is contained in:
paladox 2018-02-14 00:58:15 +00:00 committed by GitHub
parent a0bb404163
commit 493733638d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ var hasFlag = require('./has-flag.js');
var env = process.env; var env = process.env;
let forceColor; var forceColor;
if (hasFlag('no-color') || if (hasFlag('no-color') ||
hasFlag('no-colors') || hasFlag('no-colors') ||
hasFlag('color=false')) { hasFlag('color=false')) {
@ -50,7 +50,7 @@ function translateLevel(level) {
} }
return { return {
level, level: level,
hasBasic: true, hasBasic: true,
has256: level >= 2, has256: level >= 2,
has16m: level >= 3 has16m: level >= 3