@visulima/is-ansi-color-supported 2.2.4 → 2.2.5
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,9 @@
|
|
|
1
|
+
## @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)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* fixed broken chunk splitting from packem ([1aaf277](https://github.com/visulima/visulima/commit/1aaf27779292d637923c5f8a220e18606e78caa2))
|
|
6
|
+
|
|
1
7
|
## @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
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
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"./shared/SPACE_MONO-BEQbKWNs.mjs";import{SPACE_256_COLORS as v}from"./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
|
-
var N=Object.defineProperty;var
|
|
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"./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.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Detect whether a terminal or browser supports ansi colors.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -100,7 +100,7 @@
|
|
|
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.
|
|
103
|
+
"@visulima/packem": "^1.0.0-alpha.95",
|
|
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};
|