mirror of
https://github.com/debug-js/debug.git
synced 2026-01-25 16:42:28 +00:00
fix colors with supports-color@5
This commit is contained in:
parent
ab5083f68a
commit
285dfe10a5
@ -24,7 +24,7 @@ exports.colors = [ 6, 2, 3, 4, 5, 1 ];
|
||||
|
||||
try {
|
||||
var supportsColor = require('supports-color');
|
||||
if (supportsColor && supportsColor.level >= 2) {
|
||||
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
||||
exports.colors = [
|
||||
20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68,
|
||||
69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user