@terai/logger 0.0.16 → 0.0.17
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/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +280 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +280 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("node:process"),l=s(c,1);c=s(c);let u=require("node:os");u=s(u,1);let d=require("node:tty");d=s(d,1);function f(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}function p(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
|
|
2
2
|
`:`
|
|
3
3
|
`)+n,i=r+1,r=e.indexOf(`
|
|
4
|
-
`,i)}while(r!==-1);return a+=e.slice(i),a}const{
|
|
5
|
-
`);return a!==-1&&(t=
|
|
4
|
+
`,i)}while(r!==-1);return a+=e.slice(i),a}const m=(e=0)=>t=>`\u{1B}[${t+e}m`,h=(e=0)=>t=>`\u{1B}[${38+e};5;${t}m`,g=(e=0)=>(t,n,r)=>`\u{1B}[${38+e};2;${t};${n};${r}m`,_=e=>`\u{1B}[58;5;${e<90?e-30:e-90+8}m`,v={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],underlineDouble:[`4:2`,24],underlineCurly:[`4:3`,24],underlineDotted:[`4:4`,24],underlineDashed:[`4:5`,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},underlineColor:{underlineBlack:[`58;5;0`,59],underlineRed:[`58;5;1`,59],underlineGreen:[`58;5;2`,59],underlineYellow:[`58;5;3`,59],underlineBlue:[`58;5;4`,59],underlineMagenta:[`58;5;5`,59],underlineCyan:[`58;5;6`,59],underlineWhite:[`58;5;7`,59],underlineBlackBright:[`58;5;8`,59],underlineGray:[`58;5;8`,59],underlineGrey:[`58;5;8`,59],underlineRedBright:[`58;5;9`,59],underlineGreenBright:[`58;5;10`,59],underlineYellowBright:[`58;5;11`,59],underlineBlueBright:[`58;5;12`,59],underlineMagentaBright:[`58;5;13`,59],underlineCyanBright:[`58;5;14`,59],underlineWhiteBright:[`58;5;15`,59]}};Object.keys(v.modifier);const y=Object.keys(v.color),b=Object.keys(v.bgColor);Object.keys(v.underlineColor),[...y,...b];function x(){let e=/* @__PURE__ */ new Map;for(let[t,n]of Object.entries(v)){for(let[t,r]of Object.entries(n))v[t]={open:`\u{1B}[${r[0]}m`,close:`\u{1B}[${r[1]}m`},n[t]=v[t],e.set(Number.parseInt(r[0],10),r[1]);Object.defineProperty(v,t,{value:n,enumerable:!1})}return Object.defineProperty(v,"codes",{value:e,enumerable:!1}),v.color.close=`\x1B[39m`,v.bgColor.close=`\x1B[49m`,v.underlineColor.close=`\x1B[59m`,v.color.ansi=m(),v.color.ansi256=h(),v.color.ansi16m=g(),v.bgColor.ansi=m(10),v.bgColor.ansi256=h(10),v.bgColor.ansi16m=g(10),v.underlineColor.ansi=_,v.underlineColor.ansi256=h(20),v.underlineColor.ansi16m=g(20),Object.defineProperties(v,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[\da-f]{6}|[\da-f]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>v.rgbToAnsi256(...v.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>v.ansi256ToAnsi(v.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>v.ansi256ToAnsi(v.hexToAnsi256(e)),enumerable:!1}}),v}const S=x();function C(e,t=globalThis.Deno?globalThis.Deno.args:l.default.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}const{env:w}=l.default;let T;C(`no-color`)||C(`no-colors`)||C(`color=false`)||C(`color=never`)?T=0:(C(`color`)||C(`colors`)||C(`color=true`)||C(`color=always`))&&(T=1);function E(){return/^\d+$/.test(w.FORCE_COLOR)}function ee(){if(`FORCE_COLOR`in w){if(w.FORCE_COLOR===`false`)return 0;if(w.FORCE_COLOR===`true`||w.FORCE_COLOR.length===0)return 1;if(E())return Math.min(Number.parseInt(w.FORCE_COLOR,10),3)}}function D(e){return e!==0&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function O(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=ee();r!==void 0&&(T=r);let i=n?T:r;if(i===0)return 0;if(n){if(C(`color=16m`)||C(`color=full`)||C(`color=truecolor`))return 3;if(C(`color=256`))return 2}if(i!==void 0&&E())return i;if(`TF_BUILD`in w&&`AGENT_NAME`in w)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if(w.TERM===`dumb`)return a;if(l.default.platform===`win32`){let e=u.default.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in w)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in w)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in w)||w.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in w)return+!!/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(w.TEAMCITY_VERSION);if(w.COLORTERM===`truecolor`||w.TERM===`xterm-kitty`||w.TERM===`xterm-ghostty`||w.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in w){let e=Number.parseInt((w.TERM_PROGRAM_VERSION||``).split(`.`,1)[0],10);switch(w.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(?:color)?$/i.test(w.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(w.TERM)||`COLORTERM`in w?1:a}function k(e,t={}){return D(O(e,{streamIsTTY:e&&e.isTTY,...t}))}const{stdout:A,stderr:j}={stdout:k({isTTY:d.default.isatty(1)}),stderr:k({isTTY:d.default.isatty(2)})},M=Symbol(`GENERATOR`),N=Symbol(`STYLER`),P=Symbol(`IS_EMPTY`),F=Symbol(`LEVEL`),I=Object.create(null),L=e=>{if(!Number.isSafeInteger(e)||e<0||e>3)throw Error("The `level` should be an integer from 0 to 3")},R={enumerable:!0,get(){return this[F]},set(e){L(e),this[F]=e}},z=(e,t={})=>{t.level!==void 0&&L(t.level);let n=A?A.level:0;e[F]=t.level===void 0?n:t.level},B=e=>{let t=(...e)=>e.join(` `);return z(t,e),Object.setPrototypeOf(t,V.prototype),t};function V(e){return B(e)}Object.setPrototypeOf(V.prototype,Function.prototype);for(let[e,t]of Object.entries(S))I[e]={get(){let n=G(this,W(t.open,t.close,this[N]),this[P]);return Object.defineProperty(this,e,{value:n}),n}};I.visible={get(){let e=G(this,this[N],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const H=(e,t)=>{let n=S[t];if(e===`rgb`){let e=(e,t,r)=>n.ansi(S.rgbToAnsi(e,t,r));return[e,e,(e,t,r)=>n.ansi256(S.rgbToAnsi256(e,t,r)),n.ansi16m]}if(e===`hex`){let e=e=>n.ansi(S.hexToAnsi(e));return[e,e,e=>n.ansi256(S.hexToAnsi256(e)),e=>n.ansi16m(...S.hexToRgb(e))]}let r=e=>n.ansi(S.ansi256ToAnsi(e));return[r,r,n.ansi256,n.ansi256]};for(let e of[`rgb`,`hex`,`ansi256`]){let t=e[0].toUpperCase()+e.slice(1);for(let[n,r]of[[e,`color`],[`bg`+t,`bgColor`],[`underline`+t,`underlineColor`]]){let{close:t}=S[r],i=H(e,r);I[n]={get(){let e=function(e,n,r){let a=i[this.level](e,n,r);return G(this,W(a,t,this[N]),this[P])};return Object.defineProperty(this,n,{value:e}),e}}}}const U=Object.defineProperties(()=>{},{...I,level:{enumerable:!0,get(){return this[M].level},set(e){this[M].level=e}}}),W=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},G=(e,t,n)=>{let r=(...e)=>e.length===1?K(r,``+e[0]):e.length===2?K(r,`${e[0]??``} ${e[1]??``}`):K(r,e.join(` `));return Object.setPrototypeOf(r,U),r[M]=e[M]??e,r[N]=t,r[P]=n,r},K=(e,t)=>{if(e[M][F]<=0||!t)return e[P]?``:t;let n=e[N];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=f(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
|
|
5
|
+
`);return a!==-1&&(t=p(t,i,r,a)),r+t+i};Object.defineProperties(V.prototype,{...I,level:R});const q=V();V({level:j?j.level:0});function J(e){return c.default.stdout.write(`${e}\n`)}function te(e){return c.default.stderr.write(`${e}\n`)}function Y(e,t,n,r,i,a){let o=(Array.isArray(a)?a:[a||``].filter(Boolean)).map(e=>n(e)).join(``);e(`${` `.repeat(3)} ${t(r)} ${t(i)} ${o}`)}function ne(e,t){Y(J,q.yellow,q.yellow,`●`,e,t)}function X(e,t){Y(J,q.yellow,q.dim,`●`,e,t)}function Z(e,t){Y(J,q.cyan,q.dim,`◼`,e,t)}function Q(e){Y(J,q.green,q.dim,`✔`,e)}function re(e,t){J(``),Y(te,q.red,q.red,`▲`,e,t)}function ie(e,t){return J(`\n${q.bgWhite(` ${q.whiteBright(e)} `)} ${q.bold(t)}\n`)}const $=e=>()=>{let t=performance.now();return n=>{let r=performance.now()-t;e(`${n} ${q.gray(`(${r.toFixed(2)}ms)`)}`)}},ae={colors:q,log:J,heading:ie,debug:X,info:Z,warn:ne,success:Q,error:re,time:{success:$(Q),info:$(Z),debug:$(X)}};exports.logger=ae;
|
|
6
6
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["styles","process","os","tty","supportsColor","chalk","ansiStyles","process","chalk","heading"],"sources":["../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js","../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js","../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js","../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js","../src/logger.ts"],"sourcesContent":["const ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u001B[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[a-f\\d]{6}|[a-f\\d]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n","import process from 'node:process';\nimport os from 'node:os';\nimport tty from 'node:tty';\n\n// From: https://github.com/sindresorhus/has-flag/blob/main/index.js\n/// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {\nfunction hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n}\n\nconst {env} = process;\n\nlet flagForceColor;\nif (\n\thasFlag('no-color')\n\t|| hasFlag('no-colors')\n\t|| hasFlag('color=false')\n\t|| hasFlag('color=never')\n) {\n\tflagForceColor = 0;\n} else if (\n\thasFlag('color')\n\t|| hasFlag('colors')\n\t|| hasFlag('color=true')\n\t|| hasFlag('color=always')\n) {\n\tflagForceColor = 1;\n}\n\nfunction envForceColor() {\n\tif ('FORCE_COLOR' in env) {\n\t\tif (env.FORCE_COLOR === 'true') {\n\t\t\treturn 1;\n\t\t}\n\n\t\tif (env.FORCE_COLOR === 'false') {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3,\n\t};\n}\n\nfunction _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {\n\tconst noFlagForceColor = envForceColor();\n\tif (noFlagForceColor !== undefined) {\n\t\tflagForceColor = noFlagForceColor;\n\t}\n\n\tconst forceColor = sniffFlags ? flagForceColor : noFlagForceColor;\n\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (sniffFlags) {\n\t\tif (hasFlag('color=16m')\n\t\t\t|| hasFlag('color=full')\n\t\t\t|| hasFlag('color=truecolor')) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (hasFlag('color=256')) {\n\t\t\treturn 2;\n\t\t}\n\t}\n\n\t// Check for Azure DevOps pipelines.\n\t// Has to be above the `!streamIsTTY` check.\n\tif ('TF_BUILD' in env && 'AGENT_NAME' in env) {\n\t\treturn 1;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10\n\t\t\t&& Number(osRelease[2]) >= 10_586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14_931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-kitty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-ghostty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'wezterm') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app': {\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\t}\n\n\t\t\tcase 'Apple_Terminal': {\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nexport function createSupportsColor(stream, options = {}) {\n\tconst level = _supportsColor(stream, {\n\t\tstreamIsTTY: stream && stream.isTTY,\n\t\t...options,\n\t});\n\n\treturn translateLevel(level);\n}\n\nconst supportsColor = {\n\tstdout: createSupportsColor({isTTY: tty.isatty(1)}),\n\tstderr: createSupportsColor({isTTY: tty.isatty(2)}),\n};\n\nexport default supportsColor;\n","// TODO: When targeting Node.js 16, use `String.prototype.replaceAll`.\nexport function stringReplaceAll(string, substring, replacer) {\n\tlet index = string.indexOf(substring);\n\tif (index === -1) {\n\t\treturn string;\n\t}\n\n\tconst substringLength = substring.length;\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\treturnValue += string.slice(endIndex, index) + substring + replacer;\n\t\tendIndex = index + substringLength;\n\t\tindex = string.indexOf(substring, endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n\nexport function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\tconst gotCR = string[index - 1] === '\\r';\n\t\treturnValue += string.slice(endIndex, (gotCR ? index - 1 : index)) + prefix + (gotCR ? '\\r\\n' : '\\n') + postfix;\n\t\tendIndex = index + 1;\n\t\tindex = string.indexOf('\\n', endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n","import ansiStyles from '#ansi-styles';\nimport supportsColor from '#supports-color';\nimport { // eslint-disable-line import/order\n\tstringReplaceAll,\n\tstringEncaseCRLFWithFirstIndex,\n} from './utilities.js';\n\nconst {stdout: stdoutColor, stderr: stderrColor} = supportsColor;\n\nconst GENERATOR = Symbol('GENERATOR');\nconst STYLER = Symbol('STYLER');\nconst IS_EMPTY = Symbol('IS_EMPTY');\n\n// `supportsColor.level` → `ansiStyles.color[name]` mapping\nconst levelMapping = [\n\t'ansi',\n\t'ansi',\n\t'ansi256',\n\t'ansi16m',\n];\n\nconst styles = Object.create(null);\n\nconst applyOptions = (object, options = {}) => {\n\tif (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {\n\t\tthrow new Error('The `level` option should be an integer from 0 to 3');\n\t}\n\n\t// Detect level if not set manually\n\tconst colorLevel = stdoutColor ? stdoutColor.level : 0;\n\tobject.level = options.level === undefined ? colorLevel : options.level;\n};\n\nexport class Chalk {\n\tconstructor(options) {\n\t\t// eslint-disable-next-line no-constructor-return\n\t\treturn chalkFactory(options);\n\t}\n}\n\nconst chalkFactory = options => {\n\tconst chalk = (...strings) => strings.join(' ');\n\tapplyOptions(chalk, options);\n\n\tObject.setPrototypeOf(chalk, createChalk.prototype);\n\n\treturn chalk;\n};\n\nfunction createChalk(options) {\n\treturn chalkFactory(options);\n}\n\nObject.setPrototypeOf(createChalk.prototype, Function.prototype);\n\nfor (const [styleName, style] of Object.entries(ansiStyles)) {\n\tstyles[styleName] = {\n\t\tget() {\n\t\t\tconst builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);\n\t\t\tObject.defineProperty(this, styleName, {value: builder});\n\t\t\treturn builder;\n\t\t},\n\t};\n}\n\nstyles.visible = {\n\tget() {\n\t\tconst builder = createBuilder(this, this[STYLER], true);\n\t\tObject.defineProperty(this, 'visible', {value: builder});\n\t\treturn builder;\n\t},\n};\n\nconst getModelAnsi = (model, level, type, ...arguments_) => {\n\tif (model === 'rgb') {\n\t\tif (level === 'ansi16m') {\n\t\t\treturn ansiStyles[type].ansi16m(...arguments_);\n\t\t}\n\n\t\tif (level === 'ansi256') {\n\t\t\treturn ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));\n\t\t}\n\n\t\treturn ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));\n\t}\n\n\tif (model === 'hex') {\n\t\treturn getModelAnsi('rgb', level, type, ...ansiStyles.hexToRgb(...arguments_));\n\t}\n\n\treturn ansiStyles[type][model](...arguments_);\n};\n\nconst usedModels = ['rgb', 'hex', 'ansi256'];\n\nfor (const model of usedModels) {\n\tstyles[model] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), ansiStyles.color.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n\n\tconst bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);\n\tstyles[bgModel] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), ansiStyles.bgColor.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n}\n\nconst proto = Object.defineProperties(() => {}, {\n\t...styles,\n\tlevel: {\n\t\tenumerable: true,\n\t\tget() {\n\t\t\treturn this[GENERATOR].level;\n\t\t},\n\t\tset(level) {\n\t\t\tthis[GENERATOR].level = level;\n\t\t},\n\t},\n});\n\nconst createStyler = (open, close, parent) => {\n\tlet openAll;\n\tlet closeAll;\n\tif (parent === undefined) {\n\t\topenAll = open;\n\t\tcloseAll = close;\n\t} else {\n\t\topenAll = parent.openAll + open;\n\t\tcloseAll = close + parent.closeAll;\n\t}\n\n\treturn {\n\t\topen,\n\t\tclose,\n\t\topenAll,\n\t\tcloseAll,\n\t\tparent,\n\t};\n};\n\nconst createBuilder = (self, _styler, _isEmpty) => {\n\t// Single argument is hot path, implicit coercion is faster than anything\n\t// eslint-disable-next-line no-implicit-coercion\n\tconst builder = (...arguments_) => applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));\n\n\t// We alter the prototype because we must return a function, but there is\n\t// no way to create a function with a different prototype\n\tObject.setPrototypeOf(builder, proto);\n\n\tbuilder[GENERATOR] = self;\n\tbuilder[STYLER] = _styler;\n\tbuilder[IS_EMPTY] = _isEmpty;\n\n\treturn builder;\n};\n\nconst applyStyle = (self, string) => {\n\tif (self.level <= 0 || !string) {\n\t\treturn self[IS_EMPTY] ? '' : string;\n\t}\n\n\tlet styler = self[STYLER];\n\n\tif (styler === undefined) {\n\t\treturn string;\n\t}\n\n\tconst {openAll, closeAll} = styler;\n\tif (string.includes('\\u001B')) {\n\t\twhile (styler !== undefined) {\n\t\t\t// Replace any instances already present with a re-opening code\n\t\t\t// otherwise only the part of the string until said closing code\n\t\t\t// will be colored, and the rest will simply be 'plain'.\n\t\t\tstring = stringReplaceAll(string, styler.close, styler.open);\n\n\t\t\tstyler = styler.parent;\n\t\t}\n\t}\n\n\t// We can move both next actions out of loop, because remaining actions in loop won't have\n\t// any/visible effect on parts we add here. Close the styling before a linebreak and reopen\n\t// after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92\n\tconst lfIndex = string.indexOf('\\n');\n\tif (lfIndex !== -1) {\n\t\tstring = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);\n\t}\n\n\treturn openAll + string + closeAll;\n};\n\nObject.defineProperties(createChalk.prototype, styles);\n\nconst chalk = createChalk();\nexport const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});\n\nexport {\n\tmodifierNames,\n\tforegroundColorNames,\n\tbackgroundColorNames,\n\tcolorNames,\n\n\t// TODO: Remove these aliases in the next major version\n\tmodifierNames as modifiers,\n\tforegroundColorNames as foregroundColors,\n\tbackgroundColorNames as backgroundColors,\n\tcolorNames as colors,\n} from './vendor/ansi-styles/index.js';\n\nexport {\n\tstdoutColor as supportsColor,\n\tstderrColor as supportsColorStderr,\n};\n\nexport default chalk;\n","// Dependencies\nimport process from 'node:process'\nimport chalk from 'chalk'\n\nfunction log(message: string) {\n\treturn process.stdout.write(`${message}\\n`)\n}\n\nfunction logError(message: string) {\n\treturn process.stderr.write(`${message}\\n`)\n}\n\nfunction logBullet(\n\tlogger: typeof log | typeof logError,\n\tcolorizePrefix: typeof chalk,\n\tcolorizeText: typeof chalk,\n\tsymbol: string,\n\tprefix: string,\n\ttext?: string | string[]\n) {\n\tconst textParts = Array.isArray(text) ? text : [text || ''].filter(Boolean)\n\tconst formattedText = textParts\n\t\t.map((textPart) => colorizeText(textPart))\n\t\t.join('')\n\n\tlogger(\n\t\t`${' '.repeat(3)} ${colorizePrefix(symbol)} ${colorizePrefix(\n\t\t\tprefix\n\t\t)} ${formattedText}`\n\t)\n}\n\nfunction warn(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.yellow, chalk.yellow, '●', prefix, text)\n}\n\nfunction debug(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.yellow, chalk.dim, '●', prefix, text)\n}\n\nfunction info(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.cyan, chalk.dim, '◼', prefix, text)\n}\n\nfunction success(text: string) {\n\tlogBullet(log, chalk.green, chalk.dim, '✔', text)\n}\n\nfunction error(prefix: string, text?: string | string[]) {\n\tlog('')\n\tlogBullet(logError, chalk.red, chalk.red, '▲', prefix, text)\n}\n\nfunction heading(heading: string, description?: string) {\n\treturn log(\n\t\t`\\n${chalk.bgWhite(` ${chalk.whiteBright(heading)} `)} ${chalk.bold(\n\t\t\tdescription\n\t\t)}\\n`\n\t)\n}\n\nconst timing = (fn: (str: string) => any) => () => {\n\tconst start = performance.now()\n\treturn (msg: string) => {\n\t\tconst end = performance.now()\n\t\tconst ms = end - start\n\t\tfn(`${msg} ${chalk.gray(`(${ms.toFixed(2)}ms)`)}`)\n\t}\n}\n\nexport const logger = {\n\tcolors: chalk,\n\tlog,\n\theading,\n\tdebug,\n\tinfo,\n\twarn,\n\tsuccess,\n\terror,\n\ttime: {\n\t\tsuccess: timing(success),\n\t\tinfo: timing(info),\n\t\tdebug: timing(debug)\n\t}\n}\n"],"x_google_ignoreList":[0,1,2,3],"mappings":"okBAAA,MAAM,EAAyB,GAEzB,GAAc,EAAS,IAAM,GAAQ,UAAU,EAAO,EAAO,GAE7D,GAAe,EAAS,IAAM,GAAQ,UAAU,GAAK,EAAO,KAAK,EAAK,GAEtE,GAAe,EAAS,KAAO,EAAK,EAAO,IAAS,UAAU,GAAK,EAAO,KAAK,EAAI,GAAG,EAAM,GAAG,EAAK,GAEpGA,EAAS,CACd,SAAU,CACT,MAAO,CAAC,EAAG,EAAE,CAEb,KAAM,CAAC,EAAG,GAAG,CACb,IAAK,CAAC,EAAG,GAAG,CACZ,OAAQ,CAAC,EAAG,GAAG,CACf,UAAW,CAAC,EAAG,GAAG,CAClB,SAAU,CAAC,GAAI,GAAG,CACl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AQ,EAAiB,EAAsB,CACvD,OAAO,EACN,KAAKA,EAAM,QAAQ,IAAIA,EAAM,YAAYC,EAAQ,CAAC,GAAG,CAAC,GAAGD,EAAM,KAC9D,EACA,CAAC,IACF,CAGF,MAAM,EAAU,OAAmC,CAClD,IAAM,EAAQ,YAAY,KAAK,CAC/B,MAAQ,IAAgB,CAEvB,IAAM,EADM,YAAY,KAAK,CACZ,EACjB,EAAG,GAAG,EAAI,GAAGA,EAAM,KAAK,IAAI,EAAG,QAAQ,EAAE,CAAC,KAAK,GAAG,GAIvC,GAAS,CACrB,OAAQA,EACR,MACA,WACA,QACA,OACA,OACA,UACA,SACA,KAAM,CACL,QAAS,EAAO,EAAQ,CACxB,KAAM,EAAO,EAAK,CAClB,MAAO,EAAO,EAAM,CACpB,CACD"}
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["styles","process","os","tty","process","__create","__defProp","__getOwnPropDesc","__getOwnPropNames","__getProtoOf","__hasOwnProp","__copyProps","from","keys","i","n","key","to","except","k","desc","__toESM","mod","isNodeMode","target","node_process","node_process$1","node_os","node_tty","stringReplaceAll","index","string","substring","substringLength","endIndex","returnValue","postfix","stringEncaseCRLFWithFirstIndex","isGotCR","prefix","wrapAnsi16","code","offset","wrapAnsi256","wrapAnsi16m","red","green","blue","wrapUnderlineAnsi","styles$1","foregroundColorNames","backgroundColorNames","assembleStyles","codes","groupName","group","styleName","style","matches","hex","colorString","character","integer","remainder","value","result","ansiStyles","hasFlag","flag","position","argv","terminatorPosition","flagForceColor","hasNumericForceColor","env","envForceColor","translateLevel","level","_supportsColor","noFlagForceColor","forceColor","sniffFlags","haveStream","streamIsTTY","min","osRelease","sign","version","createSupportsColor","stream","options","stdoutColor","stderrColor","GENERATOR","STYLER","IS_EMPTY","LEVEL","styles","assertValidLevel","levelDescriptor","applyOptions","colorLevel","chalkFactory","chalk","strings","createChalk","builder","createBuilder","createStyler","createModelConverters","type","model","ansi","capitalizedModel","converters","styleFunction","open","first","second","third","close","proto","openAll","closeAll","parent","arguments_","applyStyle","self","_styler","_isEmpty","styler","lfIndex","log","message","logError","logBullet","formattedText","text","colorizeText","textPart","logger","colorizePrefix","symbol","warn","debug","info","success","error","heading","description","timing","start","ms","fn","msg"],"sources":["../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/utilities.js","../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/vendor/ansi-styles/index.js","../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/vendor/supports-color/index.js","../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/index.js","../src/logger.ts"],"sourcesContent":["// Note: Each match is kept and `postfix` is inserted after it. `String#replaceAll(substring, substring + postfix)` does the same, but it has to scan the replacement for `$` patterns and it is several times slower on the no-match path that most calls take.\nexport function stringReplaceAll(string, substring, postfix) {\n\tlet index = string.indexOf(substring);\n\tif (index === -1) {\n\t\treturn string;\n\t}\n\n\tconst substringLength = substring.length;\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\treturnValue += string.slice(endIndex, index) + substring + postfix;\n\t\tendIndex = index + substringLength;\n\t\tindex = string.indexOf(substring, endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n\nexport function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\tconst isGotCR = string[index - 1] === '\\r';\n\t\treturnValue += string.slice(endIndex, (isGotCR ? index - 1 : index)) + prefix + (isGotCR ? '\\r\\n' : '\\n') + postfix;\n\t\tendIndex = index + 1;\n\t\tindex = string.indexOf('\\n', endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n","const ANSI_BACKGROUND_OFFSET = 10;\nconst ANSI_UNDERLINE_OFFSET = 20;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u{1B}[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u{1B}[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u{1B}[${38 + offset};2;${red};${green};${blue}m`;\n\n// `SGR 58` has no basic 16-color form, so the basic color code is mapped to its palette index instead.\nconst wrapUnderlineAnsi = code => `\\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\t// Extended underline styles (`SGR 4:x` sub-parameters). Not in upstream `ansi-styles`.\n\t\tunderlineDouble: ['4:2', 24],\n\t\tunderlineCurly: ['4:3', 24],\n\t\tunderlineDotted: ['4:4', 24],\n\t\tunderlineDashed: ['4:5', 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n\t// Underline color (`SGR 58`/`59`). Not in upstream `ansi-styles`.\n\tunderlineColor: {\n\t\tunderlineBlack: ['58;5;0', 59],\n\t\tunderlineRed: ['58;5;1', 59],\n\t\tunderlineGreen: ['58;5;2', 59],\n\t\tunderlineYellow: ['58;5;3', 59],\n\t\tunderlineBlue: ['58;5;4', 59],\n\t\tunderlineMagenta: ['58;5;5', 59],\n\t\tunderlineCyan: ['58;5;6', 59],\n\t\tunderlineWhite: ['58;5;7', 59],\n\n\t\t// Bright color\n\t\tunderlineBlackBright: ['58;5;8', 59],\n\t\tunderlineGray: ['58;5;8', 59], // Alias of `underlineBlackBright`\n\t\tunderlineGrey: ['58;5;8', 59], // Alias of `underlineBlackBright`\n\t\tunderlineRedBright: ['58;5;9', 59],\n\t\tunderlineGreenBright: ['58;5;10', 59],\n\t\tunderlineYellowBright: ['58;5;11', 59],\n\t\tunderlineBlueBright: ['58;5;12', 59],\n\t\tunderlineMagentaBright: ['58;5;13', 59],\n\t\tunderlineCyanBright: ['58;5;14', 59],\n\t\tunderlineWhiteBright: ['58;5;15', 59],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const underlineColorNames = Object.keys(styles.underlineColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u{1B}[${style[0]}m`,\n\t\t\t\tclose: `\\u{1B}[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\t// Only the leading SGR parameter identifies a style, so `4:3` and `58;5;1` are keyed as `4` and `58`.\n\t\t\tcodes.set(Number.parseInt(style[0], 10), style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u{1B}[39m';\n\tstyles.bgColor.close = '\\u{1B}[49m';\n\tstyles.underlineColor.close = '\\u{1B}[59m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\tstyles.underlineColor.ansi = wrapUnderlineAnsi;\n\tstyles.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);\n\tstyles.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[\\da-f]{6}|[\\da-f]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise -- We need the speed */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n","import process from 'node:process';\nimport os from 'node:os';\nimport tty from 'node:tty';\n\n// From: https://github.com/sindresorhus/has-flag/blob/main/index.js\n/// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {\nfunction hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n}\n\nconst {env} = process;\n\nlet flagForceColor;\nif (\n\thasFlag('no-color')\n\t|| hasFlag('no-colors')\n\t|| hasFlag('color=false')\n\t|| hasFlag('color=never')\n) {\n\tflagForceColor = 0;\n} else if (\n\thasFlag('color')\n\t|| hasFlag('colors')\n\t|| hasFlag('color=true')\n\t|| hasFlag('color=always')\n) {\n\tflagForceColor = 1;\n}\n\n// Whether `FORCE_COLOR` names a level. Shared with the exact-level check below so that the two cannot disagree on what counts as numeric.\nfunction hasNumericForceColor() {\n\treturn /^\\d+$/.test(env.FORCE_COLOR);\n}\n\nfunction envForceColor() {\n\tif (!('FORCE_COLOR' in env)) {\n\t\treturn;\n\t}\n\n\tif (env.FORCE_COLOR === 'false') {\n\t\treturn 0;\n\t}\n\n\tif (env.FORCE_COLOR === 'true' || env.FORCE_COLOR.length === 0) {\n\t\treturn 1;\n\t}\n\n\tif (!hasNumericForceColor()) {\n\t\treturn;\n\t}\n\n\treturn Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3,\n\t};\n}\n\nfunction _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {\n\tconst noFlagForceColor = envForceColor();\n\tif (noFlagForceColor !== undefined) {\n\t\tflagForceColor = noFlagForceColor;\n\t}\n\n\tconst forceColor = sniffFlags ? flagForceColor : noFlagForceColor;\n\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (sniffFlags) {\n\t\tif (hasFlag('color=16m')\n\t\t\t|| hasFlag('color=full')\n\t\t\t|| hasFlag('color=truecolor')) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (hasFlag('color=256')) {\n\t\t\treturn 2;\n\t\t}\n\t}\n\n\t// A numeric `FORCE_COLOR` requests an exact level, while `FORCE_COLOR=true` and `FORCE_COLOR=` only enable color and let the level be detected.\n\tif (forceColor !== undefined && hasNumericForceColor()) {\n\t\treturn forceColor;\n\t}\n\n\t// Check for Azure DevOps pipelines.\n\t// Has to be above the `!streamIsTTY` check.\n\tif ('TF_BUILD' in env && 'AGENT_NAME' in env) {\n\t\treturn 1;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10\n\t\t\t&& Number(osRelease[2]) >= 10_586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14_931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(?:9\\.0*[1-9]\\d*\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-kitty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-ghostty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'wezterm') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.', 1)[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app': {\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\t}\n\n\t\t\tcase 'Apple_Terminal': {\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(?:color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nexport function createSupportsColor(stream, options = {}) {\n\tconst level = _supportsColor(stream, {\n\t\tstreamIsTTY: stream && stream.isTTY,\n\t\t...options,\n\t});\n\n\treturn translateLevel(level);\n}\n\nconst supportsColor = {\n\tstdout: createSupportsColor({isTTY: tty.isatty(1)}),\n\tstderr: createSupportsColor({isTTY: tty.isatty(2)}),\n};\n\nexport default supportsColor;\n","import {\n\tstringReplaceAll,\n\tstringEncaseCRLFWithFirstIndex,\n} from './utilities.js';\nimport ansiStyles from '#ansi-styles';\nimport supportsColor from '#supports-color';\n\nconst {stdout: stdoutColor, stderr: stderrColor} = supportsColor;\n\nconst GENERATOR = Symbol('GENERATOR');\nconst STYLER = Symbol('STYLER');\nconst IS_EMPTY = Symbol('IS_EMPTY');\nconst LEVEL = Symbol('LEVEL');\n\nconst styles = Object.create(null);\n\nconst assertValidLevel = level => {\n\tif (!Number.isSafeInteger(level) || level < 0 || level > 3) {\n\t\tthrow new Error('The `level` should be an integer from 0 to 3');\n\t}\n};\n\n// The level is stored under a symbol so the hot path can read it as a plain property, while `level` itself is an accessor that rejects values the rest of the code could not handle.\nconst levelDescriptor = {\n\tenumerable: true,\n\tget() {\n\t\treturn this[LEVEL];\n\t},\n\tset(level) {\n\t\tassertValidLevel(level);\n\t\tthis[LEVEL] = level;\n\t},\n};\n\nconst applyOptions = (object, options = {}) => {\n\tif (options.level !== undefined) {\n\t\tassertValidLevel(options.level);\n\t}\n\n\t// Detect level if not set manually. Written under the symbol rather than through `level`, as the prototype carrying that accessor is not installed until after this runs.\n\tconst colorLevel = stdoutColor ? stdoutColor.level : 0;\n\tobject[LEVEL] = options.level === undefined ? colorLevel : options.level;\n};\n\nexport class Chalk {\n\tconstructor(options) {\n\t\t// eslint-disable-next-line no-constructor-return\n\t\treturn chalkFactory(options);\n\t}\n}\n\nconst chalkFactory = options => {\n\tconst chalk = (...strings) => strings.join(' ');\n\tapplyOptions(chalk, options);\n\n\tObject.setPrototypeOf(chalk, createChalk.prototype);\n\n\treturn chalk;\n};\n\nfunction createChalk(options) {\n\treturn chalkFactory(options);\n}\n\n// eslint-disable-next-line unicorn/no-top-level-side-effects -- The prototype chain must be set up at module load.\nObject.setPrototypeOf(createChalk.prototype, Function.prototype);\n\nfor (const [styleName, style] of Object.entries(ansiStyles)) {\n\tstyles[styleName] = {\n\t\tget() {\n\t\t\tconst builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);\n\t\t\tObject.defineProperty(this, styleName, {value: builder});\n\t\t\treturn builder;\n\t\t},\n\t};\n}\n\nstyles.visible = {\n\tget() {\n\t\tconst builder = createBuilder(this, this[STYLER], true);\n\t\tObject.defineProperty(this, 'visible', {value: builder});\n\t\treturn builder;\n\t},\n};\n\n// Resolve a color model to one converter per `level`, so that a call only has to look up the converter for the current level instead of re-deciding the model and level every time.\nconst createModelConverters = (model, type) => {\n\tconst style = ansiStyles[type];\n\n\tif (model === 'rgb') {\n\t\tconst ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));\n\t\tconst ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));\n\t\treturn [ansi, ansi, ansi256, style.ansi16m];\n\t}\n\n\tif (model === 'hex') {\n\t\tconst ansi = hex => style.ansi(ansiStyles.hexToAnsi(hex));\n\t\tconst ansi256 = hex => style.ansi256(ansiStyles.hexToAnsi256(hex));\n\t\treturn [ansi, ansi, ansi256, hex => style.ansi16m(...ansiStyles.hexToRgb(hex))];\n\t}\n\n\t// `ansi256` is already the native form, so only the 16-color levels need converting.\n\tconst ansi = code => style.ansi(ansiStyles.ansi256ToAnsi(code));\n\treturn [ansi, ansi, style.ansi256, style.ansi256];\n};\n\nconst usedModels = ['rgb', 'hex', 'ansi256'];\n\nfor (const model of usedModels) {\n\tconst capitalizedModel = model[0].toUpperCase() + model.slice(1);\n\n\tfor (const [styleName, type] of [\n\t\t[model, 'color'],\n\t\t['bg' + capitalizedModel, 'bgColor'],\n\t\t['underline' + capitalizedModel, 'underlineColor'],\n\t]) {\n\t\tconst {close} = ansiStyles[type];\n\t\tconst converters = createModelConverters(model, type);\n\n\t\tstyles[styleName] = {\n\t\t\tget() {\n\t\t\t\t// The level is read on call rather than captured here so the function can be cached on the instance instead of being reallocated on every property access.\n\t\t\t\t// `rgb` is the widest model, so naming the three parameters avoids a rest array.\n\t\t\t\tconst styleFunction = function (first, second, third) {\n\t\t\t\t\tconst open = converters[this.level](first, second, third);\n\t\t\t\t\treturn createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);\n\t\t\t\t};\n\n\t\t\t\tObject.defineProperty(this, styleName, {value: styleFunction});\n\t\t\t\treturn styleFunction;\n\t\t\t},\n\t\t};\n\t}\n}\n\nconst proto = Object.defineProperties(\n\t() => {},\n\t{\n\t\t...styles,\n\t\tlevel: {\n\t\t\tenumerable: true,\n\t\t\tget() {\n\t\t\t\treturn this[GENERATOR].level;\n\t\t\t},\n\t\t\tset(level) {\n\t\t\t\tthis[GENERATOR].level = level;\n\t\t\t},\n\t\t},\n\t},\n);\n\nconst createStyler = (open, close, parent) => {\n\tlet openAll;\n\tlet closeAll;\n\tif (parent === undefined) {\n\t\topenAll = open;\n\t\tcloseAll = close;\n\t} else {\n\t\topenAll = parent.openAll + open;\n\t\tcloseAll = close + parent.closeAll;\n\t}\n\n\treturn {\n\t\topen,\n\t\tclose,\n\t\topenAll,\n\t\tcloseAll,\n\t\tparent,\n\t};\n};\n\nconst createBuilder = (self, _styler, _isEmpty) => {\n\t// Single argument is hot path, implicit coercion is faster than anything\n\tconst builder = (...arguments_) => {\n\t\tif (arguments_.length === 1) {\n\t\t\t// eslint-disable-next-line no-implicit-coercion\n\t\t\treturn applyStyle(builder, '' + arguments_[0]);\n\t\t}\n\n\t\tif (arguments_.length === 2) {\n\t\t\t// The template literal matches `Array#join` coercion (`null` and `undefined` become empty, objects use `toString`) while being faster.\n\t\t\treturn applyStyle(builder, `${arguments_[0] ?? ''} ${arguments_[1] ?? ''}`);\n\t\t}\n\n\t\treturn applyStyle(builder, arguments_.join(' '));\n\t};\n\n\t// We alter the prototype because we must return a function, but there is\n\t// no way to create a function with a different prototype\n\tObject.setPrototypeOf(builder, proto);\n\n\t// Point every builder at the root generator instead of its immediate parent, so reading the level costs one property load rather than walking a `level` getter per link of the chain.\n\tbuilder[GENERATOR] = self[GENERATOR] ?? self;\n\tbuilder[STYLER] = _styler;\n\tbuilder[IS_EMPTY] = _isEmpty;\n\n\treturn builder;\n};\n\nconst applyStyle = (self, string) => {\n\t// Read the level directly off the generator to skip the `level` getter dispatch on this hot path\n\tif (self[GENERATOR][LEVEL] <= 0 || !string) {\n\t\t// eslint-disable-next-line unicorn/no-computed-property-existence-check -- Reads the boolean value, not a property existence check.\n\t\treturn self[IS_EMPTY] ? '' : string;\n\t}\n\n\tlet styler = self[STYLER];\n\n\tif (styler === undefined) {\n\t\treturn string;\n\t}\n\n\tconst {openAll, closeAll} = styler;\n\tif (string.includes('\\u{1B}')) {\n\t\twhile (styler !== undefined) {\n\t\t\t// Replace any instances already present with a re-opening code\n\t\t\t// otherwise only the part of the string until said closing code\n\t\t\t// will be colored, and the rest will simply be 'plain'.\n\t\t\tstring = stringReplaceAll(string, styler.close, styler.open);\n\n\t\t\tstyler = styler.parent;\n\t\t}\n\t}\n\n\t// We can move both next actions out of loop, because remaining actions in loop won't have\n\t// any/visible effect on parts we add here. Close the styling before a linebreak and reopen\n\t// after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92\n\tconst lfIndex = string.indexOf('\\n');\n\tif (lfIndex !== -1) {\n\t\tstring = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);\n\t}\n\n\treturn openAll + string + closeAll;\n};\n\n// `level` lives on the prototype rather than on each instance, so it costs nothing to construct an instance and matches how builders already expose it. It is inherited rather than own, so it does not show up in `Object.keys()`, same as for a builder.\n// eslint-disable-next-line unicorn/no-top-level-side-effects -- The style getters must be installed at module load.\nObject.defineProperties(createChalk.prototype, {...styles, level: levelDescriptor});\n\nconst chalk = createChalk();\nexport const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});\n\nexport {\n\tmodifierNames,\n\tforegroundColorNames,\n\tbackgroundColorNames,\n\tunderlineColorNames,\n\tcolorNames,\n\n\t// TODO: Remove these aliases in the next major version\n\tmodifierNames as modifiers,\n\tforegroundColorNames as foregroundColors,\n\tbackgroundColorNames as backgroundColors,\n\tcolorNames as colors,\n} from './vendor/ansi-styles/index.js';\n\nexport {\n\tstdoutColor as supportsColor,\n\tstderrColor as supportsColorStderr,\n};\n\nexport default chalk;\n","// Dependencies\nimport process from 'node:process'\nimport chalk from 'chalk'\n\nfunction log(message: string) {\n\treturn process.stdout.write(`${message}\\n`)\n}\n\nfunction logError(message: string) {\n\treturn process.stderr.write(`${message}\\n`)\n}\n\nfunction logBullet(\n\tlogger: typeof log | typeof logError,\n\tcolorizePrefix: typeof chalk,\n\tcolorizeText: typeof chalk,\n\tsymbol: string,\n\tprefix: string,\n\ttext?: string | string[]\n) {\n\tconst textParts = Array.isArray(text) ? text : [text || ''].filter(Boolean)\n\tconst formattedText = textParts\n\t\t.map((textPart) => colorizeText(textPart))\n\t\t.join('')\n\n\tlogger(\n\t\t`${' '.repeat(3)} ${colorizePrefix(symbol)} ${colorizePrefix(\n\t\t\tprefix\n\t\t)} ${formattedText}`\n\t)\n}\n\nfunction warn(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.yellow, chalk.yellow, '●', prefix, text)\n}\n\nfunction debug(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.yellow, chalk.dim, '●', prefix, text)\n}\n\nfunction info(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.cyan, chalk.dim, '◼', prefix, text)\n}\n\nfunction success(text: string) {\n\tlogBullet(log, chalk.green, chalk.dim, '✔', text)\n}\n\nfunction error(prefix: string, text?: string | string[]) {\n\tlog('')\n\tlogBullet(logError, chalk.red, chalk.red, '▲', prefix, text)\n}\n\nfunction heading(heading: string, description?: string) {\n\treturn log(\n\t\t`\\n${chalk.bgWhite(` ${chalk.whiteBright(heading)} `)} ${chalk.bold(\n\t\t\tdescription\n\t\t)}\\n`\n\t)\n}\n\nconst timing = (fn: (str: string) => any) => () => {\n\tconst start = performance.now()\n\treturn (msg: string) => {\n\t\tconst end = performance.now()\n\t\tconst ms = end - start\n\t\tfn(`${msg} ${chalk.gray(`(${ms.toFixed(2)}ms)`)}`)\n\t}\n}\n\nexport const logger = {\n\tcolors: chalk,\n\tlog,\n\theading,\n\tdebug,\n\tinfo,\n\twarn,\n\tsuccess,\n\terror,\n\ttime: {\n\t\tsuccess: timing(success),\n\t\tinfo: timing(info),\n\t\tdebug: timing(debug)\n\t}\n}\n"],"ignoreList":[0,1,2,3],"mappings":"A,0qBACA,SAAgB6B,EAAiB,EAAQ,EAAW,EAAS,CAC5D,IAAIC,EAAQC,EAAO,QAAQC,CAAS,EACpC,GAAIF,IAAU,GACb,OAAOC,EAGR,IAAME,EAAkBD,EAAU,OAC9BE,EAAW,EACXC,EAAc,GAClB,EACC,IAAeJ,EAAO,MAAMG,EAAUJ,CAAK,EAAIE,EAAYI,EAC3D,EAAWN,EAAQG,EACnB,EAAQF,EAAO,QAAQC,EAAWE,CAAQ,QAClCJ,IAAU,IAGnB,MADA,IAAeC,EAAO,MAAMG,CAAQ,EAC7BC,CACR,CAEA,SAAgBE,EAA+B,EAAQ,EAAQ,EAAS,EAAO,CAC9E,IAAIH,EAAW,EACXC,EAAc,GAClB,EAAG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UD,GAAU/B,EAAM,IAAKA,EAAM,IAAK,IAAKhE,EAAQkG,CAAI,CAC5D,CAEA,SAASW,GAAQ,EAAiB,EAAsB,CACvD,OAAOhB,EACN,KAAK7B,EAAM,QAAQ,IAAIA,EAAM,YAAY6C,CAAO,EAAE,EAAE,EAAE,GAAG7C,EAAM,KAC9D8C,CACD,EAAE,GACH,CACD,CAEA,MAAMC,EAAU,OAAmC,CAClD,IAAMC,EAAQ,YAAY,IAAI,EAC9B,MAAQ,IAAgB,CAEvB,IAAMC,EADM,YAAY,IACX,EAAID,EACjBE,EAAG,GAAGC,EAAI,GAAGnD,EAAM,KAAK,IAAIiD,EAAG,QAAQ,CAAC,EAAE,IAAI,GAAG,CAClD,CACD,EAEaZ,GAAS,CACrB,OAAQrC,EACR,MACA,WACA,QACA,OACA,QACA,UACA,SACA,KAAM,CACL,QAAS+C,EAAOJ,CAAO,EACvB,KAAMI,EAAOL,CAAI,EACjB,MAAOK,EAAON,CAAK,CACpB,CACD,E"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,289 @@
|
|
|
1
|
-
|
|
1
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/vendor/supports-color/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
Levels:
|
|
4
|
+
- `0` - All colors disabled.
|
|
5
|
+
- `1` - Basic 16 colors support.
|
|
6
|
+
- `2` - ANSI 256 colors support.
|
|
7
|
+
- `3` - Truecolor 16 million colors support.
|
|
8
|
+
*/
|
|
9
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/index.d.ts
|
|
12
|
+
interface ChalkInstance {
|
|
13
|
+
(...text: unknown[]): string;
|
|
14
|
+
/**
|
|
15
|
+
The color support for Chalk.
|
|
16
|
+
|
|
17
|
+
By default, color support is automatically detected based on the environment.
|
|
18
|
+
|
|
19
|
+
Levels:
|
|
20
|
+
- `0` - All colors disabled.
|
|
21
|
+
- `1` - Basic 16 colors support.
|
|
22
|
+
- `2` - ANSI 256 colors support.
|
|
23
|
+
- `3` - Truecolor 16 million colors support.
|
|
24
|
+
|
|
25
|
+
@throws If the assigned value is not an integer from 0 to 3.
|
|
26
|
+
*/
|
|
27
|
+
level: ColorSupportLevel;
|
|
28
|
+
/**
|
|
29
|
+
Use RGB values to set text color.
|
|
30
|
+
|
|
31
|
+
@example
|
|
32
|
+
```
|
|
33
|
+
import chalk from 'chalk';
|
|
34
|
+
|
|
35
|
+
chalk.rgb(222, 173, 237);
|
|
36
|
+
```
|
|
37
|
+
*/
|
|
38
|
+
rgb: (red: number, green: number, blue: number) => this;
|
|
39
|
+
/**
|
|
40
|
+
Use HEX value to set text color.
|
|
41
|
+
|
|
42
|
+
@param color - Hexadecimal value representing the desired color.
|
|
43
|
+
|
|
44
|
+
@example
|
|
45
|
+
```
|
|
46
|
+
import chalk from 'chalk';
|
|
47
|
+
|
|
48
|
+
chalk.hex('#DEADED');
|
|
49
|
+
```
|
|
50
|
+
*/
|
|
51
|
+
hex: (color: string) => this;
|
|
52
|
+
/**
|
|
53
|
+
Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
|
|
54
|
+
|
|
55
|
+
The value is downsampled to the 16-color palette on terminals that only support basic colors (level 1), so `chalk.ansi256(196)` becomes 91 (ANSI escape for bright red).
|
|
56
|
+
|
|
57
|
+
@example
|
|
58
|
+
```
|
|
59
|
+
import chalk from 'chalk';
|
|
60
|
+
|
|
61
|
+
chalk.ansi256(201);
|
|
62
|
+
```
|
|
63
|
+
*/
|
|
64
|
+
ansi256: (index: number) => this;
|
|
65
|
+
/**
|
|
66
|
+
Use RGB values to set background color.
|
|
67
|
+
|
|
68
|
+
@example
|
|
69
|
+
```
|
|
70
|
+
import chalk from 'chalk';
|
|
71
|
+
|
|
72
|
+
chalk.bgRgb(222, 173, 237);
|
|
73
|
+
```
|
|
74
|
+
*/
|
|
75
|
+
bgRgb: (red: number, green: number, blue: number) => this;
|
|
76
|
+
/**
|
|
77
|
+
Use HEX value to set background color.
|
|
78
|
+
|
|
79
|
+
@param color - Hexadecimal value representing the desired color.
|
|
80
|
+
|
|
81
|
+
@example
|
|
82
|
+
```
|
|
83
|
+
import chalk from 'chalk';
|
|
2
84
|
|
|
85
|
+
chalk.bgHex('#DEADED');
|
|
86
|
+
```
|
|
87
|
+
*/
|
|
88
|
+
bgHex: (color: string) => this;
|
|
89
|
+
/**
|
|
90
|
+
Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color.
|
|
91
|
+
|
|
92
|
+
The value is downsampled to the 16-color palette on terminals that only support basic colors (level 1), so `chalk.bgAnsi256(196)` becomes 101 (ANSI escape for bright red background).
|
|
93
|
+
|
|
94
|
+
@example
|
|
95
|
+
```
|
|
96
|
+
import chalk from 'chalk';
|
|
97
|
+
|
|
98
|
+
chalk.bgAnsi256(201);
|
|
99
|
+
```
|
|
100
|
+
*/
|
|
101
|
+
bgAnsi256: (index: number) => this;
|
|
102
|
+
/**
|
|
103
|
+
Use RGB values to set underline color.
|
|
104
|
+
|
|
105
|
+
The underline color is only visible when an underline style is also applied.
|
|
106
|
+
|
|
107
|
+
@example
|
|
108
|
+
```
|
|
109
|
+
import chalk from 'chalk';
|
|
110
|
+
|
|
111
|
+
chalk.underlineRgb(222, 173, 237).underlineCurly('Hello, world!');
|
|
112
|
+
```
|
|
113
|
+
*/
|
|
114
|
+
underlineRgb: (red: number, green: number, blue: number) => this;
|
|
115
|
+
/**
|
|
116
|
+
Use HEX value to set underline color.
|
|
117
|
+
|
|
118
|
+
The underline color is only visible when an underline style is also applied.
|
|
119
|
+
|
|
120
|
+
@param color - Hexadecimal value representing the desired color.
|
|
121
|
+
|
|
122
|
+
@example
|
|
123
|
+
```
|
|
124
|
+
import chalk from 'chalk';
|
|
125
|
+
|
|
126
|
+
chalk.underlineHex('#DEADED').underlineCurly('Hello, world!');
|
|
127
|
+
```
|
|
128
|
+
*/
|
|
129
|
+
underlineHex: (color: string) => this;
|
|
130
|
+
/**
|
|
131
|
+
Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set underline color.
|
|
132
|
+
|
|
133
|
+
The underline color is only visible when an underline style is also applied.
|
|
134
|
+
|
|
135
|
+
The value is downsampled to the first 16 palette entries on terminals that only support basic colors (level 1), so `chalk.underlineAnsi256(196)` becomes 9 (the palette index for bright red).
|
|
136
|
+
|
|
137
|
+
@example
|
|
138
|
+
```
|
|
139
|
+
import chalk from 'chalk';
|
|
140
|
+
|
|
141
|
+
chalk.underlineAnsi256(201).underlineCurly('Hello, world!');
|
|
142
|
+
```
|
|
143
|
+
*/
|
|
144
|
+
underlineAnsi256: (index: number) => this;
|
|
145
|
+
/**
|
|
146
|
+
Modifier: Reset the current style.
|
|
147
|
+
*/
|
|
148
|
+
readonly reset: this;
|
|
149
|
+
/**
|
|
150
|
+
Modifier: Make the text bold.
|
|
151
|
+
*/
|
|
152
|
+
readonly bold: this;
|
|
153
|
+
/**
|
|
154
|
+
Modifier: Make the text have lower opacity.
|
|
155
|
+
*/
|
|
156
|
+
readonly dim: this;
|
|
157
|
+
/**
|
|
158
|
+
Modifier: Make the text italic. *(Not widely supported)*
|
|
159
|
+
*/
|
|
160
|
+
readonly italic: this;
|
|
161
|
+
/**
|
|
162
|
+
Modifier: Put a horizontal line below the text. *(Not widely supported)*
|
|
163
|
+
*/
|
|
164
|
+
readonly underline: this;
|
|
165
|
+
/**
|
|
166
|
+
Modifier: Put a double horizontal line below the text. *(Not widely supported)*
|
|
167
|
+
*/
|
|
168
|
+
readonly underlineDouble: this;
|
|
169
|
+
/**
|
|
170
|
+
Modifier: Put a curly horizontal line below the text. *(Not widely supported)*
|
|
171
|
+
*/
|
|
172
|
+
readonly underlineCurly: this;
|
|
173
|
+
/**
|
|
174
|
+
Modifier: Put a dotted horizontal line below the text. *(Not widely supported)*
|
|
175
|
+
*/
|
|
176
|
+
readonly underlineDotted: this;
|
|
177
|
+
/**
|
|
178
|
+
Modifier: Put a dashed horizontal line below the text. *(Not widely supported)*
|
|
179
|
+
*/
|
|
180
|
+
readonly underlineDashed: this;
|
|
181
|
+
/**
|
|
182
|
+
Modifier: Put a horizontal line above the text. *(Not widely supported)*
|
|
183
|
+
*/
|
|
184
|
+
readonly overline: this;
|
|
185
|
+
/**
|
|
186
|
+
Modifier: Invert background and foreground colors.
|
|
187
|
+
*/
|
|
188
|
+
readonly inverse: this;
|
|
189
|
+
/**
|
|
190
|
+
Modifier: Print the text but make it invisible.
|
|
191
|
+
*/
|
|
192
|
+
readonly hidden: this;
|
|
193
|
+
/**
|
|
194
|
+
Modifier: Puts a horizontal line through the center of the text. *(Not widely supported)*
|
|
195
|
+
*/
|
|
196
|
+
readonly strikethrough: this;
|
|
197
|
+
/**
|
|
198
|
+
Modifier: Print the text only when Chalk has a color level above zero.
|
|
199
|
+
|
|
200
|
+
Can be useful for things that are purely cosmetic.
|
|
201
|
+
*/
|
|
202
|
+
readonly visible: this;
|
|
203
|
+
readonly black: this;
|
|
204
|
+
readonly red: this;
|
|
205
|
+
readonly green: this;
|
|
206
|
+
readonly yellow: this;
|
|
207
|
+
readonly blue: this;
|
|
208
|
+
readonly magenta: this;
|
|
209
|
+
readonly cyan: this;
|
|
210
|
+
readonly white: this;
|
|
211
|
+
/**
|
|
212
|
+
Alias for `blackBright`.
|
|
213
|
+
*/
|
|
214
|
+
readonly gray: this;
|
|
215
|
+
/**
|
|
216
|
+
Alias for `blackBright`.
|
|
217
|
+
*/
|
|
218
|
+
readonly grey: this;
|
|
219
|
+
readonly blackBright: this;
|
|
220
|
+
readonly redBright: this;
|
|
221
|
+
readonly greenBright: this;
|
|
222
|
+
readonly yellowBright: this;
|
|
223
|
+
readonly blueBright: this;
|
|
224
|
+
readonly magentaBright: this;
|
|
225
|
+
readonly cyanBright: this;
|
|
226
|
+
readonly whiteBright: this;
|
|
227
|
+
readonly bgBlack: this;
|
|
228
|
+
readonly bgRed: this;
|
|
229
|
+
readonly bgGreen: this;
|
|
230
|
+
readonly bgYellow: this;
|
|
231
|
+
readonly bgBlue: this;
|
|
232
|
+
readonly bgMagenta: this;
|
|
233
|
+
readonly bgCyan: this;
|
|
234
|
+
readonly bgWhite: this;
|
|
235
|
+
/**
|
|
236
|
+
Alias for `bgBlackBright`.
|
|
237
|
+
*/
|
|
238
|
+
readonly bgGray: this;
|
|
239
|
+
/**
|
|
240
|
+
Alias for `bgBlackBright`.
|
|
241
|
+
*/
|
|
242
|
+
readonly bgGrey: this;
|
|
243
|
+
readonly bgBlackBright: this;
|
|
244
|
+
readonly bgRedBright: this;
|
|
245
|
+
readonly bgGreenBright: this;
|
|
246
|
+
readonly bgYellowBright: this;
|
|
247
|
+
readonly bgBlueBright: this;
|
|
248
|
+
readonly bgMagentaBright: this;
|
|
249
|
+
readonly bgCyanBright: this;
|
|
250
|
+
readonly bgWhiteBright: this;
|
|
251
|
+
readonly underlineBlack: this;
|
|
252
|
+
readonly underlineRed: this;
|
|
253
|
+
readonly underlineGreen: this;
|
|
254
|
+
readonly underlineYellow: this;
|
|
255
|
+
readonly underlineBlue: this;
|
|
256
|
+
readonly underlineMagenta: this;
|
|
257
|
+
readonly underlineCyan: this;
|
|
258
|
+
readonly underlineWhite: this;
|
|
259
|
+
/**
|
|
260
|
+
Alias for `underlineBlackBright`.
|
|
261
|
+
*/
|
|
262
|
+
readonly underlineGray: this;
|
|
263
|
+
/**
|
|
264
|
+
Alias for `underlineBlackBright`.
|
|
265
|
+
*/
|
|
266
|
+
readonly underlineGrey: this;
|
|
267
|
+
readonly underlineBlackBright: this;
|
|
268
|
+
readonly underlineRedBright: this;
|
|
269
|
+
readonly underlineGreenBright: this;
|
|
270
|
+
readonly underlineYellowBright: this;
|
|
271
|
+
readonly underlineBlueBright: this;
|
|
272
|
+
readonly underlineMagentaBright: this;
|
|
273
|
+
readonly underlineCyanBright: this;
|
|
274
|
+
readonly underlineWhiteBright: this;
|
|
275
|
+
}
|
|
276
|
+
//#endregion
|
|
3
277
|
//#region src/logger.d.ts
|
|
4
|
-
declare function log(message: string):
|
|
278
|
+
declare function log(message: string): any;
|
|
5
279
|
declare function warn(prefix: string, text?: string | string[]): void;
|
|
6
280
|
declare function debug(prefix: string, text?: string | string[]): void;
|
|
7
281
|
declare function info(prefix: string, text?: string | string[]): void;
|
|
8
282
|
declare function success(text: string): void;
|
|
9
283
|
declare function error(prefix: string, text?: string | string[]): void;
|
|
10
|
-
declare function heading(heading: string, description?: string):
|
|
11
|
-
declare const logger: {
|
|
12
|
-
colors:
|
|
284
|
+
declare function heading(heading: string, description?: string): any;
|
|
285
|
+
export declare const logger: {
|
|
286
|
+
colors: ChalkInstance;
|
|
13
287
|
log: typeof log;
|
|
14
288
|
heading: typeof heading;
|
|
15
289
|
debug: typeof debug;
|
|
@@ -24,5 +298,5 @@ declare const logger: {
|
|
|
24
298
|
};
|
|
25
299
|
};
|
|
26
300
|
//#endregion
|
|
27
|
-
export {
|
|
301
|
+
export {};
|
|
28
302
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/logger.ts"],"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["_$chalk.ChalkInstance"],"sources":["../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/vendor/supports-color/index.d.ts","../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/index.d.ts","../src/logger.ts"],"ignoreList":[0,1],"mappings":";;;;;;;;KAkBY;;;UCiBK;MACZ;;;;;;;;;;;;;;EAeJ,OAAO;;;;;;;;;;;EAYP,MAAM,aAAa,eAAe;;;;;;;;;;;;;EAclC,MAAM;;;;;;;;;;;;;EAcN,UAAU;;;;;;;;;;;EAYV,QAAQ,aAAa,eAAe;;;;;;;;;;;;;EAcpC,QAAQ;;;;;;;;;;;;;EAcR,YAAY;;;;;;;;;;;;;EAcZ,eAAe,aAAa,eAAe;;;;;;;;;;;;;;;EAgB3C,eAAe;;;;;;;;;;;;;;;EAgBf,mBAAmB;;;;WAKV;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;;;WAOA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;WAKA;;;;WAKA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;WAKA;;;;WAKA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;WAKA;;;;WAKA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;iBCzUD,IAAI;iBA4BJ,KAAK,gBAAgB;iBAIrB,MAAM,gBAAgB;iBAItB,KAAK,gBAAgB;iBAIrB,QAAQ;iBAIR,MAAM,gBAAgB;iBAKtB,QAAQ,iBAAiB;qBAiBrB;E,QAAAA;;;;;;;;;IAUX,gBAAO;IACP,aAAI;IACJ,cAAK"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,289 @@
|
|
|
1
|
-
|
|
1
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/vendor/supports-color/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
Levels:
|
|
4
|
+
- `0` - All colors disabled.
|
|
5
|
+
- `1` - Basic 16 colors support.
|
|
6
|
+
- `2` - ANSI 256 colors support.
|
|
7
|
+
- `3` - Truecolor 16 million colors support.
|
|
8
|
+
*/
|
|
9
|
+
type ColorSupportLevel = 0 | 1 | 2 | 3;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/index.d.ts
|
|
12
|
+
interface ChalkInstance {
|
|
13
|
+
(...text: unknown[]): string;
|
|
14
|
+
/**
|
|
15
|
+
The color support for Chalk.
|
|
16
|
+
|
|
17
|
+
By default, color support is automatically detected based on the environment.
|
|
18
|
+
|
|
19
|
+
Levels:
|
|
20
|
+
- `0` - All colors disabled.
|
|
21
|
+
- `1` - Basic 16 colors support.
|
|
22
|
+
- `2` - ANSI 256 colors support.
|
|
23
|
+
- `3` - Truecolor 16 million colors support.
|
|
24
|
+
|
|
25
|
+
@throws If the assigned value is not an integer from 0 to 3.
|
|
26
|
+
*/
|
|
27
|
+
level: ColorSupportLevel;
|
|
28
|
+
/**
|
|
29
|
+
Use RGB values to set text color.
|
|
30
|
+
|
|
31
|
+
@example
|
|
32
|
+
```
|
|
33
|
+
import chalk from 'chalk';
|
|
34
|
+
|
|
35
|
+
chalk.rgb(222, 173, 237);
|
|
36
|
+
```
|
|
37
|
+
*/
|
|
38
|
+
rgb: (red: number, green: number, blue: number) => this;
|
|
39
|
+
/**
|
|
40
|
+
Use HEX value to set text color.
|
|
41
|
+
|
|
42
|
+
@param color - Hexadecimal value representing the desired color.
|
|
43
|
+
|
|
44
|
+
@example
|
|
45
|
+
```
|
|
46
|
+
import chalk from 'chalk';
|
|
47
|
+
|
|
48
|
+
chalk.hex('#DEADED');
|
|
49
|
+
```
|
|
50
|
+
*/
|
|
51
|
+
hex: (color: string) => this;
|
|
52
|
+
/**
|
|
53
|
+
Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
|
|
54
|
+
|
|
55
|
+
The value is downsampled to the 16-color palette on terminals that only support basic colors (level 1), so `chalk.ansi256(196)` becomes 91 (ANSI escape for bright red).
|
|
56
|
+
|
|
57
|
+
@example
|
|
58
|
+
```
|
|
59
|
+
import chalk from 'chalk';
|
|
60
|
+
|
|
61
|
+
chalk.ansi256(201);
|
|
62
|
+
```
|
|
63
|
+
*/
|
|
64
|
+
ansi256: (index: number) => this;
|
|
65
|
+
/**
|
|
66
|
+
Use RGB values to set background color.
|
|
67
|
+
|
|
68
|
+
@example
|
|
69
|
+
```
|
|
70
|
+
import chalk from 'chalk';
|
|
71
|
+
|
|
72
|
+
chalk.bgRgb(222, 173, 237);
|
|
73
|
+
```
|
|
74
|
+
*/
|
|
75
|
+
bgRgb: (red: number, green: number, blue: number) => this;
|
|
76
|
+
/**
|
|
77
|
+
Use HEX value to set background color.
|
|
78
|
+
|
|
79
|
+
@param color - Hexadecimal value representing the desired color.
|
|
80
|
+
|
|
81
|
+
@example
|
|
82
|
+
```
|
|
83
|
+
import chalk from 'chalk';
|
|
2
84
|
|
|
85
|
+
chalk.bgHex('#DEADED');
|
|
86
|
+
```
|
|
87
|
+
*/
|
|
88
|
+
bgHex: (color: string) => this;
|
|
89
|
+
/**
|
|
90
|
+
Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color.
|
|
91
|
+
|
|
92
|
+
The value is downsampled to the 16-color palette on terminals that only support basic colors (level 1), so `chalk.bgAnsi256(196)` becomes 101 (ANSI escape for bright red background).
|
|
93
|
+
|
|
94
|
+
@example
|
|
95
|
+
```
|
|
96
|
+
import chalk from 'chalk';
|
|
97
|
+
|
|
98
|
+
chalk.bgAnsi256(201);
|
|
99
|
+
```
|
|
100
|
+
*/
|
|
101
|
+
bgAnsi256: (index: number) => this;
|
|
102
|
+
/**
|
|
103
|
+
Use RGB values to set underline color.
|
|
104
|
+
|
|
105
|
+
The underline color is only visible when an underline style is also applied.
|
|
106
|
+
|
|
107
|
+
@example
|
|
108
|
+
```
|
|
109
|
+
import chalk from 'chalk';
|
|
110
|
+
|
|
111
|
+
chalk.underlineRgb(222, 173, 237).underlineCurly('Hello, world!');
|
|
112
|
+
```
|
|
113
|
+
*/
|
|
114
|
+
underlineRgb: (red: number, green: number, blue: number) => this;
|
|
115
|
+
/**
|
|
116
|
+
Use HEX value to set underline color.
|
|
117
|
+
|
|
118
|
+
The underline color is only visible when an underline style is also applied.
|
|
119
|
+
|
|
120
|
+
@param color - Hexadecimal value representing the desired color.
|
|
121
|
+
|
|
122
|
+
@example
|
|
123
|
+
```
|
|
124
|
+
import chalk from 'chalk';
|
|
125
|
+
|
|
126
|
+
chalk.underlineHex('#DEADED').underlineCurly('Hello, world!');
|
|
127
|
+
```
|
|
128
|
+
*/
|
|
129
|
+
underlineHex: (color: string) => this;
|
|
130
|
+
/**
|
|
131
|
+
Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set underline color.
|
|
132
|
+
|
|
133
|
+
The underline color is only visible when an underline style is also applied.
|
|
134
|
+
|
|
135
|
+
The value is downsampled to the first 16 palette entries on terminals that only support basic colors (level 1), so `chalk.underlineAnsi256(196)` becomes 9 (the palette index for bright red).
|
|
136
|
+
|
|
137
|
+
@example
|
|
138
|
+
```
|
|
139
|
+
import chalk from 'chalk';
|
|
140
|
+
|
|
141
|
+
chalk.underlineAnsi256(201).underlineCurly('Hello, world!');
|
|
142
|
+
```
|
|
143
|
+
*/
|
|
144
|
+
underlineAnsi256: (index: number) => this;
|
|
145
|
+
/**
|
|
146
|
+
Modifier: Reset the current style.
|
|
147
|
+
*/
|
|
148
|
+
readonly reset: this;
|
|
149
|
+
/**
|
|
150
|
+
Modifier: Make the text bold.
|
|
151
|
+
*/
|
|
152
|
+
readonly bold: this;
|
|
153
|
+
/**
|
|
154
|
+
Modifier: Make the text have lower opacity.
|
|
155
|
+
*/
|
|
156
|
+
readonly dim: this;
|
|
157
|
+
/**
|
|
158
|
+
Modifier: Make the text italic. *(Not widely supported)*
|
|
159
|
+
*/
|
|
160
|
+
readonly italic: this;
|
|
161
|
+
/**
|
|
162
|
+
Modifier: Put a horizontal line below the text. *(Not widely supported)*
|
|
163
|
+
*/
|
|
164
|
+
readonly underline: this;
|
|
165
|
+
/**
|
|
166
|
+
Modifier: Put a double horizontal line below the text. *(Not widely supported)*
|
|
167
|
+
*/
|
|
168
|
+
readonly underlineDouble: this;
|
|
169
|
+
/**
|
|
170
|
+
Modifier: Put a curly horizontal line below the text. *(Not widely supported)*
|
|
171
|
+
*/
|
|
172
|
+
readonly underlineCurly: this;
|
|
173
|
+
/**
|
|
174
|
+
Modifier: Put a dotted horizontal line below the text. *(Not widely supported)*
|
|
175
|
+
*/
|
|
176
|
+
readonly underlineDotted: this;
|
|
177
|
+
/**
|
|
178
|
+
Modifier: Put a dashed horizontal line below the text. *(Not widely supported)*
|
|
179
|
+
*/
|
|
180
|
+
readonly underlineDashed: this;
|
|
181
|
+
/**
|
|
182
|
+
Modifier: Put a horizontal line above the text. *(Not widely supported)*
|
|
183
|
+
*/
|
|
184
|
+
readonly overline: this;
|
|
185
|
+
/**
|
|
186
|
+
Modifier: Invert background and foreground colors.
|
|
187
|
+
*/
|
|
188
|
+
readonly inverse: this;
|
|
189
|
+
/**
|
|
190
|
+
Modifier: Print the text but make it invisible.
|
|
191
|
+
*/
|
|
192
|
+
readonly hidden: this;
|
|
193
|
+
/**
|
|
194
|
+
Modifier: Puts a horizontal line through the center of the text. *(Not widely supported)*
|
|
195
|
+
*/
|
|
196
|
+
readonly strikethrough: this;
|
|
197
|
+
/**
|
|
198
|
+
Modifier: Print the text only when Chalk has a color level above zero.
|
|
199
|
+
|
|
200
|
+
Can be useful for things that are purely cosmetic.
|
|
201
|
+
*/
|
|
202
|
+
readonly visible: this;
|
|
203
|
+
readonly black: this;
|
|
204
|
+
readonly red: this;
|
|
205
|
+
readonly green: this;
|
|
206
|
+
readonly yellow: this;
|
|
207
|
+
readonly blue: this;
|
|
208
|
+
readonly magenta: this;
|
|
209
|
+
readonly cyan: this;
|
|
210
|
+
readonly white: this;
|
|
211
|
+
/**
|
|
212
|
+
Alias for `blackBright`.
|
|
213
|
+
*/
|
|
214
|
+
readonly gray: this;
|
|
215
|
+
/**
|
|
216
|
+
Alias for `blackBright`.
|
|
217
|
+
*/
|
|
218
|
+
readonly grey: this;
|
|
219
|
+
readonly blackBright: this;
|
|
220
|
+
readonly redBright: this;
|
|
221
|
+
readonly greenBright: this;
|
|
222
|
+
readonly yellowBright: this;
|
|
223
|
+
readonly blueBright: this;
|
|
224
|
+
readonly magentaBright: this;
|
|
225
|
+
readonly cyanBright: this;
|
|
226
|
+
readonly whiteBright: this;
|
|
227
|
+
readonly bgBlack: this;
|
|
228
|
+
readonly bgRed: this;
|
|
229
|
+
readonly bgGreen: this;
|
|
230
|
+
readonly bgYellow: this;
|
|
231
|
+
readonly bgBlue: this;
|
|
232
|
+
readonly bgMagenta: this;
|
|
233
|
+
readonly bgCyan: this;
|
|
234
|
+
readonly bgWhite: this;
|
|
235
|
+
/**
|
|
236
|
+
Alias for `bgBlackBright`.
|
|
237
|
+
*/
|
|
238
|
+
readonly bgGray: this;
|
|
239
|
+
/**
|
|
240
|
+
Alias for `bgBlackBright`.
|
|
241
|
+
*/
|
|
242
|
+
readonly bgGrey: this;
|
|
243
|
+
readonly bgBlackBright: this;
|
|
244
|
+
readonly bgRedBright: this;
|
|
245
|
+
readonly bgGreenBright: this;
|
|
246
|
+
readonly bgYellowBright: this;
|
|
247
|
+
readonly bgBlueBright: this;
|
|
248
|
+
readonly bgMagentaBright: this;
|
|
249
|
+
readonly bgCyanBright: this;
|
|
250
|
+
readonly bgWhiteBright: this;
|
|
251
|
+
readonly underlineBlack: this;
|
|
252
|
+
readonly underlineRed: this;
|
|
253
|
+
readonly underlineGreen: this;
|
|
254
|
+
readonly underlineYellow: this;
|
|
255
|
+
readonly underlineBlue: this;
|
|
256
|
+
readonly underlineMagenta: this;
|
|
257
|
+
readonly underlineCyan: this;
|
|
258
|
+
readonly underlineWhite: this;
|
|
259
|
+
/**
|
|
260
|
+
Alias for `underlineBlackBright`.
|
|
261
|
+
*/
|
|
262
|
+
readonly underlineGray: this;
|
|
263
|
+
/**
|
|
264
|
+
Alias for `underlineBlackBright`.
|
|
265
|
+
*/
|
|
266
|
+
readonly underlineGrey: this;
|
|
267
|
+
readonly underlineBlackBright: this;
|
|
268
|
+
readonly underlineRedBright: this;
|
|
269
|
+
readonly underlineGreenBright: this;
|
|
270
|
+
readonly underlineYellowBright: this;
|
|
271
|
+
readonly underlineBlueBright: this;
|
|
272
|
+
readonly underlineMagentaBright: this;
|
|
273
|
+
readonly underlineCyanBright: this;
|
|
274
|
+
readonly underlineWhiteBright: this;
|
|
275
|
+
}
|
|
276
|
+
//#endregion
|
|
3
277
|
//#region src/logger.d.ts
|
|
4
|
-
declare function log(message: string):
|
|
278
|
+
declare function log(message: string): any;
|
|
5
279
|
declare function warn(prefix: string, text?: string | string[]): void;
|
|
6
280
|
declare function debug(prefix: string, text?: string | string[]): void;
|
|
7
281
|
declare function info(prefix: string, text?: string | string[]): void;
|
|
8
282
|
declare function success(text: string): void;
|
|
9
283
|
declare function error(prefix: string, text?: string | string[]): void;
|
|
10
|
-
declare function heading(heading: string, description?: string):
|
|
11
|
-
declare const logger: {
|
|
12
|
-
colors:
|
|
284
|
+
declare function heading(heading: string, description?: string): any;
|
|
285
|
+
export declare const logger: {
|
|
286
|
+
colors: ChalkInstance;
|
|
13
287
|
log: typeof log;
|
|
14
288
|
heading: typeof heading;
|
|
15
289
|
debug: typeof debug;
|
|
@@ -24,5 +298,5 @@ declare const logger: {
|
|
|
24
298
|
};
|
|
25
299
|
};
|
|
26
300
|
//#endregion
|
|
27
|
-
export {
|
|
301
|
+
export {};
|
|
28
302
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/logger.ts"],"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["_$chalk.ChalkInstance"],"sources":["../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/vendor/supports-color/index.d.ts","../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/index.d.ts","../src/logger.ts"],"ignoreList":[0,1],"mappings":";;;;;;;;KAkBY;;;UCiBK;MACZ;;;;;;;;;;;;;;EAeJ,OAAO;;;;;;;;;;;EAYP,MAAM,aAAa,eAAe;;;;;;;;;;;;;EAclC,MAAM;;;;;;;;;;;;;EAcN,UAAU;;;;;;;;;;;EAYV,QAAQ,aAAa,eAAe;;;;;;;;;;;;;EAcpC,QAAQ;;;;;;;;;;;;;EAcR,YAAY;;;;;;;;;;;;;EAcZ,eAAe,aAAa,eAAe;;;;;;;;;;;;;;;EAgB3C,eAAe;;;;;;;;;;;;;;;EAgBf,mBAAmB;;;;WAKV;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;WAKA;;;;;;WAOA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;WAKA;;;;WAKA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;WAKA;;;;WAKA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;WAKA;;;;WAKA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;iBCzUD,IAAI;iBA4BJ,KAAK,gBAAgB;iBAIrB,MAAM,gBAAgB;iBAItB,KAAK,gBAAgB;iBAIrB,QAAQ;iBAIR,MAAM,gBAAgB;iBAKtB,QAAQ,iBAAiB;qBAiBrB;E,QAAAA;;;;;;;;;IAUX,gBAAO;IACP,aAAI;IACJ,cAAK"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import e from"node:process";import t from"node:os";import n from"node:tty";
|
|
1
|
+
import e from"node:process";import t from"node:os";import n from"node:tty";function r(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}function i(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
|
|
2
2
|
`:`
|
|
3
3
|
`)+n,i=r+1,r=e.indexOf(`
|
|
4
|
-
`,i)}while(r!==-1);return a+=e.slice(i),a}const{
|
|
5
|
-
`);return
|
|
4
|
+
`,i)}while(r!==-1);return a+=e.slice(i),a}const a=(e=0)=>t=>`\u{1B}[${t+e}m`,o=(e=0)=>t=>`\u{1B}[${38+e};5;${t}m`,s=(e=0)=>(t,n,r)=>`\u{1B}[${38+e};2;${t};${n};${r}m`,c=e=>`\u{1B}[58;5;${e<90?e-30:e-90+8}m`,l={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],underlineDouble:[`4:2`,24],underlineCurly:[`4:3`,24],underlineDotted:[`4:4`,24],underlineDashed:[`4:5`,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},underlineColor:{underlineBlack:[`58;5;0`,59],underlineRed:[`58;5;1`,59],underlineGreen:[`58;5;2`,59],underlineYellow:[`58;5;3`,59],underlineBlue:[`58;5;4`,59],underlineMagenta:[`58;5;5`,59],underlineCyan:[`58;5;6`,59],underlineWhite:[`58;5;7`,59],underlineBlackBright:[`58;5;8`,59],underlineGray:[`58;5;8`,59],underlineGrey:[`58;5;8`,59],underlineRedBright:[`58;5;9`,59],underlineGreenBright:[`58;5;10`,59],underlineYellowBright:[`58;5;11`,59],underlineBlueBright:[`58;5;12`,59],underlineMagentaBright:[`58;5;13`,59],underlineCyanBright:[`58;5;14`,59],underlineWhiteBright:[`58;5;15`,59]}};Object.keys(l.modifier);const u=Object.keys(l.color),d=Object.keys(l.bgColor);Object.keys(l.underlineColor),[...u,...d];function f(){let e=/* @__PURE__ */ new Map;for(let[t,n]of Object.entries(l)){for(let[t,r]of Object.entries(n))l[t]={open:`\u{1B}[${r[0]}m`,close:`\u{1B}[${r[1]}m`},n[t]=l[t],e.set(Number.parseInt(r[0],10),r[1]);Object.defineProperty(l,t,{value:n,enumerable:!1})}return Object.defineProperty(l,"codes",{value:e,enumerable:!1}),l.color.close=`\x1B[39m`,l.bgColor.close=`\x1B[49m`,l.underlineColor.close=`\x1B[59m`,l.color.ansi=a(),l.color.ansi256=o(),l.color.ansi16m=s(),l.bgColor.ansi=a(10),l.bgColor.ansi256=o(10),l.bgColor.ansi16m=s(10),l.underlineColor.ansi=c,l.underlineColor.ansi256=o(20),l.underlineColor.ansi16m=s(20),Object.defineProperties(l,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[\da-f]{6}|[\da-f]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>l.rgbToAnsi256(...l.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>l.ansi256ToAnsi(l.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>l.ansi256ToAnsi(l.hexToAnsi256(e)),enumerable:!1}}),l}const p=f();function m(t,n=globalThis.Deno?globalThis.Deno.args:e.argv){let r=t.startsWith(`-`)?``:t.length===1?`-`:`--`,i=n.indexOf(r+t),a=n.indexOf(`--`);return i!==-1&&(a===-1||i<a)}const{env:h}=e;let g;m(`no-color`)||m(`no-colors`)||m(`color=false`)||m(`color=never`)?g=0:(m(`color`)||m(`colors`)||m(`color=true`)||m(`color=always`))&&(g=1);function _(){return/^\d+$/.test(h.FORCE_COLOR)}function v(){if(`FORCE_COLOR`in h){if(h.FORCE_COLOR===`false`)return 0;if(h.FORCE_COLOR===`true`||h.FORCE_COLOR.length===0)return 1;if(_())return Math.min(Number.parseInt(h.FORCE_COLOR,10),3)}}function y(e){return e!==0&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function b(n,{streamIsTTY:r,sniffFlags:i=!0}={}){let a=v();a!==void 0&&(g=a);let o=i?g:a;if(o===0)return 0;if(i){if(m(`color=16m`)||m(`color=full`)||m(`color=truecolor`))return 3;if(m(`color=256`))return 2}if(o!==void 0&&_())return o;if(`TF_BUILD`in h&&`AGENT_NAME`in h)return 1;if(n&&!r&&o===void 0)return 0;let s=o||0;if(h.TERM===`dumb`)return s;if(e.platform===`win32`){let e=t.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in h)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in h)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in h)||h.CI_NAME===`codeship`?1:s;if(`TEAMCITY_VERSION`in h)return+!!/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(h.TEAMCITY_VERSION);if(h.COLORTERM===`truecolor`||h.TERM===`xterm-kitty`||h.TERM===`xterm-ghostty`||h.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in h){let e=Number.parseInt((h.TERM_PROGRAM_VERSION||``).split(`.`,1)[0],10);switch(h.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(?:color)?$/i.test(h.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(h.TERM)||`COLORTERM`in h?1:s}function x(e,t={}){return y(b(e,{streamIsTTY:e&&e.isTTY,...t}))}const{stdout:S,stderr:C}={stdout:x({isTTY:n.isatty(1)}),stderr:x({isTTY:n.isatty(2)})},w=Symbol(`GENERATOR`),T=Symbol(`STYLER`),E=Symbol(`IS_EMPTY`),D=Symbol(`LEVEL`),O=Object.create(null),k=e=>{if(!Number.isSafeInteger(e)||e<0||e>3)throw Error("The `level` should be an integer from 0 to 3")},A={enumerable:!0,get(){return this[D]},set(e){k(e),this[D]=e}},j=(e,t={})=>{t.level!==void 0&&k(t.level);let n=S?S.level:0;e[D]=t.level===void 0?n:t.level},M=e=>{let t=(...e)=>e.join(` `);return j(t,e),Object.setPrototypeOf(t,N.prototype),t};function N(e){return M(e)}Object.setPrototypeOf(N.prototype,Function.prototype);for(let[e,t]of Object.entries(p))O[e]={get(){let n=L(this,I(t.open,t.close,this[T]),this[E]);return Object.defineProperty(this,e,{value:n}),n}};O.visible={get(){let e=L(this,this[T],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const P=(e,t)=>{let n=p[t];if(e===`rgb`){let e=(e,t,r)=>n.ansi(p.rgbToAnsi(e,t,r));return[e,e,(e,t,r)=>n.ansi256(p.rgbToAnsi256(e,t,r)),n.ansi16m]}if(e===`hex`){let e=e=>n.ansi(p.hexToAnsi(e));return[e,e,e=>n.ansi256(p.hexToAnsi256(e)),e=>n.ansi16m(...p.hexToRgb(e))]}let r=e=>n.ansi(p.ansi256ToAnsi(e));return[r,r,n.ansi256,n.ansi256]};for(let e of[`rgb`,`hex`,`ansi256`]){let t=e[0].toUpperCase()+e.slice(1);for(let[n,r]of[[e,`color`],[`bg`+t,`bgColor`],[`underline`+t,`underlineColor`]]){let{close:t}=p[r],i=P(e,r);O[n]={get(){let e=function(e,n,r){let a=i[this.level](e,n,r);return L(this,I(a,t,this[T]),this[E])};return Object.defineProperty(this,n,{value:e}),e}}}}const F=Object.defineProperties(()=>{},{...O,level:{enumerable:!0,get(){return this[w].level},set(e){this[w].level=e}}}),I=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},L=(e,t,n)=>{let r=(...e)=>e.length===1?R(r,``+e[0]):e.length===2?R(r,`${e[0]??``} ${e[1]??``}`):R(r,e.join(` `));return Object.setPrototypeOf(r,F),r[w]=e[w]??e,r[T]=t,r[E]=n,r},R=(e,t)=>{if(e[w][D]<=0||!t)return e[E]?``:t;let n=e[T];if(n===void 0)return t;let{openAll:a,closeAll:o}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=r(t,n.close,n.open),n=n.parent;let s=t.indexOf(`
|
|
5
|
+
`);return s!==-1&&(t=i(t,o,a,s)),a+t+o};Object.defineProperties(N.prototype,{...O,level:A});const z=N();N({level:C?C.level:0});function B(t){return e.stdout.write(`${t}\n`)}function V(t){return e.stderr.write(`${t}\n`)}function H(e,t,n,r,i,a){let o=(Array.isArray(a)?a:[a||``].filter(Boolean)).map(e=>n(e)).join(``);e(`${` `.repeat(3)} ${t(r)} ${t(i)} ${o}`)}function U(e,t){H(B,z.yellow,z.yellow,`●`,e,t)}function W(e,t){H(B,z.yellow,z.dim,`●`,e,t)}function G(e,t){H(B,z.cyan,z.dim,`◼`,e,t)}function K(e){H(B,z.green,z.dim,`✔`,e)}function q(e,t){B(``),H(V,z.red,z.red,`▲`,e,t)}function J(e,t){return B(`\n${z.bgWhite(` ${z.whiteBright(e)} `)} ${z.bold(t)}\n`)}const Y=e=>()=>{let t=performance.now();return n=>{let r=performance.now()-t;e(`${n} ${z.gray(`(${r.toFixed(2)}ms)`)}`)}},X={colors:z,log:B,heading:J,debug:W,info:G,warn:U,success:K,error:q,time:{success:Y(K),info:Y(G),debug:Y(W)}};export{X as logger};
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["styles","supportsColor","chalk","ansiStyles","chalk","heading"],"sources":["../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js","../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js","../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js","../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js","../src/logger.ts"],"sourcesContent":["const ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u001B[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[a-f\\d]{6}|[a-f\\d]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n","import process from 'node:process';\nimport os from 'node:os';\nimport tty from 'node:tty';\n\n// From: https://github.com/sindresorhus/has-flag/blob/main/index.js\n/// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {\nfunction hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n}\n\nconst {env} = process;\n\nlet flagForceColor;\nif (\n\thasFlag('no-color')\n\t|| hasFlag('no-colors')\n\t|| hasFlag('color=false')\n\t|| hasFlag('color=never')\n) {\n\tflagForceColor = 0;\n} else if (\n\thasFlag('color')\n\t|| hasFlag('colors')\n\t|| hasFlag('color=true')\n\t|| hasFlag('color=always')\n) {\n\tflagForceColor = 1;\n}\n\nfunction envForceColor() {\n\tif ('FORCE_COLOR' in env) {\n\t\tif (env.FORCE_COLOR === 'true') {\n\t\t\treturn 1;\n\t\t}\n\n\t\tif (env.FORCE_COLOR === 'false') {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3,\n\t};\n}\n\nfunction _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {\n\tconst noFlagForceColor = envForceColor();\n\tif (noFlagForceColor !== undefined) {\n\t\tflagForceColor = noFlagForceColor;\n\t}\n\n\tconst forceColor = sniffFlags ? flagForceColor : noFlagForceColor;\n\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (sniffFlags) {\n\t\tif (hasFlag('color=16m')\n\t\t\t|| hasFlag('color=full')\n\t\t\t|| hasFlag('color=truecolor')) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (hasFlag('color=256')) {\n\t\t\treturn 2;\n\t\t}\n\t}\n\n\t// Check for Azure DevOps pipelines.\n\t// Has to be above the `!streamIsTTY` check.\n\tif ('TF_BUILD' in env && 'AGENT_NAME' in env) {\n\t\treturn 1;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10\n\t\t\t&& Number(osRelease[2]) >= 10_586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14_931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-kitty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-ghostty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'wezterm') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app': {\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\t}\n\n\t\t\tcase 'Apple_Terminal': {\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nexport function createSupportsColor(stream, options = {}) {\n\tconst level = _supportsColor(stream, {\n\t\tstreamIsTTY: stream && stream.isTTY,\n\t\t...options,\n\t});\n\n\treturn translateLevel(level);\n}\n\nconst supportsColor = {\n\tstdout: createSupportsColor({isTTY: tty.isatty(1)}),\n\tstderr: createSupportsColor({isTTY: tty.isatty(2)}),\n};\n\nexport default supportsColor;\n","// TODO: When targeting Node.js 16, use `String.prototype.replaceAll`.\nexport function stringReplaceAll(string, substring, replacer) {\n\tlet index = string.indexOf(substring);\n\tif (index === -1) {\n\t\treturn string;\n\t}\n\n\tconst substringLength = substring.length;\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\treturnValue += string.slice(endIndex, index) + substring + replacer;\n\t\tendIndex = index + substringLength;\n\t\tindex = string.indexOf(substring, endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n\nexport function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\tconst gotCR = string[index - 1] === '\\r';\n\t\treturnValue += string.slice(endIndex, (gotCR ? index - 1 : index)) + prefix + (gotCR ? '\\r\\n' : '\\n') + postfix;\n\t\tendIndex = index + 1;\n\t\tindex = string.indexOf('\\n', endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n","import ansiStyles from '#ansi-styles';\nimport supportsColor from '#supports-color';\nimport { // eslint-disable-line import/order\n\tstringReplaceAll,\n\tstringEncaseCRLFWithFirstIndex,\n} from './utilities.js';\n\nconst {stdout: stdoutColor, stderr: stderrColor} = supportsColor;\n\nconst GENERATOR = Symbol('GENERATOR');\nconst STYLER = Symbol('STYLER');\nconst IS_EMPTY = Symbol('IS_EMPTY');\n\n// `supportsColor.level` → `ansiStyles.color[name]` mapping\nconst levelMapping = [\n\t'ansi',\n\t'ansi',\n\t'ansi256',\n\t'ansi16m',\n];\n\nconst styles = Object.create(null);\n\nconst applyOptions = (object, options = {}) => {\n\tif (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {\n\t\tthrow new Error('The `level` option should be an integer from 0 to 3');\n\t}\n\n\t// Detect level if not set manually\n\tconst colorLevel = stdoutColor ? stdoutColor.level : 0;\n\tobject.level = options.level === undefined ? colorLevel : options.level;\n};\n\nexport class Chalk {\n\tconstructor(options) {\n\t\t// eslint-disable-next-line no-constructor-return\n\t\treturn chalkFactory(options);\n\t}\n}\n\nconst chalkFactory = options => {\n\tconst chalk = (...strings) => strings.join(' ');\n\tapplyOptions(chalk, options);\n\n\tObject.setPrototypeOf(chalk, createChalk.prototype);\n\n\treturn chalk;\n};\n\nfunction createChalk(options) {\n\treturn chalkFactory(options);\n}\n\nObject.setPrototypeOf(createChalk.prototype, Function.prototype);\n\nfor (const [styleName, style] of Object.entries(ansiStyles)) {\n\tstyles[styleName] = {\n\t\tget() {\n\t\t\tconst builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);\n\t\t\tObject.defineProperty(this, styleName, {value: builder});\n\t\t\treturn builder;\n\t\t},\n\t};\n}\n\nstyles.visible = {\n\tget() {\n\t\tconst builder = createBuilder(this, this[STYLER], true);\n\t\tObject.defineProperty(this, 'visible', {value: builder});\n\t\treturn builder;\n\t},\n};\n\nconst getModelAnsi = (model, level, type, ...arguments_) => {\n\tif (model === 'rgb') {\n\t\tif (level === 'ansi16m') {\n\t\t\treturn ansiStyles[type].ansi16m(...arguments_);\n\t\t}\n\n\t\tif (level === 'ansi256') {\n\t\t\treturn ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));\n\t\t}\n\n\t\treturn ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));\n\t}\n\n\tif (model === 'hex') {\n\t\treturn getModelAnsi('rgb', level, type, ...ansiStyles.hexToRgb(...arguments_));\n\t}\n\n\treturn ansiStyles[type][model](...arguments_);\n};\n\nconst usedModels = ['rgb', 'hex', 'ansi256'];\n\nfor (const model of usedModels) {\n\tstyles[model] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), ansiStyles.color.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n\n\tconst bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);\n\tstyles[bgModel] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), ansiStyles.bgColor.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n}\n\nconst proto = Object.defineProperties(() => {}, {\n\t...styles,\n\tlevel: {\n\t\tenumerable: true,\n\t\tget() {\n\t\t\treturn this[GENERATOR].level;\n\t\t},\n\t\tset(level) {\n\t\t\tthis[GENERATOR].level = level;\n\t\t},\n\t},\n});\n\nconst createStyler = (open, close, parent) => {\n\tlet openAll;\n\tlet closeAll;\n\tif (parent === undefined) {\n\t\topenAll = open;\n\t\tcloseAll = close;\n\t} else {\n\t\topenAll = parent.openAll + open;\n\t\tcloseAll = close + parent.closeAll;\n\t}\n\n\treturn {\n\t\topen,\n\t\tclose,\n\t\topenAll,\n\t\tcloseAll,\n\t\tparent,\n\t};\n};\n\nconst createBuilder = (self, _styler, _isEmpty) => {\n\t// Single argument is hot path, implicit coercion is faster than anything\n\t// eslint-disable-next-line no-implicit-coercion\n\tconst builder = (...arguments_) => applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));\n\n\t// We alter the prototype because we must return a function, but there is\n\t// no way to create a function with a different prototype\n\tObject.setPrototypeOf(builder, proto);\n\n\tbuilder[GENERATOR] = self;\n\tbuilder[STYLER] = _styler;\n\tbuilder[IS_EMPTY] = _isEmpty;\n\n\treturn builder;\n};\n\nconst applyStyle = (self, string) => {\n\tif (self.level <= 0 || !string) {\n\t\treturn self[IS_EMPTY] ? '' : string;\n\t}\n\n\tlet styler = self[STYLER];\n\n\tif (styler === undefined) {\n\t\treturn string;\n\t}\n\n\tconst {openAll, closeAll} = styler;\n\tif (string.includes('\\u001B')) {\n\t\twhile (styler !== undefined) {\n\t\t\t// Replace any instances already present with a re-opening code\n\t\t\t// otherwise only the part of the string until said closing code\n\t\t\t// will be colored, and the rest will simply be 'plain'.\n\t\t\tstring = stringReplaceAll(string, styler.close, styler.open);\n\n\t\t\tstyler = styler.parent;\n\t\t}\n\t}\n\n\t// We can move both next actions out of loop, because remaining actions in loop won't have\n\t// any/visible effect on parts we add here. Close the styling before a linebreak and reopen\n\t// after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92\n\tconst lfIndex = string.indexOf('\\n');\n\tif (lfIndex !== -1) {\n\t\tstring = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);\n\t}\n\n\treturn openAll + string + closeAll;\n};\n\nObject.defineProperties(createChalk.prototype, styles);\n\nconst chalk = createChalk();\nexport const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});\n\nexport {\n\tmodifierNames,\n\tforegroundColorNames,\n\tbackgroundColorNames,\n\tcolorNames,\n\n\t// TODO: Remove these aliases in the next major version\n\tmodifierNames as modifiers,\n\tforegroundColorNames as foregroundColors,\n\tbackgroundColorNames as backgroundColors,\n\tcolorNames as colors,\n} from './vendor/ansi-styles/index.js';\n\nexport {\n\tstdoutColor as supportsColor,\n\tstderrColor as supportsColorStderr,\n};\n\nexport default chalk;\n","// Dependencies\nimport process from 'node:process'\nimport chalk from 'chalk'\n\nfunction log(message: string) {\n\treturn process.stdout.write(`${message}\\n`)\n}\n\nfunction logError(message: string) {\n\treturn process.stderr.write(`${message}\\n`)\n}\n\nfunction logBullet(\n\tlogger: typeof log | typeof logError,\n\tcolorizePrefix: typeof chalk,\n\tcolorizeText: typeof chalk,\n\tsymbol: string,\n\tprefix: string,\n\ttext?: string | string[]\n) {\n\tconst textParts = Array.isArray(text) ? text : [text || ''].filter(Boolean)\n\tconst formattedText = textParts\n\t\t.map((textPart) => colorizeText(textPart))\n\t\t.join('')\n\n\tlogger(\n\t\t`${' '.repeat(3)} ${colorizePrefix(symbol)} ${colorizePrefix(\n\t\t\tprefix\n\t\t)} ${formattedText}`\n\t)\n}\n\nfunction warn(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.yellow, chalk.yellow, '●', prefix, text)\n}\n\nfunction debug(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.yellow, chalk.dim, '●', prefix, text)\n}\n\nfunction info(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.cyan, chalk.dim, '◼', prefix, text)\n}\n\nfunction success(text: string) {\n\tlogBullet(log, chalk.green, chalk.dim, '✔', text)\n}\n\nfunction error(prefix: string, text?: string | string[]) {\n\tlog('')\n\tlogBullet(logError, chalk.red, chalk.red, '▲', prefix, text)\n}\n\nfunction heading(heading: string, description?: string) {\n\treturn log(\n\t\t`\\n${chalk.bgWhite(` ${chalk.whiteBright(heading)} `)} ${chalk.bold(\n\t\t\tdescription\n\t\t)}\\n`\n\t)\n}\n\nconst timing = (fn: (str: string) => any) => () => {\n\tconst start = performance.now()\n\treturn (msg: string) => {\n\t\tconst end = performance.now()\n\t\tconst ms = end - start\n\t\tfn(`${msg} ${chalk.gray(`(${ms.toFixed(2)}ms)`)}`)\n\t}\n}\n\nexport const logger = {\n\tcolors: chalk,\n\tlog,\n\theading,\n\tdebug,\n\tinfo,\n\twarn,\n\tsuccess,\n\terror,\n\ttime: {\n\t\tsuccess: timing(success),\n\t\tinfo: timing(info),\n\t\tdebug: timing(debug)\n\t}\n}\n"],"x_google_ignoreList":[0,1,2,3],"mappings":"2EAAA,MAEM,GAAc,EAAS,IAAM,GAAQ,UAAU,EAAO,EAAO,GAE7D,GAAe,EAAS,IAAM,GAAQ,UAAU,GAAK,EAAO,KAAK,EAAK,GAEtE,GAAe,EAAS,KAAO,EAAK,EAAO,IAAS,UAAU,GAAK,EAAO,KAAK,EAAI,GAAG,EAAM,GAAG,EAAK,GAEpGA,EAAS,CACd,SAAU,CACT,MAAO,CAAC,EAAG,EAAE,CAEb,KAAM,CAAC,EAAG,GAAG,CACb,IAAK,CAAC,EAAG,GAAG,CACZ,OAAQ,CAAC,EAAG,GAAG,CACf,UAAW,CAAC,EAAG,GAAG,CAClB,SAAU,CAAC,GAAI,GAAG,CAClB,QAAS,CAAC,EAAG,GAAG,CAChB,OAAQ,CAAC,EAAG,GAAG,CACf,cAAe,CAAC,EAAG,GAAG,CACtB,CACD,MAAO,CACN,MAAO,CAAC,GAAI,GAAG,CACf,IAAK,CAAC,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GAAG,EAAI,GAAGA,EAAM,KAAK,IAAI,EAAG,QAAQ,EAAE,CAAC,KAAK,GAAG,GAIvC,EAAS,CACrB,OAAQA,EACR,MACA,UACA,QACA,OACA,OACA,UACA,QACA,KAAM,CACL,QAAS,EAAO,EAAQ,CACxB,KAAM,EAAO,EAAK,CAClB,MAAO,EAAO,EAAM,CACpB,CACD"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["styles","process","os","tty","stringReplaceAll","index","string","substring","substringLength","endIndex","returnValue","postfix","stringEncaseCRLFWithFirstIndex","isGotCR","prefix","wrapAnsi16","code","offset","wrapAnsi256","wrapAnsi16m","red","green","blue","wrapUnderlineAnsi","styles$1","foregroundColorNames","backgroundColorNames","assembleStyles","codes","groupName","group","styleName","style","matches","hex","colorString","character","integer","remainder","value","result","ansiStyles","hasFlag","flag","position","argv","terminatorPosition","flagForceColor","hasNumericForceColor","env","envForceColor","translateLevel","level","_supportsColor","noFlagForceColor","forceColor","sniffFlags","haveStream","streamIsTTY","min","osRelease","key","sign","version","createSupportsColor","stream","options","stdoutColor","stderrColor","GENERATOR","STYLER","IS_EMPTY","LEVEL","styles","assertValidLevel","levelDescriptor","applyOptions","colorLevel","chalkFactory","chalk","strings","createChalk","builder","createBuilder","createStyler","createModelConverters","type","model","ansi","capitalizedModel","converters","styleFunction","open","first","second","third","close","proto","openAll","closeAll","parent","arguments_","applyStyle","self","_styler","_isEmpty","styler","lfIndex","log","message","logError","logBullet","formattedText","text","colorizeText","textPart","logger","colorizePrefix","symbol","warn","debug","info","success","error","heading","description","timing","start","ms","fn","msg"],"sources":["../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/utilities.js","../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/vendor/ansi-styles/index.js","../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/vendor/supports-color/index.js","../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/index.js","../src/logger.ts"],"sourcesContent":["// Note: Each match is kept and `postfix` is inserted after it. `String#replaceAll(substring, substring + postfix)` does the same, but it has to scan the replacement for `$` patterns and it is several times slower on the no-match path that most calls take.\nexport function stringReplaceAll(string, substring, postfix) {\n\tlet index = string.indexOf(substring);\n\tif (index === -1) {\n\t\treturn string;\n\t}\n\n\tconst substringLength = substring.length;\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\treturnValue += string.slice(endIndex, index) + substring + postfix;\n\t\tendIndex = index + substringLength;\n\t\tindex = string.indexOf(substring, endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n\nexport function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\tconst isGotCR = string[index - 1] === '\\r';\n\t\treturnValue += string.slice(endIndex, (isGotCR ? index - 1 : index)) + prefix + (isGotCR ? '\\r\\n' : '\\n') + postfix;\n\t\tendIndex = index + 1;\n\t\tindex = string.indexOf('\\n', endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n","const ANSI_BACKGROUND_OFFSET = 10;\nconst ANSI_UNDERLINE_OFFSET = 20;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u{1B}[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u{1B}[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u{1B}[${38 + offset};2;${red};${green};${blue}m`;\n\n// `SGR 58` has no basic 16-color form, so the basic color code is mapped to its palette index instead.\nconst wrapUnderlineAnsi = code => `\\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\t// Extended underline styles (`SGR 4:x` sub-parameters). Not in upstream `ansi-styles`.\n\t\tunderlineDouble: ['4:2', 24],\n\t\tunderlineCurly: ['4:3', 24],\n\t\tunderlineDotted: ['4:4', 24],\n\t\tunderlineDashed: ['4:5', 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n\t// Underline color (`SGR 58`/`59`). Not in upstream `ansi-styles`.\n\tunderlineColor: {\n\t\tunderlineBlack: ['58;5;0', 59],\n\t\tunderlineRed: ['58;5;1', 59],\n\t\tunderlineGreen: ['58;5;2', 59],\n\t\tunderlineYellow: ['58;5;3', 59],\n\t\tunderlineBlue: ['58;5;4', 59],\n\t\tunderlineMagenta: ['58;5;5', 59],\n\t\tunderlineCyan: ['58;5;6', 59],\n\t\tunderlineWhite: ['58;5;7', 59],\n\n\t\t// Bright color\n\t\tunderlineBlackBright: ['58;5;8', 59],\n\t\tunderlineGray: ['58;5;8', 59], // Alias of `underlineBlackBright`\n\t\tunderlineGrey: ['58;5;8', 59], // Alias of `underlineBlackBright`\n\t\tunderlineRedBright: ['58;5;9', 59],\n\t\tunderlineGreenBright: ['58;5;10', 59],\n\t\tunderlineYellowBright: ['58;5;11', 59],\n\t\tunderlineBlueBright: ['58;5;12', 59],\n\t\tunderlineMagentaBright: ['58;5;13', 59],\n\t\tunderlineCyanBright: ['58;5;14', 59],\n\t\tunderlineWhiteBright: ['58;5;15', 59],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const underlineColorNames = Object.keys(styles.underlineColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u{1B}[${style[0]}m`,\n\t\t\t\tclose: `\\u{1B}[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\t// Only the leading SGR parameter identifies a style, so `4:3` and `58;5;1` are keyed as `4` and `58`.\n\t\t\tcodes.set(Number.parseInt(style[0], 10), style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u{1B}[39m';\n\tstyles.bgColor.close = '\\u{1B}[49m';\n\tstyles.underlineColor.close = '\\u{1B}[59m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\tstyles.underlineColor.ansi = wrapUnderlineAnsi;\n\tstyles.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);\n\tstyles.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[\\da-f]{6}|[\\da-f]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise -- We need the speed */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n","import process from 'node:process';\nimport os from 'node:os';\nimport tty from 'node:tty';\n\n// From: https://github.com/sindresorhus/has-flag/blob/main/index.js\n/// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {\nfunction hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n}\n\nconst {env} = process;\n\nlet flagForceColor;\nif (\n\thasFlag('no-color')\n\t|| hasFlag('no-colors')\n\t|| hasFlag('color=false')\n\t|| hasFlag('color=never')\n) {\n\tflagForceColor = 0;\n} else if (\n\thasFlag('color')\n\t|| hasFlag('colors')\n\t|| hasFlag('color=true')\n\t|| hasFlag('color=always')\n) {\n\tflagForceColor = 1;\n}\n\n// Whether `FORCE_COLOR` names a level. Shared with the exact-level check below so that the two cannot disagree on what counts as numeric.\nfunction hasNumericForceColor() {\n\treturn /^\\d+$/.test(env.FORCE_COLOR);\n}\n\nfunction envForceColor() {\n\tif (!('FORCE_COLOR' in env)) {\n\t\treturn;\n\t}\n\n\tif (env.FORCE_COLOR === 'false') {\n\t\treturn 0;\n\t}\n\n\tif (env.FORCE_COLOR === 'true' || env.FORCE_COLOR.length === 0) {\n\t\treturn 1;\n\t}\n\n\tif (!hasNumericForceColor()) {\n\t\treturn;\n\t}\n\n\treturn Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3,\n\t};\n}\n\nfunction _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {\n\tconst noFlagForceColor = envForceColor();\n\tif (noFlagForceColor !== undefined) {\n\t\tflagForceColor = noFlagForceColor;\n\t}\n\n\tconst forceColor = sniffFlags ? flagForceColor : noFlagForceColor;\n\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (sniffFlags) {\n\t\tif (hasFlag('color=16m')\n\t\t\t|| hasFlag('color=full')\n\t\t\t|| hasFlag('color=truecolor')) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (hasFlag('color=256')) {\n\t\t\treturn 2;\n\t\t}\n\t}\n\n\t// A numeric `FORCE_COLOR` requests an exact level, while `FORCE_COLOR=true` and `FORCE_COLOR=` only enable color and let the level be detected.\n\tif (forceColor !== undefined && hasNumericForceColor()) {\n\t\treturn forceColor;\n\t}\n\n\t// Check for Azure DevOps pipelines.\n\t// Has to be above the `!streamIsTTY` check.\n\tif ('TF_BUILD' in env && 'AGENT_NAME' in env) {\n\t\treturn 1;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10\n\t\t\t&& Number(osRelease[2]) >= 10_586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14_931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(?:9\\.0*[1-9]\\d*\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-kitty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-ghostty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'wezterm') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.', 1)[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app': {\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\t}\n\n\t\t\tcase 'Apple_Terminal': {\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(?:color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nexport function createSupportsColor(stream, options = {}) {\n\tconst level = _supportsColor(stream, {\n\t\tstreamIsTTY: stream && stream.isTTY,\n\t\t...options,\n\t});\n\n\treturn translateLevel(level);\n}\n\nconst supportsColor = {\n\tstdout: createSupportsColor({isTTY: tty.isatty(1)}),\n\tstderr: createSupportsColor({isTTY: tty.isatty(2)}),\n};\n\nexport default supportsColor;\n","import {\n\tstringReplaceAll,\n\tstringEncaseCRLFWithFirstIndex,\n} from './utilities.js';\nimport ansiStyles from '#ansi-styles';\nimport supportsColor from '#supports-color';\n\nconst {stdout: stdoutColor, stderr: stderrColor} = supportsColor;\n\nconst GENERATOR = Symbol('GENERATOR');\nconst STYLER = Symbol('STYLER');\nconst IS_EMPTY = Symbol('IS_EMPTY');\nconst LEVEL = Symbol('LEVEL');\n\nconst styles = Object.create(null);\n\nconst assertValidLevel = level => {\n\tif (!Number.isSafeInteger(level) || level < 0 || level > 3) {\n\t\tthrow new Error('The `level` should be an integer from 0 to 3');\n\t}\n};\n\n// The level is stored under a symbol so the hot path can read it as a plain property, while `level` itself is an accessor that rejects values the rest of the code could not handle.\nconst levelDescriptor = {\n\tenumerable: true,\n\tget() {\n\t\treturn this[LEVEL];\n\t},\n\tset(level) {\n\t\tassertValidLevel(level);\n\t\tthis[LEVEL] = level;\n\t},\n};\n\nconst applyOptions = (object, options = {}) => {\n\tif (options.level !== undefined) {\n\t\tassertValidLevel(options.level);\n\t}\n\n\t// Detect level if not set manually. Written under the symbol rather than through `level`, as the prototype carrying that accessor is not installed until after this runs.\n\tconst colorLevel = stdoutColor ? stdoutColor.level : 0;\n\tobject[LEVEL] = options.level === undefined ? colorLevel : options.level;\n};\n\nexport class Chalk {\n\tconstructor(options) {\n\t\t// eslint-disable-next-line no-constructor-return\n\t\treturn chalkFactory(options);\n\t}\n}\n\nconst chalkFactory = options => {\n\tconst chalk = (...strings) => strings.join(' ');\n\tapplyOptions(chalk, options);\n\n\tObject.setPrototypeOf(chalk, createChalk.prototype);\n\n\treturn chalk;\n};\n\nfunction createChalk(options) {\n\treturn chalkFactory(options);\n}\n\n// eslint-disable-next-line unicorn/no-top-level-side-effects -- The prototype chain must be set up at module load.\nObject.setPrototypeOf(createChalk.prototype, Function.prototype);\n\nfor (const [styleName, style] of Object.entries(ansiStyles)) {\n\tstyles[styleName] = {\n\t\tget() {\n\t\t\tconst builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);\n\t\t\tObject.defineProperty(this, styleName, {value: builder});\n\t\t\treturn builder;\n\t\t},\n\t};\n}\n\nstyles.visible = {\n\tget() {\n\t\tconst builder = createBuilder(this, this[STYLER], true);\n\t\tObject.defineProperty(this, 'visible', {value: builder});\n\t\treturn builder;\n\t},\n};\n\n// Resolve a color model to one converter per `level`, so that a call only has to look up the converter for the current level instead of re-deciding the model and level every time.\nconst createModelConverters = (model, type) => {\n\tconst style = ansiStyles[type];\n\n\tif (model === 'rgb') {\n\t\tconst ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));\n\t\tconst ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));\n\t\treturn [ansi, ansi, ansi256, style.ansi16m];\n\t}\n\n\tif (model === 'hex') {\n\t\tconst ansi = hex => style.ansi(ansiStyles.hexToAnsi(hex));\n\t\tconst ansi256 = hex => style.ansi256(ansiStyles.hexToAnsi256(hex));\n\t\treturn [ansi, ansi, ansi256, hex => style.ansi16m(...ansiStyles.hexToRgb(hex))];\n\t}\n\n\t// `ansi256` is already the native form, so only the 16-color levels need converting.\n\tconst ansi = code => style.ansi(ansiStyles.ansi256ToAnsi(code));\n\treturn [ansi, ansi, style.ansi256, style.ansi256];\n};\n\nconst usedModels = ['rgb', 'hex', 'ansi256'];\n\nfor (const model of usedModels) {\n\tconst capitalizedModel = model[0].toUpperCase() + model.slice(1);\n\n\tfor (const [styleName, type] of [\n\t\t[model, 'color'],\n\t\t['bg' + capitalizedModel, 'bgColor'],\n\t\t['underline' + capitalizedModel, 'underlineColor'],\n\t]) {\n\t\tconst {close} = ansiStyles[type];\n\t\tconst converters = createModelConverters(model, type);\n\n\t\tstyles[styleName] = {\n\t\t\tget() {\n\t\t\t\t// The level is read on call rather than captured here so the function can be cached on the instance instead of being reallocated on every property access.\n\t\t\t\t// `rgb` is the widest model, so naming the three parameters avoids a rest array.\n\t\t\t\tconst styleFunction = function (first, second, third) {\n\t\t\t\t\tconst open = converters[this.level](first, second, third);\n\t\t\t\t\treturn createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);\n\t\t\t\t};\n\n\t\t\t\tObject.defineProperty(this, styleName, {value: styleFunction});\n\t\t\t\treturn styleFunction;\n\t\t\t},\n\t\t};\n\t}\n}\n\nconst proto = Object.defineProperties(\n\t() => {},\n\t{\n\t\t...styles,\n\t\tlevel: {\n\t\t\tenumerable: true,\n\t\t\tget() {\n\t\t\t\treturn this[GENERATOR].level;\n\t\t\t},\n\t\t\tset(level) {\n\t\t\t\tthis[GENERATOR].level = level;\n\t\t\t},\n\t\t},\n\t},\n);\n\nconst createStyler = (open, close, parent) => {\n\tlet openAll;\n\tlet closeAll;\n\tif (parent === undefined) {\n\t\topenAll = open;\n\t\tcloseAll = close;\n\t} else {\n\t\topenAll = parent.openAll + open;\n\t\tcloseAll = close + parent.closeAll;\n\t}\n\n\treturn {\n\t\topen,\n\t\tclose,\n\t\topenAll,\n\t\tcloseAll,\n\t\tparent,\n\t};\n};\n\nconst createBuilder = (self, _styler, _isEmpty) => {\n\t// Single argument is hot path, implicit coercion is faster than anything\n\tconst builder = (...arguments_) => {\n\t\tif (arguments_.length === 1) {\n\t\t\t// eslint-disable-next-line no-implicit-coercion\n\t\t\treturn applyStyle(builder, '' + arguments_[0]);\n\t\t}\n\n\t\tif (arguments_.length === 2) {\n\t\t\t// The template literal matches `Array#join` coercion (`null` and `undefined` become empty, objects use `toString`) while being faster.\n\t\t\treturn applyStyle(builder, `${arguments_[0] ?? ''} ${arguments_[1] ?? ''}`);\n\t\t}\n\n\t\treturn applyStyle(builder, arguments_.join(' '));\n\t};\n\n\t// We alter the prototype because we must return a function, but there is\n\t// no way to create a function with a different prototype\n\tObject.setPrototypeOf(builder, proto);\n\n\t// Point every builder at the root generator instead of its immediate parent, so reading the level costs one property load rather than walking a `level` getter per link of the chain.\n\tbuilder[GENERATOR] = self[GENERATOR] ?? self;\n\tbuilder[STYLER] = _styler;\n\tbuilder[IS_EMPTY] = _isEmpty;\n\n\treturn builder;\n};\n\nconst applyStyle = (self, string) => {\n\t// Read the level directly off the generator to skip the `level` getter dispatch on this hot path\n\tif (self[GENERATOR][LEVEL] <= 0 || !string) {\n\t\t// eslint-disable-next-line unicorn/no-computed-property-existence-check -- Reads the boolean value, not a property existence check.\n\t\treturn self[IS_EMPTY] ? '' : string;\n\t}\n\n\tlet styler = self[STYLER];\n\n\tif (styler === undefined) {\n\t\treturn string;\n\t}\n\n\tconst {openAll, closeAll} = styler;\n\tif (string.includes('\\u{1B}')) {\n\t\twhile (styler !== undefined) {\n\t\t\t// Replace any instances already present with a re-opening code\n\t\t\t// otherwise only the part of the string until said closing code\n\t\t\t// will be colored, and the rest will simply be 'plain'.\n\t\t\tstring = stringReplaceAll(string, styler.close, styler.open);\n\n\t\t\tstyler = styler.parent;\n\t\t}\n\t}\n\n\t// We can move both next actions out of loop, because remaining actions in loop won't have\n\t// any/visible effect on parts we add here. Close the styling before a linebreak and reopen\n\t// after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92\n\tconst lfIndex = string.indexOf('\\n');\n\tif (lfIndex !== -1) {\n\t\tstring = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);\n\t}\n\n\treturn openAll + string + closeAll;\n};\n\n// `level` lives on the prototype rather than on each instance, so it costs nothing to construct an instance and matches how builders already expose it. It is inherited rather than own, so it does not show up in `Object.keys()`, same as for a builder.\n// eslint-disable-next-line unicorn/no-top-level-side-effects -- The style getters must be installed at module load.\nObject.defineProperties(createChalk.prototype, {...styles, level: levelDescriptor});\n\nconst chalk = createChalk();\nexport const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});\n\nexport {\n\tmodifierNames,\n\tforegroundColorNames,\n\tbackgroundColorNames,\n\tunderlineColorNames,\n\tcolorNames,\n\n\t// TODO: Remove these aliases in the next major version\n\tmodifierNames as modifiers,\n\tforegroundColorNames as foregroundColors,\n\tbackgroundColorNames as backgroundColors,\n\tcolorNames as colors,\n} from './vendor/ansi-styles/index.js';\n\nexport {\n\tstdoutColor as supportsColor,\n\tstderrColor as supportsColorStderr,\n};\n\nexport default chalk;\n","// Dependencies\nimport process from 'node:process'\nimport chalk from 'chalk'\n\nfunction log(message: string) {\n\treturn process.stdout.write(`${message}\\n`)\n}\n\nfunction logError(message: string) {\n\treturn process.stderr.write(`${message}\\n`)\n}\n\nfunction logBullet(\n\tlogger: typeof log | typeof logError,\n\tcolorizePrefix: typeof chalk,\n\tcolorizeText: typeof chalk,\n\tsymbol: string,\n\tprefix: string,\n\ttext?: string | string[]\n) {\n\tconst textParts = Array.isArray(text) ? text : [text || ''].filter(Boolean)\n\tconst formattedText = textParts\n\t\t.map((textPart) => colorizeText(textPart))\n\t\t.join('')\n\n\tlogger(\n\t\t`${' '.repeat(3)} ${colorizePrefix(symbol)} ${colorizePrefix(\n\t\t\tprefix\n\t\t)} ${formattedText}`\n\t)\n}\n\nfunction warn(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.yellow, chalk.yellow, '●', prefix, text)\n}\n\nfunction debug(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.yellow, chalk.dim, '●', prefix, text)\n}\n\nfunction info(prefix: string, text?: string | string[]) {\n\tlogBullet(log, chalk.cyan, chalk.dim, '◼', prefix, text)\n}\n\nfunction success(text: string) {\n\tlogBullet(log, chalk.green, chalk.dim, '✔', text)\n}\n\nfunction error(prefix: string, text?: string | string[]) {\n\tlog('')\n\tlogBullet(logError, chalk.red, chalk.red, '▲', prefix, text)\n}\n\nfunction heading(heading: string, description?: string) {\n\treturn log(\n\t\t`\\n${chalk.bgWhite(` ${chalk.whiteBright(heading)} `)} ${chalk.bold(\n\t\t\tdescription\n\t\t)}\\n`\n\t)\n}\n\nconst timing = (fn: (str: string) => any) => () => {\n\tconst start = performance.now()\n\treturn (msg: string) => {\n\t\tconst end = performance.now()\n\t\tconst ms = end - start\n\t\tfn(`${msg} ${chalk.gray(`(${ms.toFixed(2)}ms)`)}`)\n\t}\n}\n\nexport const logger = {\n\tcolors: chalk,\n\tlog,\n\theading,\n\tdebug,\n\tinfo,\n\twarn,\n\tsuccess,\n\terror,\n\ttime: {\n\t\tsuccess: timing(success),\n\t\tinfo: timing(info),\n\t\tdebug: timing(debug)\n\t}\n}\n"],"ignoreList":[0,1,2,3],"mappings":"A,2EACA,SAAgBI,EAAiB,EAAQ,EAAW,EAAS,CAC5D,IAAIC,EAAQC,EAAO,QAAQC,CAAS,EACpC,GAAIF,IAAU,GACb,OAAOC,EAGR,IAAME,EAAkBD,EAAU,OAC9BE,EAAW,EACXC,EAAc,GAClB,EACC,IAAeJ,EAAO,MAAMG,EAAUJ,CAAK,EAAIE,EAAYI,EAC3D,EAAWN,EAAQG,EACnB,EAAQF,EAAO,QAAQC,EAAWE,CAAQ,QAClCJ,IAAU,IAGnB,MADA,IAAeC,EAAO,MAAMG,CAAQ,EAC7BC,CACR,CAEA,SAAgBE,EAA+B,EAAQ,EAAQ,EAAS,EAAO,CAC9E,IAAIH,EAAW,EACXC,EAAc,GAClB,EAAG,CACF,IAAMG,EAAUP,EAAOD,EAAQ,KAAO,KACtC,GAAeC,EAAO,MAAMG,EAAWI,EAAUR,EAAQ,EAAIA,CAAM,EAAIS,GAAUD,EAAU;EAAS;GAAQF,EAC5G,EAAWN,EAAQ,EACnB,EAAQC,EAAO,QAAQ;EAAMG,CAAQ,CACtC,OAASJ,IAAU,IAGnB,MADA,IAAeC,EAAO,MAAMG,CAAQ,EAC7BC,CACR,CChCA,MAGMK,GAAc,EAAS,IAAM,GAAQ,UAAUC,EAAOC,EAAO,GAE7DC,GAAe,EAAS,IAAM,GAAQ,UAAU,GAAKD,EAAO,KAAKD,EAAK,G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aZ,EAAS,CACrB,OAAQrC,EACR,MACA,UACA,QACA,OACA,OACA,UACA,QACA,KAAM,CACL,QAAS+C,EAAOJ,CAAO,EACvB,KAAMI,EAAOL,CAAI,EACjB,MAAOK,EAAON,CAAK,CACpB,CACD,E"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terai/logger",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "terai core logger",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
|
-
"types": "./dist/index.d.
|
|
7
|
+
"types": "./dist/index.d.mts",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/terai-labs/terai.git",
|
|
11
|
+
"directory": "packages/logger"
|
|
12
|
+
},
|
|
8
13
|
"author": "Hugo Corta <corta.hugo@gmail.com>",
|
|
9
14
|
"files": [
|
|
10
15
|
"dist"
|