@oclif/core
Advanced tools
Comparing version 4.0.0-beta.16 to 4.0.0-beta.17
@@ -8,4 +8,4 @@ "use strict"; | ||
const ansis_1 = __importDefault(require("ansis")); | ||
const supports_color_1 = require("supports-color"); | ||
const theme_1 = require("../interfaces/theme"); | ||
const supports_color_1 = require("./supports-color"); | ||
function isStandardAnsi(color) { | ||
@@ -23,6 +23,4 @@ return theme_1.STANDARD_ANSI.includes(color); | ||
return text; | ||
if (!supports_color_1.stdout) | ||
if (!(0, supports_color_1.supportsColor)()) | ||
return text; | ||
if (!supports_color_1.stderr) | ||
return text; | ||
if (isStandardAnsi(color)) | ||
@@ -29,0 +27,0 @@ return ansis_1.default[color](text); |
{ | ||
"name": "@oclif/core", | ||
"description": "base library for oclif CLIs", | ||
"version": "4.0.0-beta.16", | ||
"version": "4.0.0-beta.17", | ||
"author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/core/issues", |
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
399428
161
10062