Merge 384588ac3c into 011dd0421e
This commit is contained in:
commit
07430da81a
2 changed files with 2 additions and 2 deletions
2
index.js
2
index.js
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": "*",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue