@visulima/is-ansi-color-supported 2.2.14 → 2.3.0

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,21 @@
1
+ ## @visulima/is-ansi-color-supported [2.3.0](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.14...@visulima/is-ansi-color-supported@2.3.0) (2025-10-15)
2
+
3
+ ### Features
4
+
5
+ * added ghostty and wezterm, moved CIRCLECI to true colors, allowed node version 24 ([2b100da](https://github.com/visulima/visulima/commit/2b100da7d9db5129688d0f1cd458f1648a39f3b7))
6
+
7
+ ### Bug Fixes
8
+
9
+ * restore require exports in package.json and update packem configuration ([c38aafb](https://github.com/visulima/visulima/commit/c38aafbedebf0557ad05b1e181940f256e76bf2a))
10
+ * update @visulima/packem to 2.0.0-alpha.30 across multiple packages for improved compatibility ([27b346e](https://github.com/visulima/visulima/commit/27b346eaa1c0fb0e420d9a9824482028307f4249))
11
+
12
+ ### Miscellaneous Chores
13
+
14
+ * **deps:** update build scripts and remove cross-env dependency ([7510e82](https://github.com/visulima/visulima/commit/7510e826b9235a0013fe61c82a7eb333bc4cbb78))
15
+ * update ESLint and Prettier configurations for improved consistency and performance ([a13384d](https://github.com/visulima/visulima/commit/a13384d4a4f1939e956e34336b19ca675f8d8687))
16
+ * update package dependencies across multiple packages for improved compatibility and performance ([9567591](https://github.com/visulima/visulima/commit/9567591c415da3002f3a4fe08f8caf7ce01ca5f7))
17
+ * update package.json and pnpm-lock.yaml to include publint@0.3.12 and adjust build/test commands to exclude shared-utils ([1f7b3c0](https://github.com/visulima/visulima/commit/1f7b3c0381d77edfeec80ea1bf57b3469e929414))
18
+
1
19
  ## @visulima/is-ansi-color-supported [2.2.14](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.13...@visulima/is-ansi-color-supported@2.2.14) (2025-05-30)
2
20
 
3
21
  ### Bug Fixes
@@ -1,31 +1 @@
1
- 'use strict';
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
- var __defProp = Object.defineProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- const isColorSupported = /* @__PURE__ */ __name(() => (() => {
10
- if (typeof navigator !== "undefined") {
11
- if (navigator.userAgentData) {
12
- const brand = navigator.userAgentData.brands.find(({ b }) => b === "Chromium");
13
- if (brand?.version > 93) {
14
- return SPACE_MONO.SPACE_TRUE_COLORS;
15
- }
16
- }
17
- if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
18
- return SPACE_MONO.SPACE_16_COLORS;
19
- }
20
- }
21
- return SPACE_MONO.SPACE_MONO;
22
- })(), "isColorSupported");
23
- const isStdoutColorSupported = isColorSupported;
24
- const isStderrColorSupported = isColorSupported;
25
-
26
- exports.SPACE_16_COLORS = SPACE_MONO.SPACE_16_COLORS;
27
- exports.SPACE_256_COLORS = SPACE_MONO.SPACE_256_COLORS;
28
- exports.SPACE_MONO = SPACE_MONO.SPACE_MONO;
29
- exports.SPACE_TRUE_COLORS = SPACE_MONO.SPACE_TRUE_COLORS;
30
- exports.isStderrColorSupported = isStderrColorSupported;
31
- 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_16_COLORS-CIFY-d7-.cjs");var u=Object.defineProperty,O=o((e,t)=>u(e,"name",{value:t,configurable:!0}),"t");const 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(/\b(Chrome|Chromium)\//.test(navigator.userAgent))return r.SPACE_16_COLORS}return r.SPACE_MONO})(),"isColorSupported"),i=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=i;
@@ -1,5 +1,5 @@
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';
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
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1,5 +1,5 @@
1
- import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.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-DeN59JDX.mjs';
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
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1,5 +1,5 @@
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';
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
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1,23 +1 @@
1
- import { SPACE_TRUE_COLORS, SPACE_16_COLORS, SPACE_MONO } from './packem_shared/SPACE_MONO-VdlYcTli.mjs';
2
- export { SPACE_256_COLORS } from './packem_shared/SPACE_MONO-VdlYcTli.mjs';
3
-
4
- var __defProp = Object.defineProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
- const isColorSupported = /* @__PURE__ */ __name(() => (() => {
7
- if (typeof navigator !== "undefined") {
8
- if (navigator.userAgentData) {
9
- const brand = navigator.userAgentData.brands.find(({ b }) => b === "Chromium");
10
- if (brand?.version > 93) {
11
- return SPACE_TRUE_COLORS;
12
- }
13
- }
14
- if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
15
- return SPACE_16_COLORS;
16
- }
17
- }
18
- return SPACE_MONO;
19
- })(), "isColorSupported");
20
- const isStdoutColorSupported = isColorSupported;
21
- const isStderrColorSupported = isColorSupported;
22
-
23
- 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 n,SPACE_16_COLORS as i,SPACE_MONO as u}from"./packem_shared/SPACE_16_COLORS-BEQbKWNs.mjs";import{SPACE_256_COLORS as g}from"./packem_shared/SPACE_16_COLORS-BEQbKWNs.mjs";var C=Object.defineProperty,p=e((r,t)=>C(r,"name",{value:t,configurable:!0}),"t");const o=p(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:r})=>r==="Chromium")?.version>93)return n;if(/\b(Chrome|Chromium)\//.test(navigator.userAgent))return i}return u})(),"isColorSupported"),f=o,m=o;export{i as SPACE_16_COLORS,g as SPACE_256_COLORS,u as SPACE_MONO,n as SPACE_TRUE_COLORS,m as isStderrColorSupported,f as isStdoutColorSupported};
@@ -1,41 +1 @@
1
- 'use strict';
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
- var __defProp$1 = Object.defineProperty;
8
- var __name$1 = (target, value) => __defProp$1(target, "name", { value, configurable: true });
9
- const isColorSupported$1 = /* @__PURE__ */ __name$1(() => (() => {
10
- if (typeof navigator !== "undefined") {
11
- if (navigator.userAgentData) {
12
- const brand = navigator.userAgentData.brands.find(({ b }) => b === "Chromium");
13
- if (brand?.version > 93) {
14
- return SPACE_MONO.SPACE_TRUE_COLORS;
15
- }
16
- }
17
- if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
18
- return SPACE_MONO.SPACE_16_COLORS;
19
- }
20
- }
21
- return SPACE_MONO.SPACE_MONO;
22
- })(), "isColorSupported");
23
- const isStdoutColorSupported$1 = isColorSupported$1;
24
-
25
- var __defProp = Object.defineProperty;
26
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
27
- const isColorSupported = /* @__PURE__ */ __name(() => (() => {
28
- if (process.env.NEXT_RUNTIME !== void 0 && process.env.NEXT_RUNTIME.includes("edge")) {
29
- return SPACE_MONO.SPACE_16_COLORS;
30
- }
31
- return isStdoutColorSupported$1();
32
- })(), "isColorSupported");
33
- const isStdoutColorSupported = isColorSupported;
34
- const isStderrColorSupported = isColorSupported;
35
-
36
- exports.SPACE_16_COLORS = SPACE_MONO.SPACE_16_COLORS;
37
- exports.SPACE_256_COLORS = SPACE_MONO.SPACE_256_COLORS;
38
- exports.SPACE_MONO = SPACE_MONO.SPACE_MONO;
39
- exports.SPACE_TRUE_COLORS = SPACE_MONO.SPACE_TRUE_COLORS;
40
- exports.isStderrColorSupported = isStderrColorSupported;
41
- exports.isStdoutColorSupported = isStdoutColorSupported;
1
+ "use strict";var u=Object.defineProperty;var t=(r,o)=>u(r,"name",{value:o,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./packem_shared/SPACE_16_COLORS-CIFY-d7-.cjs");var C=Object.defineProperty,i=t((r,o)=>C(r,"name",{value:o,configurable:!0}),"t$1");const 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(/\b(Chrome|Chromium)\//.test(navigator.userAgent))return e.SPACE_16_COLORS}return e.SPACE_MONO})(),"isColorSupported"),O=n;var s=Object.defineProperty,_=t((r,o)=>s(r,"name",{value:o,configurable:!0}),"o");const S=_(()=>process.env.NEXT_RUNTIME!==void 0&&process.env.NEXT_RUNTIME.includes("edge")?e.SPACE_16_COLORS:O(),"isColorSupported"),a=S,d=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=d;exports.isStdoutColorSupported=a;
@@ -8,4 +8,5 @@ declare const SPACE_TRUE_COLORS = 3;
8
8
  declare const isStdoutColorSupported: () => ColorSupportLevel;
9
9
  declare const isStderrColorSupported: () => ColorSupportLevel;
10
10
 
11
- export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
11
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
12
+ export type { ColorSupportLevel };
@@ -8,4 +8,5 @@ declare const SPACE_TRUE_COLORS = 3;
8
8
  declare const isStdoutColorSupported: () => ColorSupportLevel;
9
9
  declare const isStderrColorSupported: () => ColorSupportLevel;
10
10
 
11
- export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
11
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
12
+ export type { ColorSupportLevel };
@@ -8,4 +8,5 @@ declare const SPACE_TRUE_COLORS = 3;
8
8
  declare const isStdoutColorSupported: () => ColorSupportLevel;
9
9
  declare const isStderrColorSupported: () => ColorSupportLevel;
10
10
 
11
- export { type ColorSupportLevel, SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
11
+ export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
12
+ export type { ColorSupportLevel };
@@ -1,33 +1 @@
1
- import { SPACE_TRUE_COLORS, SPACE_16_COLORS, SPACE_MONO } from './packem_shared/SPACE_MONO-VdlYcTli.mjs';
2
- export { SPACE_256_COLORS } from './packem_shared/SPACE_MONO-VdlYcTli.mjs';
3
-
4
- var __defProp$1 = Object.defineProperty;
5
- var __name$1 = (target, value) => __defProp$1(target, "name", { value, configurable: true });
6
- const isColorSupported$1 = /* @__PURE__ */ __name$1(() => (() => {
7
- if (typeof navigator !== "undefined") {
8
- if (navigator.userAgentData) {
9
- const brand = navigator.userAgentData.brands.find(({ b }) => b === "Chromium");
10
- if (brand?.version > 93) {
11
- return SPACE_TRUE_COLORS;
12
- }
13
- }
14
- if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
15
- return SPACE_16_COLORS;
16
- }
17
- }
18
- return SPACE_MONO;
19
- })(), "isColorSupported");
20
- const isStdoutColorSupported$1 = isColorSupported$1;
21
-
22
- var __defProp = Object.defineProperty;
23
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
24
- const isColorSupported = /* @__PURE__ */ __name(() => (() => {
25
- if (process.env.NEXT_RUNTIME !== void 0 && process.env.NEXT_RUNTIME.includes("edge")) {
26
- return SPACE_16_COLORS;
27
- }
28
- return isStdoutColorSupported$1();
29
- })(), "isColorSupported");
30
- const isStdoutColorSupported = isColorSupported;
31
- const isStderrColorSupported = isColorSupported;
32
-
33
- 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_16_COLORS-BEQbKWNs.mjs";import{SPACE_256_COLORS as E}from"./packem_shared/SPACE_16_COLORS-BEQbKWNs.mjs";var s=Object.defineProperty,p=o((r,e)=>s(r,"name",{value:e,configurable:!0}),"t$1");const d=p(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:r})=>r==="Chromium")?.version>93)return i;if(/\b(Chrome|Chromium)\//.test(navigator.userAgent))return t}return u})(),"isColorSupported"),C=d;var S=Object.defineProperty,v=o((r,e)=>S(r,"name",{value:e,configurable:!0}),"o");const n=v(()=>process.env.NEXT_RUNTIME!==void 0&&process.env.NEXT_RUNTIME.includes("edge")?t:C(),"isColorSupported"),g=n,l=n;export{t as SPACE_16_COLORS,E as SPACE_256_COLORS,u as SPACE_MONO,i as SPACE_TRUE_COLORS,l as isStderrColorSupported,g as isStdoutColorSupported};
@@ -1,137 +1 @@
1
- 'use strict';
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
- var __defProp = Object.defineProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- const isColorSupportedFactory = /* @__PURE__ */ __name((stdName) => {
10
- const _this = globalThis;
11
- const isDeno = _this.Deno != null;
12
- const proc = _this.process ?? _this.Deno ?? {};
13
- const argv = proc.argv ?? proc.args ?? [];
14
- const oneOfFlags = /* @__PURE__ */ __name((regex) => {
15
- const terminatorPosition = argv.indexOf("--");
16
- const position = argv.findIndex((flag) => regex.test(flag));
17
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
18
- }, "oneOfFlags");
19
- let environment = {};
20
- try {
21
- environment = isDeno ? proc.env.toObject() : proc.env ?? {};
22
- } catch {
23
- }
24
- const FORCE_COLOR = "FORCE_COLOR";
25
- const hasForceColor = FORCE_COLOR in environment;
26
- const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) : void 0;
27
- const forceColorValueIsString = Object.prototype.toString.call(forceColorValue).slice(8, -1) === "String";
28
- let forceColor;
29
- if (forceColorValue === "true") {
30
- forceColor = SPACE_MONO.SPACE_16_COLORS;
31
- } else if (forceColorValue === "false") {
32
- forceColor = SPACE_MONO.SPACE_MONO;
33
- } else if (forceColorValueIsString && forceColorValue.length === 0) {
34
- forceColor = SPACE_MONO.SPACE_16_COLORS;
35
- } else if (forceColorValueIsString && forceColorValue.length > 0) {
36
- forceColor = Math.min(Number.parseInt(forceColorValue, 10), 3);
37
- }
38
- if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !== void 0 && forceColor < 4) {
39
- return forceColor;
40
- }
41
- const isForceDisabled = (
42
- // eslint-disable-next-line regexp/no-unused-capturing-group
43
- "NO_COLOR" in environment || hasForceColor && forceColor === 0 || oneOfFlags(/^-{1,2}(no-color|no-colors|color=false|color=never)$/)
44
- );
45
- if (isForceDisabled) {
46
- return SPACE_MONO.SPACE_MONO;
47
- }
48
- if (oneOfFlags(/^-{1,2}(color=256)$/)) {
49
- return SPACE_MONO.SPACE_256_COLORS;
50
- }
51
- if (oneOfFlags(/^-{1,2}(color=16m|color=full|color=truecolor)$/)) {
52
- return SPACE_MONO.SPACE_TRUE_COLORS;
53
- }
54
- const isForceEnabled = oneOfFlags(/^-{1,2}(color|colors|color=true|color=always)$/);
55
- if (isForceEnabled) {
56
- return SPACE_MONO.SPACE_16_COLORS;
57
- }
58
- const minColorLevel = forceColor || SPACE_MONO.SPACE_MONO;
59
- if ("TF_BUILD" in environment && "AGENT_NAME" in environment) {
60
- return SPACE_MONO.SPACE_16_COLORS;
61
- }
62
- const isDumbTerminal = environment.TERM && /-mono|dumb/i.test(environment.TERM);
63
- if (isDumbTerminal) {
64
- return minColorLevel;
65
- }
66
- if ((isDeno ? _this.Deno.build.os : proc.platform) === "win32") {
67
- try {
68
- const osRelease = (isDeno ? _this.Deno.osRelease() : proc.os.release()).split(".");
69
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
70
- return Number(osRelease[2]) >= 14931 ? SPACE_MONO.SPACE_TRUE_COLORS : SPACE_MONO.SPACE_256_COLORS;
71
- }
72
- return SPACE_MONO.SPACE_16_COLORS;
73
- } catch {
74
- }
75
- }
76
- if ("CI" in environment) {
77
- if ("GITHUB_ACTIONS" in environment || "GITHUB_WORKFLOW" in environment || "GITEA_ACTIONS" in environment) {
78
- return SPACE_MONO.SPACE_TRUE_COLORS;
79
- }
80
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE", "GITLAB_CI"].some((sign) => sign in environment) || environment.CI_NAME === "codeship") {
81
- return SPACE_MONO.SPACE_16_COLORS;
82
- }
83
- return minColorLevel;
84
- }
85
- if (environment.TERMINAL_EMULATOR?.includes("JediTerm")) {
86
- return SPACE_MONO.SPACE_TRUE_COLORS;
87
- }
88
- if ("TEAMCITY_VERSION" in environment) {
89
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(environment.TEAMCITY_VERSION) ? SPACE_MONO.SPACE_16_COLORS : SPACE_MONO.SPACE_MONO;
90
- }
91
- if (environment.COLORTERM === "truecolor") {
92
- return SPACE_MONO.SPACE_TRUE_COLORS;
93
- }
94
- if (environment.TERM === "xterm-kitty") {
95
- return SPACE_MONO.SPACE_TRUE_COLORS;
96
- }
97
- if ("TERM_PROGRAM" in environment) {
98
- const version = Number.parseInt((environment.TERM_PROGRAM_VERSION ?? "").split(".")[0], 10);
99
- if (environment.TERM_PROGRAM === "iTerm.app") {
100
- return version >= 3 ? SPACE_MONO.SPACE_TRUE_COLORS : SPACE_MONO.SPACE_256_COLORS;
101
- }
102
- if (environment.TERM_PROGRAM === "Apple_Terminal") {
103
- return SPACE_MONO.SPACE_256_COLORS;
104
- }
105
- }
106
- if (/-256(color)?$/i.test(environment.TERM)) {
107
- return SPACE_MONO.SPACE_256_COLORS;
108
- }
109
- let isTTY = false;
110
- if (isDeno) {
111
- if (stdName === "out") {
112
- isTTY = _this.Deno.stdout.isTerminal();
113
- } else if (stdName === "err") {
114
- isTTY = _this.Deno.stderr.isTerminal();
115
- }
116
- } else if ("PM2_HOME" in environment && "pm_id" in environment) {
117
- isTTY = true;
118
- } else {
119
- isTTY = proc["std" + stdName] && "isTTY" in proc["std" + stdName];
120
- }
121
- if (isTTY && /^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i.test(environment.TERM)) {
122
- return SPACE_MONO.SPACE_16_COLORS;
123
- }
124
- if ("COLORTERM" in environment) {
125
- return SPACE_MONO.SPACE_16_COLORS;
126
- }
127
- return minColorLevel;
128
- }, "isColorSupportedFactory");
129
- const isStdoutColorSupported = /* @__PURE__ */ __name(() => isColorSupportedFactory("out"), "isStdoutColorSupported");
130
- const isStderrColorSupported = /* @__PURE__ */ __name(() => isColorSupportedFactory("err"), "isStderrColorSupported");
131
-
132
- exports.SPACE_16_COLORS = SPACE_MONO.SPACE_16_COLORS;
133
- exports.SPACE_256_COLORS = SPACE_MONO.SPACE_256_COLORS;
134
- exports.SPACE_MONO = SPACE_MONO.SPACE_MONO;
135
- exports.SPACE_TRUE_COLORS = SPACE_MONO.SPACE_TRUE_COLORS;
136
- exports.isStderrColorSupported = isStderrColorSupported;
137
- exports.isStdoutColorSupported = isStdoutColorSupported;
1
+ "use strict";var a=Object.defineProperty;var c=(S,t)=>a(S,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./packem_shared/SPACE_16_COLORS-CIFY-d7-.cjs");var f=Object.defineProperty,E=c((S,t)=>f(S,"name",{value:t,configurable:!0}),"f");const L=E(S=>{const t=globalThis,i=t.Deno!=null,C=t.process??t.Deno??{},u=C.argv??C.args??[],R=E(o=>{const T=u.indexOf("--"),P=u.findIndex(M=>o.test(M));return P!==-1&&(T===-1||P<T)},"oneOfFlags");let e={};try{e=i?C.env.toObject():C.env??{}}catch{}const l="FORCE_COLOR",d=l in e,_=e[l]?String(e[l]):void 0,A=Object.prototype.toString.call(_).slice(8,-1)==="String";let O;if(_==="true"?O=r.SPACE_16_COLORS:_==="false"?O=r.SPACE_MONO:A&&_.length===0?O=r.SPACE_16_COLORS:A&&_.length>0&&(O=Math.min(Number.parseInt(_,10),3)),_!=="true"&&_!=="false"&&O!==void 0&&O<4)return O;if("NO_COLOR"in e||d&&O===0||R(/^-{1,2}(no-color|no-colors|color=false|color=never)$/))return r.SPACE_MONO;if(R(/^-{1,2}(color=256)$/))return r.SPACE_256_COLORS;if(R(/^-{1,2}(color=16m|color=full|color=truecolor)$/))return r.SPACE_TRUE_COLORS;if(R(/^-{1,2}(color|colors|color=true|color=always)$/))return r.SPACE_16_COLORS;const s=O||r.SPACE_MONO;if("TF_BUILD"in e&&"AGENT_NAME"in e)return r.SPACE_16_COLORS;if(e.TERM&&/-mono|dumb/i.test(e.TERM))return s;if((i?t.Deno.build.os:C.platform)==="win32")try{const o=(i?t.Deno.osRelease():C.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:s;if(e.TERMINAL_EMULATOR?.includes("JediTerm"))return r.SPACE_TRUE_COLORS;if("TEAMCITY_VERSION"in e)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.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(/-256(color)?$/i.test(e.TERM))return r.SPACE_256_COLORS;let n=!1;return i?S==="out"?n=t.Deno.stdout.isTerminal():S==="err"&&(n=t.Deno.stderr.isTerminal()):"PM2_HOME"in e&&"pm_id"in e?n=!0:n=C[`std${S}`]&&"isTTY"in C[`std${S}`],n&&/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i.test(e.TERM)||"COLORTERM"in e?r.SPACE_16_COLORS:s},"isColorSupportedFactory"),p=E(()=>L("out"),"isStdoutColorSupported"),m=E(()=>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=m;exports.isStdoutColorSupported=p;
@@ -1,5 +1,5 @@
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';
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
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1,5 +1,5 @@
1
- import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.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-DeN59JDX.mjs';
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
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1,5 +1,5 @@
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';
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
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1,128 +1 @@
1
- import { SPACE_MONO, SPACE_256_COLORS, SPACE_TRUE_COLORS, SPACE_16_COLORS } from './packem_shared/SPACE_MONO-VdlYcTli.mjs';
2
-
3
- var __defProp = Object.defineProperty;
4
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
- const isColorSupportedFactory = /* @__PURE__ */ __name((stdName) => {
6
- const _this = globalThis;
7
- const isDeno = _this.Deno != null;
8
- const proc = _this.process ?? _this.Deno ?? {};
9
- const argv = proc.argv ?? proc.args ?? [];
10
- const oneOfFlags = /* @__PURE__ */ __name((regex) => {
11
- const terminatorPosition = argv.indexOf("--");
12
- const position = argv.findIndex((flag) => regex.test(flag));
13
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
14
- }, "oneOfFlags");
15
- let environment = {};
16
- try {
17
- environment = isDeno ? proc.env.toObject() : proc.env ?? {};
18
- } catch {
19
- }
20
- const FORCE_COLOR = "FORCE_COLOR";
21
- const hasForceColor = FORCE_COLOR in environment;
22
- const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) : void 0;
23
- const forceColorValueIsString = Object.prototype.toString.call(forceColorValue).slice(8, -1) === "String";
24
- let forceColor;
25
- if (forceColorValue === "true") {
26
- forceColor = SPACE_16_COLORS;
27
- } else if (forceColorValue === "false") {
28
- forceColor = SPACE_MONO;
29
- } else if (forceColorValueIsString && forceColorValue.length === 0) {
30
- forceColor = SPACE_16_COLORS;
31
- } else if (forceColorValueIsString && forceColorValue.length > 0) {
32
- forceColor = Math.min(Number.parseInt(forceColorValue, 10), 3);
33
- }
34
- if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !== void 0 && forceColor < 4) {
35
- return forceColor;
36
- }
37
- const isForceDisabled = (
38
- // eslint-disable-next-line regexp/no-unused-capturing-group
39
- "NO_COLOR" in environment || hasForceColor && forceColor === 0 || oneOfFlags(/^-{1,2}(no-color|no-colors|color=false|color=never)$/)
40
- );
41
- if (isForceDisabled) {
42
- return SPACE_MONO;
43
- }
44
- if (oneOfFlags(/^-{1,2}(color=256)$/)) {
45
- return SPACE_256_COLORS;
46
- }
47
- if (oneOfFlags(/^-{1,2}(color=16m|color=full|color=truecolor)$/)) {
48
- return SPACE_TRUE_COLORS;
49
- }
50
- const isForceEnabled = oneOfFlags(/^-{1,2}(color|colors|color=true|color=always)$/);
51
- if (isForceEnabled) {
52
- return SPACE_16_COLORS;
53
- }
54
- const minColorLevel = forceColor || SPACE_MONO;
55
- if ("TF_BUILD" in environment && "AGENT_NAME" in environment) {
56
- return SPACE_16_COLORS;
57
- }
58
- const isDumbTerminal = environment.TERM && /-mono|dumb/i.test(environment.TERM);
59
- if (isDumbTerminal) {
60
- return minColorLevel;
61
- }
62
- if ((isDeno ? _this.Deno.build.os : proc.platform) === "win32") {
63
- try {
64
- const osRelease = (isDeno ? _this.Deno.osRelease() : proc.os.release()).split(".");
65
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
66
- return Number(osRelease[2]) >= 14931 ? SPACE_TRUE_COLORS : SPACE_256_COLORS;
67
- }
68
- return SPACE_16_COLORS;
69
- } catch {
70
- }
71
- }
72
- if ("CI" in environment) {
73
- if ("GITHUB_ACTIONS" in environment || "GITHUB_WORKFLOW" in environment || "GITEA_ACTIONS" in environment) {
74
- return SPACE_TRUE_COLORS;
75
- }
76
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE", "GITLAB_CI"].some((sign) => sign in environment) || environment.CI_NAME === "codeship") {
77
- return SPACE_16_COLORS;
78
- }
79
- return minColorLevel;
80
- }
81
- if (environment.TERMINAL_EMULATOR?.includes("JediTerm")) {
82
- return SPACE_TRUE_COLORS;
83
- }
84
- if ("TEAMCITY_VERSION" in environment) {
85
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(environment.TEAMCITY_VERSION) ? SPACE_16_COLORS : SPACE_MONO;
86
- }
87
- if (environment.COLORTERM === "truecolor") {
88
- return SPACE_TRUE_COLORS;
89
- }
90
- if (environment.TERM === "xterm-kitty") {
91
- return SPACE_TRUE_COLORS;
92
- }
93
- if ("TERM_PROGRAM" in environment) {
94
- const version = Number.parseInt((environment.TERM_PROGRAM_VERSION ?? "").split(".")[0], 10);
95
- if (environment.TERM_PROGRAM === "iTerm.app") {
96
- return version >= 3 ? SPACE_TRUE_COLORS : SPACE_256_COLORS;
97
- }
98
- if (environment.TERM_PROGRAM === "Apple_Terminal") {
99
- return SPACE_256_COLORS;
100
- }
101
- }
102
- if (/-256(color)?$/i.test(environment.TERM)) {
103
- return SPACE_256_COLORS;
104
- }
105
- let isTTY = false;
106
- if (isDeno) {
107
- if (stdName === "out") {
108
- isTTY = _this.Deno.stdout.isTerminal();
109
- } else if (stdName === "err") {
110
- isTTY = _this.Deno.stderr.isTerminal();
111
- }
112
- } else if ("PM2_HOME" in environment && "pm_id" in environment) {
113
- isTTY = true;
114
- } else {
115
- isTTY = proc["std" + stdName] && "isTTY" in proc["std" + stdName];
116
- }
117
- if (isTTY && /^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i.test(environment.TERM)) {
118
- return SPACE_16_COLORS;
119
- }
120
- if ("COLORTERM" in environment) {
121
- return SPACE_16_COLORS;
122
- }
123
- return minColorLevel;
124
- }, "isColorSupportedFactory");
125
- const isStdoutColorSupported = /* @__PURE__ */ __name(() => isColorSupportedFactory("out"), "isStdoutColorSupported");
126
- const isStderrColorSupported = /* @__PURE__ */ __name(() => isColorSupportedFactory("err"), "isStderrColorSupported");
127
-
128
- export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS, isStderrColorSupported, isStdoutColorSupported };
1
+ var N=Object.defineProperty;var p=(l,e)=>N(l,"name",{value:e,configurable:!0});import{SPACE_MONO as E,SPACE_256_COLORS as c,SPACE_TRUE_COLORS as n,SPACE_16_COLORS as i}from"./packem_shared/SPACE_16_COLORS-BEQbKWNs.mjs";var L=Object.defineProperty,f=p((l,e)=>L(l,"name",{value:e,configurable:!0}),"f");const S=f(l=>{const e=globalThis,T=e.Deno!=null,s=e.process??e.Deno??{},m=s.argv??s.args??[],O=f(t=>{const M=m.indexOf("--"),_=m.findIndex(A=>t.test(A));return _!==-1&&(M===-1||_<M)},"oneOfFlags");let r={};try{r=T?s.env.toObject():s.env??{}}catch{}const a="FORCE_COLOR",I=a in r,u=r[a]?String(r[a]):void 0,C=Object.prototype.toString.call(u).slice(8,-1)==="String";let o;if(u==="true"?o=i:u==="false"?o=E:C&&u.length===0?o=i:C&&u.length>0&&(o=Math.min(Number.parseInt(u,10),3)),u!=="true"&&u!=="false"&&o!==void 0&&o<4)return o;if("NO_COLOR"in r||I&&o===0||O(/^-{1,2}(no-color|no-colors|color=false|color=never)$/))return E;if(O(/^-{1,2}(color=256)$/))return c;if(O(/^-{1,2}(color=16m|color=full|color=truecolor)$/))return n;if(O(/^-{1,2}(color|colors|color=true|color=always)$/))return i;const d=o||E;if("TF_BUILD"in r&&"AGENT_NAME"in r)return i;if(r.TERM&&/-mono|dumb/i.test(r.TERM))return d;if((T?e.Deno.build.os:s.platform)==="win32")try{const t=(T?e.Deno.osRelease():s.os.release()).split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?n:c:i}catch{}if("CI"in r)return["GITEA_ACTIONS","CIRCLECI","GITHUB_WORKFLOW","GITHUB_ACTIONS"].some(t=>t in r)?n:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(t=>t in r)||r.CI_NAME==="codeship"?i:d;if(r.TERMINAL_EMULATOR?.includes("JediTerm"))return n;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?i:E;if(r.COLORTERM==="truecolor")return n;if(r.TERM==="xterm-kitty")return n;if(r.TERM==="xterm-ghostty")return n;if(r.TERM==="wezterm")return n;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?n:c;if(r.TERM_PROGRAM==="Apple_Terminal")return c}if(/-256(color)?$/i.test(r.TERM))return c;let R=!1;return T?l==="out"?R=e.Deno.stdout.isTerminal():l==="err"&&(R=e.Deno.stderr.isTerminal()):"PM2_HOME"in r&&"pm_id"in r?R=!0:R=s[`std${l}`]&&"isTTY"in s[`std${l}`],R&&/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i.test(r.TERM)?i:"COLORTERM"in r?i:d},"isColorSupportedFactory"),P=f(()=>S("out"),"isStdoutColorSupported"),v=f(()=>S("err"),"isStderrColorSupported");export{i as SPACE_16_COLORS,c as SPACE_256_COLORS,E as SPACE_MONO,n as SPACE_TRUE_COLORS,v as isStderrColorSupported,P 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;
@@ -5,4 +5,5 @@ declare const SPACE_16_COLORS = 1;
5
5
  declare const SPACE_256_COLORS = 2;
6
6
  declare const SPACE_TRUE_COLORS = 3;
7
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 };
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 };
@@ -5,4 +5,5 @@ declare const SPACE_16_COLORS = 1;
5
5
  declare const SPACE_256_COLORS = 2;
6
6
  declare const SPACE_TRUE_COLORS = 3;
7
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 };
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 };
@@ -5,4 +5,5 @@ declare const SPACE_16_COLORS = 1;
5
5
  declare const SPACE_256_COLORS = 2;
6
6
  declare const SPACE_TRUE_COLORS = 3;
7
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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/is-ansi-color-supported",
3
- "version": "2.2.14",
3
+ "version": "2.3.0",
4
4
  "description": "Detect whether a terminal or browser supports ansi colors.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -68,33 +68,33 @@
68
68
  "types": "./dist/is-color-supported.browser.d.mts",
69
69
  "default": "./dist/is-color-supported.browser.mjs"
70
70
  },
71
- "require": {
72
- "types": "./dist/is-color-supported.server.d.cts",
73
- "default": "./dist/is-color-supported.server.cjs"
74
- },
75
71
  "import": {
76
72
  "types": "./dist/is-color-supported.server.d.mts",
77
73
  "default": "./dist/is-color-supported.server.mjs"
74
+ },
75
+ "require": {
76
+ "types": "./dist/is-color-supported.server.d.cts",
77
+ "default": "./dist/is-color-supported.server.cjs"
78
78
  }
79
79
  },
80
80
  "./browser": {
81
- "require": {
82
- "types": "./dist/is-color-supported.browser.d.cts",
83
- "default": "./dist/is-color-supported.browser.cjs"
84
- },
85
81
  "import": {
86
82
  "types": "./dist/is-color-supported.browser.d.mts",
87
83
  "default": "./dist/is-color-supported.browser.mjs"
84
+ },
85
+ "require": {
86
+ "types": "./dist/is-color-supported.browser.d.cts",
87
+ "default": "./dist/is-color-supported.browser.cjs"
88
88
  }
89
89
  },
90
90
  "./edge-light": {
91
- "require": {
92
- "types": "./dist/is-color-supported.edge-light.d.cts",
93
- "default": "./dist/is-color-supported.edge-light.cjs"
94
- },
95
91
  "import": {
96
92
  "types": "./dist/is-color-supported.edge-light.d.mts",
97
93
  "default": "./dist/is-color-supported.edge-light.mjs"
94
+ },
95
+ "require": {
96
+ "types": "./dist/is-color-supported.edge-light.d.cts",
97
+ "default": "./dist/is-color-supported.edge-light.cjs"
98
98
  }
99
99
  },
100
100
  "./package.json": "./package.json"
@@ -125,7 +125,7 @@
125
125
  "LICENSE.md"
126
126
  ],
127
127
  "engines": {
128
- "node": ">=18.0.0 <=23.x"
128
+ "node": ">=18.0.0 <=24.x"
129
129
  },
130
130
  "os": [
131
131
  "darwin",
@@ -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;
@@ -1,6 +0,0 @@
1
- const SPACE_MONO = 0;
2
- const SPACE_16_COLORS = 1;
3
- const SPACE_256_COLORS = 2;
4
- const SPACE_TRUE_COLORS = 3;
5
-
6
- export { SPACE_16_COLORS, SPACE_256_COLORS, SPACE_MONO, SPACE_TRUE_COLORS };