vivth 1.3.6 → 1.3.7
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/README.md +1 -1
- package/package.json +1 -1
- package/src/class/FileSafe.mjs +1 -1
- package/types/src/class/FileSafe.d.mts +1 -1
package/README.md
CHANGED
|
@@ -1130,7 +1130,7 @@ eventSignal_instance.remove.ref();
|
|
|
1130
1130
|
import { join } from "node:path";
|
|
1131
1131
|
import { FileSafe, Paths } from "vivth";
|
|
1132
1132
|
|
|
1133
|
-
const [, error] = await FileSafe.
|
|
1133
|
+
const [, error] = await FileSafe.exist(join(Paths.root, "/some/path.mjs"));
|
|
1134
1134
|
if (!error) {
|
|
1135
1135
|
// file exists
|
|
1136
1136
|
} else {
|
package/package.json
CHANGED
package/src/class/FileSafe.mjs
CHANGED
|
@@ -22,7 +22,7 @@ export class FileSafe {
|
|
|
22
22
|
* import { join } from 'node:path';
|
|
23
23
|
* import { FileSafe, Paths } from 'vivth';
|
|
24
24
|
*
|
|
25
|
-
* const [, error] = await FileSafe.
|
|
25
|
+
* const [, error] = await FileSafe.exist(
|
|
26
26
|
* join(Paths.root, '/some/path.mjs'),
|
|
27
27
|
* );
|
|
28
28
|
* if (!error) {
|
|
@@ -14,7 +14,7 @@ export class FileSafe {
|
|
|
14
14
|
* import { join } from 'node:path';
|
|
15
15
|
* import { FileSafe, Paths } from 'vivth';
|
|
16
16
|
*
|
|
17
|
-
* const [, error] = await FileSafe.
|
|
17
|
+
* const [, error] = await FileSafe.exist(
|
|
18
18
|
* join(Paths.root, '/some/path.mjs'),
|
|
19
19
|
* );
|
|
20
20
|
* if (!error) {
|