ansi-styles 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -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 {
@@ -48,6 +48,13 @@ declare namespace ansiStyles {
48
48
  */
49
49
  readonly underline: CSPair;
50
50
 
51
+ /**
52
+ Make text overline.
53
+
54
+ Supported on VTE-based terminals, the GNOME terminal, mintty, and Git Bash.
55
+ */
56
+ readonly overline: CSPair;
57
+
51
58
  /**
52
59
  Inverse background and foreground colors.
53
60
  */
package/index.js CHANGED
@@ -16,6 +16,7 @@ function assembleStyles() {
16
16
  dim: [2, 22],
17
17
  italic: [3, 23],
18
18
  underline: [4, 24],
19
+ overline: [53, 55],
19
20
  inverse: [7, 27],
20
21
  hidden: [8, 28],
21
22
  strikethrough: [9, 29]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ansi-styles",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "ANSI escape codes for styling strings in the terminal",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/ansi-styles",
@@ -44,10 +44,9 @@
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
  }
package/readme.md CHANGED
@@ -42,6 +42,7 @@ Each style has an `open` and `close` property.
42
42
  - `dim`
43
43
  - `italic` *(Not widely supported)*
44
44
  - `underline`
45
+ - `overline` *Supported on VTE-based terminals, the GNOME terminal, mintty, and Git Bash.*
45
46
  - `inverse`
46
47
  - `hidden`
47
48
  - `strikethrough` *(Not widely supported)*