@visulima/is-ansi-color-supported 2.3.3 → 2.3.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## @visulima/is-ansi-color-supported [2.3.5](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.3.4...@visulima/is-ansi-color-supported@2.3.5) (2025-11-13)
2
+
3
+ ### Bug Fixes
4
+
5
+ * bump packem, to fix minified version of the code ([2a36ceb](https://github.com/visulima/visulima/commit/2a36ceb09251b0ca1178701a26547a871ed717a7))
6
+
7
+ ## @visulima/is-ansi-color-supported [2.3.4](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.3.3...@visulima/is-ansi-color-supported@2.3.4) (2025-11-12)
8
+
9
+ ### Bug Fixes
10
+
11
+ * update package configurations and TypeScript definitions ([b59aa59](https://github.com/visulima/visulima/commit/b59aa59dac1508216b944f4b917fb4a7ab1f70a4))
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * Add jsr file to all packages for release ([#565](https://github.com/visulima/visulima/issues/565)) ([ec91652](https://github.com/visulima/visulima/commit/ec91652b4e4112adf14ba152c1239a7703ba425a))
16
+ * update license files and clean up TypeScript definitions ([fe668cc](https://github.com/visulima/visulima/commit/fe668cc26de23591d4df54a0954455ebbe31b22d))
17
+
1
18
  ## @visulima/is-ansi-color-supported [2.3.3](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.3.2...@visulima/is-ansi-color-supported@2.3.3) (2025-11-07)
2
19
 
3
20
  ### Bug Fixes
@@ -0,0 +1,4 @@
1
+ export declare const SPACE_MONO = 0;
2
+ export declare const SPACE_16_COLORS = 1;
3
+ export declare const SPACE_256_COLORS = 2;
4
+ export declare const SPACE_TRUE_COLORS = 3;
@@ -0,0 +1,4 @@
1
+ export declare const SPACE_MONO = 0;
2
+ export declare const SPACE_16_COLORS = 1;
3
+ export declare const SPACE_256_COLORS = 2;
4
+ export declare const SPACE_TRUE_COLORS = 3;
@@ -0,0 +1,4 @@
1
+ export declare const SPACE_MONO = 0;
2
+ export declare const SPACE_16_COLORS = 1;
3
+ export declare const SPACE_256_COLORS = 2;
4
+ export declare const SPACE_TRUE_COLORS = 3;
@@ -1,7 +1,5 @@
1
- import { C as ColorSupportLevel } from './packem_shared/color-spaces-D2e_XOjQ.cjs';
2
- export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-D2e_XOjQ.cjs';
3
-
4
- declare const isStdoutColorSupported: () => ColorSupportLevel;
5
- declare const isStderrColorSupported: () => ColorSupportLevel;
6
-
7
- export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
1
+ import type { ColorSupportLevel } from "./types.d.cts";
2
+ export declare const isStdoutColorSupported: () => ColorSupportLevel;
3
+ export declare const isStderrColorSupported: () => ColorSupportLevel;
4
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS } from "./color-spaces.d.cts";
5
+ export type { ColorSupportLevel } from "./types.d.cts";
@@ -1,7 +1,5 @@
1
- import { C as ColorSupportLevel } from './packem_shared/color-spaces-D2e_XOjQ.mjs';
2
- export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-D2e_XOjQ.mjs';
3
-
4
- declare const isStdoutColorSupported: () => ColorSupportLevel;
5
- declare const isStderrColorSupported: () => ColorSupportLevel;
6
-
7
- export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
1
+ import type { ColorSupportLevel } from "./types.d.mts";
2
+ export declare const isStdoutColorSupported: () => ColorSupportLevel;
3
+ export declare const isStderrColorSupported: () => ColorSupportLevel;
4
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS } from "./color-spaces.d.mts";
5
+ export type { ColorSupportLevel } from "./types.d.mts";
@@ -1,7 +1,5 @@
1
- import { C as ColorSupportLevel } from './packem_shared/color-spaces-D2e_XOjQ.js';
2
- export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-D2e_XOjQ.js';
3
-
4
- declare const isStdoutColorSupported: () => ColorSupportLevel;
5
- declare const isStderrColorSupported: () => ColorSupportLevel;
6
-
7
- export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
1
+ import type { ColorSupportLevel } from "./types.d.ts";
2
+ export declare const isStdoutColorSupported: () => ColorSupportLevel;
3
+ export declare const isStderrColorSupported: () => ColorSupportLevel;
4
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS } from "./color-spaces.d.ts";
5
+ export type { ColorSupportLevel } from "./types.d.ts";
@@ -1,12 +1,5 @@
1
- type ColorSupportLevel = 0 | 1 | 2 | 3;
2
-
3
- declare const SPACE_MONO = 0;
4
- declare const SPACE_16_COLORS = 1;
5
- declare const SPACE_256_COLORS = 2;
6
- declare const SPACE_TRUE_COLORS = 3;
7
-
8
- declare const isStdoutColorSupported: () => ColorSupportLevel;
9
- declare const isStderrColorSupported: () => ColorSupportLevel;
10
-
11
- export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
12
- export type { ColorSupportLevel };
1
+ import type { ColorSupportLevel } from "./types.d.cts";
2
+ export declare const isStdoutColorSupported: () => ColorSupportLevel;
3
+ export declare const isStderrColorSupported: () => ColorSupportLevel;
4
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS } from "./color-spaces.d.cts";
5
+ export type { ColorSupportLevel } from "./types.d.cts";
@@ -1,12 +1,5 @@
1
- type ColorSupportLevel = 0 | 1 | 2 | 3;
2
-
3
- declare const SPACE_MONO = 0;
4
- declare const SPACE_16_COLORS = 1;
5
- declare const SPACE_256_COLORS = 2;
6
- declare const SPACE_TRUE_COLORS = 3;
7
-
8
- declare const isStdoutColorSupported: () => ColorSupportLevel;
9
- declare const isStderrColorSupported: () => ColorSupportLevel;
10
-
11
- export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
12
- export type { ColorSupportLevel };
1
+ import type { ColorSupportLevel } from "./types.d.mts";
2
+ export declare const isStdoutColorSupported: () => ColorSupportLevel;
3
+ export declare const isStderrColorSupported: () => ColorSupportLevel;
4
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS } from "./color-spaces.d.mts";
5
+ export type { ColorSupportLevel } from "./types.d.mts";
@@ -1,12 +1,5 @@
1
- type ColorSupportLevel = 0 | 1 | 2 | 3;
2
-
3
- declare const SPACE_MONO = 0;
4
- declare const SPACE_16_COLORS = 1;
5
- declare const SPACE_256_COLORS = 2;
6
- declare const SPACE_TRUE_COLORS = 3;
7
-
8
- declare const isStdoutColorSupported: () => ColorSupportLevel;
9
- declare const isStderrColorSupported: () => ColorSupportLevel;
10
-
11
- export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
12
- export type { ColorSupportLevel };
1
+ import type { ColorSupportLevel } from "./types.d.ts";
2
+ export declare const isStdoutColorSupported: () => ColorSupportLevel;
3
+ export declare const isStderrColorSupported: () => ColorSupportLevel;
4
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS } from "./color-spaces.d.ts";
5
+ export type { ColorSupportLevel } from "./types.d.ts";
@@ -1,7 +1,5 @@
1
- import { C as ColorSupportLevel } from './packem_shared/color-spaces-D2e_XOjQ.cjs';
2
- export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-D2e_XOjQ.cjs';
3
-
4
- declare const isStdoutColorSupported: () => ColorSupportLevel;
5
- declare const isStderrColorSupported: () => ColorSupportLevel;
6
-
7
- export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
1
+ import type { ColorSupportLevel } from "./types.d.cts";
2
+ export declare const isStdoutColorSupported: () => ColorSupportLevel;
3
+ export declare const isStderrColorSupported: () => ColorSupportLevel;
4
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS } from "./color-spaces.d.cts";
5
+ export type { ColorSupportLevel } from "./types.d.cts";
@@ -1,7 +1,5 @@
1
- import { C as ColorSupportLevel } from './packem_shared/color-spaces-D2e_XOjQ.mjs';
2
- export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-D2e_XOjQ.mjs';
3
-
4
- declare const isStdoutColorSupported: () => ColorSupportLevel;
5
- declare const isStderrColorSupported: () => ColorSupportLevel;
6
-
7
- export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
1
+ import type { ColorSupportLevel } from "./types.d.mts";
2
+ export declare const isStdoutColorSupported: () => ColorSupportLevel;
3
+ export declare const isStderrColorSupported: () => ColorSupportLevel;
4
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS } from "./color-spaces.d.mts";
5
+ export type { ColorSupportLevel } from "./types.d.mts";
@@ -1,7 +1,5 @@
1
- import { C as ColorSupportLevel } from './packem_shared/color-spaces-D2e_XOjQ.js';
2
- export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-D2e_XOjQ.js';
3
-
4
- declare const isStdoutColorSupported: () => ColorSupportLevel;
5
- declare const isStderrColorSupported: () => ColorSupportLevel;
6
-
7
- export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
1
+ import type { ColorSupportLevel } from "./types.d.ts";
2
+ export declare const isStdoutColorSupported: () => ColorSupportLevel;
3
+ export declare const isStderrColorSupported: () => ColorSupportLevel;
4
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS } from "./color-spaces.d.ts";
5
+ export type { ColorSupportLevel } from "./types.d.ts";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Levels:
3
+ * - `0` - All colors disabled.
4
+ * - `1` - Basic 16 colors support.
5
+ * - `2` - ANSI 256 colors support.
6
+ * - `3` - Truecolor 16 million colors support.
7
+ */
8
+ export type ColorSupportLevel = 0 | 1 | 2 | 3;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Levels:
3
+ * - `0` - All colors disabled.
4
+ * - `1` - Basic 16 colors support.
5
+ * - `2` - ANSI 256 colors support.
6
+ * - `3` - Truecolor 16 million colors support.
7
+ */
8
+ export type ColorSupportLevel = 0 | 1 | 2 | 3;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Levels:
3
+ * - `0` - All colors disabled.
4
+ * - `1` - Basic 16 colors support.
5
+ * - `2` - ANSI 256 colors support.
6
+ * - `3` - Truecolor 16 million colors support.
7
+ */
8
+ export type ColorSupportLevel = 0 | 1 | 2 | 3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/is-ansi-color-supported",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "Detect whether a terminal or browser supports ansi colors.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -1,9 +0,0 @@
1
- type ColorSupportLevel = 0 | 1 | 2 | 3;
2
-
3
- declare const SPACE_MONO = 0;
4
- declare const SPACE_16_COLORS = 1;
5
- declare const SPACE_256_COLORS = 2;
6
- declare const SPACE_TRUE_COLORS = 3;
7
-
8
- export { SPACE_16_COLORS as S, SPACE_256_COLORS as a, SPACE_MONO as b, SPACE_TRUE_COLORS as c };
9
- export type { ColorSupportLevel as C };
@@ -1,9 +0,0 @@
1
- type ColorSupportLevel = 0 | 1 | 2 | 3;
2
-
3
- declare const SPACE_MONO = 0;
4
- declare const SPACE_16_COLORS = 1;
5
- declare const SPACE_256_COLORS = 2;
6
- declare const SPACE_TRUE_COLORS = 3;
7
-
8
- export { SPACE_16_COLORS as S, SPACE_256_COLORS as a, SPACE_MONO as b, SPACE_TRUE_COLORS as c };
9
- export type { ColorSupportLevel as C };
@@ -1,9 +0,0 @@
1
- type ColorSupportLevel = 0 | 1 | 2 | 3;
2
-
3
- declare const SPACE_MONO = 0;
4
- declare const SPACE_16_COLORS = 1;
5
- declare const SPACE_256_COLORS = 2;
6
- declare const SPACE_TRUE_COLORS = 3;
7
-
8
- export { SPACE_16_COLORS as S, SPACE_256_COLORS as a, SPACE_MONO as b, SPACE_TRUE_COLORS as c };
9
- export type { ColorSupportLevel as C };