@willbooster/shared-lib-node 7.0.6 → 7.0.8

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/hash.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("node:crypto"),r=require("node:fs"),t=require("node:path");async function s(e,...s){let i="";try{i=await r.promises.readFile(e,"utf8")}catch{}const o=await a(...s);return i!==o&&(await r.promises.mkdir(t.dirname(e),{recursive:!0}),await r.promises.writeFile(e,o,"utf8"),!0)}async function a(...s){const a=e.createHash("sha512");for(const e of s.sort()){const s=await r.promises.stat(e);if(s.isDirectory()){const s=await r.promises.readdir(e,{withFileTypes:!0,recursive:!0});for(const e of s.sort((e,r)=>e.name.localeCompare(r.name)))e.isFile()&&a.update(await r.promises.readFile(t.join(e.parentPath,e.name),"utf8"))}else s.isFile()&&a.update(await r.promises.readFile(e,"utf8"))}return a.digest("hex")}exports.calculateHashFromFiles=a,exports.canSkipSeed=async function(e,...r){return!(!Number(process.env.ALLOW_TO_SKIP_SEED)&&"true"!==(process.env.ALLOW_TO_SKIP_SEED??"").toLowerCase()||await s(e,...r))},exports.updateHashFromFiles=s;
1
+ "use strict";var e=require("node:crypto"),r=require("node:fs"),t=require("node:path");async function a(e,...a){let i="";try{i=await r.promises.readFile(e,"utf8")}catch{}const o=await s(...a);return i!==o&&(await r.promises.mkdir(t.dirname(e),{recursive:!0}),await r.promises.writeFile(e,o,"utf8"),!0)}async function s(...a){const s=e.createHash("sha512");for(const e of a.toSorted()){const a=await r.promises.stat(e);if(a.isDirectory()){const a=await r.promises.readdir(e,{withFileTypes:!0,recursive:!0});for(const e of a.toSorted((e,r)=>e.name.localeCompare(r.name)))e.isFile()&&s.update(await r.promises.readFile(t.join(e.parentPath,e.name),"utf8"))}else a.isFile()&&s.update(await r.promises.readFile(e,"utf8"))}return s.digest("hex")}exports.calculateHashFromFiles=s,exports.canSkipSeed=async function(e,...r){return!(!Number(process.env.ALLOW_TO_SKIP_SEED)&&"true"!==(process.env.ALLOW_TO_SKIP_SEED??"").toLowerCase()||await a(e,...r))},exports.updateHashFromFiles=a;
2
2
  //# sourceMappingURL=hash.cjs.map
package/dist/hash.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"hash.cjs","sources":["../src/hash.ts"],"sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\n/**\n * Check whether seed command can be skipped or not and update hash file if needed.\n * Note that process.env.ALLOW_TO_SKIP_SEED should be set to non-zero number or 'true' to skip seed.\n * @param hashFilePath Path to the hash file.\n * @param paths Paths to the files or directories.\n * @returns Whether seed command can be skipped.\n */\nexport async function canSkipSeed(hashFilePath: string, ...paths: string[]): Promise<boolean> {\n return (\n (!!Number(process.env.ALLOW_TO_SKIP_SEED) || (process.env.ALLOW_TO_SKIP_SEED ?? '').toLowerCase() === 'true') &&\n !(await updateHashFromFiles(hashFilePath, ...paths))\n );\n}\n\n/**\n * Update hash file if the hash is different from the current one.\n * @param hashFilePath Path to the hash file.\n * @param paths Paths to the files or directories.\n * @returns Whether the hash file was updated.\n */\nexport async function updateHashFromFiles(hashFilePath: string, ...paths: string[]): Promise<boolean> {\n let oldHash = '';\n try {\n oldHash = await fs.promises.readFile(hashFilePath, 'utf8');\n } catch {\n // do nothing\n }\n const newHash = await calculateHashFromFiles(...paths);\n if (oldHash === newHash) return false;\n\n await fs.promises.mkdir(path.dirname(hashFilePath), { recursive: true });\n await fs.promises.writeFile(hashFilePath, newHash, 'utf8');\n return true;\n}\n\n/**\n * Calculate hash from files.\n * @param paths Paths to the files or directories.\n * @returns Hash string.\n */\nexport async function calculateHashFromFiles(...paths: string[]): Promise<string> {\n const hash = crypto.createHash('sha512');\n for (const fileOrDirPath of paths.sort()) {\n const stat = await fs.promises.stat(fileOrDirPath);\n if (stat.isDirectory()) {\n // Get all files in the directory recursively\n const dirents = await fs.promises.readdir(fileOrDirPath, { withFileTypes: true, recursive: true });\n for (const dirent of dirents.sort((d1, d2) => d1.name.localeCompare(d2.name))) {\n if (dirent.isFile()) {\n // Use parentPath property which is available in Node.js 18.17.0 or later\n hash.update(\n await fs.promises.readFile(\n path.join((dirent as unknown as Record<'parentPath', string>).parentPath, dirent.name),\n 'utf8'\n )\n );\n }\n }\n } else if (stat.isFile()) {\n hash.update(await fs.promises.readFile(fileOrDirPath, 'utf8'));\n }\n }\n return hash.digest('hex');\n}\n"],"names":["async","updateHashFromFiles","hashFilePath","paths","oldHash","fs","promises","readFile","newHash","calculateHashFromFiles","mkdir","path","dirname","recursive","writeFile","hash","crypto","createHash","fileOrDirPath","sort","stat","isDirectory","dirents","readdir","withFileTypes","dirent","d1","d2","name","localeCompare","isFile","update","join","parentPath","digest","Number","process","env","ALLOW_TO_SKIP_SEED","toLowerCase"],"mappings":"sFAwBOA,eAAeC,EAAoBC,KAAyBC,GACjE,IAAIC,EAAU,GACd,IACEA,QAAgBC,EAAGC,SAASC,SAASL,EAAc,OACrD,CAAE,MACA,CAEF,MAAMM,QAAgBC,KAA0BN,GAChD,OAAIC,IAAYI,UAEVH,EAAGC,SAASI,MAAMC,EAAKC,QAAQV,GAAe,CAAEW,WAAW,UAC3DR,EAAGC,SAASQ,UAAUZ,EAAcM,EAAS,SAC5C,EACT,CAOOR,eAAeS,KAA0BN,GAC9C,MAAMY,EAAOC,EAAOC,WAAW,UAC/B,IAAK,MAAMC,KAAiBf,EAAMgB,OAAQ,CACxC,MAAMC,QAAaf,EAAGC,SAASc,KAAKF,GACpC,GAAIE,EAAKC,cAAe,CAEtB,MAAMC,QAAgBjB,EAAGC,SAASiB,QAAQL,EAAe,CAAEM,eAAe,EAAMX,WAAW,IAC3F,IAAK,MAAMY,KAAUH,EAAQH,KAAK,CAACO,EAAIC,IAAOD,EAAGE,KAAKC,cAAcF,EAAGC,OACjEH,EAAOK,UAETf,EAAKgB,aACG1B,EAAGC,SAASC,SAChBI,EAAKqB,KAAMP,EAAmDQ,WAAYR,EAAOG,MACjF,QAKV,MAAWR,EAAKU,UACdf,EAAKgB,aAAa1B,EAAGC,SAASC,SAASW,EAAe,QAE1D,CACA,OAAOH,EAAKmB,OAAO,MACrB,sDAxDOlC,eAA2BE,KAAyBC,GACzD,SACKgC,OAAOC,QAAQC,IAAIC,qBAAgF,UAAxDF,QAAQC,IAAIC,oBAAsB,IAAIC,qBAC5EtC,EAAoBC,KAAiBC,GAEjD"}
1
+ {"version":3,"file":"hash.cjs","sources":["../src/hash.ts"],"sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\n/**\n * Check whether seed command can be skipped or not and update hash file if needed.\n * Note that process.env.ALLOW_TO_SKIP_SEED should be set to non-zero number or 'true' to skip seed.\n * @param hashFilePath Path to the hash file.\n * @param paths Paths to the files or directories.\n * @returns Whether seed command can be skipped.\n */\nexport async function canSkipSeed(hashFilePath: string, ...paths: string[]): Promise<boolean> {\n return (\n (!!Number(process.env.ALLOW_TO_SKIP_SEED) || (process.env.ALLOW_TO_SKIP_SEED ?? '').toLowerCase() === 'true') &&\n !(await updateHashFromFiles(hashFilePath, ...paths))\n );\n}\n\n/**\n * Update hash file if the hash is different from the current one.\n * @param hashFilePath Path to the hash file.\n * @param paths Paths to the files or directories.\n * @returns Whether the hash file was updated.\n */\nexport async function updateHashFromFiles(hashFilePath: string, ...paths: string[]): Promise<boolean> {\n let oldHash = '';\n try {\n oldHash = await fs.promises.readFile(hashFilePath, 'utf8');\n } catch {\n // do nothing\n }\n const newHash = await calculateHashFromFiles(...paths);\n if (oldHash === newHash) return false;\n\n await fs.promises.mkdir(path.dirname(hashFilePath), { recursive: true });\n await fs.promises.writeFile(hashFilePath, newHash, 'utf8');\n return true;\n}\n\n/**\n * Calculate hash from files.\n * @param paths Paths to the files or directories.\n * @returns Hash string.\n */\nexport async function calculateHashFromFiles(...paths: string[]): Promise<string> {\n const hash = crypto.createHash('sha512');\n for (const fileOrDirPath of paths.toSorted()) {\n const stat = await fs.promises.stat(fileOrDirPath);\n if (stat.isDirectory()) {\n // Get all files in the directory recursively\n const dirents = await fs.promises.readdir(fileOrDirPath, { withFileTypes: true, recursive: true });\n for (const dirent of dirents.toSorted((d1, d2) => d1.name.localeCompare(d2.name))) {\n if (dirent.isFile()) {\n // Use parentPath property which is available in Node.js 18.17.0 or later\n hash.update(\n await fs.promises.readFile(\n path.join((dirent as unknown as Record<'parentPath', string>).parentPath, dirent.name),\n 'utf8'\n )\n );\n }\n }\n } else if (stat.isFile()) {\n hash.update(await fs.promises.readFile(fileOrDirPath, 'utf8'));\n }\n }\n return hash.digest('hex');\n}\n"],"names":["async","updateHashFromFiles","hashFilePath","paths","oldHash","fs","promises","readFile","newHash","calculateHashFromFiles","mkdir","path","dirname","recursive","writeFile","hash","crypto","createHash","fileOrDirPath","toSorted","stat","isDirectory","dirents","readdir","withFileTypes","dirent","d1","d2","name","localeCompare","isFile","update","join","parentPath","digest","Number","process","env","ALLOW_TO_SKIP_SEED","toLowerCase"],"mappings":"sFAwBOA,eAAeC,EAAoBC,KAAyBC,GACjE,IAAIC,EAAU,GACd,IACEA,QAAgBC,EAAGC,SAASC,SAASL,EAAc,OACrD,CAAE,MACA,CAEF,MAAMM,QAAgBC,KAA0BN,GAChD,OAAIC,IAAYI,UAEVH,EAAGC,SAASI,MAAMC,EAAKC,QAAQV,GAAe,CAAEW,WAAW,UAC3DR,EAAGC,SAASQ,UAAUZ,EAAcM,EAAS,SAC5C,EACT,CAOOR,eAAeS,KAA0BN,GAC9C,MAAMY,EAAOC,EAAOC,WAAW,UAC/B,IAAK,MAAMC,KAAiBf,EAAMgB,WAAY,CAC5C,MAAMC,QAAaf,EAAGC,SAASc,KAAKF,GACpC,GAAIE,EAAKC,cAAe,CAEtB,MAAMC,QAAgBjB,EAAGC,SAASiB,QAAQL,EAAe,CAAEM,eAAe,EAAMX,WAAW,IAC3F,IAAK,MAAMY,KAAUH,EAAQH,SAAS,CAACO,EAAIC,IAAOD,EAAGE,KAAKC,cAAcF,EAAGC,OACrEH,EAAOK,UAETf,EAAKgB,aACG1B,EAAGC,SAASC,SAChBI,EAAKqB,KAAMP,EAAmDQ,WAAYR,EAAOG,MACjF,QAKV,MAAWR,EAAKU,UACdf,EAAKgB,aAAa1B,EAAGC,SAASC,SAASW,EAAe,QAE1D,CACA,OAAOH,EAAKmB,OAAO,MACrB,sDAxDOlC,eAA2BE,KAAyBC,GACzD,SACKgC,OAAOC,QAAQC,IAAIC,qBAAgF,UAAxDF,QAAQC,IAAIC,oBAAsB,IAAIC,qBAC5EtC,EAAoBC,KAAiBC,GAEjD"}
package/dist/hash.js CHANGED
@@ -1,2 +1,2 @@
1
- import e from"node:crypto";import t from"node:fs";import r from"node:path";async function i(e,...t){return!(!Number(process.env.ALLOW_TO_SKIP_SEED)&&"true"!==(process.env.ALLOW_TO_SKIP_SEED??"").toLowerCase()||await a(e,...t))}async function a(e,...i){let a="";try{a=await t.promises.readFile(e,"utf8")}catch{}const o=await s(...i);return a!==o&&(await t.promises.mkdir(r.dirname(e),{recursive:!0}),await t.promises.writeFile(e,o,"utf8"),!0)}async function s(...i){const a=e.createHash("sha512");for(const e of i.sort()){const i=await t.promises.stat(e);if(i.isDirectory()){const i=await t.promises.readdir(e,{withFileTypes:!0,recursive:!0});for(const e of i.sort((e,t)=>e.name.localeCompare(t.name)))e.isFile()&&a.update(await t.promises.readFile(r.join(e.parentPath,e.name),"utf8"))}else i.isFile()&&a.update(await t.promises.readFile(e,"utf8"))}return a.digest("hex")}export{s as calculateHashFromFiles,i as canSkipSeed,a as updateHashFromFiles};
1
+ import e from"node:crypto";import t from"node:fs";import r from"node:path";async function i(e,...t){return!(!Number(process.env.ALLOW_TO_SKIP_SEED)&&"true"!==(process.env.ALLOW_TO_SKIP_SEED??"").toLowerCase()||await o(e,...t))}async function o(e,...i){let o="";try{o=await t.promises.readFile(e,"utf8")}catch{}const s=await a(...i);return o!==s&&(await t.promises.mkdir(r.dirname(e),{recursive:!0}),await t.promises.writeFile(e,s,"utf8"),!0)}async function a(...i){const o=e.createHash("sha512");for(const e of i.toSorted()){const i=await t.promises.stat(e);if(i.isDirectory()){const i=await t.promises.readdir(e,{withFileTypes:!0,recursive:!0});for(const e of i.toSorted((e,t)=>e.name.localeCompare(t.name)))e.isFile()&&o.update(await t.promises.readFile(r.join(e.parentPath,e.name),"utf8"))}else i.isFile()&&o.update(await t.promises.readFile(e,"utf8"))}return o.digest("hex")}export{a as calculateHashFromFiles,i as canSkipSeed,o as updateHashFromFiles};
2
2
  //# sourceMappingURL=hash.js.map
package/dist/hash.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"hash.js","sources":["../src/hash.ts"],"sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\n/**\n * Check whether seed command can be skipped or not and update hash file if needed.\n * Note that process.env.ALLOW_TO_SKIP_SEED should be set to non-zero number or 'true' to skip seed.\n * @param hashFilePath Path to the hash file.\n * @param paths Paths to the files or directories.\n * @returns Whether seed command can be skipped.\n */\nexport async function canSkipSeed(hashFilePath: string, ...paths: string[]): Promise<boolean> {\n return (\n (!!Number(process.env.ALLOW_TO_SKIP_SEED) || (process.env.ALLOW_TO_SKIP_SEED ?? '').toLowerCase() === 'true') &&\n !(await updateHashFromFiles(hashFilePath, ...paths))\n );\n}\n\n/**\n * Update hash file if the hash is different from the current one.\n * @param hashFilePath Path to the hash file.\n * @param paths Paths to the files or directories.\n * @returns Whether the hash file was updated.\n */\nexport async function updateHashFromFiles(hashFilePath: string, ...paths: string[]): Promise<boolean> {\n let oldHash = '';\n try {\n oldHash = await fs.promises.readFile(hashFilePath, 'utf8');\n } catch {\n // do nothing\n }\n const newHash = await calculateHashFromFiles(...paths);\n if (oldHash === newHash) return false;\n\n await fs.promises.mkdir(path.dirname(hashFilePath), { recursive: true });\n await fs.promises.writeFile(hashFilePath, newHash, 'utf8');\n return true;\n}\n\n/**\n * Calculate hash from files.\n * @param paths Paths to the files or directories.\n * @returns Hash string.\n */\nexport async function calculateHashFromFiles(...paths: string[]): Promise<string> {\n const hash = crypto.createHash('sha512');\n for (const fileOrDirPath of paths.sort()) {\n const stat = await fs.promises.stat(fileOrDirPath);\n if (stat.isDirectory()) {\n // Get all files in the directory recursively\n const dirents = await fs.promises.readdir(fileOrDirPath, { withFileTypes: true, recursive: true });\n for (const dirent of dirents.sort((d1, d2) => d1.name.localeCompare(d2.name))) {\n if (dirent.isFile()) {\n // Use parentPath property which is available in Node.js 18.17.0 or later\n hash.update(\n await fs.promises.readFile(\n path.join((dirent as unknown as Record<'parentPath', string>).parentPath, dirent.name),\n 'utf8'\n )\n );\n }\n }\n } else if (stat.isFile()) {\n hash.update(await fs.promises.readFile(fileOrDirPath, 'utf8'));\n }\n }\n return hash.digest('hex');\n}\n"],"names":["async","canSkipSeed","hashFilePath","paths","Number","process","env","ALLOW_TO_SKIP_SEED","toLowerCase","updateHashFromFiles","oldHash","fs","promises","readFile","newHash","calculateHashFromFiles","mkdir","path","dirname","recursive","writeFile","hash","crypto","createHash","fileOrDirPath","sort","stat","isDirectory","dirents","readdir","withFileTypes","dirent","d1","d2","name","localeCompare","isFile","update","join","parentPath","digest"],"mappings":"2EAWOA,eAAeC,EAAYC,KAAyBC,GACzD,SACKC,OAAOC,QAAQC,IAAIC,qBAAgF,UAAxDF,QAAQC,IAAIC,oBAAsB,IAAIC,qBAC5EC,EAAoBP,KAAiBC,GAEjD,CAQOH,eAAeS,EAAoBP,KAAyBC,GACjE,IAAIO,EAAU,GACd,IACEA,QAAgBC,EAAGC,SAASC,SAASX,EAAc,OACrD,CAAE,MACA,CAEF,MAAMY,QAAgBC,KAA0BZ,GAChD,OAAIO,IAAYI,UAEVH,EAAGC,SAASI,MAAMC,EAAKC,QAAQhB,GAAe,CAAEiB,WAAW,UAC3DR,EAAGC,SAASQ,UAAUlB,EAAcY,EAAS,SAC5C,EACT,CAOOd,eAAee,KAA0BZ,GAC9C,MAAMkB,EAAOC,EAAOC,WAAW,UAC/B,IAAK,MAAMC,KAAiBrB,EAAMsB,OAAQ,CACxC,MAAMC,QAAaf,EAAGC,SAASc,KAAKF,GACpC,GAAIE,EAAKC,cAAe,CAEtB,MAAMC,QAAgBjB,EAAGC,SAASiB,QAAQL,EAAe,CAAEM,eAAe,EAAMX,WAAW,IAC3F,IAAK,MAAMY,KAAUH,EAAQH,KAAK,CAACO,EAAIC,IAAOD,EAAGE,KAAKC,cAAcF,EAAGC,OACjEH,EAAOK,UAETf,EAAKgB,aACG1B,EAAGC,SAASC,SAChBI,EAAKqB,KAAMP,EAAmDQ,WAAYR,EAAOG,MACjF,QAKV,MAAWR,EAAKU,UACdf,EAAKgB,aAAa1B,EAAGC,SAASC,SAASW,EAAe,QAE1D,CACA,OAAOH,EAAKmB,OAAO,MACrB"}
1
+ {"version":3,"file":"hash.js","sources":["../src/hash.ts"],"sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\n/**\n * Check whether seed command can be skipped or not and update hash file if needed.\n * Note that process.env.ALLOW_TO_SKIP_SEED should be set to non-zero number or 'true' to skip seed.\n * @param hashFilePath Path to the hash file.\n * @param paths Paths to the files or directories.\n * @returns Whether seed command can be skipped.\n */\nexport async function canSkipSeed(hashFilePath: string, ...paths: string[]): Promise<boolean> {\n return (\n (!!Number(process.env.ALLOW_TO_SKIP_SEED) || (process.env.ALLOW_TO_SKIP_SEED ?? '').toLowerCase() === 'true') &&\n !(await updateHashFromFiles(hashFilePath, ...paths))\n );\n}\n\n/**\n * Update hash file if the hash is different from the current one.\n * @param hashFilePath Path to the hash file.\n * @param paths Paths to the files or directories.\n * @returns Whether the hash file was updated.\n */\nexport async function updateHashFromFiles(hashFilePath: string, ...paths: string[]): Promise<boolean> {\n let oldHash = '';\n try {\n oldHash = await fs.promises.readFile(hashFilePath, 'utf8');\n } catch {\n // do nothing\n }\n const newHash = await calculateHashFromFiles(...paths);\n if (oldHash === newHash) return false;\n\n await fs.promises.mkdir(path.dirname(hashFilePath), { recursive: true });\n await fs.promises.writeFile(hashFilePath, newHash, 'utf8');\n return true;\n}\n\n/**\n * Calculate hash from files.\n * @param paths Paths to the files or directories.\n * @returns Hash string.\n */\nexport async function calculateHashFromFiles(...paths: string[]): Promise<string> {\n const hash = crypto.createHash('sha512');\n for (const fileOrDirPath of paths.toSorted()) {\n const stat = await fs.promises.stat(fileOrDirPath);\n if (stat.isDirectory()) {\n // Get all files in the directory recursively\n const dirents = await fs.promises.readdir(fileOrDirPath, { withFileTypes: true, recursive: true });\n for (const dirent of dirents.toSorted((d1, d2) => d1.name.localeCompare(d2.name))) {\n if (dirent.isFile()) {\n // Use parentPath property which is available in Node.js 18.17.0 or later\n hash.update(\n await fs.promises.readFile(\n path.join((dirent as unknown as Record<'parentPath', string>).parentPath, dirent.name),\n 'utf8'\n )\n );\n }\n }\n } else if (stat.isFile()) {\n hash.update(await fs.promises.readFile(fileOrDirPath, 'utf8'));\n }\n }\n return hash.digest('hex');\n}\n"],"names":["async","canSkipSeed","hashFilePath","paths","Number","process","env","ALLOW_TO_SKIP_SEED","toLowerCase","updateHashFromFiles","oldHash","fs","promises","readFile","newHash","calculateHashFromFiles","mkdir","path","dirname","recursive","writeFile","hash","crypto","createHash","fileOrDirPath","toSorted","stat","isDirectory","dirents","readdir","withFileTypes","dirent","d1","d2","name","localeCompare","isFile","update","join","parentPath","digest"],"mappings":"2EAWOA,eAAeC,EAAYC,KAAyBC,GACzD,SACKC,OAAOC,QAAQC,IAAIC,qBAAgF,UAAxDF,QAAQC,IAAIC,oBAAsB,IAAIC,qBAC5EC,EAAoBP,KAAiBC,GAEjD,CAQOH,eAAeS,EAAoBP,KAAyBC,GACjE,IAAIO,EAAU,GACd,IACEA,QAAgBC,EAAGC,SAASC,SAASX,EAAc,OACrD,CAAE,MACA,CAEF,MAAMY,QAAgBC,KAA0BZ,GAChD,OAAIO,IAAYI,UAEVH,EAAGC,SAASI,MAAMC,EAAKC,QAAQhB,GAAe,CAAEiB,WAAW,UAC3DR,EAAGC,SAASQ,UAAUlB,EAAcY,EAAS,SAC5C,EACT,CAOOd,eAAee,KAA0BZ,GAC9C,MAAMkB,EAAOC,EAAOC,WAAW,UAC/B,IAAK,MAAMC,KAAiBrB,EAAMsB,WAAY,CAC5C,MAAMC,QAAaf,EAAGC,SAASc,KAAKF,GACpC,GAAIE,EAAKC,cAAe,CAEtB,MAAMC,QAAgBjB,EAAGC,SAASiB,QAAQL,EAAe,CAAEM,eAAe,EAAMX,WAAW,IAC3F,IAAK,MAAMY,KAAUH,EAAQH,SAAS,CAACO,EAAIC,IAAOD,EAAGE,KAAKC,cAAcF,EAAGC,OACrEH,EAAOK,UAETf,EAAKgB,aACG1B,EAAGC,SAASC,SAChBI,EAAKqB,KAAMP,EAAmDQ,WAAYR,EAAOG,MACjF,QAKV,MAAWR,EAAKU,UACdf,EAAKgB,aAAa1B,EAAGC,SAASC,SAASW,EAAe,QAE1D,CACA,OAAOH,EAAKmB,OAAO,MACrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/shared-lib-node",
3
- "version": "7.0.6",
3
+ "version": "7.0.8",
4
4
  "license": "Apache-2.0",
5
5
  "author": "WillBooster Inc.",
6
6
  "sideEffects": false,
@@ -38,34 +38,34 @@
38
38
  },
39
39
  "prettier": "@willbooster/prettier-config",
40
40
  "dependencies": {
41
- "dotenv": "17.2.2",
41
+ "dotenv": "17.2.3",
42
42
  "tree-kill": "1.2.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@types/bun": "1.2.21",
45
+ "@types/bun": "1.2.23",
46
46
  "@types/eslint": "9.6.1",
47
47
  "@types/micromatch": "4.0.9",
48
- "@types/node": "24.3.3",
49
- "@willbooster/eslint-config-ts": "11.4.6",
48
+ "@types/node": "24.7.0",
49
+ "@willbooster/eslint-config-ts": "11.4.7",
50
50
  "@willbooster/prettier-config": "10.2.0",
51
- "build-ts": "16.0.3",
52
- "eslint": "9.33.0",
51
+ "build-ts": "16.0.8",
52
+ "eslint": "9.37.0",
53
53
  "eslint-config-flat-gitignore": "2.1.0",
54
54
  "eslint-config-prettier": "10.1.8",
55
55
  "eslint-import-resolver-typescript": "4.4.4",
56
56
  "eslint-plugin-import-x": "4.16.1",
57
57
  "eslint-plugin-sort-class-members": "1.21.0",
58
58
  "eslint-plugin-sort-destructure-keys": "2.0.0",
59
- "eslint-plugin-unicorn": "60.0.0",
59
+ "eslint-plugin-unicorn": "61.0.2",
60
60
  "eslint-plugin-unused-imports": "4.2.0",
61
61
  "globals": "16.4.0",
62
- "lint-staged": "16.1.6",
62
+ "lint-staged": "16.2.3",
63
63
  "micromatch": "4.0.8",
64
64
  "prettier": "3.6.2",
65
65
  "prettier-plugin-java": "2.7.5",
66
66
  "sort-package-json": "3.4.0",
67
- "typescript": "5.9.2",
68
- "typescript-eslint": "8.43.0",
67
+ "typescript": "5.9.3",
68
+ "typescript-eslint": "8.45.0",
69
69
  "vitest": "3.2.4"
70
70
  },
71
71
  "publishConfig": {