ansi-styles 6.2.0 → 6.2.1

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.
Files changed (2) hide show
  1. package/index.js +5 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -65,6 +65,11 @@ const styles = {
65
65
  },
66
66
  };
67
67
 
68
+ export const modifierNames = Object.keys(styles.modifier);
69
+ export const foregroundColorNames = Object.keys(styles.color);
70
+ export const backgroundColorNames = Object.keys(styles.bgColor);
71
+ export const colorNames = [...foregroundColorNames, ...backgroundColorNames];
72
+
68
73
  function assembleStyles() {
69
74
  const codes = new Map();
70
75
 
@@ -216,8 +221,3 @@ function assembleStyles() {
216
221
  const ansiStyles = assembleStyles();
217
222
 
218
223
  export default ansiStyles;
219
-
220
- export const modifierNames = Object.keys(styles.modifier);
221
- export const foregroundColorNames = Object.keys(styles.color);
222
- export const backgroundColorNames = Object.keys(styles.bgColor);
223
- export const colorNames = [...foregroundColorNames, ...backgroundColorNames];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ansi-styles",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "ANSI escape codes for styling strings in the terminal",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/ansi-styles",