@visulima/is-ansi-color-supported 3.0.0-alpha.1 → 3.0.0-alpha.11
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 +122 -0
- package/LICENSE.md +1 -1
- package/README.md +32 -14
- package/dist/is-color-supported.browser.cjs +1 -29
- package/dist/is-color-supported.browser.d.cts +15 -5
- package/dist/is-color-supported.browser.d.mts +15 -5
- package/dist/is-color-supported.browser.d.ts +15 -5
- package/dist/is-color-supported.browser.mjs +1 -21
- package/dist/is-color-supported.edge-light.cjs +1 -37
- package/dist/is-color-supported.edge-light.d.cts +15 -5
- package/dist/is-color-supported.edge-light.d.mts +15 -5
- package/dist/is-color-supported.edge-light.d.ts +15 -5
- package/dist/is-color-supported.edge-light.mjs +1 -29
- package/dist/is-color-supported.server.cjs +1 -138
- package/dist/is-color-supported.server.d.cts +15 -5
- package/dist/is-color-supported.server.d.mts +15 -5
- package/dist/is-color-supported.server.d.ts +15 -5
- package/dist/is-color-supported.server.mjs +1 -129
- package/dist/packem_shared/SPACE_MONO-BEQbKWNs.mjs +1 -0
- package/dist/packem_shared/SPACE_MONO-CIFY-d7-.cjs +1 -0
- package/package.json +31 -33
- package/dist/color-spaces.d.cts +0 -4
- package/dist/color-spaces.d.mts +0 -4
- package/dist/color-spaces.d.ts +0 -4
- package/dist/packem_shared/SPACE_MONO-Cwv43lY6.cjs +0 -13
- package/dist/packem_shared/SPACE_MONO-VdlYcTli.mjs +0 -6
- package/dist/types.d.cts +0 -8
- package/dist/types.d.mts +0 -8
- package/dist/types.d.ts +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,125 @@
|
|
|
1
|
+
## @visulima/is-ansi-color-supported [3.0.0-alpha.11](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@3.0.0-alpha.10...@visulima/is-ansi-color-supported@3.0.0-alpha.11) (2026-05-27)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **storage-client:** percent-encode user fields in defaultFingerprint ([7c78a0f](https://github.com/visulima/visulima/commit/7c78a0f9512e2a673b941d80839e9f1e86b7b5d0))
|
|
6
|
+
|
|
7
|
+
### Documentation
|
|
8
|
+
|
|
9
|
+
* prettier-format agent instructions ([71b6414](https://github.com/visulima/visulima/commit/71b6414528780ac82c4e0bb25b5f4f11faba5549))
|
|
10
|
+
|
|
11
|
+
### Miscellaneous Chores
|
|
12
|
+
|
|
13
|
+
* **ci-stability:** green CI across vis, native, lint, tests, attw ([#651](https://github.com/visulima/visulima/issues/651)) ([d4eb684](https://github.com/visulima/visulima/commit/d4eb684b5f75c818c9251048c605a0ed54a268e3))
|
|
14
|
+
* **is-ansi-color-supported:** housekeeping cleanup ([b47f21c](https://github.com/visulima/visulima/commit/b47f21c5b55a7b976d9cfc052657b740ae57a142))
|
|
15
|
+
* **is-ansi-color-supported:** upgrade packem to 2.0.0-alpha.76 ([9bdb5a9](https://github.com/visulima/visulima/commit/9bdb5a93391c5af6536b09ac4baf6af92785e8ce))
|
|
16
|
+
* re-sort workspace package.json files via vis sort-package-json ([f625696](https://github.com/visulima/visulima/commit/f625696cfac974325774b3243e1a83c3d23acbd7))
|
|
17
|
+
* refresh generated license bundles and disposable-domain stats ([a389f38](https://github.com/visulima/visulima/commit/a389f38484788aafa8ba9b698e2dd5805a982d98))
|
|
18
|
+
* **repo:** sort package.json keys across all packages ([e1fd9ab](https://github.com/visulima/visulima/commit/e1fd9ab467ef96a98c777da1572ff6a50fcf7e71))
|
|
19
|
+
* sorted package.json ([b47c545](https://github.com/visulima/visulima/commit/b47c545591600fdab17d5cd3a3fbc68b61e199da))
|
|
20
|
+
|
|
21
|
+
### Tests
|
|
22
|
+
|
|
23
|
+
* **repo:** add dist runtime + types integration tests ([32ee300](https://github.com/visulima/visulima/commit/32ee300b7184117a0ddf9f9d390f75f8932d5ed9))
|
|
24
|
+
|
|
25
|
+
## @visulima/is-ansi-color-supported [3.0.0-alpha.10](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@3.0.0-alpha.9...@visulima/is-ansi-color-supported@3.0.0-alpha.10) (2026-04-22)
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* Remove JSR configuration generation script and generated jsr.json files ([#616](https://github.com/visulima/visulima/issues/616)) ([533744b](https://github.com/visulima/visulima/commit/533744b103b74896941db5b727173e617a27a63b))
|
|
30
|
+
|
|
31
|
+
### Miscellaneous Chores
|
|
32
|
+
|
|
33
|
+
* bump engines.node to ^22.14.0 || >=24.10.0 ([c3d0931](https://github.com/visulima/visulima/commit/c3d0931d1504e4f21ebf50ea680cfa7ce4ba15ce))
|
|
34
|
+
* fixed jsr.json ([5d85e51](https://github.com/visulima/visulima/commit/5d85e5179de38e284ec433b14d77c71a1619c8d6))
|
|
35
|
+
|
|
36
|
+
## @visulima/is-ansi-color-supported [3.0.0-alpha.9](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@3.0.0-alpha.8...@visulima/is-ansi-color-supported@3.0.0-alpha.9) (2026-04-15)
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* **is-ansi-color-supported:** add node types for process global ([ac91525](https://github.com/visulima/visulima/commit/ac915251cb0390ca930c2ffef42cf20be98231b8))
|
|
41
|
+
* **terminal:** resolve eslint and formatting issues ([8f30389](https://github.com/visulima/visulima/commit/8f30389deb9ff81e7afce0aa064ef11fcb179f23))
|
|
42
|
+
|
|
43
|
+
## @visulima/is-ansi-color-supported [3.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@3.0.0-alpha.7...@visulima/is-ansi-color-supported@3.0.0-alpha.8) (2026-04-08)
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* **is-ansi-color-supported:** resolve eslint errors ([0dc2a10](https://github.com/visulima/visulima/commit/0dc2a10efb727473fa108979c6171098a3cefacb))
|
|
48
|
+
* resolve failing tests across multiple packages ([2b4b6f0](https://github.com/visulima/visulima/commit/2b4b6f04169b60fdc4cf77b293015436a272c0fb))
|
|
49
|
+
|
|
50
|
+
### Miscellaneous Chores
|
|
51
|
+
|
|
52
|
+
* **is-ansi-color-supported:** add tsconfig.eslint.json for type-aware linting ([81cc05a](https://github.com/visulima/visulima/commit/81cc05abf7ef84398d8b90816f9802580ca3a639))
|
|
53
|
+
* **is-ansi-color-supported:** apply prettier formatting ([9efa94d](https://github.com/visulima/visulima/commit/9efa94d0a4f392857665ffc010e41f86a92d3dc0))
|
|
54
|
+
* **is-ansi-color-supported:** migrate .prettierrc.cjs to prettier.config.js ([b25b9c9](https://github.com/visulima/visulima/commit/b25b9c9c4858f6c562b4952eb6d0862b56de98b6))
|
|
55
|
+
* **terminal:** remove empty dependency objects from package.json ([562c704](https://github.com/visulima/visulima/commit/562c704e5d90aa2d13eae942ebbdcfeb787c2b46))
|
|
56
|
+
|
|
57
|
+
## @visulima/is-ansi-color-supported [3.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@3.0.0-alpha.6...@visulima/is-ansi-color-supported@3.0.0-alpha.7) (2026-03-26)
|
|
58
|
+
|
|
59
|
+
### Features
|
|
60
|
+
|
|
61
|
+
* **web:** auto-generate packages page from workspace metadata ([623e520](https://github.com/visulima/visulima/commit/623e5207693a7fe720f5f2f179593a3654c880e3))
|
|
62
|
+
|
|
63
|
+
### Miscellaneous Chores
|
|
64
|
+
|
|
65
|
+
* update homepage URLs to visulima.com/packages/ format ([be42968](https://github.com/visulima/visulima/commit/be42968129df85fb074224435e33135ff44cab91))
|
|
66
|
+
|
|
67
|
+
## @visulima/is-ansi-color-supported [3.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@3.0.0-alpha.5...@visulima/is-ansi-color-supported@3.0.0-alpha.6) (2026-03-26)
|
|
68
|
+
|
|
69
|
+
### Bug Fixes
|
|
70
|
+
|
|
71
|
+
* **web:** improve build setup with incremental stats caching and prod install ([fe33e75](https://github.com/visulima/visulima/commit/fe33e75827586779b4b3a0c6d57b39f889ee6207))
|
|
72
|
+
|
|
73
|
+
### Miscellaneous Chores
|
|
74
|
+
|
|
75
|
+
* **is-ansi-color-supported:** migrate deps to pnpm catalogs ([426b1cc](https://github.com/visulima/visulima/commit/426b1cc246a502c29180d2340ef2f1edc4e345dd))
|
|
76
|
+
* **is-ansi-color-supported:** update dependencies ([9e61102](https://github.com/visulima/visulima/commit/9e61102fda7078094f88f9ccadd2965ad7816231))
|
|
77
|
+
* visulima website ([#591](https://github.com/visulima/visulima/issues/591)) ([59ab2e2](https://github.com/visulima/visulima/commit/59ab2e2befb03e51cd2088956f83d9b87de6d033))
|
|
78
|
+
|
|
79
|
+
## @visulima/is-ansi-color-supported [3.0.0-alpha.5](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@3.0.0-alpha.4...@visulima/is-ansi-color-supported@3.0.0-alpha.5) (2026-03-06)
|
|
80
|
+
|
|
81
|
+
### Bug Fixes
|
|
82
|
+
|
|
83
|
+
* **is-ansi-color-supported:** update packem to 2.0.0-alpha.54 ([1ca2c4c](https://github.com/visulima/visulima/commit/1ca2c4c8b8f316a6e77aad1f8569ec4b9dae51b0))
|
|
84
|
+
|
|
85
|
+
### Documentation
|
|
86
|
+
|
|
87
|
+
* **boxen,command-line-args,tabular,is-ansi-color-supported,disposable-email-domains:** add comprehensive Fumadocs documentation ([95e0578](https://github.com/visulima/visulima/commit/95e057833978dfeeb9f2768269e36862572539db))
|
|
88
|
+
|
|
89
|
+
### Miscellaneous Chores
|
|
90
|
+
|
|
91
|
+
* **is-ansi-color-supported:** update dependencies ([624b623](https://github.com/visulima/visulima/commit/624b623b5aec3d7b159a2779553e5dd8667e9ff9))
|
|
92
|
+
* **is-ansi-color-supported:** update dependencies ([92c254e](https://github.com/visulima/visulima/commit/92c254e8773e1b5b8daaa50e206a1330f4de2c90))
|
|
93
|
+
* **terminal:** update dependencies ([a5bb91a](https://github.com/visulima/visulima/commit/a5bb91a66f2be2ade485d586156a54c347a23cc9))
|
|
94
|
+
* update lock file maintenance ([d83e716](https://github.com/visulima/visulima/commit/d83e71697b75d24704185b66bb521a934d2db02d))
|
|
95
|
+
* year update ([47f4105](https://github.com/visulima/visulima/commit/47f410596ce7190cfea36a073db32e0cec50bbcd))
|
|
96
|
+
|
|
97
|
+
## @visulima/is-ansi-color-supported [3.0.0-alpha.4](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@3.0.0-alpha.3...@visulima/is-ansi-color-supported@3.0.0-alpha.4) (2025-12-27)
|
|
98
|
+
|
|
99
|
+
### Bug Fixes
|
|
100
|
+
|
|
101
|
+
* **is-ansi-color-supported:** update package files ([83a7a52](https://github.com/visulima/visulima/commit/83a7a52760135c66ea5275df5b5de05841f094bb))
|
|
102
|
+
|
|
103
|
+
### Miscellaneous Chores
|
|
104
|
+
|
|
105
|
+
* fixed project.json names and schema path ([964722f](https://github.com/visulima/visulima/commit/964722f691db205c7edb9aa6db29e849a647500b))
|
|
106
|
+
|
|
107
|
+
## @visulima/is-ansi-color-supported [3.0.0-alpha.3](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@3.0.0-alpha.2...@visulima/is-ansi-color-supported@3.0.0-alpha.3) (2025-12-11)
|
|
108
|
+
|
|
109
|
+
### Bug Fixes
|
|
110
|
+
|
|
111
|
+
* update package OG images across multiple packages ([f08e4dd](https://github.com/visulima/visulima/commit/f08e4dd2b105ccb29c8412020a9c2be36d6c1e9e))
|
|
112
|
+
|
|
113
|
+
## @visulima/is-ansi-color-supported [3.0.0-alpha.2](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@3.0.0-alpha.1...@visulima/is-ansi-color-supported@3.0.0-alpha.2) (2025-12-06)
|
|
114
|
+
|
|
115
|
+
### Bug Fixes
|
|
116
|
+
|
|
117
|
+
* add new package image, fixed readme rendering on npm, fixed building of packages ([b790ba2](https://github.com/visulima/visulima/commit/b790ba253ea07fef83528fd822a678facf021b5f))
|
|
118
|
+
|
|
119
|
+
### Miscellaneous Chores
|
|
120
|
+
|
|
121
|
+
* update @anolilab/semantic-release-pnpm and @anolilab/semantic-release-preset to versions 3.2.2 and 12.1.2 across multiple package.json files for improved compatibility ([3921626](https://github.com/visulima/visulima/commit/3921626141fe5da398749bf0ba675f1596f18afb))
|
|
122
|
+
|
|
1
123
|
## @visulima/is-ansi-color-supported [3.0.0-alpha.1](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.3.5...@visulima/is-ansi-color-supported@3.0.0-alpha.1) (2025-12-04)
|
|
2
124
|
|
|
3
125
|
### ⚠ BREAKING CHANGES
|
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<!-- START_PACKAGE_OG_IMAGE_PLACEHOLDER -->
|
|
2
|
+
|
|
3
|
+
<a href="https://www.anolilab.com/open-source" align="center">
|
|
4
|
+
|
|
5
|
+
<img src="__assets__/package-og.svg" alt="is-ansi-color-supported" />
|
|
6
|
+
|
|
7
|
+
</a>
|
|
8
|
+
|
|
9
|
+
<h3 align="center">Detect whether a terminal or browser supports ansi colors.</h3>
|
|
10
|
+
|
|
11
|
+
<!-- END_PACKAGE_OG_IMAGE_PLACEHOLDER -->
|
|
7
12
|
|
|
8
13
|
<br />
|
|
9
14
|
|
|
10
15
|
<div align="center">
|
|
11
16
|
|
|
12
|
-
[![typescript-image]
|
|
17
|
+
[![typescript-image][typescript-badge]][typescript-url]
|
|
18
|
+
[![mit licence][license-badge]][license]
|
|
19
|
+
[![npm downloads][npm-downloads-badge]][npm-downloads]
|
|
20
|
+
[![Chat][chat-badge]][chat]
|
|
21
|
+
[![PRs Welcome][prs-welcome-badge]][prs-welcome]
|
|
13
22
|
|
|
14
23
|
</div>
|
|
15
24
|
|
|
@@ -164,14 +173,23 @@ If you would like to help take a look at the [list of issues](https://github.com
|
|
|
164
173
|
- [Daniel Bannert](https://github.com/prisis)
|
|
165
174
|
- [All Contributors](https://github.com/visulima/visulima/graphs/contributors)
|
|
166
175
|
|
|
176
|
+
## Made with ❤️ at Anolilab
|
|
177
|
+
|
|
178
|
+
This is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. [Anolilab](https://www.anolilab.com/open-source) is a Development and AI Studio. Contact us at [hello@anolilab.com](mailto:hello@anolilab.com) if you need any help with these technologies or just want to say hi!
|
|
179
|
+
|
|
167
180
|
## License
|
|
168
181
|
|
|
169
|
-
The visulima is-ansi-color-supported is open-sourced software licensed under the [MIT][license
|
|
182
|
+
The visulima is-ansi-color-supported is open-sourced software licensed under the [MIT][license]
|
|
170
183
|
|
|
171
|
-
|
|
184
|
+
<!-- badges -->
|
|
172
185
|
|
|
173
|
-
[
|
|
174
|
-
[license
|
|
175
|
-
[
|
|
176
|
-
[npm-
|
|
177
|
-
[
|
|
186
|
+
[license-badge]: https://img.shields.io/npm/l/@visulima/is-ansi-color-supported?style=for-the-badge
|
|
187
|
+
[license]: https://github.com/visulima/visulima/blob/main/LICENSE
|
|
188
|
+
[npm-downloads-badge]: https://img.shields.io/npm/dm/@visulima/is-ansi-color-supported?style=for-the-badge
|
|
189
|
+
[npm-downloads]: https://www.npmjs.com/package/@visulima/is-ansi-color-supported
|
|
190
|
+
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge
|
|
191
|
+
[prs-welcome]: https://github.com/visulima/visulima/blob/main/.github/CONTRIBUTING.md
|
|
192
|
+
[chat-badge]: https://img.shields.io/discord/932323359193186354.svg?style=for-the-badge
|
|
193
|
+
[chat]: https://discord.gg/TtFJY8xkFK
|
|
194
|
+
[typescript-badge]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
|
|
195
|
+
[typescript-url]: https://www.typescriptlang.org/
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
-
|
|
5
|
-
const SPACE_MONO = require('./packem_shared/SPACE_MONO-Cwv43lY6.cjs');
|
|
6
|
-
|
|
7
|
-
const isColorSupported = () => (() => {
|
|
8
|
-
if (typeof navigator !== "undefined") {
|
|
9
|
-
if (navigator.userAgentData) {
|
|
10
|
-
const brand = navigator.userAgentData.brands.find(({ b }) => b === "Chromium");
|
|
11
|
-
if (brand?.version > 93) {
|
|
12
|
-
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
|
|
16
|
-
return SPACE_MONO.SPACE_16_COLORS;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return SPACE_MONO.SPACE_MONO;
|
|
20
|
-
})();
|
|
21
|
-
const isStdoutColorSupported = isColorSupported;
|
|
22
|
-
const isStderrColorSupported = isColorSupported;
|
|
23
|
-
|
|
24
|
-
exports.SPACE_16_COLORS = SPACE_MONO.SPACE_16_COLORS;
|
|
25
|
-
exports.SPACE_256_COLORS = SPACE_MONO.SPACE_256_COLORS;
|
|
26
|
-
exports.SPACE_MONO = SPACE_MONO.SPACE_MONO;
|
|
27
|
-
exports.SPACE_TRUE_COLORS = SPACE_MONO.SPACE_TRUE_COLORS;
|
|
28
|
-
exports.isStderrColorSupported = isStderrColorSupported;
|
|
29
|
-
exports.isStdoutColorSupported = isStdoutColorSupported;
|
|
1
|
+
"use strict";var C=Object.defineProperty;var o=(e,t)=>C(e,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./packem_shared/SPACE_MONO-CIFY-d7-.cjs");var u=Object.defineProperty,O=o((e,t)=>u(e,"name",{value:t,configurable:!0}),"t");const i=/\b(Chrome|Chromium)\//,S=O(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:e})=>e==="Chromium")?.version>93)return r.SPACE_TRUE_COLORS;if(i.test(navigator.userAgent))return r.SPACE_16_COLORS}return r.SPACE_MONO})(),"isColorSupported"),_=S,a=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=a;exports.isStdoutColorSupported=_;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
9
|
+
declare const SPACE_MONO = 0;
|
|
10
|
+
declare const SPACE_16_COLORS = 1;
|
|
11
|
+
declare const SPACE_256_COLORS = 2;
|
|
12
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
13
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
14
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
15
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
9
|
+
declare const SPACE_MONO = 0;
|
|
10
|
+
declare const SPACE_16_COLORS = 1;
|
|
11
|
+
declare const SPACE_256_COLORS = 2;
|
|
12
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
13
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
14
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
15
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
9
|
+
declare const SPACE_MONO = 0;
|
|
10
|
+
declare const SPACE_16_COLORS = 1;
|
|
11
|
+
declare const SPACE_256_COLORS = 2;
|
|
12
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
13
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
14
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
15
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { SPACE_256_COLORS } from './packem_shared/SPACE_MONO-VdlYcTli.mjs';
|
|
3
|
-
|
|
4
|
-
const isColorSupported = () => (() => {
|
|
5
|
-
if (typeof navigator !== "undefined") {
|
|
6
|
-
if (navigator.userAgentData) {
|
|
7
|
-
const brand = navigator.userAgentData.brands.find(({ b }) => b === "Chromium");
|
|
8
|
-
if (brand?.version > 93) {
|
|
9
|
-
return SPACE_TRUE_COLORS;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
|
|
13
|
-
return SPACE_16_COLORS;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return SPACE_MONO;
|
|
17
|
-
})();
|
|
18
|
-
const isStdoutColorSupported = isColorSupported;
|
|
19
|
-
const isStderrColorSupported = isColorSupported;
|
|
20
|
-
|
|
21
|
-
export { SPACE_16_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
1
|
+
var a=Object.defineProperty;var e=(r,t)=>a(r,"name",{value:t,configurable:!0});import{SPACE_TRUE_COLORS as i,SPACE_16_COLORS as n,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 C=Object.defineProperty,p=e((r,t)=>C(r,"name",{value:t,configurable:!0}),"t");const S=/\b(Chrome|Chromium)\//,o=p(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:r})=>r==="Chromium")?.version>93)return i;if(S.test(navigator.userAgent))return n}return u})(),"isColorSupported"),m=o,O=o;export{n as SPACE_16_COLORS,v as SPACE_256_COLORS,u as SPACE_MONO,i as SPACE_TRUE_COLORS,O as isStderrColorSupported,m as isStdoutColorSupported};
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
-
|
|
5
|
-
const SPACE_MONO = require('./packem_shared/SPACE_MONO-Cwv43lY6.cjs');
|
|
6
|
-
|
|
7
|
-
const isColorSupported$1 = () => (() => {
|
|
8
|
-
if (typeof navigator !== "undefined") {
|
|
9
|
-
if (navigator.userAgentData) {
|
|
10
|
-
const brand = navigator.userAgentData.brands.find(({ b }) => b === "Chromium");
|
|
11
|
-
if (brand?.version > 93) {
|
|
12
|
-
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
|
|
16
|
-
return SPACE_MONO.SPACE_16_COLORS;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return SPACE_MONO.SPACE_MONO;
|
|
20
|
-
})();
|
|
21
|
-
const isStdoutColorSupported$1 = isColorSupported$1;
|
|
22
|
-
|
|
23
|
-
const isColorSupported = () => (() => {
|
|
24
|
-
if (process.env.NEXT_RUNTIME !== void 0 && process.env.NEXT_RUNTIME.includes("edge")) {
|
|
25
|
-
return SPACE_MONO.SPACE_16_COLORS;
|
|
26
|
-
}
|
|
27
|
-
return isStdoutColorSupported$1();
|
|
28
|
-
})();
|
|
29
|
-
const isStdoutColorSupported = isColorSupported;
|
|
30
|
-
const isStderrColorSupported = isColorSupported;
|
|
31
|
-
|
|
32
|
-
exports.SPACE_16_COLORS = SPACE_MONO.SPACE_16_COLORS;
|
|
33
|
-
exports.SPACE_256_COLORS = SPACE_MONO.SPACE_256_COLORS;
|
|
34
|
-
exports.SPACE_MONO = SPACE_MONO.SPACE_MONO;
|
|
35
|
-
exports.SPACE_TRUE_COLORS = SPACE_MONO.SPACE_TRUE_COLORS;
|
|
36
|
-
exports.isStderrColorSupported = isStderrColorSupported;
|
|
37
|
-
exports.isStdoutColorSupported = isStdoutColorSupported;
|
|
1
|
+
"use strict";var u=Object.defineProperty;var o=(r,t)=>u(r,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./packem_shared/SPACE_MONO-CIFY-d7-.cjs");var C=Object.defineProperty,i=o((r,t)=>C(r,"name",{value:t,configurable:!0}),"t$1");const O=/\b(Chrome|Chromium)\//,n=i(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:r})=>r==="Chromium")?.version>93)return e.SPACE_TRUE_COLORS;if(O.test(navigator.userAgent))return e.SPACE_16_COLORS}return e.SPACE_MONO})(),"isColorSupported"),a=n;var s=Object.defineProperty,_=o((r,t)=>s(r,"name",{value:t,configurable:!0}),"o");const S=_(()=>process.env.NEXT_RUNTIME?.includes("edge")?e.SPACE_16_COLORS:a(),"isColorSupported"),d=S,p=S;exports.SPACE_16_COLORS=e.SPACE_16_COLORS;exports.SPACE_256_COLORS=e.SPACE_256_COLORS;exports.SPACE_MONO=e.SPACE_MONO;exports.SPACE_TRUE_COLORS=e.SPACE_TRUE_COLORS;exports.isStderrColorSupported=p;exports.isStdoutColorSupported=d;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
9
|
+
declare const SPACE_MONO = 0;
|
|
10
|
+
declare const SPACE_16_COLORS = 1;
|
|
11
|
+
declare const SPACE_256_COLORS = 2;
|
|
12
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
13
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
14
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
15
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
9
|
+
declare const SPACE_MONO = 0;
|
|
10
|
+
declare const SPACE_16_COLORS = 1;
|
|
11
|
+
declare const SPACE_256_COLORS = 2;
|
|
12
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
13
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
14
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
15
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
9
|
+
declare const SPACE_MONO = 0;
|
|
10
|
+
declare const SPACE_16_COLORS = 1;
|
|
11
|
+
declare const SPACE_256_COLORS = 2;
|
|
12
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
13
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
14
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
15
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { SPACE_256_COLORS } from './packem_shared/SPACE_MONO-VdlYcTli.mjs';
|
|
3
|
-
|
|
4
|
-
const isColorSupported$1 = () => (() => {
|
|
5
|
-
if (typeof navigator !== "undefined") {
|
|
6
|
-
if (navigator.userAgentData) {
|
|
7
|
-
const brand = navigator.userAgentData.brands.find(({ b }) => b === "Chromium");
|
|
8
|
-
if (brand?.version > 93) {
|
|
9
|
-
return SPACE_TRUE_COLORS;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
|
|
13
|
-
return SPACE_16_COLORS;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return SPACE_MONO;
|
|
17
|
-
})();
|
|
18
|
-
const isStdoutColorSupported$1 = isColorSupported$1;
|
|
19
|
-
|
|
20
|
-
const isColorSupported = () => (() => {
|
|
21
|
-
if (process.env.NEXT_RUNTIME !== void 0 && process.env.NEXT_RUNTIME.includes("edge")) {
|
|
22
|
-
return SPACE_16_COLORS;
|
|
23
|
-
}
|
|
24
|
-
return isStdoutColorSupported$1();
|
|
25
|
-
})();
|
|
26
|
-
const isStdoutColorSupported = isColorSupported;
|
|
27
|
-
const isStderrColorSupported = isColorSupported;
|
|
28
|
-
|
|
29
|
-
export { SPACE_16_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
1
|
+
var a=Object.defineProperty;var o=(r,e)=>a(r,"name",{value:e,configurable:!0});import{SPACE_TRUE_COLORS as i,SPACE_16_COLORS as t,SPACE_MONO as u}from"./packem_shared/SPACE_MONO-BEQbKWNs.mjs";import{SPACE_256_COLORS as b}from"./packem_shared/SPACE_MONO-BEQbKWNs.mjs";var p=Object.defineProperty,s=o((r,e)=>p(r,"name",{value:e,configurable:!0}),"t$1");const C=/\b(Chrome|Chromium)\//,S=s(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:r})=>r==="Chromium")?.version>93)return i;if(C.test(navigator.userAgent))return t}return u})(),"isColorSupported"),d=S;var v=Object.defineProperty,f=o((r,e)=>v(r,"name",{value:e,configurable:!0}),"o");const n=f(()=>process.env.NEXT_RUNTIME?.includes("edge")?t:d(),"isColorSupported"),l=n,m=n;export{t as SPACE_16_COLORS,b as SPACE_256_COLORS,u as SPACE_MONO,i as SPACE_TRUE_COLORS,m as isStderrColorSupported,l as isStdoutColorSupported};
|
|
@@ -1,138 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
-
|
|
5
|
-
const SPACE_MONO = require('./packem_shared/SPACE_MONO-Cwv43lY6.cjs');
|
|
6
|
-
|
|
7
|
-
const isColorSupportedFactory = (stdName) => {
|
|
8
|
-
const _this = globalThis;
|
|
9
|
-
const isDeno = _this.Deno != void 0;
|
|
10
|
-
const proc = _this.process ?? _this.Deno ?? {};
|
|
11
|
-
const argv = proc.argv ?? proc.args ?? [];
|
|
12
|
-
const oneOfFlags = (regex) => {
|
|
13
|
-
const terminatorPosition = argv.indexOf("--");
|
|
14
|
-
const position = argv.findIndex((flag) => regex.test(flag));
|
|
15
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
16
|
-
};
|
|
17
|
-
let environment = {};
|
|
18
|
-
try {
|
|
19
|
-
environment = isDeno ? proc.env.toObject() : proc.env ?? {};
|
|
20
|
-
} catch {
|
|
21
|
-
}
|
|
22
|
-
const FORCE_COLOR = "FORCE_COLOR";
|
|
23
|
-
const hasForceColor = FORCE_COLOR in environment;
|
|
24
|
-
const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) : void 0;
|
|
25
|
-
const forceColorValueIsString = Object.prototype.toString.call(forceColorValue).slice(8, -1) === "String";
|
|
26
|
-
let forceColor;
|
|
27
|
-
if (forceColorValue === "true") {
|
|
28
|
-
forceColor = SPACE_MONO.SPACE_16_COLORS;
|
|
29
|
-
} else if (forceColorValue === "false") {
|
|
30
|
-
forceColor = SPACE_MONO.SPACE_MONO;
|
|
31
|
-
} else if (forceColorValueIsString && forceColorValue.length === 0) {
|
|
32
|
-
forceColor = SPACE_MONO.SPACE_16_COLORS;
|
|
33
|
-
} else if (forceColorValueIsString && forceColorValue.length > 0) {
|
|
34
|
-
forceColor = Math.min(Number.parseInt(forceColorValue, 10), 3);
|
|
35
|
-
}
|
|
36
|
-
if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !== void 0 && forceColor < 4) {
|
|
37
|
-
return forceColor;
|
|
38
|
-
}
|
|
39
|
-
const isForceDisabled = "NO_COLOR" in environment || hasForceColor && forceColor === 0 || oneOfFlags(/^-{1,2}(no-color|no-colors|color=false|color=never)$/);
|
|
40
|
-
if (isForceDisabled) {
|
|
41
|
-
return SPACE_MONO.SPACE_MONO;
|
|
42
|
-
}
|
|
43
|
-
if (oneOfFlags(/^-{1,2}(color=256)$/)) {
|
|
44
|
-
return SPACE_MONO.SPACE_256_COLORS;
|
|
45
|
-
}
|
|
46
|
-
if (oneOfFlags(/^-{1,2}(color=16m|color=full|color=truecolor)$/)) {
|
|
47
|
-
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
48
|
-
}
|
|
49
|
-
const isForceEnabled = oneOfFlags(/^-{1,2}(color|colors|color=true|color=always)$/);
|
|
50
|
-
if (isForceEnabled) {
|
|
51
|
-
return SPACE_MONO.SPACE_16_COLORS;
|
|
52
|
-
}
|
|
53
|
-
const minColorLevel = forceColor || SPACE_MONO.SPACE_MONO;
|
|
54
|
-
if ("TF_BUILD" in environment && "AGENT_NAME" in environment) {
|
|
55
|
-
return SPACE_MONO.SPACE_16_COLORS;
|
|
56
|
-
}
|
|
57
|
-
const isDumbTerminal = environment.TERM && /-mono|dumb/i.test(environment.TERM);
|
|
58
|
-
if (isDumbTerminal) {
|
|
59
|
-
return minColorLevel;
|
|
60
|
-
}
|
|
61
|
-
if ((isDeno ? _this.Deno.build.os : proc.platform) === "win32") {
|
|
62
|
-
try {
|
|
63
|
-
const osRelease = (isDeno ? _this.Deno.osRelease() : proc.os.release()).split(".");
|
|
64
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
65
|
-
return Number(osRelease[2]) >= 14931 ? SPACE_MONO.SPACE_TRUE_COLORS : SPACE_MONO.SPACE_256_COLORS;
|
|
66
|
-
}
|
|
67
|
-
return SPACE_MONO.SPACE_16_COLORS;
|
|
68
|
-
} catch {
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
if ("CI" in environment) {
|
|
72
|
-
if (["GITEA_ACTIONS", "CIRCLECI", "GITHUB_WORKFLOW", "GITHUB_ACTIONS"].some((sign) => sign in environment)) {
|
|
73
|
-
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
74
|
-
}
|
|
75
|
-
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in environment) || environment.CI_NAME === "codeship") {
|
|
76
|
-
return SPACE_MONO.SPACE_16_COLORS;
|
|
77
|
-
}
|
|
78
|
-
return minColorLevel;
|
|
79
|
-
}
|
|
80
|
-
if (environment.TERMINAL_EMULATOR?.includes("JediTerm")) {
|
|
81
|
-
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
82
|
-
}
|
|
83
|
-
if ("TEAMCITY_VERSION" in environment) {
|
|
84
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(environment.TEAMCITY_VERSION) ? SPACE_MONO.SPACE_16_COLORS : SPACE_MONO.SPACE_MONO;
|
|
85
|
-
}
|
|
86
|
-
if (environment.COLORTERM === "truecolor") {
|
|
87
|
-
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
88
|
-
}
|
|
89
|
-
if (environment.TERM === "xterm-kitty") {
|
|
90
|
-
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
91
|
-
}
|
|
92
|
-
if (environment.TERM === "xterm-ghostty") {
|
|
93
|
-
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
94
|
-
}
|
|
95
|
-
if (environment.TERM === "wezterm") {
|
|
96
|
-
return SPACE_MONO.SPACE_TRUE_COLORS;
|
|
97
|
-
}
|
|
98
|
-
if ("TERM_PROGRAM" in environment) {
|
|
99
|
-
const version = Number.parseInt((environment.TERM_PROGRAM_VERSION ?? "").split(".")[0], 10);
|
|
100
|
-
if (environment.TERM_PROGRAM === "iTerm.app") {
|
|
101
|
-
return version >= 3 ? SPACE_MONO.SPACE_TRUE_COLORS : SPACE_MONO.SPACE_256_COLORS;
|
|
102
|
-
}
|
|
103
|
-
if (environment.TERM_PROGRAM === "Apple_Terminal") {
|
|
104
|
-
return SPACE_MONO.SPACE_256_COLORS;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
if (/-256(color)?$/i.test(environment.TERM)) {
|
|
108
|
-
return SPACE_MONO.SPACE_256_COLORS;
|
|
109
|
-
}
|
|
110
|
-
let isTTY = false;
|
|
111
|
-
if (isDeno) {
|
|
112
|
-
if (stdName === "out") {
|
|
113
|
-
isTTY = _this.Deno.stdout.isTerminal();
|
|
114
|
-
} else if (stdName === "err") {
|
|
115
|
-
isTTY = _this.Deno.stderr.isTerminal();
|
|
116
|
-
}
|
|
117
|
-
} else if ("PM2_HOME" in environment && "pm_id" in environment) {
|
|
118
|
-
isTTY = true;
|
|
119
|
-
} else {
|
|
120
|
-
isTTY = proc[`std${stdName}`] && "isTTY" in proc[`std${stdName}`];
|
|
121
|
-
}
|
|
122
|
-
if (isTTY && /^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i.test(environment.TERM)) {
|
|
123
|
-
return SPACE_MONO.SPACE_16_COLORS;
|
|
124
|
-
}
|
|
125
|
-
if ("COLORTERM" in environment) {
|
|
126
|
-
return SPACE_MONO.SPACE_16_COLORS;
|
|
127
|
-
}
|
|
128
|
-
return minColorLevel;
|
|
129
|
-
};
|
|
130
|
-
const isStdoutColorSupported = () => isColorSupportedFactory("out");
|
|
131
|
-
const isStderrColorSupported = () => isColorSupportedFactory("err");
|
|
132
|
-
|
|
133
|
-
exports.SPACE_16_COLORS = SPACE_MONO.SPACE_16_COLORS;
|
|
134
|
-
exports.SPACE_256_COLORS = SPACE_MONO.SPACE_256_COLORS;
|
|
135
|
-
exports.SPACE_MONO = SPACE_MONO.SPACE_MONO;
|
|
136
|
-
exports.SPACE_TRUE_COLORS = SPACE_MONO.SPACE_TRUE_COLORS;
|
|
137
|
-
exports.isStderrColorSupported = isStderrColorSupported;
|
|
138
|
-
exports.isStdoutColorSupported = isStdoutColorSupported;
|
|
1
|
+
"use strict";var f=Object.defineProperty;var c=(C,t)=>f(C,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./packem_shared/SPACE_MONO-CIFY-d7-.cjs");var p=Object.defineProperty,R=c((C,t)=>p(C,"name",{value:t,configurable:!0}),"u");const m=/^-{1,2}(no-color|no-colors|color=false|color=never)$/,I=/^-{1,2}(color=256)$/,N=/^-{1,2}(color=16m|color=full|color=truecolor)$/,b=/^-{1,2}(color|colors|color=true|color=always)$/,U=/-mono|dumb/i,g=/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/,v=/-256(color)?$/i,y=/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i,L=R(C=>{const t=globalThis,n=t.Deno!=null,_=t.process??t.Deno??{},l=_.argv??_.args??[],i=R(o=>{const T=l.indexOf("--"),P=l.findIndex(a=>o.test(a));return P!==-1&&(T===-1||P<T)},"oneOfFlags");let e={};try{e=n?_.env.toObject():_.env??{}}catch{}const s="FORCE_COLOR",d=s in e,O=e[s]??void 0,A=Object.prototype.toString.call(O).slice(8,-1)==="String",M=typeof O=="number";let S;if(O==="true"?S=r.SPACE_16_COLORS:O==="false"?S=r.SPACE_MONO:A&&O.length===0?S=r.SPACE_16_COLORS:A&&O.length>0?S=Math.min(Number.parseInt(O,10),3):M&&(S=Math.min(O,3)),O!=="true"&&O!=="false"&&S!==void 0&&S<4)return S;if("NO_COLOR"in e||d&&S===0||i(m))return r.SPACE_MONO;if(i(I))return r.SPACE_256_COLORS;if(i(N))return r.SPACE_TRUE_COLORS;if(i(b))return r.SPACE_16_COLORS;const u=S??r.SPACE_MONO;if("TF_BUILD"in e&&"AGENT_NAME"in e)return r.SPACE_16_COLORS;if(e.TERM&&U.test(e.TERM))return u;if((n?t.Deno.build.os:_.platform)==="win32")try{const o=(n?t.Deno.osRelease():_.os.release()).split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?r.SPACE_TRUE_COLORS:r.SPACE_256_COLORS:r.SPACE_16_COLORS}catch{}if("CI"in e)return["GITEA_ACTIONS","CIRCLECI","GITHUB_WORKFLOW","GITHUB_ACTIONS"].some(o=>o in e)?r.SPACE_TRUE_COLORS:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in e)||e.CI_NAME==="codeship"?r.SPACE_16_COLORS:u;if(e.TERMINAL_EMULATOR?.includes("JediTerm"))return r.SPACE_TRUE_COLORS;if("TEAMCITY_VERSION"in e)return g.test(e.TEAMCITY_VERSION)?r.SPACE_16_COLORS:r.SPACE_MONO;if(e.COLORTERM==="truecolor"||e.TERM==="xterm-kitty"||e.TERM==="xterm-ghostty"||e.TERM==="wezterm")return r.SPACE_TRUE_COLORS;if("TERM_PROGRAM"in e){const o=Number.parseInt((e.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(e.TERM_PROGRAM==="iTerm.app")return o>=3?r.SPACE_TRUE_COLORS:r.SPACE_256_COLORS;if(e.TERM_PROGRAM==="Apple_Terminal")return r.SPACE_256_COLORS}if(v.test(e.TERM))return r.SPACE_256_COLORS;let E;return n?E=C==="out"?t.Deno.stdout.isTerminal():t.Deno.stderr.isTerminal():"PM2_HOME"in e&&"pm_id"in e?E=!0:E=_[`std${C}`]&&"isTTY"in _[`std${C}`],E&&y.test(e.TERM)||"COLORTERM"in e?r.SPACE_16_COLORS:u},"isColorSupportedFactory"),D=R(()=>L("out"),"isStdoutColorSupported"),h=R(()=>L("err"),"isStderrColorSupported");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=h;exports.isStdoutColorSupported=D;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
9
|
+
declare const SPACE_MONO = 0;
|
|
10
|
+
declare const SPACE_16_COLORS = 1;
|
|
11
|
+
declare const SPACE_256_COLORS = 2;
|
|
12
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
13
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
14
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
15
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
9
|
+
declare const SPACE_MONO = 0;
|
|
10
|
+
declare const SPACE_16_COLORS = 1;
|
|
11
|
+
declare const SPACE_256_COLORS = 2;
|
|
12
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
13
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
14
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
15
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
9
|
+
declare const SPACE_MONO = 0;
|
|
10
|
+
declare const SPACE_16_COLORS = 1;
|
|
11
|
+
declare const SPACE_256_COLORS = 2;
|
|
12
|
+
declare const SPACE_TRUE_COLORS = 3;
|
|
13
|
+
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
14
|
+
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
15
|
+
export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
@@ -1,129 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const isColorSupportedFactory = (stdName) => {
|
|
4
|
-
const _this = globalThis;
|
|
5
|
-
const isDeno = _this.Deno != void 0;
|
|
6
|
-
const proc = _this.process ?? _this.Deno ?? {};
|
|
7
|
-
const argv = proc.argv ?? proc.args ?? [];
|
|
8
|
-
const oneOfFlags = (regex) => {
|
|
9
|
-
const terminatorPosition = argv.indexOf("--");
|
|
10
|
-
const position = argv.findIndex((flag) => regex.test(flag));
|
|
11
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
12
|
-
};
|
|
13
|
-
let environment = {};
|
|
14
|
-
try {
|
|
15
|
-
environment = isDeno ? proc.env.toObject() : proc.env ?? {};
|
|
16
|
-
} catch {
|
|
17
|
-
}
|
|
18
|
-
const FORCE_COLOR = "FORCE_COLOR";
|
|
19
|
-
const hasForceColor = FORCE_COLOR in environment;
|
|
20
|
-
const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) : void 0;
|
|
21
|
-
const forceColorValueIsString = Object.prototype.toString.call(forceColorValue).slice(8, -1) === "String";
|
|
22
|
-
let forceColor;
|
|
23
|
-
if (forceColorValue === "true") {
|
|
24
|
-
forceColor = SPACE_16_COLORS;
|
|
25
|
-
} else if (forceColorValue === "false") {
|
|
26
|
-
forceColor = SPACE_MONO;
|
|
27
|
-
} else if (forceColorValueIsString && forceColorValue.length === 0) {
|
|
28
|
-
forceColor = SPACE_16_COLORS;
|
|
29
|
-
} else if (forceColorValueIsString && forceColorValue.length > 0) {
|
|
30
|
-
forceColor = Math.min(Number.parseInt(forceColorValue, 10), 3);
|
|
31
|
-
}
|
|
32
|
-
if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !== void 0 && forceColor < 4) {
|
|
33
|
-
return forceColor;
|
|
34
|
-
}
|
|
35
|
-
const isForceDisabled = "NO_COLOR" in environment || hasForceColor && forceColor === 0 || oneOfFlags(/^-{1,2}(no-color|no-colors|color=false|color=never)$/);
|
|
36
|
-
if (isForceDisabled) {
|
|
37
|
-
return SPACE_MONO;
|
|
38
|
-
}
|
|
39
|
-
if (oneOfFlags(/^-{1,2}(color=256)$/)) {
|
|
40
|
-
return SPACE_256_COLORS;
|
|
41
|
-
}
|
|
42
|
-
if (oneOfFlags(/^-{1,2}(color=16m|color=full|color=truecolor)$/)) {
|
|
43
|
-
return SPACE_TRUE_COLORS;
|
|
44
|
-
}
|
|
45
|
-
const isForceEnabled = oneOfFlags(/^-{1,2}(color|colors|color=true|color=always)$/);
|
|
46
|
-
if (isForceEnabled) {
|
|
47
|
-
return SPACE_16_COLORS;
|
|
48
|
-
}
|
|
49
|
-
const minColorLevel = forceColor || SPACE_MONO;
|
|
50
|
-
if ("TF_BUILD" in environment && "AGENT_NAME" in environment) {
|
|
51
|
-
return SPACE_16_COLORS;
|
|
52
|
-
}
|
|
53
|
-
const isDumbTerminal = environment.TERM && /-mono|dumb/i.test(environment.TERM);
|
|
54
|
-
if (isDumbTerminal) {
|
|
55
|
-
return minColorLevel;
|
|
56
|
-
}
|
|
57
|
-
if ((isDeno ? _this.Deno.build.os : proc.platform) === "win32") {
|
|
58
|
-
try {
|
|
59
|
-
const osRelease = (isDeno ? _this.Deno.osRelease() : proc.os.release()).split(".");
|
|
60
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
61
|
-
return Number(osRelease[2]) >= 14931 ? SPACE_TRUE_COLORS : SPACE_256_COLORS;
|
|
62
|
-
}
|
|
63
|
-
return SPACE_16_COLORS;
|
|
64
|
-
} catch {
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
if ("CI" in environment) {
|
|
68
|
-
if (["GITEA_ACTIONS", "CIRCLECI", "GITHUB_WORKFLOW", "GITHUB_ACTIONS"].some((sign) => sign in environment)) {
|
|
69
|
-
return SPACE_TRUE_COLORS;
|
|
70
|
-
}
|
|
71
|
-
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in environment) || environment.CI_NAME === "codeship") {
|
|
72
|
-
return SPACE_16_COLORS;
|
|
73
|
-
}
|
|
74
|
-
return minColorLevel;
|
|
75
|
-
}
|
|
76
|
-
if (environment.TERMINAL_EMULATOR?.includes("JediTerm")) {
|
|
77
|
-
return SPACE_TRUE_COLORS;
|
|
78
|
-
}
|
|
79
|
-
if ("TEAMCITY_VERSION" in environment) {
|
|
80
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(environment.TEAMCITY_VERSION) ? SPACE_16_COLORS : SPACE_MONO;
|
|
81
|
-
}
|
|
82
|
-
if (environment.COLORTERM === "truecolor") {
|
|
83
|
-
return SPACE_TRUE_COLORS;
|
|
84
|
-
}
|
|
85
|
-
if (environment.TERM === "xterm-kitty") {
|
|
86
|
-
return SPACE_TRUE_COLORS;
|
|
87
|
-
}
|
|
88
|
-
if (environment.TERM === "xterm-ghostty") {
|
|
89
|
-
return SPACE_TRUE_COLORS;
|
|
90
|
-
}
|
|
91
|
-
if (environment.TERM === "wezterm") {
|
|
92
|
-
return SPACE_TRUE_COLORS;
|
|
93
|
-
}
|
|
94
|
-
if ("TERM_PROGRAM" in environment) {
|
|
95
|
-
const version = Number.parseInt((environment.TERM_PROGRAM_VERSION ?? "").split(".")[0], 10);
|
|
96
|
-
if (environment.TERM_PROGRAM === "iTerm.app") {
|
|
97
|
-
return version >= 3 ? SPACE_TRUE_COLORS : SPACE_256_COLORS;
|
|
98
|
-
}
|
|
99
|
-
if (environment.TERM_PROGRAM === "Apple_Terminal") {
|
|
100
|
-
return SPACE_256_COLORS;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
if (/-256(color)?$/i.test(environment.TERM)) {
|
|
104
|
-
return SPACE_256_COLORS;
|
|
105
|
-
}
|
|
106
|
-
let isTTY = false;
|
|
107
|
-
if (isDeno) {
|
|
108
|
-
if (stdName === "out") {
|
|
109
|
-
isTTY = _this.Deno.stdout.isTerminal();
|
|
110
|
-
} else if (stdName === "err") {
|
|
111
|
-
isTTY = _this.Deno.stderr.isTerminal();
|
|
112
|
-
}
|
|
113
|
-
} else if ("PM2_HOME" in environment && "pm_id" in environment) {
|
|
114
|
-
isTTY = true;
|
|
115
|
-
} else {
|
|
116
|
-
isTTY = proc[`std${stdName}`] && "isTTY" in proc[`std${stdName}`];
|
|
117
|
-
}
|
|
118
|
-
if (isTTY && /^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i.test(environment.TERM)) {
|
|
119
|
-
return SPACE_16_COLORS;
|
|
120
|
-
}
|
|
121
|
-
if ("COLORTERM" in environment) {
|
|
122
|
-
return SPACE_16_COLORS;
|
|
123
|
-
}
|
|
124
|
-
return minColorLevel;
|
|
125
|
-
};
|
|
126
|
-
const isStdoutColorSupported = () => isColorSupportedFactory("out");
|
|
127
|
-
const isStderrColorSupported = () => isColorSupportedFactory("err");
|
|
128
|
-
|
|
129
|
-
export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
|
|
1
|
+
var L=Object.defineProperty;var C=(u,e)=>L(u,"name",{value:e,configurable:!0});import{SPACE_MONO as E,SPACE_256_COLORS as R,SPACE_TRUE_COLORS as i,SPACE_16_COLORS as l}from"./packem_shared/SPACE_MONO-BEQbKWNs.mjs";var b=Object.defineProperty,f=C((u,e)=>b(u,"name",{value:e,configurable:!0}),"u");const P=/^-{1,2}(no-color|no-colors|color=false|color=never)$/,g=/^-{1,2}(color=256)$/,v=/^-{1,2}(color=16m|color=full|color=truecolor)$/,y=/^-{1,2}(color|colors|color=true|color=always)$/,D=/-mono|dumb/i,h=/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/,x=/-256(color)?$/i,G=/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i,I=f(u=>{const e=globalThis,O=e.Deno!=null,s=e.process??e.Deno??{},d=s.argv??s.args??[],T=f(t=>{const M=d.indexOf("--"),_=d.findIndex(N=>t.test(N));return _!==-1&&(M===-1||_<M)},"oneOfFlags");let r={};try{r=O?s.env.toObject():s.env??{}}catch{}const m="FORCE_COLOR",S=m in r,o=r[m]??void 0,p=Object.prototype.toString.call(o).slice(8,-1)==="String",A=typeof o=="number";let n;if(o==="true"?n=l:o==="false"?n=E:p&&o.length===0?n=l:p&&o.length>0?n=Math.min(Number.parseInt(o,10),3):A&&(n=Math.min(o,3)),o!=="true"&&o!=="false"&&n!==void 0&&n<4)return n;if("NO_COLOR"in r||S&&n===0||T(P))return E;if(T(g))return R;if(T(v))return i;if(T(y))return l;const a=n??E;if("TF_BUILD"in r&&"AGENT_NAME"in r)return l;if(r.TERM&&D.test(r.TERM))return a;if((O?e.Deno.build.os:s.platform)==="win32")try{const t=(O?e.Deno.osRelease():s.os.release()).split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?i:R:l}catch{}if("CI"in r)return["GITEA_ACTIONS","CIRCLECI","GITHUB_WORKFLOW","GITHUB_ACTIONS"].some(t=>t in r)?i:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(t=>t in r)||r.CI_NAME==="codeship"?l:a;if(r.TERMINAL_EMULATOR?.includes("JediTerm"))return i;if("TEAMCITY_VERSION"in r)return h.test(r.TEAMCITY_VERSION)?l:E;if(r.COLORTERM==="truecolor")return i;if(r.TERM==="xterm-kitty")return i;if(r.TERM==="xterm-ghostty")return i;if(r.TERM==="wezterm")return i;if("TERM_PROGRAM"in r){const t=Number.parseInt((r.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(r.TERM_PROGRAM==="iTerm.app")return t>=3?i:R;if(r.TERM_PROGRAM==="Apple_Terminal")return R}if(x.test(r.TERM))return R;let c;return O?c=u==="out"?e.Deno.stdout.isTerminal():e.Deno.stderr.isTerminal():"PM2_HOME"in r&&"pm_id"in r?c=!0:c=s[`std${u}`]&&"isTTY"in s[`std${u}`],c&&G.test(r.TERM)?l:"COLORTERM"in r?l:a},"isColorSupportedFactory"),U=f(()=>I("out"),"isStdoutColorSupported"),B=f(()=>I("err"),"isStderrColorSupported");export{l as SPACE_16_COLORS,R as SPACE_256_COLORS,E as SPACE_MONO,i as SPACE_TRUE_COLORS,B as isStderrColorSupported,U as isStdoutColorSupported};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const O=0,C=1,S=2,_=3;export{C as SPACE_16_COLORS,S as SPACE_256_COLORS,O as SPACE_MONO,_ as SPACE_TRUE_COLORS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const O=0,S=1,_=2,C=3;exports.SPACE_16_COLORS=S;exports.SPACE_256_COLORS=_;exports.SPACE_MONO=O;exports.SPACE_TRUE_COLORS=C;
|
package/package.json
CHANGED
|
@@ -1,41 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/is-ansi-color-supported",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.11",
|
|
4
4
|
"description": "Detect whether a terminal or browser supports ansi colors.",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"256",
|
|
7
|
+
"FORCE_COLOR",
|
|
8
|
+
"NO_COLOR",
|
|
6
9
|
"anolilab",
|
|
7
|
-
"visulima",
|
|
8
|
-
"colorize",
|
|
9
10
|
"ansi",
|
|
10
|
-
"
|
|
11
|
+
"ansi-colors",
|
|
12
|
+
"capability",
|
|
13
|
+
"cli",
|
|
11
14
|
"color",
|
|
15
|
+
"colorize",
|
|
12
16
|
"colors",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"xterm",
|
|
17
|
+
"colour",
|
|
18
|
+
"command-line",
|
|
16
19
|
"console",
|
|
17
|
-
"cli",
|
|
18
|
-
"truecolor",
|
|
19
|
-
"FORCE_COLOR",
|
|
20
|
-
"NO_COLOR",
|
|
21
|
-
"ansi-colors",
|
|
22
|
-
"style",
|
|
23
|
-
"tty",
|
|
24
|
-
"256",
|
|
25
20
|
"detect",
|
|
26
21
|
"edge",
|
|
27
22
|
"next.js",
|
|
28
23
|
"nextjs",
|
|
24
|
+
"shell",
|
|
25
|
+
"style",
|
|
26
|
+
"styles",
|
|
29
27
|
"support",
|
|
30
28
|
"supports",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
29
|
+
"terminal",
|
|
30
|
+
"truecolor",
|
|
31
|
+
"tty",
|
|
32
|
+
"visulima",
|
|
33
|
+
"xterm"
|
|
34
34
|
],
|
|
35
|
-
"homepage": "https://
|
|
36
|
-
"bugs":
|
|
37
|
-
"url": "https://github.com/visulima/visulima/issues"
|
|
38
|
-
},
|
|
35
|
+
"homepage": "https://visulima.com/packages/is-ansi-color-supported/",
|
|
36
|
+
"bugs": "https://github.com/visulima/visulima/issues",
|
|
39
37
|
"repository": {
|
|
40
38
|
"type": "git",
|
|
41
39
|
"url": "git+https://github.com/visulima/visulima.git",
|
|
@@ -60,14 +58,6 @@
|
|
|
60
58
|
"type": "module",
|
|
61
59
|
"exports": {
|
|
62
60
|
".": {
|
|
63
|
-
"edge-light": {
|
|
64
|
-
"types": "./dist/is-color-supported.edge-light.d.mts",
|
|
65
|
-
"default": "./dist/is-color-supported.edge-light.mjs"
|
|
66
|
-
},
|
|
67
|
-
"browser": {
|
|
68
|
-
"types": "./dist/is-color-supported.browser.d.mts",
|
|
69
|
-
"default": "./dist/is-color-supported.browser.mjs"
|
|
70
|
-
},
|
|
71
61
|
"import": {
|
|
72
62
|
"types": "./dist/is-color-supported.server.d.mts",
|
|
73
63
|
"default": "./dist/is-color-supported.server.mjs"
|
|
@@ -75,6 +65,14 @@
|
|
|
75
65
|
"require": {
|
|
76
66
|
"types": "./dist/is-color-supported.server.d.cts",
|
|
77
67
|
"default": "./dist/is-color-supported.server.cjs"
|
|
68
|
+
},
|
|
69
|
+
"edge-light": {
|
|
70
|
+
"types": "./dist/is-color-supported.edge-light.d.mts",
|
|
71
|
+
"default": "./dist/is-color-supported.edge-light.mjs"
|
|
72
|
+
},
|
|
73
|
+
"browser": {
|
|
74
|
+
"types": "./dist/is-color-supported.browser.d.mts",
|
|
75
|
+
"default": "./dist/is-color-supported.browser.mjs"
|
|
78
76
|
}
|
|
79
77
|
},
|
|
80
78
|
"./browser": {
|
|
@@ -106,9 +104,9 @@
|
|
|
106
104
|
"typesVersions": {
|
|
107
105
|
">=5.0": {
|
|
108
106
|
".": [
|
|
107
|
+
"./dist/is-color-supported.server.d.ts",
|
|
109
108
|
"./dist/is-color-supported.edge-light.d.ts",
|
|
110
|
-
"./dist/is-color-supported.browser.d.ts"
|
|
111
|
-
"./dist/is-color-supported.server.d.ts"
|
|
109
|
+
"./dist/is-color-supported.browser.d.ts"
|
|
112
110
|
],
|
|
113
111
|
"edge-light": [
|
|
114
112
|
"./dist/is-color-supported.edge-light.d.ts"
|
|
@@ -125,7 +123,7 @@
|
|
|
125
123
|
"LICENSE.md"
|
|
126
124
|
],
|
|
127
125
|
"engines": {
|
|
128
|
-
"node": "
|
|
126
|
+
"node": "^22.14.0 || >=24.10.0"
|
|
129
127
|
},
|
|
130
128
|
"os": [
|
|
131
129
|
"darwin",
|
package/dist/color-spaces.d.cts
DELETED
package/dist/color-spaces.d.mts
DELETED
package/dist/color-spaces.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
-
|
|
5
|
-
const SPACE_MONO = 0;
|
|
6
|
-
const SPACE_16_COLORS = 1;
|
|
7
|
-
const SPACE_256_COLORS = 2;
|
|
8
|
-
const SPACE_TRUE_COLORS = 3;
|
|
9
|
-
|
|
10
|
-
exports.SPACE_16_COLORS = SPACE_16_COLORS;
|
|
11
|
-
exports.SPACE_256_COLORS = SPACE_256_COLORS;
|
|
12
|
-
exports.SPACE_MONO = SPACE_MONO;
|
|
13
|
-
exports.SPACE_TRUE_COLORS = SPACE_TRUE_COLORS;
|
package/dist/types.d.cts
DELETED
package/dist/types.d.mts
DELETED