@willbooster/shared-lib-node 5.0.17 → 5.0.19

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/spawn.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("node:child_process"),r=require("tree-kill");exports.spawnAsync=async function(s,t,o){return new Promise(((n,i)=>{try{const d=e.spawn(s,t??[],o??{});let c="",p="";o?.input&&(d.stdin?.write(o.input),d.stdin?.end()),d.stdout?.on("data",(e=>{c+=e})),d.stderr?.on("data",(e=>{o?.mergeOutAndError?c+=e:p+=e}));let l=!1;const a=()=>{!l&&d.pid&&(l=!0,o?.verbose&&console.info(`treeKill(${d.pid})`),r(d.pid))};o?.killOnExit&&(process.on("beforeExit",a),process.on("SIGINT",a)),d.on("error",(e=>{process.removeListener("exit",a),d.removeAllListeners("close"),i(e)})),d.on("close",((e,r)=>{process.removeListener("exit",a),void 0===d.pid?i(new Error("Process has no pid.")):n({pid:d.pid,stdout:c,stderr:p,status:e,signal:r})}))}catch(e){i(e)}}))};
1
+ "use strict";var e=require("node:child_process"),r=require("tree-kill");exports.spawnAsync=async function(s,t,o){return new Promise(((n,i)=>{try{const d=e.spawn(s,t??[],o??{});d.stdout?.setEncoding("utf8"),d.stderr?.setEncoding("utf8");let c="",p="";o?.input&&(d.stdin?.write(o.input),d.stdin?.end()),d.stdout?.on("data",(e=>{c+=e})),d.stderr?.on("data",(e=>{o?.mergeOutAndError?c+=e:p+=e}));let l=!1;const u=()=>{!l&&d.pid&&(l=!0,o?.verbose&&console.info(`treeKill(${d.pid})`),r(d.pid))};o?.killOnExit&&(process.on("beforeExit",u),process.on("SIGINT",u)),d.on("error",(e=>{process.removeListener("exit",u),d.removeAllListeners("close"),i(e)})),d.on("close",((e,r)=>{process.removeListener("exit",u),void 0===d.pid?i(new Error("Process has no pid.")):n({pid:d.pid,stdout:c,stderr:p,status:e,signal:r})}))}catch(e){i(e)}}))};
2
2
  //# sourceMappingURL=spawn.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"spawn.cjs","sources":["../src/spawn.ts"],"sourcesContent":["import type {\n SpawnOptions,\n SpawnOptionsWithoutStdio,\n SpawnOptionsWithStdioTuple,\n SpawnSyncReturns,\n StdioNull,\n StdioPipe,\n} from 'node:child_process';\nimport { spawn } from 'node:child_process';\n\nimport treeKill from 'tree-kill';\n\nexport type SpawnAsyncReturns = Omit<SpawnSyncReturns<string>, 'output' | 'error'>;\n\nexport type SpawnAsyncOptions = (\n | SpawnOptionsWithoutStdio\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>\n | SpawnOptions\n) & {\n input?: string;\n mergeOutAndError?: boolean;\n killOnExit?: boolean;\n verbose?: boolean;\n};\n\nexport async function spawnAsync(\n command: string,\n args?: ReadonlyArray<string>,\n options?: SpawnAsyncOptions\n): Promise<SpawnAsyncReturns> {\n return new Promise((resolve, reject) => {\n try {\n const proc = spawn(command, args ?? [], options ?? {});\n let stdout = '';\n let stderr = '';\n\n if (options?.input) {\n proc.stdin?.write(options.input);\n proc.stdin?.end();\n }\n proc.stdout?.on('data', (data) => {\n stdout += data;\n });\n proc.stderr?.on('data', (data) => {\n if (options?.mergeOutAndError) {\n stdout += data;\n } else {\n stderr += data;\n }\n });\n\n let stopped = false;\n const stopProcess = (): void => {\n if (stopped || !proc.pid) return;\n\n stopped = true;\n if (options?.verbose) {\n console.info(`treeKill(${proc.pid})`);\n }\n treeKill(proc.pid);\n };\n if (options?.killOnExit) {\n process.on('beforeExit', stopProcess);\n process.on('SIGINT', stopProcess);\n }\n\n proc.on('error', (error) => {\n process.removeListener('exit', stopProcess);\n proc.removeAllListeners('close');\n reject(error);\n });\n proc.on('close', (code: number | null, signal: NodeJS.Signals | null) => {\n process.removeListener('exit', stopProcess);\n if (proc.pid === undefined) {\n reject(new Error('Process has no pid.'));\n } else {\n resolve({\n pid: proc.pid,\n stdout,\n stderr,\n status: code,\n signal,\n });\n }\n });\n } catch (error) {\n reject(error);\n }\n });\n}\n"],"names":["async","command","args","options","Promise","resolve","reject","proc","spawn","stdout","stderr","input","stdin","write","end","on","data","mergeOutAndError","stopped","stopProcess","pid","verbose","console","info","treeKill","killOnExit","process","error","removeListener","removeAllListeners","code","signal","undefined","Error","status"],"mappings":"2FAgCOA,eACLC,EACAC,EACAC,GAEA,OAAO,IAAIC,SAAQ,CAACC,EAASC,KAC3B,IACE,MAAMC,EAAOC,EAAAA,MAAMP,EAASC,GAAQ,GAAIC,GAAW,CAAA,GACnD,IAAIM,EAAS,GACTC,EAAS,GAETP,GAASQ,QACXJ,EAAKK,OAAOC,MAAMV,EAAQQ,OAC1BJ,EAAKK,OAAOE,OAEdP,EAAKE,QAAQM,GAAG,QAASC,IACvBP,GAAUO,CAAI,IAEhBT,EAAKG,QAAQK,GAAG,QAASC,IACnBb,GAASc,iBACXR,GAAUO,EAEVN,GAAUM,CACZ,IAGF,IAAIE,GAAU,EACd,MAAMC,EAAcA,MACdD,GAAYX,EAAKa,MAErBF,GAAU,EACNf,GAASkB,SACXC,QAAQC,KAAM,YAAWhB,EAAKa,QAEhCI,EAASjB,EAAKa,KAAI,EAEhBjB,GAASsB,aACXC,QAAQX,GAAG,aAAcI,GACzBO,QAAQX,GAAG,SAAUI,IAGvBZ,EAAKQ,GAAG,SAAUY,IAChBD,QAAQE,eAAe,OAAQT,GAC/BZ,EAAKsB,mBAAmB,SACxBvB,EAAOqB,EAAM,IAEfpB,EAAKQ,GAAG,SAAS,CAACe,EAAqBC,KACrCL,QAAQE,eAAe,OAAQT,QACda,IAAbzB,EAAKa,IACPd,EAAO,IAAI2B,MAAM,wBAEjB5B,EAAQ,CACNe,IAAKb,EAAKa,IACVX,SACAC,SACAwB,OAAQJ,EACRC,UAEJ,GAEH,CAAC,MAAOJ,GACPrB,EAAOqB,EACT,IAEJ"}
1
+ {"version":3,"file":"spawn.cjs","sources":["../src/spawn.ts"],"sourcesContent":["import type {\n SpawnOptions,\n SpawnOptionsWithoutStdio,\n SpawnOptionsWithStdioTuple,\n SpawnSyncReturns,\n StdioNull,\n StdioPipe,\n} from 'node:child_process';\nimport { spawn } from 'node:child_process';\n\nimport treeKill from 'tree-kill';\n\nexport type SpawnAsyncReturns = Omit<SpawnSyncReturns<string>, 'output' | 'error'>;\n\nexport type SpawnAsyncOptions = (\n | SpawnOptionsWithoutStdio\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>\n | SpawnOptions\n) & {\n input?: string;\n mergeOutAndError?: boolean;\n killOnExit?: boolean;\n verbose?: boolean;\n};\n\nexport async function spawnAsync(\n command: string,\n args?: ReadonlyArray<string>,\n options?: SpawnAsyncOptions\n): Promise<SpawnAsyncReturns> {\n return new Promise((resolve, reject) => {\n try {\n const proc = spawn(command, args ?? [], options ?? {});\n proc.stdout?.setEncoding('utf8');\n proc.stderr?.setEncoding('utf8');\n\n let stdout = '';\n let stderr = '';\n if (options?.input) {\n proc.stdin?.write(options.input);\n proc.stdin?.end();\n }\n proc.stdout?.on('data', (data) => {\n stdout += data;\n });\n proc.stderr?.on('data', (data) => {\n if (options?.mergeOutAndError) {\n stdout += data;\n } else {\n stderr += data;\n }\n });\n\n let stopped = false;\n const stopProcess = (): void => {\n if (stopped || !proc.pid) return;\n\n stopped = true;\n if (options?.verbose) {\n console.info(`treeKill(${proc.pid})`);\n }\n treeKill(proc.pid);\n };\n if (options?.killOnExit) {\n process.on('beforeExit', stopProcess);\n process.on('SIGINT', stopProcess);\n }\n\n proc.on('error', (error) => {\n process.removeListener('exit', stopProcess);\n proc.removeAllListeners('close');\n reject(error);\n });\n proc.on('close', (code: number | null, signal: NodeJS.Signals | null) => {\n process.removeListener('exit', stopProcess);\n if (proc.pid === undefined) {\n reject(new Error('Process has no pid.'));\n } else {\n resolve({\n pid: proc.pid,\n stdout,\n stderr,\n status: code,\n signal,\n });\n }\n });\n } catch (error) {\n reject(error);\n }\n });\n}\n"],"names":["async","command","args","options","Promise","resolve","reject","proc","spawn","stdout","setEncoding","stderr","input","stdin","write","end","on","data","mergeOutAndError","stopped","stopProcess","pid","verbose","console","info","treeKill","killOnExit","process","error","removeListener","removeAllListeners","code","signal","undefined","Error","status"],"mappings":"2FAgCOA,eACLC,EACAC,EACAC,GAEA,OAAO,IAAIC,SAAQ,CAACC,EAASC,KAC3B,IACE,MAAMC,EAAOC,EAAAA,MAAMP,EAASC,GAAQ,GAAIC,GAAW,CAAA,GACnDI,EAAKE,QAAQC,YAAY,QACzBH,EAAKI,QAAQD,YAAY,QAEzB,IAAID,EAAS,GACTE,EAAS,GACTR,GAASS,QACXL,EAAKM,OAAOC,MAAMX,EAAQS,OAC1BL,EAAKM,OAAOE,OAEdR,EAAKE,QAAQO,GAAG,QAASC,IACvBR,GAAUQ,CAAI,IAEhBV,EAAKI,QAAQK,GAAG,QAASC,IACnBd,GAASe,iBACXT,GAAUQ,EAEVN,GAAUM,CACZ,IAGF,IAAIE,GAAU,EACd,MAAMC,EAAcA,MACdD,GAAYZ,EAAKc,MAErBF,GAAU,EACNhB,GAASmB,SACXC,QAAQC,KAAM,YAAWjB,EAAKc,QAEhCI,EAASlB,EAAKc,KAAI,EAEhBlB,GAASuB,aACXC,QAAQX,GAAG,aAAcI,GACzBO,QAAQX,GAAG,SAAUI,IAGvBb,EAAKS,GAAG,SAAUY,IAChBD,QAAQE,eAAe,OAAQT,GAC/Bb,EAAKuB,mBAAmB,SACxBxB,EAAOsB,EAAM,IAEfrB,EAAKS,GAAG,SAAS,CAACe,EAAqBC,KACrCL,QAAQE,eAAe,OAAQT,QACda,IAAb1B,EAAKc,IACPf,EAAO,IAAI4B,MAAM,wBAEjB7B,EAAQ,CACNgB,IAAKd,EAAKc,IACVZ,SACAE,SACAwB,OAAQJ,EACRC,UAEJ,GAEH,CAAC,MAAOJ,GACPtB,EAAOsB,EACT,IAEJ"}
package/dist/spawn.js CHANGED
@@ -1,2 +1,2 @@
1
- import{spawn as e}from"node:child_process";import r from"tree-kill";async function o(o,t,s){return new Promise(((i,n)=>{try{const d=e(o,t??[],s??{});let p="",c="";s?.input&&(d.stdin?.write(s.input),d.stdin?.end()),d.stdout?.on("data",(e=>{p+=e})),d.stderr?.on("data",(e=>{s?.mergeOutAndError?p+=e:c+=e}));let l=!1;const a=()=>{!l&&d.pid&&(l=!0,s?.verbose&&console.info(`treeKill(${d.pid})`),r(d.pid))};s?.killOnExit&&(process.on("beforeExit",a),process.on("SIGINT",a)),d.on("error",(e=>{process.removeListener("exit",a),d.removeAllListeners("close"),n(e)})),d.on("close",((e,r)=>{process.removeListener("exit",a),void 0===d.pid?n(new Error("Process has no pid.")):i({pid:d.pid,stdout:p,stderr:c,status:e,signal:r})}))}catch(e){n(e)}}))}export{o as spawnAsync};
1
+ import{spawn as e}from"node:child_process";import t from"tree-kill";async function o(o,r,s){return new Promise(((n,i)=>{try{const d=e(o,r??[],s??{});d.stdout?.setEncoding("utf8"),d.stderr?.setEncoding("utf8");let c="",p="";s?.input&&(d.stdin?.write(s.input),d.stdin?.end()),d.stdout?.on("data",(e=>{c+=e})),d.stderr?.on("data",(e=>{s?.mergeOutAndError?c+=e:p+=e}));let l=!1;const u=()=>{!l&&d.pid&&(l=!0,s?.verbose&&console.info(`treeKill(${d.pid})`),t(d.pid))};s?.killOnExit&&(process.on("beforeExit",u),process.on("SIGINT",u)),d.on("error",(e=>{process.removeListener("exit",u),d.removeAllListeners("close"),i(e)})),d.on("close",((e,t)=>{process.removeListener("exit",u),void 0===d.pid?i(new Error("Process has no pid.")):n({pid:d.pid,stdout:c,stderr:p,status:e,signal:t})}))}catch(e){i(e)}}))}export{o as spawnAsync};
2
2
  //# sourceMappingURL=spawn.js.map
package/dist/spawn.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"spawn.js","sources":["../src/spawn.ts"],"sourcesContent":["import type {\n SpawnOptions,\n SpawnOptionsWithoutStdio,\n SpawnOptionsWithStdioTuple,\n SpawnSyncReturns,\n StdioNull,\n StdioPipe,\n} from 'node:child_process';\nimport { spawn } from 'node:child_process';\n\nimport treeKill from 'tree-kill';\n\nexport type SpawnAsyncReturns = Omit<SpawnSyncReturns<string>, 'output' | 'error'>;\n\nexport type SpawnAsyncOptions = (\n | SpawnOptionsWithoutStdio\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>\n | SpawnOptions\n) & {\n input?: string;\n mergeOutAndError?: boolean;\n killOnExit?: boolean;\n verbose?: boolean;\n};\n\nexport async function spawnAsync(\n command: string,\n args?: ReadonlyArray<string>,\n options?: SpawnAsyncOptions\n): Promise<SpawnAsyncReturns> {\n return new Promise((resolve, reject) => {\n try {\n const proc = spawn(command, args ?? [], options ?? {});\n let stdout = '';\n let stderr = '';\n\n if (options?.input) {\n proc.stdin?.write(options.input);\n proc.stdin?.end();\n }\n proc.stdout?.on('data', (data) => {\n stdout += data;\n });\n proc.stderr?.on('data', (data) => {\n if (options?.mergeOutAndError) {\n stdout += data;\n } else {\n stderr += data;\n }\n });\n\n let stopped = false;\n const stopProcess = (): void => {\n if (stopped || !proc.pid) return;\n\n stopped = true;\n if (options?.verbose) {\n console.info(`treeKill(${proc.pid})`);\n }\n treeKill(proc.pid);\n };\n if (options?.killOnExit) {\n process.on('beforeExit', stopProcess);\n process.on('SIGINT', stopProcess);\n }\n\n proc.on('error', (error) => {\n process.removeListener('exit', stopProcess);\n proc.removeAllListeners('close');\n reject(error);\n });\n proc.on('close', (code: number | null, signal: NodeJS.Signals | null) => {\n process.removeListener('exit', stopProcess);\n if (proc.pid === undefined) {\n reject(new Error('Process has no pid.'));\n } else {\n resolve({\n pid: proc.pid,\n stdout,\n stderr,\n status: code,\n signal,\n });\n }\n });\n } catch (error) {\n reject(error);\n }\n });\n}\n"],"names":["async","spawnAsync","command","args","options","Promise","resolve","reject","proc","spawn","stdout","stderr","input","stdin","write","end","on","data","mergeOutAndError","stopped","stopProcess","pid","verbose","console","info","treeKill","killOnExit","process","error","removeListener","removeAllListeners","code","signal","undefined","Error","status"],"mappings":"oEAgCOA,eAAeC,EACpBC,EACAC,EACAC,GAEA,OAAO,IAAIC,SAAQ,CAACC,EAASC,KAC3B,IACE,MAAMC,EAAOC,EAAMP,EAASC,GAAQ,GAAIC,GAAW,CAAA,GACnD,IAAIM,EAAS,GACTC,EAAS,GAETP,GAASQ,QACXJ,EAAKK,OAAOC,MAAMV,EAAQQ,OAC1BJ,EAAKK,OAAOE,OAEdP,EAAKE,QAAQM,GAAG,QAASC,IACvBP,GAAUO,CAAI,IAEhBT,EAAKG,QAAQK,GAAG,QAASC,IACnBb,GAASc,iBACXR,GAAUO,EAEVN,GAAUM,CACZ,IAGF,IAAIE,GAAU,EACd,MAAMC,EAAcA,MACdD,GAAYX,EAAKa,MAErBF,GAAU,EACNf,GAASkB,SACXC,QAAQC,KAAM,YAAWhB,EAAKa,QAEhCI,EAASjB,EAAKa,KAAI,EAEhBjB,GAASsB,aACXC,QAAQX,GAAG,aAAcI,GACzBO,QAAQX,GAAG,SAAUI,IAGvBZ,EAAKQ,GAAG,SAAUY,IAChBD,QAAQE,eAAe,OAAQT,GAC/BZ,EAAKsB,mBAAmB,SACxBvB,EAAOqB,EAAM,IAEfpB,EAAKQ,GAAG,SAAS,CAACe,EAAqBC,KACrCL,QAAQE,eAAe,OAAQT,QACda,IAAbzB,EAAKa,IACPd,EAAO,IAAI2B,MAAM,wBAEjB5B,EAAQ,CACNe,IAAKb,EAAKa,IACVX,SACAC,SACAwB,OAAQJ,EACRC,UAEJ,GAEH,CAAC,MAAOJ,GACPrB,EAAOqB,EACT,IAEJ"}
1
+ {"version":3,"file":"spawn.js","sources":["../src/spawn.ts"],"sourcesContent":["import type {\n SpawnOptions,\n SpawnOptionsWithoutStdio,\n SpawnOptionsWithStdioTuple,\n SpawnSyncReturns,\n StdioNull,\n StdioPipe,\n} from 'node:child_process';\nimport { spawn } from 'node:child_process';\n\nimport treeKill from 'tree-kill';\n\nexport type SpawnAsyncReturns = Omit<SpawnSyncReturns<string>, 'output' | 'error'>;\n\nexport type SpawnAsyncOptions = (\n | SpawnOptionsWithoutStdio\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>\n | SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>\n | SpawnOptions\n) & {\n input?: string;\n mergeOutAndError?: boolean;\n killOnExit?: boolean;\n verbose?: boolean;\n};\n\nexport async function spawnAsync(\n command: string,\n args?: ReadonlyArray<string>,\n options?: SpawnAsyncOptions\n): Promise<SpawnAsyncReturns> {\n return new Promise((resolve, reject) => {\n try {\n const proc = spawn(command, args ?? [], options ?? {});\n proc.stdout?.setEncoding('utf8');\n proc.stderr?.setEncoding('utf8');\n\n let stdout = '';\n let stderr = '';\n if (options?.input) {\n proc.stdin?.write(options.input);\n proc.stdin?.end();\n }\n proc.stdout?.on('data', (data) => {\n stdout += data;\n });\n proc.stderr?.on('data', (data) => {\n if (options?.mergeOutAndError) {\n stdout += data;\n } else {\n stderr += data;\n }\n });\n\n let stopped = false;\n const stopProcess = (): void => {\n if (stopped || !proc.pid) return;\n\n stopped = true;\n if (options?.verbose) {\n console.info(`treeKill(${proc.pid})`);\n }\n treeKill(proc.pid);\n };\n if (options?.killOnExit) {\n process.on('beforeExit', stopProcess);\n process.on('SIGINT', stopProcess);\n }\n\n proc.on('error', (error) => {\n process.removeListener('exit', stopProcess);\n proc.removeAllListeners('close');\n reject(error);\n });\n proc.on('close', (code: number | null, signal: NodeJS.Signals | null) => {\n process.removeListener('exit', stopProcess);\n if (proc.pid === undefined) {\n reject(new Error('Process has no pid.'));\n } else {\n resolve({\n pid: proc.pid,\n stdout,\n stderr,\n status: code,\n signal,\n });\n }\n });\n } catch (error) {\n reject(error);\n }\n });\n}\n"],"names":["async","spawnAsync","command","args","options","Promise","resolve","reject","proc","spawn","stdout","setEncoding","stderr","input","stdin","write","end","on","data","mergeOutAndError","stopped","stopProcess","pid","verbose","console","info","treeKill","killOnExit","process","error","removeListener","removeAllListeners","code","signal","undefined","Error","status"],"mappings":"oEAgCOA,eAAeC,EACpBC,EACAC,EACAC,GAEA,OAAO,IAAIC,SAAQ,CAACC,EAASC,KAC3B,IACE,MAAMC,EAAOC,EAAMP,EAASC,GAAQ,GAAIC,GAAW,CAAA,GACnDI,EAAKE,QAAQC,YAAY,QACzBH,EAAKI,QAAQD,YAAY,QAEzB,IAAID,EAAS,GACTE,EAAS,GACTR,GAASS,QACXL,EAAKM,OAAOC,MAAMX,EAAQS,OAC1BL,EAAKM,OAAOE,OAEdR,EAAKE,QAAQO,GAAG,QAASC,IACvBR,GAAUQ,CAAI,IAEhBV,EAAKI,QAAQK,GAAG,QAASC,IACnBd,GAASe,iBACXT,GAAUQ,EAEVN,GAAUM,CACZ,IAGF,IAAIE,GAAU,EACd,MAAMC,EAAcA,MACdD,GAAYZ,EAAKc,MAErBF,GAAU,EACNhB,GAASmB,SACXC,QAAQC,KAAM,YAAWjB,EAAKc,QAEhCI,EAASlB,EAAKc,KAAI,EAEhBlB,GAASuB,aACXC,QAAQX,GAAG,aAAcI,GACzBO,QAAQX,GAAG,SAAUI,IAGvBb,EAAKS,GAAG,SAAUY,IAChBD,QAAQE,eAAe,OAAQT,GAC/Bb,EAAKuB,mBAAmB,SACxBxB,EAAOsB,EAAM,IAEfrB,EAAKS,GAAG,SAAS,CAACe,EAAqBC,KACrCL,QAAQE,eAAe,OAAQT,QACda,IAAb1B,EAAKc,IACPf,EAAO,IAAI4B,MAAM,wBAEjB7B,EAAQ,CACNgB,IAAKd,EAAKc,IACVZ,SACAE,SACAwB,OAAQJ,EACRC,UAEJ,GAEH,CAAC,MAAOJ,GACPtB,EAAOsB,EACT,IAEJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/shared-lib-node",
3
- "version": "5.0.17",
3
+ "version": "5.0.19",
4
4
  "license": "Apache-2.0",
5
5
  "author": "WillBooster Inc.",
6
6
  "sideEffects": false,
@@ -30,7 +30,7 @@
30
30
  "format": "sort-package-json && yarn prettify",
31
31
  "lint": "eslint --color \"./{scripts,src,tests}/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}\"",
32
32
  "lint-fix": "yarn lint --fix",
33
- "prettify": "prettier --cache --color --write \"**/{.*/,}*.{cjs,css,cts,htm,html,js,json,json5,jsx,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\"",
33
+ "prettify": "prettier --cache --color --write \"**/{.*/,}*.{cjs,css,cts,htm,html,js,json,json5,jsonc,jsx,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\"",
34
34
  "test": "vitest",
35
35
  "typecheck": "tsc --noEmit --Pretty"
36
36
  },
@@ -43,24 +43,24 @@
43
43
  "@types/eslint": "8.56.10",
44
44
  "@types/micromatch": "4.0.7",
45
45
  "@types/node": "20.12.7",
46
- "@typescript-eslint/eslint-plugin": "7.7.0",
47
- "@typescript-eslint/parser": "7.7.0",
48
- "@willbooster/eslint-config-ts": "10.5.1",
46
+ "@typescript-eslint/eslint-plugin": "7.7.1",
47
+ "@typescript-eslint/parser": "7.7.1",
48
+ "@willbooster/eslint-config-ts": "10.6.0",
49
49
  "@willbooster/prettier-config": "9.1.2",
50
- "build-ts": "13.0.4",
50
+ "build-ts": "13.0.5",
51
51
  "eslint": "8.57.0",
52
52
  "eslint-config-prettier": "9.1.0",
53
53
  "eslint-import-resolver-typescript": "3.6.1",
54
54
  "eslint-plugin-import": "2.29.1",
55
55
  "eslint-plugin-sort-class-members": "1.20.0",
56
- "eslint-plugin-sort-destructure-keys": "1.5.0",
56
+ "eslint-plugin-sort-destructure-keys": "2.0.0",
57
57
  "eslint-plugin-unicorn": "52.0.0",
58
58
  "lint-staged": "15.2.2",
59
59
  "micromatch": "4.0.5",
60
60
  "prettier": "3.2.5",
61
61
  "sort-package-json": "2.10.0",
62
62
  "typescript": "5.4.5",
63
- "vitest": "1.5.0"
63
+ "vitest": "1.5.2"
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "public"