@visulima/is-ansi-color-supported 2.2.6 → 2.2.8
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 +17 -0
- package/dist/is-color-supported.browser.d.mts +7 -3
- package/dist/is-color-supported.browser.d.ts +7 -3
- package/dist/is-color-supported.browser.mjs +1 -1
- package/dist/is-color-supported.server.d.cts +7 -3
- package/dist/is-color-supported.server.d.mts +7 -3
- package/dist/is-color-supported.server.d.ts +7 -3
- package/package.json +10 -11
- package/dist/is-color-supported.browser.cjs +0 -1
- package/dist/is-color-supported.browser.d.cts +0 -7
- package/dist/packem_shared/color-spaces-DeN59JDX.d.cts +0 -8
- package/dist/packem_shared/color-spaces-DeN59JDX.d.mjs +0 -8
- package/dist/packem_shared/color-spaces-DeN59JDX.d.mts +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## @visulima/is-ansi-color-supported [2.2.8](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.7...@visulima/is-ansi-color-supported@2.2.8) (2024-10-05)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* updated dev dependencies, updated packem to v1.0.7, fixed naming of some lint config files ([c071a9c](https://github.com/visulima/visulima/commit/c071a9c8e129014a962ff654a16f302ca18a5c67))
|
|
6
|
+
|
|
7
|
+
## @visulima/is-ansi-color-supported [2.2.7](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.6...@visulima/is-ansi-color-supported@2.2.7) (2024-09-24)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update packem to v1 ([05f3bc9](https://github.com/visulima/visulima/commit/05f3bc960df10a1602e24f9066e2b0117951a877))
|
|
12
|
+
* updated esbuild from v0.23 to v0.24 ([3793010](https://github.com/visulima/visulima/commit/3793010d0d549c0d41f85dea04b8436251be5fe8))
|
|
13
|
+
|
|
14
|
+
### Miscellaneous Chores
|
|
15
|
+
|
|
16
|
+
* updated dev dependencies ([05edb67](https://github.com/visulima/visulima/commit/05edb671285b1cc42875223314b24212e6a12588))
|
|
17
|
+
|
|
1
18
|
## @visulima/is-ansi-color-supported [2.2.6](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.5...@visulima/is-ansi-color-supported@2.2.6) (2024-09-11)
|
|
2
19
|
|
|
3
20
|
### Bug Fixes
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
3
7
|
|
|
4
8
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
5
9
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
6
10
|
|
|
7
|
-
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
11
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
3
7
|
|
|
4
8
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
5
9
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
6
10
|
|
|
7
|
-
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
11
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var i=Object.defineProperty;var o=(r,e)=>i(r,"name",{value:e,configurable:!0});import{SPACE_TRUE_COLORS as a,SPACE_16_COLORS as t,SPACE_MONO as u}from"./packem_shared/SPACE_MONO-BEQbKWNs.mjs";import{SPACE_256_COLORS as v}from"./packem_shared/SPACE_MONO-BEQbKWNs.mjs";var s=Object.defineProperty,p=o((r,e)=>s(r,"name",{value:e,configurable:!0}),"e");const n=p(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:r})=>r==="Chromium")?.version>93)return a;if(/\b(Chrome|Chromium)\//.test(navigator.userAgent))return t}return(process.env.NEXT_RUNTIME??"").includes("edge")?t:u})(),"isColorSupported"),d=n,f=n;export{t as SPACE_16_COLORS,v as SPACE_256_COLORS,u as SPACE_MONO,a as SPACE_TRUE_COLORS,f as isStderrColorSupported,d as isStdoutColorSupported};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
3
7
|
|
|
4
8
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
5
9
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
6
10
|
|
|
7
|
-
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
11
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
3
7
|
|
|
4
8
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
5
9
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
6
10
|
|
|
7
|
-
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
11
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
3
7
|
|
|
4
8
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
5
9
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
6
10
|
|
|
7
|
-
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
11
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/is-ansi-color-supported",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
4
4
|
"description": "Detect whether a terminal or browser supports ansi colors.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -79,7 +79,6 @@
|
|
|
79
79
|
"typesVersions": {
|
|
80
80
|
">=5.0": {
|
|
81
81
|
".": [
|
|
82
|
-
"./dist/is-color-supported.browser.d.ts",
|
|
83
82
|
"./dist/is-color-supported.server.d.ts"
|
|
84
83
|
]
|
|
85
84
|
}
|
|
@@ -95,17 +94,17 @@
|
|
|
95
94
|
"@anolilab/prettier-config": "^5.0.14",
|
|
96
95
|
"@anolilab/semantic-release-pnpm": "^1.1.3",
|
|
97
96
|
"@anolilab/semantic-release-preset": "^9.0.0",
|
|
98
|
-
"@arethetypeswrong/cli": "^0.16.
|
|
99
|
-
"@babel/core": "^7.25.
|
|
100
|
-
"@rushstack/eslint-plugin-security": "^0.8.
|
|
101
|
-
"@secretlint/secretlint-rule-preset-recommend": "^8.
|
|
97
|
+
"@arethetypeswrong/cli": "^0.16.4",
|
|
98
|
+
"@babel/core": "^7.25.7",
|
|
99
|
+
"@rushstack/eslint-plugin-security": "^0.8.3",
|
|
100
|
+
"@secretlint/secretlint-rule-preset-recommend": "^8.3.0",
|
|
102
101
|
"@types/node": "18.19.15",
|
|
103
|
-
"@visulima/packem": "
|
|
104
|
-
"@vitest/coverage-v8": "^2.
|
|
105
|
-
"@vitest/ui": "^2.
|
|
102
|
+
"@visulima/packem": "1.0.7",
|
|
103
|
+
"@vitest/coverage-v8": "^2.1.2",
|
|
104
|
+
"@vitest/ui": "^2.1.2",
|
|
106
105
|
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
107
106
|
"cross-env": "^7.0.3",
|
|
108
|
-
"esbuild": "0.
|
|
107
|
+
"esbuild": "0.24.0",
|
|
109
108
|
"eslint": "8.57.0",
|
|
110
109
|
"eslint-plugin-deprecation": "^3.0.0",
|
|
111
110
|
"eslint-plugin-etc": "^2.0.3",
|
|
@@ -118,7 +117,7 @@
|
|
|
118
117
|
"secretlint": "8.2.4",
|
|
119
118
|
"semantic-release": "24.0.0",
|
|
120
119
|
"typescript": "5.4.5",
|
|
121
|
-
"vitest": "^2.
|
|
120
|
+
"vitest": "^2.1.2"
|
|
122
121
|
},
|
|
123
122
|
"engines": {
|
|
124
123
|
"node": ">=18.* <=22.*"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var C=Object.defineProperty;var t=(e,o)=>C(e,"name",{value:o,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./packem_shared/SPACE_MONO-D73nMay-.cjs");var O=Object.defineProperty,i=t((e,o)=>O(e,"name",{value:o,configurable:!0}),"e");const S=i(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:e})=>e==="Chromium")?.version>93)return r.SPACE_TRUE_COLORS;if(/\b(Chrome|Chromium)\//.test(navigator.userAgent))return r.SPACE_16_COLORS}return typeof process<"u"&&(process.env.NEXT_RUNTIME??"").includes("edge")?r.SPACE_16_COLORS:r.SPACE_MONO})(),"isColorSupported"),u=S,_=S;exports.SPACE_16_COLORS=r.SPACE_16_COLORS;exports.SPACE_256_COLORS=r.SPACE_256_COLORS;exports.SPACE_MONO=r.SPACE_MONO;exports.SPACE_TRUE_COLORS=r.SPACE_TRUE_COLORS;exports.isStderrColorSupported=_;exports.isStdoutColorSupported=u;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.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-DeN59JDX.cjs';
|
|
3
|
-
|
|
4
|
-
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
5
|
-
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
6
|
-
|
|
7
|
-
export { ColorSupportLevel, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,8 +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 { type ColorSupportLevel as C, SPACE_16_COLORS as S, SPACE_256_COLORS as a, SPACE_MONO as b, SPACE_TRUE_COLORS as c };
|
|
@@ -1,8 +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 { type ColorSupportLevel as C, SPACE_16_COLORS as S, SPACE_256_COLORS as a, SPACE_MONO as b, SPACE_TRUE_COLORS as c };
|
|
@@ -1,8 +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 { type ColorSupportLevel as C, SPACE_16_COLORS as S, SPACE_256_COLORS as a, SPACE_MONO as b, SPACE_TRUE_COLORS as c };
|