8000 fix colors with `supports-color@5` · debug-js/debug@285dfe1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 285dfe1

Browse files
committed
fix colors with supports-color@5
1 parent ab5083f commit 285dfe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.colors = [ 6, 2, 3, 4, 5, 1 ];
2424

2525
try {
2626
var supportsColor = require('supports-color');
27-
if (supportsColor && supportsColor.level >= 2) {
27+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
2828
exports.colors = [
2929
20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68,
3030
69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,

0 commit comments

Comments
 (0)
0