File tree Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ declare namespace ansiStyles {
12
12
}
13
13
14
14
interface ColorBase {
15
- ansi256 ( code : number ) : string ;
16
-
17
- ansi16m ( red : number , green : number , blue : number ) : string ;
18
-
19
15
/**
20
16
The ANSI terminal control sequence for ending this color.
21
17
*/
22
18
readonly close : string ;
19
+
20
+ ansi256 ( code : number ) : string ;
21
+
22
+ ansi16m ( red : number , green : number , blue : number ) : string ;
23
23
}
24
24
25
25
interface Modifier {
Original file line number Diff line number Diff line change 44
44
" text"
45
45
],
46
46
"devDependencies" : {
47
- "@types/color-convert" : " ^1.9.0" ,
48
- "ava" : " ^2.3.0" ,
47
+ "ava" : " ^2.4.0" ,
49
48
"svg-term-cli" : " ^2.1.1" ,
50
- "tsd" : " ^0.11 .0" ,
51
- "xo" : " ^0.25.3 "
49
+ "tsd" : " ^0.14 .0" ,
50
+ "xo" : " ^0.37.1 "
52
51
}
53
52
}
Original file line number Diff line number Diff line change 1
1
import test from 'ava' ;
2
- import style from '..' ;
2
+ import style from '../index.js ' ;
3
3
4
4
test ( 'return ANSI escape codes' , t => {
5
5
t . is ( style . green . open , '\u001B[32m' ) ;
@@ -20,11 +20,11 @@ test('groups should not be enumerable', t => {
20
20
} ) ;
21
21
22
22
test ( 'don\'t pollute other objects' , t => {
23
- const obj1 = require ( '..' ) ;
24
- const obj2 = require ( '..' ) ;
23
+ const object1 = require ( '..' ) ;
24
+ const object2 = require ( '..' ) ;
25
25
26
- obj1 . foo = true ;
27
- t . not ( obj1 . foo , obj2 . foo ) ;
26
+ object1 . foo = true ;
27
+ t . not ( object1 . foo , object2 . foo ) ;
28
28
} ) ;
29
29
30
30
test ( 'support conversion to ansi (256 colors)' , t => {
You can’t perform that action at this time.
0 commit comments