@storm-software/config-tools 1.18.0 → 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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.18.0](https://github.com/storm-software/storm-ops/compare/config-tools-v1.17.1...config-tools-v1.18.0) (2024-01-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * **config-tools:** Added the `getConfigFileByName` function export ([9f56a9c](https://github.com/storm-software/storm-ops/commit/9f56a9ca2c1df0bccbf533cc63f15602e8de0dff))
7
+
1
8
  ## [1.17.1](https://github.com/storm-software/storm-ops/compare/config-tools-v1.17.0...config-tools-v1.17.1) (2024-01-19)
2
9
 
3
10
 
package/index.cjs CHANGED
@@ -415,15 +415,15 @@ ${rf.bold.hex(u?.colors?.fatal?u.colors.fatal:"#1fb2a6")(">")} ${rf.bold.bgHex(u
415
415
  `)}:typeof m=="number"&&fc.ERROR>=m||typeof m=="string"&&fc.ERROR>=Lh(m)?v=>{console.error(`
416
416
  ${rf.bold.hex(u?.colors?.error?u.colors.error:"#7d1a1a")(">")} ${rf.bold.bgHex(u?.colors?.error?u.colors.error:"#7d1a1a").white(" \u2718 Error ")} ${rf.hex(u?.colors?.error?u.colors.error:"#7d1a1a")(v)}
417
417
  `)}:typeof m=="number"&&fc.WARN>=m||typeof m=="string"&&fc.WARN>=Lh(m)?v=>{console.warn(`
418
- ${rf.bold.hex(u?.colors?.warning?u.colors.warning:"#fcc419")(">")} ${rf.bold.bgHex(u?.colors?.warning?u.colors.warning:"#fcc419").white(" ! Warn ")} ${rf.hex(u?.colors?.warning?u.colors.warning:"#fcc419")(v)}
418
+ ${rf.bold.hex(u?.colors?.warning?u.colors.warning:"#fcc419")(">")} ${rf.bold.bgHex(u?.colors?.warning?u.colors.warning:"#fcc419").white(" \u26A0 Warn ")} ${rf.hex(u?.colors?.warning?u.colors.warning:"#fcc419")(v)}
419
419
  `)}:typeof m=="number"&&fc.INFO>=m||typeof m=="string"&&fc.INFO>=Lh(m)?v=>{console.info(`
420
- ${rf.bold.hex(u?.colors?.info?u.colors.info:"#0ea5e9")(">")} ${rf.bold.bgHex(u?.colors?.info?u.colors.info:"#0ea5e9").white(" \u2139 Info ")} ${rf.hex(u?.colors?.info?u.colors.info:"#0ea5e9")(v)}
420
+ ${rf.bold.hex(u?.colors?.info?u.colors.info:"#0ea5e9")(">")} ${rf.bold.bgHex(u?.colors?.info?u.colors.info:"#0ea5e9").white(" \u2139 Info ")} ${rf.hex(u?.colors?.info?u.colors.info:"#0ea5e9")(v)}
421
421
  `)}:typeof m=="number"&&fc.INFO>=m||typeof m=="string"&&fc.INFO>=Lh(m)?v=>{console.info(`
422
422
  ${rf.bold.hex(u?.colors?.success?u.colors.success:"#087f5b")(">")} ${rf.bold.bgHex(u?.colors?.success?u.colors.success:"#087f5b").white(" \u221A Success ")} ${rf.hex(u?.colors?.success?u.colors.success:"#087f5b")(v)}
423
423
  `)}:typeof m=="number"&&fc.DEBUG>=m||typeof m=="string"&&fc.DEBUG>=Lh(m)?v=>{console.debug(`
424
- ${rf.bold.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(">")} ${rf.bold.bgHex(u?.colors?.primary?u.colors.primary:"#1fb2a6").white(" \u{1F9EA} Debug ")} ${rf.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(v)}
424
+ ${rf.bold.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(">")} ${rf.bold.bgHex(u?.colors?.primary?u.colors.primary:"#1fb2a6").white(" ! Debug ")} ${rf.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(v)}
425
425
  `)}:v=>{console.log(`
426
- ${rf.bold.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(">")} ${rf.bold.bgHex(u?.colors?.primary?u.colors.primary:"#1fb2a6").white(" \u{1F4E2} System ")} ${rf.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(v)}
426
+ ${rf.bold.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(">")} ${rf.bold.bgHex(u?.colors?.primary?u.colors.primary:"#1fb2a6").white(" ! System ")} ${rf.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(v)}
427
427
  `)},dpe=(u,m)=>LS(u,fc.FATAL)(m),ZA=(u,m)=>LS(u,fc.ERROR)(m),mpe=(u,m)=>LS(u,fc.WARN)(m),xSt=(u,m)=>LS(u,fc.INFO)(m),gpe=(u,m)=>LS(u,fc.SUCCESS)(m),TSt=(u,m)=>LS(u,fc.DEBUG)(m),hpe=(u,m)=>LS(u,fc.TRACE)(m),SSt=(u,m)=>LS(u,fc.ALL)(m),kSt=u=>{let m=process.hrtime();return()=>{let v=process.hrtime(m);console.info(rf.dim(`\u23F1\uFE0F The${u?` ${u}`:""} process took ${Math.round(v[0]*1e3+v[1]/1e6)}ms to complete`))}};var gL=u=>{dpe(u,"Exiting script with an error status..."),process.exit(1)},CSt=u=>{gpe(u,"Script completed successfully. Exiting..."),process.exit(0)},wSt=u=>{hpe(u,`Using the following arguments to process the script: ${process.argv.join(", ")}`),process.on("unhandledRejection",m=>{ZA(u,`An Unhandled Rejection occurred while running the program: ${m}`),gL(u)}),process.on("uncaughtException",m=>{ZA(u,`An Uncaught Exception occurred while running the program: ${m.message}
428
428
  Stacktrace: ${m.stack}`),gL(u)}),process.on("SIGTERM",m=>{ZA(u,`The program terminated with signal code: ${m}`),gL(u)}),process.on("SIGINT",m=>{ZA(u,`The program terminated with signal code: ${m}`),gL(u)})};var dBe=require("node:buffer"),mBe=Ih(require("node:path"),1),l$=Ih(require("node:child_process"),1),bL=Ih(require("node:process"),1),gBe=Ih(dRe(),1);function Epe(u){let m=typeof u=="string"?`
429
429
  `:`
package/index.js CHANGED
@@ -415,15 +415,15 @@ ${nf.bold.hex(u?.colors?.fatal?u.colors.fatal:"#1fb2a6")(">")} ${nf.bold.bgHex(u
415
415
  `)}:typeof m=="number"&&xc.ERROR>=m||typeof m=="string"&&xc.ERROR>=q1(m)?v=>{console.error(`
416
416
  ${nf.bold.hex(u?.colors?.error?u.colors.error:"#7d1a1a")(">")} ${nf.bold.bgHex(u?.colors?.error?u.colors.error:"#7d1a1a").white(" \u2718 Error ")} ${nf.hex(u?.colors?.error?u.colors.error:"#7d1a1a")(v)}
417
417
  `)}:typeof m=="number"&&xc.WARN>=m||typeof m=="string"&&xc.WARN>=q1(m)?v=>{console.warn(`
418
- ${nf.bold.hex(u?.colors?.warning?u.colors.warning:"#fcc419")(">")} ${nf.bold.bgHex(u?.colors?.warning?u.colors.warning:"#fcc419").white(" ! Warn ")} ${nf.hex(u?.colors?.warning?u.colors.warning:"#fcc419")(v)}
418
+ ${nf.bold.hex(u?.colors?.warning?u.colors.warning:"#fcc419")(">")} ${nf.bold.bgHex(u?.colors?.warning?u.colors.warning:"#fcc419").white(" \u26A0 Warn ")} ${nf.hex(u?.colors?.warning?u.colors.warning:"#fcc419")(v)}
419
419
  `)}:typeof m=="number"&&xc.INFO>=m||typeof m=="string"&&xc.INFO>=q1(m)?v=>{console.info(`
420
- ${nf.bold.hex(u?.colors?.info?u.colors.info:"#0ea5e9")(">")} ${nf.bold.bgHex(u?.colors?.info?u.colors.info:"#0ea5e9").white(" \u2139 Info ")} ${nf.hex(u?.colors?.info?u.colors.info:"#0ea5e9")(v)}
420
+ ${nf.bold.hex(u?.colors?.info?u.colors.info:"#0ea5e9")(">")} ${nf.bold.bgHex(u?.colors?.info?u.colors.info:"#0ea5e9").white(" \u2139 Info ")} ${nf.hex(u?.colors?.info?u.colors.info:"#0ea5e9")(v)}
421
421
  `)}:typeof m=="number"&&xc.INFO>=m||typeof m=="string"&&xc.INFO>=q1(m)?v=>{console.info(`
422
422
  ${nf.bold.hex(u?.colors?.success?u.colors.success:"#087f5b")(">")} ${nf.bold.bgHex(u?.colors?.success?u.colors.success:"#087f5b").white(" \u221A Success ")} ${nf.hex(u?.colors?.success?u.colors.success:"#087f5b")(v)}
423
423
  `)}:typeof m=="number"&&xc.DEBUG>=m||typeof m=="string"&&xc.DEBUG>=q1(m)?v=>{console.debug(`
424
- ${nf.bold.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(">")} ${nf.bold.bgHex(u?.colors?.primary?u.colors.primary:"#1fb2a6").white(" \u{1F9EA} Debug ")} ${nf.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(v)}
424
+ ${nf.bold.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(">")} ${nf.bold.bgHex(u?.colors?.primary?u.colors.primary:"#1fb2a6").white(" ! Debug ")} ${nf.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(v)}
425
425
  `)}:v=>{console.log(`
426
- ${nf.bold.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(">")} ${nf.bold.bgHex(u?.colors?.primary?u.colors.primary:"#1fb2a6").white(" \u{1F4E2} System ")} ${nf.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(v)}
426
+ ${nf.bold.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(">")} ${nf.bold.bgHex(u?.colors?.primary?u.colors.primary:"#1fb2a6").white(" ! System ")} ${nf.hex(u?.colors?.primary?u.colors.primary:"#1fb2a6")(v)}
427
427
  `)},gFe=(u,m)=>hC(u,xc.FATAL)(m),pL=(u,m)=>hC(u,xc.ERROR)(m),hFe=(u,m)=>hC(u,xc.WARN)(m),K4t=(u,m)=>hC(u,xc.INFO)(m),yFe=(u,m)=>hC(u,xc.SUCCESS)(m),e3t=(u,m)=>hC(u,xc.DEBUG)(m),vFe=(u,m)=>hC(u,xc.TRACE)(m),t3t=(u,m)=>hC(u,xc.ALL)(m),r3t=u=>{let m=process.hrtime();return()=>{let v=process.hrtime(m);console.info(nf.dim(`\u23F1\uFE0F The${u?` ${u}`:""} process took ${Math.round(v[0]*1e3+v[1]/1e6)}ms to complete`))}};var Wq=u=>{gFe(u,"Exiting script with an error status..."),process.exit(1)},s3t=u=>{yFe(u,"Script completed successfully. Exiting..."),process.exit(0)},a3t=u=>{vFe(u,`Using the following arguments to process the script: ${process.argv.join(", ")}`),process.on("unhandledRejection",m=>{pL(u,`An Unhandled Rejection occurred while running the program: ${m}`),Wq(u)}),process.on("uncaughtException",m=>{pL(u,`An Uncaught Exception occurred while running the program: ${m.message}
428
428
  Stacktrace: ${m.stack}`),Wq(u)}),process.on("SIGTERM",m=>{pL(u,`The program terminated with signal code: ${m}`),Wq(u)}),process.on("SIGINT",m=>{pL(u,`The program terminated with signal code: ${m}`),Wq(u)})};var XRe=EO(oRe(),1);import{Buffer as zkt}from"node:buffer";import Ukt from"node:path";import Rpe from"node:child_process";import s$ from"node:process";function dpe(u){let m=typeof u=="string"?`
429
429
  `:`