@lskjs/colors
Advanced tools
Comparing version 3.0.0-alpha.30 to 3.1.1
@@ -1,2 +0,2 @@ | ||
"use strict";var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var C=(o,r)=>{for(var x in r)s(o,x,{get:r[x],enumerable:!0})},h=(o,r,x,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of d(r))!f.call(o,n)&&n!==x&&s(o,n,{get:()=>r[n],enumerable:!(e=l(r,n))||e.enumerable});return o};var v=o=>h(s({},"__esModule",{value:!0}),o);var Q={};C(Q,{colorize:()=>a,default:()=>P});module.exports=v(Q);function p(o,r,x,e){let n=o.substring(0,e)+x,b=o.substring(e+r.length),c=b.indexOf(r);return~c?n+p(b,r,x,c):n+b}function t(o,r,x=o){return e=>{let n=String(e),b=n.indexOf(r,o.length);return~b?o+p(n,r,x,b)+r:o+n+r}}var O=o=>`\x1B[0m${o}\x1B[0m`,y=t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),F=t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),w=t("\x1B[3m","\x1B[23m"),R=t("\x1B[4m","\x1B[24m"),S=t("\x1B[7m","\x1B[27m"),k=t("\x1B[8m","\x1B[28m"),I=t("\x1B[9m","\x1B[29m"),E=t("\x1B[30m","\x1B[39m"),T=t("\x1B[31m","\x1B[39m"),A=t("\x1B[32m","\x1B[39m"),B=t("\x1B[33m","\x1B[39m"),L=t("\x1B[34m","\x1B[39m"),M=t("\x1B[35m","\x1B[39m"),Y=t("\x1B[36m","\x1B[39m"),_=t("\x1B[37m","\x1B[39m"),z=t("\x1B[90m","\x1B[39m"),G=t("\x1B[40m","\x1B[49m"),V=t("\x1B[41m","\x1B[49m"),W=t("\x1B[42m","\x1B[49m"),$=t("\x1B[43m","\x1B[49m"),j=t("\x1B[44m","\x1B[49m"),q=t("\x1B[45m","\x1B[49m"),D=t("\x1B[46m","\x1B[49m"),H=t("\x1B[47m","\x1B[49m"),i={reset:O,bold:y,dim:F,italic:w,underline:R,inverse:S,hidden:k,strikethrough:I,black:E,red:T,green:A,yellow:B,blue:L,magenta:M,cyan:Y,white:_,gray:z,bgBlack:G,bgRed:V,bgGreen:W,bgYellow:$,bgBlue:j,bgMagenta:q,bgCyan:D,bgWhite:H};var m=require("@lskjs/env"),J=m.isClient?window:process.env,u=m.isServer?process.argv:[],K=()=>!((0,m.getEnvVar)("NO_COLOR")||u.includes("--no-color"))&&(m.isClient||"FORCE_COLOR"in J||u.includes("--color")||m.isTTY&&process.env.TERM!=="dumb"||(0,m.getEnvVar)("CI")),N=K(),g=N;function a(o,r){return g?(Array.isArray(r)?r:r?[r]:[]).reduce((e,n)=>{let b=i?.[n];return b?b(e):e},o):o}var P=a;0&&(module.exports={colorize}); | ||
"use strict";var c=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var s=(r,t)=>c(r,"name",{value:t,configurable:!0});var v=(r,t)=>{for(var e in t)c(r,e,{get:t[e],enumerable:!0})},O=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let x of f(t))!h.call(r,x)&&x!==e&&c(r,x,{get:()=>t[x],enumerable:!(n=l(t,x))||n.enumerable});return r};var C=r=>O(c({},"__esModule",{value:!0}),r);var U={};v(U,{colorize:()=>a,default:()=>Q});module.exports=C(U);function i(r,t,e,n){let x=r.substring(0,n)+e,m=r.substring(n+t.length),p=m.indexOf(t);return~p?x+i(m,t,e,p):x+m}s(i,"replaceClose");function o(r,t,e=r){return n=>{let x=String(n),m=x.indexOf(t,r.length);return~m?r+i(x,t,e,m)+t:r+x+t}}s(o,"formatter");var y=s(r=>`\x1B[0m${r}\x1B[0m`,"reset"),w=o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),R=o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),S=o("\x1B[3m","\x1B[23m"),k=o("\x1B[4m","\x1B[24m"),E=o("\x1B[7m","\x1B[27m"),T=o("\x1B[8m","\x1B[28m"),A=o("\x1B[9m","\x1B[29m"),B=o("\x1B[30m","\x1B[39m"),F=o("\x1B[31m","\x1B[39m"),I=o("\x1B[32m","\x1B[39m"),L=o("\x1B[33m","\x1B[39m"),M=o("\x1B[34m","\x1B[39m"),Y=o("\x1B[35m","\x1B[39m"),_=o("\x1B[36m","\x1B[39m"),z=o("\x1B[37m","\x1B[39m"),G=o("\x1B[90m","\x1B[39m"),V=o("\x1B[40m","\x1B[49m"),W=o("\x1B[41m","\x1B[49m"),$=o("\x1B[42m","\x1B[49m"),j=o("\x1B[43m","\x1B[49m"),q=o("\x1B[44m","\x1B[49m"),D=o("\x1B[45m","\x1B[49m"),H=o("\x1B[46m","\x1B[49m"),J=o("\x1B[47m","\x1B[49m"),u={reset:y,bold:w,dim:R,italic:S,underline:k,inverse:E,hidden:T,strikethrough:A,black:B,red:F,green:I,yellow:L,blue:M,magenta:Y,cyan:_,white:z,gray:G,bgBlack:V,bgRed:W,bgGreen:$,bgYellow:j,bgBlue:q,bgMagenta:D,bgCyan:H,bgWhite:J};var b=require("@lskjs/env");var K=b.isClient?window:process.env,d=b.isServer?process.argv:[],N=s(()=>!((0,b.getEnvVar)("NO_COLOR")||d.includes("--no-color"))&&(b.isClient||"FORCE_COLOR"in K||d.includes("--color")||b.isTTY&&process.env.TERM!=="dumb"||(0,b.getEnvVar)("CI")),"checkSupport"),P=N(),g=P;function a(r,t){return g?(Array.isArray(t)?t:t?[t]:[]).reduce((n,x)=>{let m=u?.[x];return m?m(n):n},r):r}s(a,"colorize");var Q=a;0&&(module.exports={colorize}); | ||
//# sourceMappingURL=colorize.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var e=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var z=Object.prototype.hasOwnProperty;var A=(r,x)=>{for(var m in x)e(r,m,{get:x[m],enumerable:!0})},D=(r,x,m,b)=>{if(x&&typeof x=="object"||typeof x=="function")for(let o of q(x))!z.call(r,o)&&o!==m&&e(r,o,{get:()=>x[o],enumerable:!(b=j(x,o))||b.enumerable});return r};var E=r=>D(e({},"__esModule",{value:!0}),r);var J={};A(J,{bgBlack:()=>v,bgBlue:()=>S,bgCyan:()=>Y,bgGreen:()=>M,bgMagenta:()=>W,bgRed:()=>G,bgWhite:()=>$,bgYellow:()=>R,black:()=>h,blue:()=>w,bold:()=>i,colors:()=>H,cyan:()=>B,dim:()=>g,gray:()=>O,green:()=>F,hidden:()=>l,inverse:()=>d,italic:()=>a,magenta:()=>I,red:()=>y,reset:()=>p,strikethrough:()=>f,underline:()=>u,white:()=>C,yellow:()=>k});module.exports=E(J);function c(r,x,m,b){let o=r.substring(0,b)+m,n=r.substring(b+x.length),s=n.indexOf(x);return~s?o+c(n,x,m,s):o+n}function t(r,x,m=r){return b=>{let o=String(b),n=o.indexOf(x,r.length);return~n?r+c(o,x,m,n)+x:r+o+x}}var p=r=>`\x1B[0m${r}\x1B[0m`,i=t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),g=t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),a=t("\x1B[3m","\x1B[23m"),u=t("\x1B[4m","\x1B[24m"),d=t("\x1B[7m","\x1B[27m"),l=t("\x1B[8m","\x1B[28m"),f=t("\x1B[9m","\x1B[29m"),h=t("\x1B[30m","\x1B[39m"),y=t("\x1B[31m","\x1B[39m"),F=t("\x1B[32m","\x1B[39m"),k=t("\x1B[33m","\x1B[39m"),w=t("\x1B[34m","\x1B[39m"),I=t("\x1B[35m","\x1B[39m"),B=t("\x1B[36m","\x1B[39m"),C=t("\x1B[37m","\x1B[39m"),O=t("\x1B[90m","\x1B[39m"),v=t("\x1B[40m","\x1B[49m"),G=t("\x1B[41m","\x1B[49m"),M=t("\x1B[42m","\x1B[49m"),R=t("\x1B[43m","\x1B[49m"),S=t("\x1B[44m","\x1B[49m"),W=t("\x1B[45m","\x1B[49m"),Y=t("\x1B[46m","\x1B[49m"),$=t("\x1B[47m","\x1B[49m"),H={reset:p,bold:i,dim:g,italic:a,underline:u,inverse:d,hidden:l,strikethrough:f,black:h,red:y,green:F,yellow:k,blue:w,magenta:I,cyan:B,white:C,gray:O,bgBlack:v,bgRed:G,bgGreen:M,bgYellow:R,bgBlue:S,bgMagenta:W,bgCyan:Y,bgWhite:$};0&&(module.exports={bgBlack,bgBlue,bgCyan,bgGreen,bgMagenta,bgRed,bgWhite,bgYellow,black,blue,bold,colors,cyan,dim,gray,green,hidden,inverse,italic,magenta,red,reset,strikethrough,underline,white,yellow}); | ||
"use strict";var s=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var D=Object.prototype.hasOwnProperty;var r=(b,t)=>s(b,"name",{value:t,configurable:!0});var E=(b,t)=>{for(var m in t)s(b,m,{get:t[m],enumerable:!0})},F=(b,t,m,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of A(t))!D.call(b,o)&&o!==m&&s(b,o,{get:()=>t[o],enumerable:!(e=z(t,o))||e.enumerable});return b};var H=b=>F(s({},"__esModule",{value:!0}),b);var K={};E(K,{bgBlack:()=>M,bgBlue:()=>Y,bgCyan:()=>j,bgGreen:()=>S,bgMagenta:()=>$,bgRed:()=>R,bgWhite:()=>q,bgYellow:()=>W,black:()=>y,blue:()=>C,bold:()=>i,colors:()=>J,cyan:()=>v,dim:()=>a,gray:()=>I,green:()=>w,hidden:()=>f,inverse:()=>l,italic:()=>d,magenta:()=>O,red:()=>k,reset:()=>g,strikethrough:()=>h,underline:()=>u,white:()=>G,yellow:()=>B});module.exports=H(K);function p(b,t,m,e){let o=b.substring(0,e)+m,n=b.substring(e+t.length),c=n.indexOf(t);return~c?o+p(n,t,m,c):o+n}r(p,"replaceClose");function x(b,t,m=b){return e=>{let o=String(e),n=o.indexOf(t,b.length);return~n?b+p(o,t,m,n)+t:b+o+t}}r(x,"formatter");var g=r(b=>`\x1B[0m${b}\x1B[0m`,"reset"),i=x("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),a=x("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),d=x("\x1B[3m","\x1B[23m"),u=x("\x1B[4m","\x1B[24m"),l=x("\x1B[7m","\x1B[27m"),f=x("\x1B[8m","\x1B[28m"),h=x("\x1B[9m","\x1B[29m"),y=x("\x1B[30m","\x1B[39m"),k=x("\x1B[31m","\x1B[39m"),w=x("\x1B[32m","\x1B[39m"),B=x("\x1B[33m","\x1B[39m"),C=x("\x1B[34m","\x1B[39m"),O=x("\x1B[35m","\x1B[39m"),v=x("\x1B[36m","\x1B[39m"),G=x("\x1B[37m","\x1B[39m"),I=x("\x1B[90m","\x1B[39m"),M=x("\x1B[40m","\x1B[49m"),R=x("\x1B[41m","\x1B[49m"),S=x("\x1B[42m","\x1B[49m"),W=x("\x1B[43m","\x1B[49m"),Y=x("\x1B[44m","\x1B[49m"),$=x("\x1B[45m","\x1B[49m"),j=x("\x1B[46m","\x1B[49m"),q=x("\x1B[47m","\x1B[49m"),J={reset:g,bold:i,dim:a,italic:d,underline:u,inverse:l,hidden:f,strikethrough:h,black:y,red:k,green:w,yellow:B,blue:C,magenta:O,cyan:v,white:G,gray:I,bgBlack:M,bgRed:R,bgGreen:S,bgYellow:W,bgBlue:Y,bgMagenta:$,bgCyan:j,bgWhite:q};0&&(module.exports={bgBlack,bgBlue,bgCyan,bgGreen,bgMagenta,bgRed,bgWhite,bgYellow,black,blue,bold,colors,cyan,dim,gray,green,hidden,inverse,italic,magenta,red,reset,strikethrough,underline,white,yellow}); | ||
//# sourceMappingURL=colors.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var s=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var q=Object.prototype.hasOwnProperty;var D=(o,r)=>{for(var e in r)s(o,e,{get:r[e],enumerable:!0})},H=(o,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let x of j(r))!q.call(o,x)&&x!==e&&s(o,x,{get:()=>r[x],enumerable:!(n=$(r,x))||n.enumerable});return o};var J=o=>H(s({},"__esModule",{value:!0}),o);var Q={};D(Q,{bgBlack:()=>E,bgBlue:()=>L,bgCyan:()=>Y,bgGreen:()=>A,bgMagenta:()=>M,bgRed:()=>T,bgWhite:()=>_,bgYellow:()=>B,black:()=>v,blue:()=>w,bold:()=>g,colorize:()=>V,colors:()=>c,cyan:()=>S,default:()=>W,dim:()=>a,gray:()=>I,green:()=>y,hidden:()=>C,inverse:()=>d,italic:()=>l,magenta:()=>R,red:()=>O,reset:()=>u,strikethrough:()=>h,underline:()=>f,white:()=>k,yellow:()=>F});module.exports=J(Q);function i(o,r,e,n){let x=o.substring(0,n)+e,b=o.substring(n+r.length),p=b.indexOf(r);return~p?x+i(b,r,e,p):x+b}function t(o,r,e=o){return n=>{let x=String(n),b=x.indexOf(r,o.length);return~b?o+i(x,r,e,b)+r:o+x+r}}var u=o=>`\x1B[0m${o}\x1B[0m`,g=t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),a=t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),l=t("\x1B[3m","\x1B[23m"),f=t("\x1B[4m","\x1B[24m"),d=t("\x1B[7m","\x1B[27m"),C=t("\x1B[8m","\x1B[28m"),h=t("\x1B[9m","\x1B[29m"),v=t("\x1B[30m","\x1B[39m"),O=t("\x1B[31m","\x1B[39m"),y=t("\x1B[32m","\x1B[39m"),F=t("\x1B[33m","\x1B[39m"),w=t("\x1B[34m","\x1B[39m"),R=t("\x1B[35m","\x1B[39m"),S=t("\x1B[36m","\x1B[39m"),k=t("\x1B[37m","\x1B[39m"),I=t("\x1B[90m","\x1B[39m"),E=t("\x1B[40m","\x1B[49m"),T=t("\x1B[41m","\x1B[49m"),A=t("\x1B[42m","\x1B[49m"),B=t("\x1B[43m","\x1B[49m"),L=t("\x1B[44m","\x1B[49m"),M=t("\x1B[45m","\x1B[49m"),Y=t("\x1B[46m","\x1B[49m"),_=t("\x1B[47m","\x1B[49m"),c={reset:u,bold:g,dim:a,italic:l,underline:f,inverse:d,hidden:C,strikethrough:h,black:v,red:O,green:y,yellow:F,blue:w,magenta:R,cyan:S,white:k,gray:I,bgBlack:E,bgRed:T,bgGreen:A,bgYellow:B,bgBlue:L,bgMagenta:M,bgCyan:Y,bgWhite:_};var m=require("@lskjs/env"),K=m.isClient?window:process.env,z=m.isServer?process.argv:[],N=()=>!((0,m.getEnvVar)("NO_COLOR")||z.includes("--no-color"))&&(m.isClient||"FORCE_COLOR"in K||z.includes("--color")||m.isTTY&&process.env.TERM!=="dumb"||(0,m.getEnvVar)("CI")),P=N(),G=P;function V(o,r){return G?(Array.isArray(r)?r:r?[r]:[]).reduce((n,x)=>{let b=c?.[x];return b?b(n):n},o):o}var W=V;0&&(module.exports={bgBlack,bgBlue,bgCyan,bgGreen,bgMagenta,bgRed,bgWhite,bgYellow,black,blue,bold,colorize,colors,cyan,dim,gray,green,hidden,inverse,italic,magenta,red,reset,strikethrough,underline,white,yellow}); | ||
"use strict";var c=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var D=Object.prototype.hasOwnProperty;var s=(r,t)=>c(r,"name",{value:t,configurable:!0});var H=(r,t)=>{for(var e in t)c(r,e,{get:t[e],enumerable:!0})},J=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let x of q(t))!D.call(r,x)&&x!==e&&c(r,x,{get:()=>t[x],enumerable:!(n=j(t,x))||n.enumerable});return r};var K=r=>J(c({},"__esModule",{value:!0}),r);var U={};H(U,{bgBlack:()=>B,bgBlue:()=>M,bgCyan:()=>_,bgGreen:()=>I,bgMagenta:()=>Y,bgRed:()=>F,bgWhite:()=>z,bgYellow:()=>L,black:()=>C,blue:()=>S,bold:()=>a,colorize:()=>W,colors:()=>p,cyan:()=>E,default:()=>$,dim:()=>f,gray:()=>A,green:()=>w,hidden:()=>v,inverse:()=>h,italic:()=>g,magenta:()=>k,red:()=>y,reset:()=>d,strikethrough:()=>O,underline:()=>l,white:()=>T,yellow:()=>R});module.exports=K(U);function u(r,t,e,n){let x=r.substring(0,n)+e,b=r.substring(n+t.length),i=b.indexOf(t);return~i?x+u(b,t,e,i):x+b}s(u,"replaceClose");function o(r,t,e=r){return n=>{let x=String(n),b=x.indexOf(t,r.length);return~b?r+u(x,t,e,b)+t:r+x+t}}s(o,"formatter");var d=s(r=>`\x1B[0m${r}\x1B[0m`,"reset"),a=o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),f=o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),g=o("\x1B[3m","\x1B[23m"),l=o("\x1B[4m","\x1B[24m"),h=o("\x1B[7m","\x1B[27m"),v=o("\x1B[8m","\x1B[28m"),O=o("\x1B[9m","\x1B[29m"),C=o("\x1B[30m","\x1B[39m"),y=o("\x1B[31m","\x1B[39m"),w=o("\x1B[32m","\x1B[39m"),R=o("\x1B[33m","\x1B[39m"),S=o("\x1B[34m","\x1B[39m"),k=o("\x1B[35m","\x1B[39m"),E=o("\x1B[36m","\x1B[39m"),T=o("\x1B[37m","\x1B[39m"),A=o("\x1B[90m","\x1B[39m"),B=o("\x1B[40m","\x1B[49m"),F=o("\x1B[41m","\x1B[49m"),I=o("\x1B[42m","\x1B[49m"),L=o("\x1B[43m","\x1B[49m"),M=o("\x1B[44m","\x1B[49m"),Y=o("\x1B[45m","\x1B[49m"),_=o("\x1B[46m","\x1B[49m"),z=o("\x1B[47m","\x1B[49m"),p={reset:d,bold:a,dim:f,italic:g,underline:l,inverse:h,hidden:v,strikethrough:O,black:C,red:y,green:w,yellow:R,blue:S,magenta:k,cyan:E,white:T,gray:A,bgBlack:B,bgRed:F,bgGreen:I,bgYellow:L,bgBlue:M,bgMagenta:Y,bgCyan:_,bgWhite:z};var m=require("@lskjs/env");var N=m.isClient?window:process.env,G=m.isServer?process.argv:[],P=s(()=>!((0,m.getEnvVar)("NO_COLOR")||G.includes("--no-color"))&&(m.isClient||"FORCE_COLOR"in N||G.includes("--color")||m.isTTY&&process.env.TERM!=="dumb"||(0,m.getEnvVar)("CI")),"checkSupport"),Q=P(),V=Q;function W(r,t){return V?(Array.isArray(t)?t:t?[t]:[]).reduce((n,x)=>{let b=p?.[x];return b?b(n):n},r):r}s(W,"colorize");var $=W;0&&(module.exports={bgBlack,bgBlue,bgCyan,bgGreen,bgMagenta,bgRed,bgWhite,bgYellow,black,blue,bold,colorize,colors,cyan,dim,gray,green,hidden,inverse,italic,magenta,red,reset,strikethrough,underline,white,yellow}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var c=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var O=(r,e)=>{for(var n in e)c(r,n,{get:e[n],enumerable:!0})},a=(r,e,n,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of d(e))!u.call(r,s)&&s!==n&&c(r,s,{get:()=>e[s],enumerable:!(t=v(e,s))||t.enumerable});return r};var C=r=>a(c({},"__esModule",{value:!0}),r);var m={};O(m,{checkSupport:()=>i,default:()=>g,isSupported:()=>l});module.exports=C(m);var o=require("@lskjs/env"),R=o.isClient?window:process.env,p=o.isServer?process.argv:[],i=()=>!((0,o.getEnvVar)("NO_COLOR")||p.includes("--no-color"))&&(o.isClient||"FORCE_COLOR"in R||p.includes("--color")||o.isTTY&&process.env.TERM!=="dumb"||(0,o.getEnvVar)("CI")),l=i(),g=l;0&&(module.exports={checkSupport,isSupported}); | ||
"use strict";var c=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var O=Object.prototype.hasOwnProperty;var p=(r,o)=>c(r,"name",{value:o,configurable:!0});var C=(r,o)=>{for(var n in o)c(r,n,{get:o[n],enumerable:!0})},a=(r,o,n,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of u(o))!O.call(r,s)&&s!==n&&c(r,s,{get:()=>o[s],enumerable:!(t=l(o,s))||t.enumerable});return r};var R=r=>a(c({},"__esModule",{value:!0}),r);var x={};C(x,{checkSupport:()=>v,default:()=>m,isSupported:()=>d});module.exports=R(x);var e=require("@lskjs/env");var g=e.isClient?window:process.env,i=e.isServer?process.argv:[],v=p(()=>!((0,e.getEnvVar)("NO_COLOR")||i.includes("--no-color"))&&(e.isClient||"FORCE_COLOR"in g||i.includes("--color")||e.isTTY&&process.env.TERM!=="dumb"||(0,e.getEnvVar)("CI")),"checkSupport"),d=v(),m=d;0&&(module.exports={checkSupport,isSupported}); | ||
//# sourceMappingURL=isSupported.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var g=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var o=(t,e,l,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of i(e))!b.call(t,r)&&r!==l&&g(t,r,{get:()=>e[r],enumerable:!(n=a(e,r))||n.enumerable});return t};var u=t=>o(g({},"__esModule",{value:!0}),t);var d={};module.exports=u(d); | ||
"use strict";var t=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(o,e,x,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of b(e))!c.call(o,p)&&p!==x&&t(o,p,{get:()=>e[p],enumerable:!(r=a(e,p))||r.enumerable});return o};var f=o=>d(t({},"__esModule",{value:!0}),o);var g={};module.exports=f(g); | ||
//# sourceMappingURL=types.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var e=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var a=(n,t)=>{for(var i in t)e(n,i,{get:t[i],enumerable:!0})},d=(n,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of m(t))!x.call(n,r)&&r!==i&&e(n,r,{get:()=>t[r],enumerable:!(s=f(t,r))||s.enumerable});return n};var b=n=>d(e({},"__esModule",{value:!0}),n);var h={};a(h,{formatter:()=>c,replaceClose:()=>u});module.exports=b(h);function u(n,t,i,s){let r=n.substring(0,s)+i,g=n.substring(s+t.length),o=g.indexOf(t);return~o?r+u(g,t,i,o):r+g}function c(n,t,i=n){return s=>{let r=String(s),g=r.indexOf(t,n.length);return~g?n+u(r,t,i,g)+t:n+r+t}}0&&(module.exports={formatter,replaceClose}); | ||
"use strict";var s=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var x=(n,t)=>s(n,"name",{value:t,configurable:!0});var b=(n,t)=>{for(var i in t)s(n,i,{get:t[i],enumerable:!0})},c=(n,t,i,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of o(t))!a.call(n,r)&&r!==i&&s(n,r,{get:()=>t[r],enumerable:!(u=d(t,r))||u.enumerable});return n};var h=n=>c(s({},"__esModule",{value:!0}),n);var m={};b(m,{formatter:()=>O,replaceClose:()=>f});module.exports=h(m);function f(n,t,i,u){let r=n.substring(0,u)+i,e=n.substring(u+t.length),g=e.indexOf(t);return~g?r+f(e,t,i,g):r+e}x(f,"replaceClose");function O(n,t,i=n){return u=>{let r=String(u),e=r.indexOf(t,n.length);return~e?n+f(r,t,i,e)+t:n+r+t}}x(O,"formatter");0&&(module.exports={formatter,replaceClose}); | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@lskjs/colors", | ||
"version": "3.0.0-alpha.30", | ||
"version": "3.1.1", | ||
"description": "Yet another colors library – like picocolors but with for browser too", | ||
"author": "Igor Suvorov <hi@isuvorov.com> (https://github.com/isuvorov)", | ||
"dependencies": { | ||
"@lskjs/env": "^3.0.0-alpha.30" | ||
"@lskjs/env": "^3.1.1" | ||
}, | ||
@@ -38,3 +38,3 @@ "files": [ | ||
], | ||
"gitHead": "50fe4b2a5d9d8452172301069c7e581426e8e833" | ||
"gitHead": "d27576d192c47aaf3f117313d611aead7d000ef7" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
84818
136
4
Updated@lskjs/env@^3.1.1