@visulima/is-ansi-color-supported 2.2.4 → 2.2.6

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,19 @@
1
+ ## @visulima/is-ansi-color-supported [2.2.6](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.5...@visulima/is-ansi-color-supported@2.2.6) (2024-09-11)
2
+
3
+ ### Bug Fixes
4
+
5
+ * fixed node10 support ([f5e78d9](https://github.com/visulima/visulima/commit/f5e78d9bff8fd603967666598b34f9338a8726b5))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * updated dev dependencies ([28b5ee5](https://github.com/visulima/visulima/commit/28b5ee5c805ca8868536418829cde7ba8c5bb8dd))
10
+
11
+ ## @visulima/is-ansi-color-supported [2.2.5](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.4...@visulima/is-ansi-color-supported@2.2.5) (2024-09-07)
12
+
13
+ ### Bug Fixes
14
+
15
+ * fixed broken chunk splitting from packem ([1aaf277](https://github.com/visulima/visulima/commit/1aaf27779292d637923c5f8a220e18606e78caa2))
16
+
1
17
  ## @visulima/is-ansi-color-supported [2.2.4](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.3...@visulima/is-ansi-color-supported@2.2.4) (2024-09-07)
2
18
 
3
19
  ### Bug Fixes
@@ -1 +1 @@
1
- "use strict";var C=Object.defineProperty;var t=(e,o)=>C(e,"name",{value:o,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./shared/SPACE_MONO-D73nMay-.cjs");var O=Object.defineProperty,i=t((e,o)=>O(e,"name",{value:o,configurable:!0}),"e");const S=i(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:e})=>e==="Chromium")?.version>93)return r.SPACE_TRUE_COLORS;if(/\b(Chrome|Chromium)\//.test(navigator.userAgent))return r.SPACE_16_COLORS}return typeof process<"u"&&(process.env.NEXT_RUNTIME??"").includes("edge")?r.SPACE_16_COLORS:r.SPACE_MONO})(),"isColorSupported"),u=S,_=S;exports.SPACE_16_COLORS=r.SPACE_16_COLORS;exports.SPACE_256_COLORS=r.SPACE_256_COLORS;exports.SPACE_MONO=r.SPACE_MONO;exports.SPACE_TRUE_COLORS=r.SPACE_TRUE_COLORS;exports.isStderrColorSupported=_;exports.isStdoutColorSupported=u;
1
+ "use strict";var C=Object.defineProperty;var t=(e,o)=>C(e,"name",{value:o,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./packem_shared/SPACE_MONO-D73nMay-.cjs");var O=Object.defineProperty,i=t((e,o)=>O(e,"name",{value:o,configurable:!0}),"e");const S=i(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:e})=>e==="Chromium")?.version>93)return r.SPACE_TRUE_COLORS;if(/\b(Chrome|Chromium)\//.test(navigator.userAgent))return r.SPACE_16_COLORS}return typeof process<"u"&&(process.env.NEXT_RUNTIME??"").includes("edge")?r.SPACE_16_COLORS:r.SPACE_MONO})(),"isColorSupported"),u=S,_=S;exports.SPACE_16_COLORS=r.SPACE_16_COLORS;exports.SPACE_256_COLORS=r.SPACE_256_COLORS;exports.SPACE_MONO=r.SPACE_MONO;exports.SPACE_TRUE_COLORS=r.SPACE_TRUE_COLORS;exports.isStderrColorSupported=_;exports.isStdoutColorSupported=u;
@@ -1,5 +1,5 @@
1
- import { C as ColorSupportLevel } from './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 './shared/color-spaces-DeN59JDX.cjs';
1
+ import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.cjs';
2
+ export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.cjs';
3
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1,5 +1,5 @@
1
- import { C as ColorSupportLevel } from './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 './shared/color-spaces-DeN59JDX.mjs';
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';
3
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1,5 +1,5 @@
1
- import { C as ColorSupportLevel } from './shared/color-spaces-DeN59JDX.d.mjs';
2
- export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './shared/color-spaces-DeN59JDX.d.mjs';
1
+ import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.d.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.d.mjs';
3
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1 +1 @@
1
- var s=Object.defineProperty;var o=(r,e)=>s(r,"name",{value:e,configurable:!0});import{S as i,a as t,b as a}from"./shared/SPACE_MONO-BOPU_k0i.mjs";import{c as v}from"./shared/SPACE_MONO-BOPU_k0i.mjs";var u=Object.defineProperty,p=o((r,e)=>u(r,"name",{value:e,configurable:!0}),"e");const n=p(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:r})=>r==="Chromium")?.version>93)return i;if(/\b(Chrome|Chromium)\//.test(navigator.userAgent))return t}return typeof process<"u"?(process.env.NEXT_RUNTIME??"").includes("edge")?t:a:a})(),"isColorSupported"),d=n,f=n;export{t as SPACE_16_COLORS,v as SPACE_256_COLORS,a as SPACE_MONO,i as SPACE_TRUE_COLORS,f as isStderrColorSupported,d as isStdoutColorSupported};
1
+ var a=Object.defineProperty;var o=(r,e)=>a(r,"name",{value:e,configurable:!0});import{SPACE_TRUE_COLORS as u,SPACE_16_COLORS as t,SPACE_MONO as n}from"./packem_shared/SPACE_MONO-BEQbKWNs.mjs";import{SPACE_256_COLORS as v}from"./packem_shared/SPACE_MONO-BEQbKWNs.mjs";var s=Object.defineProperty,p=o((r,e)=>s(r,"name",{value:e,configurable:!0}),"e");const i=p(()=>(()=>{if(typeof navigator<"u"){if(navigator.userAgentData&&navigator.userAgentData.brands.find(({b:r})=>r==="Chromium")?.version>93)return u;if(/\b(Chrome|Chromium)\//.test(navigator.userAgent))return t}return typeof process<"u"?(process.env.NEXT_RUNTIME??"").includes("edge")?t:n:n})(),"isColorSupported"),d=i,f=i;export{t as SPACE_16_COLORS,v as SPACE_256_COLORS,n as SPACE_MONO,u as SPACE_TRUE_COLORS,f as isStderrColorSupported,d as isStdoutColorSupported};
@@ -1 +1 @@
1
- "use strict";var a=Object.defineProperty;var P=(S,t)=>a(S,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/SPACE_MONO-D73nMay-.cjs");var p=Object.defineProperty,R=P((S,t)=>p(S,"name",{value:t,configurable:!0}),"f");const L=R(S=>{const t=globalThis,i=t.Deno!=null,C=t.process??t.Deno??{},A=C.argv??C.args??[],E=R(O=>{const T=A.indexOf("--"),c=A.findIndex(M=>O.test(M));return c!==-1&&(T===-1||c<T)},"oneOfFlags");let r={};try{r=i?C.env.toObject():C.env??{}}catch{}const l="FORCE_COLOR",d=l in r,_=r[l]?String(r[l]):void 0,u=Object.prototype.toString.call(_).slice(8,-1)==="String";let o;if(_==="true"?o=e.SPACE_16_COLORS:_==="false"?o=e.SPACE_MONO:u&&_.length===0?o=e.SPACE_16_COLORS:u&&_.length>0&&(o=Math.min(Number.parseInt(_,10),3)),_!=="true"&&_!=="false"&&o!==void 0&&o<4)return o;if("NO_COLOR"in r||d&&o===0||E(/^-{1,2}(no-color|no-colors|color=false|color=never)$/))return e.SPACE_MONO;if(E(/^-{1,2}(color=256)$/))return e.SPACE_256_COLORS;if(E(/^-{1,2}(color=16m|color=full|color=truecolor)$/))return e.SPACE_TRUE_COLORS;if(E(/^-{1,2}(color|colors|color=true|color=always)$/))return e.SPACE_16_COLORS;const s=o||e.SPACE_MONO;if("TF_BUILD"in r&&"AGENT_NAME"in r)return e.SPACE_16_COLORS;if(r.TERM&&/-mono|dumb/i.test(r.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?e.SPACE_TRUE_COLORS:e.SPACE_256_COLORS:e.SPACE_16_COLORS}catch{}if("CI"in r)return"GITHUB_ACTIONS"in r||"GITHUB_WORKFLOW"in r||"GITEA_ACTIONS"in r?e.SPACE_TRUE_COLORS:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE","GITLAB_CI"].some(O=>O in r)||r.CI_NAME==="codeship"?e.SPACE_16_COLORS:s;if(r.TERMINAL_EMULATOR?.includes("JediTerm"))return e.SPACE_TRUE_COLORS;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?e.SPACE_16_COLORS:e.SPACE_MONO;if(r.COLORTERM==="truecolor"||r.TERM==="xterm-kitty")return e.SPACE_TRUE_COLORS;if("TERM_PROGRAM"in r){const O=Number.parseInt((r.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(r.TERM_PROGRAM==="iTerm.app")return O>=3?e.SPACE_TRUE_COLORS:e.SPACE_256_COLORS;if(r.TERM_PROGRAM==="Apple_Terminal")return e.SPACE_256_COLORS}if(/-256(color)?$/i.test(r.TERM))return e.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 r&&"pm_id"in r?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(r.TERM)||"COLORTERM"in r?e.SPACE_16_COLORS:s},"isColorSupportedFactory"),f=R(()=>L("out"),"isStdoutColorSupported"),I=R(()=>L("err"),"isStderrColorSupported");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=I;exports.isStdoutColorSupported=f;
1
+ "use strict";var a=Object.defineProperty;var P=(S,t)=>a(S,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./packem_shared/SPACE_MONO-D73nMay-.cjs");var p=Object.defineProperty,R=P((S,t)=>p(S,"name",{value:t,configurable:!0}),"f");const L=R(S=>{const t=globalThis,i=t.Deno!=null,C=t.process??t.Deno??{},A=C.argv??C.args??[],E=R(O=>{const T=A.indexOf("--"),c=A.findIndex(M=>O.test(M));return c!==-1&&(T===-1||c<T)},"oneOfFlags");let r={};try{r=i?C.env.toObject():C.env??{}}catch{}const l="FORCE_COLOR",d=l in r,_=r[l]?String(r[l]):void 0,u=Object.prototype.toString.call(_).slice(8,-1)==="String";let o;if(_==="true"?o=e.SPACE_16_COLORS:_==="false"?o=e.SPACE_MONO:u&&_.length===0?o=e.SPACE_16_COLORS:u&&_.length>0&&(o=Math.min(Number.parseInt(_,10),3)),_!=="true"&&_!=="false"&&o!==void 0&&o<4)return o;if("NO_COLOR"in r||d&&o===0||E(/^-{1,2}(no-color|no-colors|color=false|color=never)$/))return e.SPACE_MONO;if(E(/^-{1,2}(color=256)$/))return e.SPACE_256_COLORS;if(E(/^-{1,2}(color=16m|color=full|color=truecolor)$/))return e.SPACE_TRUE_COLORS;if(E(/^-{1,2}(color|colors|color=true|color=always)$/))return e.SPACE_16_COLORS;const s=o||e.SPACE_MONO;if("TF_BUILD"in r&&"AGENT_NAME"in r)return e.SPACE_16_COLORS;if(r.TERM&&/-mono|dumb/i.test(r.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?e.SPACE_TRUE_COLORS:e.SPACE_256_COLORS:e.SPACE_16_COLORS}catch{}if("CI"in r)return"GITHUB_ACTIONS"in r||"GITHUB_WORKFLOW"in r||"GITEA_ACTIONS"in r?e.SPACE_TRUE_COLORS:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE","GITLAB_CI"].some(O=>O in r)||r.CI_NAME==="codeship"?e.SPACE_16_COLORS:s;if(r.TERMINAL_EMULATOR?.includes("JediTerm"))return e.SPACE_TRUE_COLORS;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?e.SPACE_16_COLORS:e.SPACE_MONO;if(r.COLORTERM==="truecolor"||r.TERM==="xterm-kitty")return e.SPACE_TRUE_COLORS;if("TERM_PROGRAM"in r){const O=Number.parseInt((r.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(r.TERM_PROGRAM==="iTerm.app")return O>=3?e.SPACE_TRUE_COLORS:e.SPACE_256_COLORS;if(r.TERM_PROGRAM==="Apple_Terminal")return e.SPACE_256_COLORS}if(/-256(color)?$/i.test(r.TERM))return e.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 r&&"pm_id"in r?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(r.TERM)||"COLORTERM"in r?e.SPACE_16_COLORS:s},"isColorSupportedFactory"),f=R(()=>L("out"),"isStdoutColorSupported"),I=R(()=>L("err"),"isStderrColorSupported");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=I;exports.isStdoutColorSupported=f;
@@ -1,5 +1,5 @@
1
- import { C as ColorSupportLevel } from './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 './shared/color-spaces-DeN59JDX.cjs';
1
+ import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.cjs';
2
+ export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.cjs';
3
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1,5 +1,5 @@
1
- import { C as ColorSupportLevel } from './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 './shared/color-spaces-DeN59JDX.mjs';
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';
3
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1,5 +1,5 @@
1
- import { C as ColorSupportLevel } from './shared/color-spaces-DeN59JDX.d.mjs';
2
- export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './shared/color-spaces-DeN59JDX.d.mjs';
1
+ import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.d.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.d.mjs';
3
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -1 +1 @@
1
- var N=Object.defineProperty;var I=(i,e)=>N(i,"name",{value:e,configurable:!0});import{a as n,b as a,c as R,S as u}from"./shared/SPACE_MONO-BOPU_k0i.mjs";var L=Object.defineProperty,E=I((i,e)=>L(i,"name",{value:e,configurable:!0}),"f");const m=E(i=>{const e=globalThis,O=e.Deno!=null,s=e.process??e.Deno??{},C=s.argv??s.args??[],T=E(o=>{const p=C.indexOf("--"),S=C.findIndex(A=>o.test(A));return S!==-1&&(p===-1||S<p)},"oneOfFlags");let r={};try{r=O?s.env.toObject():s.env??{}}catch{}const d="FORCE_COLOR",M=d in r,l=r[d]?String(r[d]):void 0,_=Object.prototype.toString.call(l).slice(8,-1)==="String";let t;if(l==="true"?t=n:l==="false"?t=a:_&&l.length===0?t=n:_&&l.length>0&&(t=Math.min(Number.parseInt(l,10),3)),l!=="true"&&l!=="false"&&t!==void 0&&t<4)return t;if("NO_COLOR"in r||M&&t===0||T(/^-{1,2}(no-color|no-colors|color=false|color=never)$/))return a;if(T(/^-{1,2}(color=256)$/))return R;if(T(/^-{1,2}(color=16m|color=full|color=truecolor)$/))return u;if(T(/^-{1,2}(color|colors|color=true|color=always)$/))return n;const f=t||a;if("TF_BUILD"in r&&"AGENT_NAME"in r)return n;if(r.TERM&&/-mono|dumb/i.test(r.TERM))return f;if((O?e.Deno.build.os:s.platform)==="win32")try{const o=(O?e.Deno.osRelease():s.os.release()).split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?u:R:n}catch{}if("CI"in r)return"GITHUB_ACTIONS"in r||"GITHUB_WORKFLOW"in r||"GITEA_ACTIONS"in r?u:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE","GITLAB_CI"].some(o=>o in r)||r.CI_NAME==="codeship"?n:f;if(r.TERMINAL_EMULATOR?.includes("JediTerm"))return u;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?n:a;if(r.COLORTERM==="truecolor")return u;if(r.TERM==="xterm-kitty")return u;if("TERM_PROGRAM"in r){const o=Number.parseInt((r.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(r.TERM_PROGRAM==="iTerm.app")return o>=3?u:R;if(r.TERM_PROGRAM==="Apple_Terminal")return R}if(/-256(color)?$/i.test(r.TERM))return R;let c=!1;return O?i==="out"?c=e.Deno.stdout.isTerminal():i==="err"&&(c=e.Deno.stderr.isTerminal()):"PM2_HOME"in r&&"pm_id"in r?c=!0:c=s["std"+i]&&"isTTY"in s["std"+i],c&&/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i.test(r.TERM)?n:"COLORTERM"in r?n:f},"isColorSupportedFactory"),g=E(()=>m("out"),"isStdoutColorSupported"),v=E(()=>m("err"),"isStderrColorSupported");export{n as SPACE_16_COLORS,R as SPACE_256_COLORS,a as SPACE_MONO,u as SPACE_TRUE_COLORS,v as isStderrColorSupported,g as isStdoutColorSupported};
1
+ var N=Object.defineProperty;var S=(i,e)=>N(i,"name",{value:e,configurable:!0});import{SPACE_16_COLORS as n,SPACE_MONO as E,SPACE_256_COLORS as R,SPACE_TRUE_COLORS as u}from"./packem_shared/SPACE_MONO-BEQbKWNs.mjs";var L=Object.defineProperty,d=S((i,e)=>L(i,"name",{value:e,configurable:!0}),"f");const m=d(i=>{const e=globalThis,O=e.Deno!=null,l=e.process??e.Deno??{},C=l.argv??l.args??[],T=d(o=>{const p=C.indexOf("--"),I=C.findIndex(A=>o.test(A));return I!==-1&&(p===-1||I<p)},"oneOfFlags");let r={};try{r=O?l.env.toObject():l.env??{}}catch{}const a="FORCE_COLOR",M=a in r,s=r[a]?String(r[a]):void 0,_=Object.prototype.toString.call(s).slice(8,-1)==="String";let t;if(s==="true"?t=n:s==="false"?t=E:_&&s.length===0?t=n:_&&s.length>0&&(t=Math.min(Number.parseInt(s,10),3)),s!=="true"&&s!=="false"&&t!==void 0&&t<4)return t;if("NO_COLOR"in r||M&&t===0||T(/^-{1,2}(no-color|no-colors|color=false|color=never)$/))return E;if(T(/^-{1,2}(color=256)$/))return R;if(T(/^-{1,2}(color=16m|color=full|color=truecolor)$/))return u;if(T(/^-{1,2}(color|colors|color=true|color=always)$/))return n;const f=t||E;if("TF_BUILD"in r&&"AGENT_NAME"in r)return n;if(r.TERM&&/-mono|dumb/i.test(r.TERM))return f;if((O?e.Deno.build.os:l.platform)==="win32")try{const o=(O?e.Deno.osRelease():l.os.release()).split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?u:R:n}catch{}if("CI"in r)return"GITHUB_ACTIONS"in r||"GITHUB_WORKFLOW"in r||"GITEA_ACTIONS"in r?u:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE","GITLAB_CI"].some(o=>o in r)||r.CI_NAME==="codeship"?n:f;if(r.TERMINAL_EMULATOR?.includes("JediTerm"))return u;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?n:E;if(r.COLORTERM==="truecolor")return u;if(r.TERM==="xterm-kitty")return u;if("TERM_PROGRAM"in r){const o=Number.parseInt((r.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(r.TERM_PROGRAM==="iTerm.app")return o>=3?u:R;if(r.TERM_PROGRAM==="Apple_Terminal")return R}if(/-256(color)?$/i.test(r.TERM))return R;let c=!1;return O?i==="out"?c=e.Deno.stdout.isTerminal():i==="err"&&(c=e.Deno.stderr.isTerminal()):"PM2_HOME"in r&&"pm_id"in r?c=!0:c=l["std"+i]&&"isTTY"in l["std"+i],c&&/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i.test(r.TERM)?n:"COLORTERM"in r?n:f},"isColorSupportedFactory"),g=d(()=>m("out"),"isStdoutColorSupported"),v=d(()=>m("err"),"isStderrColorSupported");export{n as SPACE_16_COLORS,R as SPACE_256_COLORS,E as SPACE_MONO,u as SPACE_TRUE_COLORS,v as isStderrColorSupported,g 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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/is-ansi-color-supported",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "Detect whether a terminal or browser supports ansi colors.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -77,8 +77,8 @@
77
77
  "browser": "./dist/is-color-supported.browser.mjs",
78
78
  "types": "dist/is-color-supported.server.d.ts",
79
79
  "typesVersions": {
80
- "*": {
81
- "*": [
80
+ ">=5.0": {
81
+ ".": [
82
82
  "./dist/is-color-supported.browser.d.ts",
83
83
  "./dist/is-color-supported.server.d.ts"
84
84
  ]
@@ -95,12 +95,12 @@
95
95
  "@anolilab/prettier-config": "^5.0.14",
96
96
  "@anolilab/semantic-release-pnpm": "^1.1.3",
97
97
  "@anolilab/semantic-release-preset": "^9.0.0",
98
- "@arethetypeswrong/cli": "^0.15.4",
98
+ "@arethetypeswrong/cli": "^0.16.2",
99
99
  "@babel/core": "^7.25.2",
100
100
  "@rushstack/eslint-plugin-security": "^0.8.2",
101
101
  "@secretlint/secretlint-rule-preset-recommend": "^8.2.4",
102
102
  "@types/node": "18.19.15",
103
- "@visulima/packem": "^1.0.0-alpha.93",
103
+ "@visulima/packem": "^1.0.0-alpha.108",
104
104
  "@vitest/coverage-v8": "^2.0.5",
105
105
  "@vitest/ui": "^2.0.5",
106
106
  "conventional-changelog-conventionalcommits": "8.0.0",
@@ -1 +0,0 @@
1
- const O=0,S=1,C=2,_=3;export{_ as S,S as a,O as b,C as c};