vivth 1.3.4 → 1.3.5
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 +3 -3
- package/src/class/FileSafe.mjs +1 -1
- package/types/src/class/FileSafe.d.mts +2 -2
package/README.md
CHANGED
|
@@ -1144,7 +1144,7 @@ const [, errorWrite] = await FileSafe.write(
|
|
|
1144
1144
|
/**
|
|
1145
1145
|
* @param {Parameters<typeof copyFile>[0]} sourceFile
|
|
1146
1146
|
* @param {Parameters<typeof copyFile>[1]} destinationFile
|
|
1147
|
-
* @param {Parameters<typeof copyFile>[2]} mode
|
|
1147
|
+
* @param {Parameters<typeof copyFile>[2]} [mode]
|
|
1148
1148
|
* @returns {ReturnType<typeof TryAsync<void>>}
|
|
1149
1149
|
*/
|
|
1150
1150
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vivth",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "library primitives",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"types": "./types/index.d.mts",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/hakimjazuli/vivth#readme",
|
|
38
38
|
"scripts": {
|
|
39
|
-
"dev-wo": "concurrently 'bun ./dev/
|
|
40
|
-
"dev": "concurrently 'bun --watch ./dev/
|
|
39
|
+
"dev-wo": "concurrently 'bun ./dev/auto-doc.mjs' 'bun tsc --watch'",
|
|
40
|
+
"dev": "concurrently 'bun --watch ./dev/auto-doc.mjs' 'bun tsc --watch'"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false
|
|
43
43
|
}
|
package/src/class/FileSafe.mjs
CHANGED
|
@@ -71,7 +71,7 @@ export class FileSafe {
|
|
|
71
71
|
* - also returning promise of result & error as value;
|
|
72
72
|
* @param {Parameters<typeof copyFile>[0]} sourceFile
|
|
73
73
|
* @param {Parameters<typeof copyFile>[1]} destinationFile
|
|
74
|
-
* @param {Parameters<typeof copyFile>[2]} mode
|
|
74
|
+
* @param {Parameters<typeof copyFile>[2]} [mode]
|
|
75
75
|
* @returns {ReturnType<typeof TryAsync<void>>}
|
|
76
76
|
* @example
|
|
77
77
|
* import { join } from 'node:path';
|
|
@@ -49,7 +49,7 @@ export class FileSafe {
|
|
|
49
49
|
* - also returning promise of result & error as value;
|
|
50
50
|
* @param {Parameters<typeof copyFile>[0]} sourceFile
|
|
51
51
|
* @param {Parameters<typeof copyFile>[1]} destinationFile
|
|
52
|
-
* @param {Parameters<typeof copyFile>[2]} mode
|
|
52
|
+
* @param {Parameters<typeof copyFile>[2]} [mode]
|
|
53
53
|
* @returns {ReturnType<typeof TryAsync<void>>}
|
|
54
54
|
* @example
|
|
55
55
|
* import { join } from 'node:path';
|
|
@@ -61,7 +61,7 @@ export class FileSafe {
|
|
|
61
61
|
* { encoding: 'utf-8' }
|
|
62
62
|
* );
|
|
63
63
|
*/
|
|
64
|
-
static copy: (sourceFile: Parameters<typeof copyFile>[0], destinationFile: Parameters<typeof copyFile>[1], mode
|
|
64
|
+
static copy: (sourceFile: Parameters<typeof copyFile>[0], destinationFile: Parameters<typeof copyFile>[1], mode?: Parameters<typeof copyFile>[2]) => ReturnType<typeof TryAsync<void>>;
|
|
65
65
|
/**
|
|
66
66
|
* @description
|
|
67
67
|
* - method to rename file/dir safely by recursively mkdir the dirname of the dest;
|