@willbooster/shared-lib-node 1.4.0 → 1.5.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.
@@ -0,0 +1,2 @@
1
+ "use strict";var s=require("node:fs");exports.existsAsync=function(e){return new Promise((n=>{s.access(e,s.constants.F_OK,(s=>{n(!s)}))}))};
2
+ //# sourceMappingURL=exists.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exists.cjs","sources":["../../src/exists.ts"],"sourcesContent":["import fs from 'node:fs';\n\nexport function existsAsync(filePath: string): Promise<boolean> {\n return new Promise((resolve) => {\n fs.access(filePath, fs.constants.F_OK, (err) => {\n resolve(!err);\n });\n });\n}\n"],"names":["filePath","Promise","resolve","fs","access","constants","F_OK","err"],"mappings":"0DAEO,SAAqBA,GAC1B,OAAO,IAAIC,SAASC,IAClBC,EAAGC,OAAOJ,EAAUG,EAAGE,UAAUC,MAAOC,IACtCL,GAASK,EAAI,GACb,GAEN"}
@@ -0,0 +1,2 @@
1
+ declare function existsAsync(filePath: string): Promise<boolean>;
2
+ export { existsAsync };
@@ -1,2 +1,2 @@
1
- "use strict";var s=require("./spawn.cjs");exports.spawnAsync=s.spawnAsync;
1
+ "use strict";var s=require("./exists.cjs"),e=require("./spawn.cjs");exports.existsAsync=s.existsAsync,exports.spawnAsync=e.spawnAsync;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1,2 @@
1
+ export { existsAsync } from "./exists.js";
1
2
  export { spawnAsync } from "./spawn.js";
@@ -0,0 +1,2 @@
1
+ declare function existsAsync(filePath: string): Promise<boolean>;
2
+ export { existsAsync };
@@ -0,0 +1,2 @@
1
+ import n from"node:fs";function o(o){return new Promise((e=>{n.access(o,n.constants.F_OK,(n=>{e(!n)}))}))}export{o as existsAsync};
2
+ //# sourceMappingURL=exists.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exists.js","sources":["../../src/exists.ts"],"sourcesContent":["import fs from 'node:fs';\n\nexport function existsAsync(filePath: string): Promise<boolean> {\n return new Promise((resolve) => {\n fs.access(filePath, fs.constants.F_OK, (err) => {\n resolve(!err);\n });\n });\n}\n"],"names":["existsAsync","filePath","Promise","resolve","fs","access","constants","F_OK","err"],"mappings":"uBAEO,SAASA,EAAYC,GAC1B,OAAO,IAAIC,SAASC,IAClBC,EAAGC,OAAOJ,EAAUG,EAAGE,UAAUC,MAAOC,IACtCL,GAASK,EAAI,GACb,GAEN"}
@@ -1 +1,2 @@
1
+ export { existsAsync } from "./exists.js";
1
2
  export { spawnAsync } from "./spawn.js";
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{spawnAsync}from"./spawn.js";
1
+ export{existsAsync}from"./exists.js";export{spawnAsync}from"./spawn.js";
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/shared-lib-node",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "WillBooster Inc.",
6
6
  "sideEffects": false,