@visulima/is-ansi-color-supported 2.2.11 → 2.2.13
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 +22 -0
- package/README.md +2 -1
- package/dist/is-color-supported.browser.d.ts +2 -2
- package/dist/is-color-supported.edge-light.cjs +1 -1
- package/dist/is-color-supported.edge-light.mjs +1 -1
- package/dist/is-color-supported.server.cjs +2 -2
- package/dist/is-color-supported.server.d.ts +2 -2
- package/dist/is-color-supported.server.mjs +2 -2
- package/package.json +18 -18
- /package/dist/packem_shared/{color-spaces-DeN59JDX.d.mjs → color-spaces-DeN59JDX.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## @visulima/is-ansi-color-supported [2.2.13](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.12...@visulima/is-ansi-color-supported@2.2.13) (2025-03-07)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* updated @visulima/packem and other dev deps, for better bundling size ([e940581](https://github.com/visulima/visulima/commit/e9405812201594e54dd81d17ddb74177df5f3c24))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* fixed issue with pnpm audit, changed browser path ([67337cb](https://github.com/visulima/visulima/commit/67337cb0395442540e7701c4dc8a4fef8a3fe1a2))
|
|
10
|
+
* updated dev dependencies ([487a976](https://github.com/visulima/visulima/commit/487a976932dc7c39edfc19ffd3968960ff338066))
|
|
11
|
+
|
|
12
|
+
## @visulima/is-ansi-color-supported [2.2.12](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.11...@visulima/is-ansi-color-supported@2.2.12) (2025-01-25)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* fixed wrong node version range in package.json ([4ae2929](https://github.com/visulima/visulima/commit/4ae292984681c71a770e4d4560432f7b7c5a141a))
|
|
17
|
+
|
|
18
|
+
### Miscellaneous Chores
|
|
19
|
+
|
|
20
|
+
* fixed typescript url ([fe65a8c](https://github.com/visulima/visulima/commit/fe65a8c0296ece7ee26474c70d065b06d4d0da89))
|
|
21
|
+
* updated all dev dependencies ([37fb298](https://github.com/visulima/visulima/commit/37fb298b2af7c63be64252024e54bb3af6ddabec))
|
|
22
|
+
|
|
1
23
|
## @visulima/is-ansi-color-supported [2.2.11](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.10...@visulima/is-ansi-color-supported@2.2.11) (2025-01-22)
|
|
2
24
|
|
|
3
25
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -169,7 +169,8 @@ If you would like to help take a look at the [list of issues](https://github.com
|
|
|
169
169
|
The visulima is-ansi-color-supported is open-sourced software licensed under the [MIT][license-url]
|
|
170
170
|
|
|
171
171
|
[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
|
|
172
|
-
|
|
172
|
+
|
|
173
|
+
[typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript"
|
|
173
174
|
[license-image]: https://img.shields.io/npm/l/@visulima/is-ansi-color-supported?color=blueviolet&style=for-the-badge
|
|
174
175
|
[license-url]: LICENSE.md "license"
|
|
175
176
|
[npm-image]: https://img.shields.io/npm/v/@visulima/is-ansi-color-supported/latest.svg?style=for-the-badge&logo=npm
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.
|
|
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.
|
|
1
|
+
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.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-DeN59JDX.js';
|
|
3
3
|
|
|
4
4
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
5
5
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
@@ -25,7 +25,7 @@ const isStdoutColorSupported$1 = isColorSupported$1;
|
|
|
25
25
|
var __defProp = Object.defineProperty;
|
|
26
26
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
27
27
|
const isColorSupported = /* @__PURE__ */ __name(() => (() => {
|
|
28
|
-
if (process
|
|
28
|
+
if (process.env.NEXT_RUNTIME !== void 0 && process.env.NEXT_RUNTIME.includes("edge")) {
|
|
29
29
|
return SPACE_MONO.SPACE_16_COLORS;
|
|
30
30
|
}
|
|
31
31
|
return isStdoutColorSupported$1();
|
|
@@ -22,7 +22,7 @@ const isStdoutColorSupported$1 = isColorSupported$1;
|
|
|
22
22
|
var __defProp = Object.defineProperty;
|
|
23
23
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
24
24
|
const isColorSupported = /* @__PURE__ */ __name(() => (() => {
|
|
25
|
-
if (process
|
|
25
|
+
if (process.env.NEXT_RUNTIME !== void 0 && process.env.NEXT_RUNTIME.includes("edge")) {
|
|
26
26
|
return SPACE_16_COLORS;
|
|
27
27
|
}
|
|
28
28
|
return isStdoutColorSupported$1();
|
|
@@ -23,7 +23,7 @@ const isColorSupportedFactory = /* @__PURE__ */ __name((stdName) => {
|
|
|
23
23
|
}
|
|
24
24
|
const FORCE_COLOR = "FORCE_COLOR";
|
|
25
25
|
const hasForceColor = FORCE_COLOR in environment;
|
|
26
|
-
const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) :
|
|
26
|
+
const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) : void 0;
|
|
27
27
|
const forceColorValueIsString = Object.prototype.toString.call(forceColorValue).slice(8, -1) === "String";
|
|
28
28
|
let forceColor;
|
|
29
29
|
if (forceColorValue === "true") {
|
|
@@ -35,7 +35,7 @@ const isColorSupportedFactory = /* @__PURE__ */ __name((stdName) => {
|
|
|
35
35
|
} else if (forceColorValueIsString && forceColorValue.length > 0) {
|
|
36
36
|
forceColor = Math.min(Number.parseInt(forceColorValue, 10), 3);
|
|
37
37
|
}
|
|
38
|
-
if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !==
|
|
38
|
+
if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !== void 0 && forceColor < 4) {
|
|
39
39
|
return forceColor;
|
|
40
40
|
}
|
|
41
41
|
const isForceDisabled = (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.
|
|
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.
|
|
1
|
+
import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.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-DeN59JDX.js';
|
|
3
3
|
|
|
4
4
|
declare const isStdoutColorSupported: () => ColorSupportLevel;
|
|
5
5
|
declare const isStderrColorSupported: () => ColorSupportLevel;
|
|
@@ -19,7 +19,7 @@ const isColorSupportedFactory = /* @__PURE__ */ __name((stdName) => {
|
|
|
19
19
|
}
|
|
20
20
|
const FORCE_COLOR = "FORCE_COLOR";
|
|
21
21
|
const hasForceColor = FORCE_COLOR in environment;
|
|
22
|
-
const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) :
|
|
22
|
+
const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) : void 0;
|
|
23
23
|
const forceColorValueIsString = Object.prototype.toString.call(forceColorValue).slice(8, -1) === "String";
|
|
24
24
|
let forceColor;
|
|
25
25
|
if (forceColorValue === "true") {
|
|
@@ -31,7 +31,7 @@ const isColorSupportedFactory = /* @__PURE__ */ __name((stdName) => {
|
|
|
31
31
|
} else if (forceColorValueIsString && forceColorValue.length > 0) {
|
|
32
32
|
forceColor = Math.min(Number.parseInt(forceColorValue, 10), 3);
|
|
33
33
|
}
|
|
34
|
-
if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !==
|
|
34
|
+
if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !== void 0 && forceColor < 4) {
|
|
35
35
|
return forceColor;
|
|
36
36
|
}
|
|
37
37
|
const isForceDisabled = (
|
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.13",
|
|
4
4
|
"description": "Detect whether a terminal or browser supports ansi colors.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -101,8 +101,23 @@
|
|
|
101
101
|
},
|
|
102
102
|
"main": "dist/is-color-supported.server.cjs",
|
|
103
103
|
"module": "dist/is-color-supported.server.mjs",
|
|
104
|
-
"browser": "
|
|
104
|
+
"browser": "dist/is-color-supported.browser.mjs",
|
|
105
105
|
"types": "dist/is-color-supported.server.d.ts",
|
|
106
|
+
"typesVersions": {
|
|
107
|
+
">=5.0": {
|
|
108
|
+
".": [
|
|
109
|
+
"./dist/is-color-supported.edge-light.d.ts",
|
|
110
|
+
"./dist/is-color-supported.browser.d.ts",
|
|
111
|
+
"./dist/is-color-supported.server.d.ts"
|
|
112
|
+
],
|
|
113
|
+
"edge-light": [
|
|
114
|
+
"./dist/is-color-supported.edge-light.d.ts"
|
|
115
|
+
],
|
|
116
|
+
"browser": [
|
|
117
|
+
"./dist/is-color-supported.browser.d.ts"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
},
|
|
106
121
|
"files": [
|
|
107
122
|
"dist/**",
|
|
108
123
|
"README.md",
|
|
@@ -110,7 +125,7 @@
|
|
|
110
125
|
"LICENSE.md"
|
|
111
126
|
],
|
|
112
127
|
"engines": {
|
|
113
|
-
"node": ">=18
|
|
128
|
+
"node": ">=18.0.0 <=23.x"
|
|
114
129
|
},
|
|
115
130
|
"os": [
|
|
116
131
|
"darwin",
|
|
@@ -120,20 +135,5 @@
|
|
|
120
135
|
"publishConfig": {
|
|
121
136
|
"access": "public",
|
|
122
137
|
"provenance": true
|
|
123
|
-
},
|
|
124
|
-
"typesVersions": {
|
|
125
|
-
">=5.0": {
|
|
126
|
-
".": [
|
|
127
|
-
"./dist/is-color-supported.edge-light.d.ts",
|
|
128
|
-
"./dist/is-color-supported.browser.d.ts",
|
|
129
|
-
"./dist/is-color-supported.server.d.ts"
|
|
130
|
-
],
|
|
131
|
-
"edge-light": [
|
|
132
|
-
"./dist/is-color-supported.edge-light.d.ts"
|
|
133
|
-
],
|
|
134
|
-
"browser": [
|
|
135
|
-
"./dist/is-color-supported.browser.d.ts"
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
138
|
}
|
|
139
139
|
}
|
|
File without changes
|