@lskjs/colors
Advanced tools
Comparing version 3.2.2 to 3.8.0
@@ -1,2 +0,2 @@ | ||
"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:()=>g,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"),B=o("\x1B[7m","\x1B[27m"),E=o("\x1B[8m","\x1B[28m"),T=o("\x1B[9m","\x1B[29m"),A=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:B,hidden:E,strikethrough:T,black:A,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,a=b.isServer?process.argv:[],N=s(()=>Boolean(!((0,b.getEnvVar)("NO_COLOR")||a.includes("--no-color"))&&(b.isClient||"FORCE_COLOR"in K||a.includes("--color")||b.isTTY&&process.env.TERM!=="dumb"||(0,b.getEnvVar)("CI"))),"checkSupport"),P=N(),d=P;function g(r,t){return d?(Array.isArray(t)?t:t?[t]:[]).reduce((n,x)=>{let m=u?.[x];return m?m(n):n},r):r}s(g,"colorize");var Q=g;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:()=>g,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"),B=o("\x1B[7m","\x1B[27m"),E=o("\x1B[8m","\x1B[28m"),T=o("\x1B[9m","\x1B[29m"),A=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:B,hidden:E,strikethrough:T,black:A,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,a=b.isServer?process.argv:[],N=s(()=>!!(!((0,b.getEnvVar)("NO_COLOR")||a.includes("--no-color"))&&(b.isClient||"FORCE_COLOR"in K||a.includes("--color")||b.isTTY&&process.env.TERM!=="dumb"||(0,b.getEnvVar)("CI"))),"checkSupport"),P=N(),d=P;function g(r,t){return d?(Array.isArray(t)?t:t?[t]:[]).reduce((n,x)=>{let m=u?.[x];return m?m(n):n},r):r}s(g,"colorize");var Q=g;0&&(module.exports={colorize}); | ||
//# sourceMappingURL=colorize.js.map |
@@ -1,2 +0,2 @@ | ||
"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:()=>A,bgBlue:()=>M,bgCyan:()=>_,bgGreen:()=>I,bgMagenta:()=>Y,bgRed:()=>F,bgWhite:()=>z,bgYellow:()=>L,black:()=>C,blue:()=>S,bold:()=>d,colorize:()=>W,colors:()=>p,cyan:()=>B,default:()=>$,dim:()=>l,gray:()=>T,green:()=>w,hidden:()=>v,inverse:()=>h,italic:()=>f,magenta:()=>k,red:()=>y,reset:()=>a,strikethrough:()=>O,underline:()=>g,white:()=>E,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 a=s(r=>`\x1B[0m${r}\x1B[0m`,"reset"),d=o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),l=o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),f=o("\x1B[3m","\x1B[23m"),g=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"),B=o("\x1B[36m","\x1B[39m"),E=o("\x1B[37m","\x1B[39m"),T=o("\x1B[90m","\x1B[39m"),A=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:a,bold:d,dim:l,italic:f,underline:g,inverse:h,hidden:v,strikethrough:O,black:C,red:y,green:w,yellow:R,blue:S,magenta:k,cyan:B,white:E,gray:T,bgBlack:A,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(()=>Boolean(!((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}); | ||
"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:()=>A,bgBlue:()=>M,bgCyan:()=>_,bgGreen:()=>I,bgMagenta:()=>Y,bgRed:()=>F,bgWhite:()=>z,bgYellow:()=>L,black:()=>C,blue:()=>S,bold:()=>d,colorize:()=>W,colors:()=>p,cyan:()=>B,default:()=>$,dim:()=>l,gray:()=>T,green:()=>w,hidden:()=>v,inverse:()=>h,italic:()=>f,magenta:()=>k,red:()=>y,reset:()=>a,strikethrough:()=>O,underline:()=>g,white:()=>E,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 a=s(r=>`\x1B[0m${r}\x1B[0m`,"reset"),d=o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),l=o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),f=o("\x1B[3m","\x1B[23m"),g=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"),B=o("\x1B[36m","\x1B[39m"),E=o("\x1B[37m","\x1B[39m"),T=o("\x1B[90m","\x1B[39m"),A=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:a,bold:d,dim:l,italic:f,underline:g,inverse:h,hidden:v,strikethrough:O,black:C,red:y,green:w,yellow:R,blue:S,magenta:k,cyan:B,white:E,gray:T,bgBlack:A,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 d=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var O=Object.prototype.hasOwnProperty;var p=(r,o)=>c(r,"name",{value:o,configurable:!0});var a=(r,o)=>{for(var n in o)c(r,n,{get:o[n],enumerable:!0})},C=(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=d(o,s))||t.enumerable});return r};var R=r=>C(c({},"__esModule",{value:!0}),r);var x={};a(x,{checkSupport:()=>l,default:()=>m,isSupported:()=>v});module.exports=R(x);var e=require("@lskjs/env");var g=e.isClient?window:process.env,i=e.isServer?process.argv:[],l=p(()=>Boolean(!((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"),v=l(),m=v;0&&(module.exports={checkSupport,isSupported}); | ||
"use strict";var c=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var O=Object.prototype.hasOwnProperty;var p=(r,o)=>c(r,"name",{value:o,configurable:!0});var a=(r,o)=>{for(var n in o)c(r,n,{get:o[n],enumerable:!0})},C=(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=d(o,s))||t.enumerable});return r};var R=r=>C(c({},"__esModule",{value:!0}),r);var x={};a(x,{checkSupport:()=>l,default:()=>m,isSupported:()=>v});module.exports=R(x);var e=require("@lskjs/env");var g=e.isClient?window:process.env,i=e.isServer?process.argv:[],l=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"),v=l(),m=v;0&&(module.exports={checkSupport,isSupported}); | ||
//# sourceMappingURL=isSupported.js.map |
{ | ||
"name": "@lskjs/colors", | ||
"version": "3.2.2", | ||
"version": "3.8.0", | ||
"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.2.2" | ||
"@lskjs/env": "^3.8.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "files": [ | ||
], | ||
"gitHead": "cd2576c42f18458d8bdcf10cd3d9ebe2be017f78" | ||
"gitHead": "bf2f639527bb08d3c6628a40b3ef273920a2fcc5" | ||
} |
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
85174
Updated@lskjs/env@^3.8.0