From 2c38a68a7c3038848bc5618b11472a305142c643 Mon Sep 17 00:00:00 2001 From: paladox Date: Wed, 14 Feb 2018 01:02:05 +0000 Subject: [PATCH] Update supports-colors.js --- lib/system/supports-colors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/system/supports-colors.js b/lib/system/supports-colors.js index 68034fc..d2b02a3 100644 --- a/lib/system/supports-colors.js +++ b/lib/system/supports-colors.js @@ -76,7 +76,7 @@ function supportsColor(stream) { return 0; } - const min = forceColor ? 1 : 0; + var min = forceColor ? 1 : 0; if (process.platform === 'win32') { // 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) { - const level = supportsColor(stream); + var level = supportsColor(stream); return translateLevel(level); }