Update "supports-color" to v5.1.0

This commit is contained in:
Nathan Rajlich 2017-12-27 18:11:42 -08:00
parent a8c60e37fa
commit 384588ac3c
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ function applyOptions(obj, options) {
options = options || {};
// Detect level if not set manually
const scLevel = supportsColor ? supportsColor.level : 0;
const scLevel = supportsColor.stdout ? supportsColor.stdout.level : 0;
obj.level = options.level === undefined ? scLevel : options.level;
obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0;
}

View file

@ -43,7 +43,7 @@
"dependencies": {
"ansi-styles": "^3.1.0",
"escape-string-regexp": "^1.0.5",
"supports-color": "^4.0.0"
"supports-color": "^5.1.0"
},
"devDependencies": {
"ava": "*",