@storm-software/config-tools 1.17.1 → 1.19.0

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.
@@ -9,13 +9,13 @@ ${h.bold.hex(e?.colors?.fatal?e.colors.fatal:"#1fb2a6")(">")} ${h.bold.bgHex(e?.
9
9
  `)}:typeof t=="number"&&u.ERROR>=t||typeof t=="string"&&u.ERROR>=y(t)?r=>{console.error(`
10
10
  ${h.bold.hex(e?.colors?.error?e.colors.error:"#7d1a1a")(">")} ${h.bold.bgHex(e?.colors?.error?e.colors.error:"#7d1a1a").white(" \u2718 Error ")} ${h.hex(e?.colors?.error?e.colors.error:"#7d1a1a")(r)}
11
11
  `)}:typeof t=="number"&&u.WARN>=t||typeof t=="string"&&u.WARN>=y(t)?r=>{console.warn(`
12
- ${h.bold.hex(e?.colors?.warning?e.colors.warning:"#fcc419")(">")} ${h.bold.bgHex(e?.colors?.warning?e.colors.warning:"#fcc419").white(" ! Warn ")} ${h.hex(e?.colors?.warning?e.colors.warning:"#fcc419")(r)}
12
+ ${h.bold.hex(e?.colors?.warning?e.colors.warning:"#fcc419")(">")} ${h.bold.bgHex(e?.colors?.warning?e.colors.warning:"#fcc419").white(" \u26A0 Warn ")} ${h.hex(e?.colors?.warning?e.colors.warning:"#fcc419")(r)}
13
13
  `)}:typeof t=="number"&&u.INFO>=t||typeof t=="string"&&u.INFO>=y(t)?r=>{console.info(`
14
- ${h.bold.hex(e?.colors?.info?e.colors.info:"#0ea5e9")(">")} ${h.bold.bgHex(e?.colors?.info?e.colors.info:"#0ea5e9").white(" \u2139 Info ")} ${h.hex(e?.colors?.info?e.colors.info:"#0ea5e9")(r)}
14
+ ${h.bold.hex(e?.colors?.info?e.colors.info:"#0ea5e9")(">")} ${h.bold.bgHex(e?.colors?.info?e.colors.info:"#0ea5e9").white(" \u2139 Info ")} ${h.hex(e?.colors?.info?e.colors.info:"#0ea5e9")(r)}
15
15
  `)}:typeof t=="number"&&u.INFO>=t||typeof t=="string"&&u.INFO>=y(t)?r=>{console.info(`
16
16
  ${h.bold.hex(e?.colors?.success?e.colors.success:"#087f5b")(">")} ${h.bold.bgHex(e?.colors?.success?e.colors.success:"#087f5b").white(" \u221A Success ")} ${h.hex(e?.colors?.success?e.colors.success:"#087f5b")(r)}
17
17
  `)}:typeof t=="number"&&u.DEBUG>=t||typeof t=="string"&&u.DEBUG>=y(t)?r=>{console.debug(`
18
- ${h.bold.hex(e?.colors?.primary?e.colors.primary:"#1fb2a6")(">")} ${h.bold.bgHex(e?.colors?.primary?e.colors.primary:"#1fb2a6").white(" \u{1F9EA} Debug ")} ${h.hex(e?.colors?.primary?e.colors.primary:"#1fb2a6")(r)}
18
+ ${h.bold.hex(e?.colors?.primary?e.colors.primary:"#1fb2a6")(">")} ${h.bold.bgHex(e?.colors?.primary?e.colors.primary:"#1fb2a6").white(" ! Debug ")} ${h.hex(e?.colors?.primary?e.colors.primary:"#1fb2a6")(r)}
19
19
  `)}:r=>{console.log(`
20
- ${h.bold.hex(e?.colors?.primary?e.colors.primary:"#1fb2a6")(">")} ${h.bold.bgHex(e?.colors?.primary?e.colors.primary:"#1fb2a6").white(" \u{1F4E2} System ")} ${h.hex(e?.colors?.primary?e.colors.primary:"#1fb2a6")(r)}
20
+ ${h.bold.hex(e?.colors?.primary?e.colors.primary:"#1fb2a6")(">")} ${h.bold.bgHex(e?.colors?.primary?e.colors.primary:"#1fb2a6").white(" ! System ")} ${h.hex(e?.colors?.primary?e.colors.primary:"#1fb2a6")(r)}
21
21
  `)},wt=(e,t)=>x(e,u.FATAL)(t),xt=(e,t)=>x(e,u.ERROR)(t),kt=(e,t)=>x(e,u.WARN)(t),Ct=(e,t)=>x(e,u.INFO)(t),vt=(e,t)=>x(e,u.SUCCESS)(t),Et=(e,t)=>x(e,u.DEBUG)(t),Ot=(e,t)=>x(e,u.TRACE)(t),Lt=(e,t)=>x(e,u.ALL)(t),Rt=e=>{let t=process.hrtime();return()=>{let r=process.hrtime(t);console.info(h.dim(`\u23F1\uFE0F The${e?` ${e}`:""} process took ${Math.round(r[0]*1e3+r[1]/1e6)}ms to complete`))}};export{x as getLogFn,Rt as getStopwatch,Et as writeDebug,xt as writeError,wt as writeFatal,Ct as writeInfo,vt as writeSuccess,Lt as writeSystem,Ot as writeTrace,kt as writeWarning};