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 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.write(join(Paths.root, "/some/path.mjs"));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vivth",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "library primitives",
5
5
  "main": "index.mjs",
6
6
  "types": "./types/index.d.mts",
@@ -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.write(
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.write(
17
+ * const [, error] = await FileSafe.exist(
18
18
  * join(Paths.root, '/some/path.mjs'),
19
19
  * );
20
20
  * if (!error) {