@magic/fs 0.0.36 → 0.0.38
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 +10 -1
- package/package.json +14 -12
- package/types/fs.d.ts +3 -3
- package/types/index.d.ts +105 -105
package/README.md
CHANGED
|
@@ -334,7 +334,16 @@ update dependencies
|
|
|
334
334
|
|
|
335
335
|
- getFiles: options.root can be undefined, leading to correct depth calculations
|
|
336
336
|
|
|
337
|
-
##### 0.0.37
|
|
337
|
+
##### 0.0.37
|
|
338
|
+
|
|
339
|
+
- update dependencies
|
|
340
|
+
|
|
341
|
+
##### 0.0.38
|
|
342
|
+
|
|
343
|
+
- update types
|
|
344
|
+
- update dependencies
|
|
345
|
+
|
|
346
|
+
##### 0.0.39 - unreleased
|
|
338
347
|
|
|
339
348
|
...
|
|
340
349
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic/fs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"author": "Wizards & Witches",
|
|
5
5
|
"description": "nodejs fs promises + goodies",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"prod": "NODE_ENV=production magic build serve",
|
|
22
22
|
"clean": "magic clean",
|
|
23
23
|
"serve": "magic serve",
|
|
24
|
-
"dev": "magic dev"
|
|
24
|
+
"dev": "magic dev",
|
|
25
|
+
"tsc": "tsc --noEmit",
|
|
26
|
+
"check": "npm run tsc"
|
|
25
27
|
},
|
|
26
28
|
"engines": {
|
|
27
29
|
"node": ">=14.15.4"
|
|
@@ -40,18 +42,18 @@
|
|
|
40
42
|
"@magic-modules/no-spy": "0.0.9",
|
|
41
43
|
"@magic-modules/pre": "0.0.12",
|
|
42
44
|
"@magic-themes/docs": "0.0.15",
|
|
43
|
-
"@magic/core": "0.0.
|
|
44
|
-
"@magic/format": "0.0.
|
|
45
|
-
"@magic/test": "0.
|
|
46
|
-
"@types/node": "
|
|
47
|
-
"typescript": "
|
|
45
|
+
"@magic/core": "0.0.158",
|
|
46
|
+
"@magic/format": "0.0.73",
|
|
47
|
+
"@magic/test": "0.3.12",
|
|
48
|
+
"@types/node": "25.9.2",
|
|
49
|
+
"typescript": "6.0.3"
|
|
48
50
|
},
|
|
49
51
|
"dependencies": {
|
|
50
|
-
"@magic/deep": "0.1.
|
|
51
|
-
"@magic/error": "0.0.
|
|
52
|
-
"@magic/log": "0.1.
|
|
53
|
-
"@magic/mime-types": "0.0.
|
|
54
|
-
"@magic/types": "0.1.
|
|
52
|
+
"@magic/deep": "0.1.21",
|
|
53
|
+
"@magic/error": "0.0.23",
|
|
54
|
+
"@magic/log": "0.1.22",
|
|
55
|
+
"@magic/mime-types": "0.0.23",
|
|
56
|
+
"@magic/types": "0.1.37"
|
|
55
57
|
},
|
|
56
58
|
"files": [
|
|
57
59
|
"src",
|
package/types/fs.d.ts
CHANGED
|
@@ -49,9 +49,11 @@ export const fs: {
|
|
|
49
49
|
readonly fchmod: typeof fso.fchmod
|
|
50
50
|
readonly fchmodSync: typeof fso.fchmodSync
|
|
51
51
|
readonly lchmodSync: typeof fso.lchmodSync
|
|
52
|
+
readonly statSync: typeof fso.statSync
|
|
52
53
|
readonly fstat: typeof fso.fstat
|
|
53
54
|
readonly fstatSync: typeof fso.fstatSync
|
|
54
55
|
readonly statfsSync: typeof fso.statfsSync
|
|
56
|
+
readonly lstatSync: typeof fso.lstatSync
|
|
55
57
|
readonly linkSync: typeof fso.linkSync
|
|
56
58
|
readonly symlinkSync: typeof fso.symlinkSync
|
|
57
59
|
readonly readlinkSync: typeof fso.readlinkSync
|
|
@@ -95,7 +97,6 @@ export const fs: {
|
|
|
95
97
|
readonly opendirSync: typeof fso.opendirSync
|
|
96
98
|
readonly cpSync: typeof fso.cpSync
|
|
97
99
|
readonly globSync: typeof fso.globSync
|
|
98
|
-
readonly promises: typeof fso.promises
|
|
99
100
|
readonly Stats: typeof fso.Stats
|
|
100
101
|
readonly StatsFs: typeof fso.StatsFs
|
|
101
102
|
readonly Dirent: typeof fso.Dirent
|
|
@@ -103,7 +104,6 @@ export const fs: {
|
|
|
103
104
|
readonly ReadStream: typeof fso.ReadStream
|
|
104
105
|
readonly Utf8Stream: typeof fso.Utf8Stream
|
|
105
106
|
readonly WriteStream: typeof fso.WriteStream
|
|
106
|
-
readonly
|
|
107
|
-
readonly lstatSync: fso.StatSyncFn
|
|
107
|
+
readonly promises: typeof fso.promises
|
|
108
108
|
}
|
|
109
109
|
import fso from 'node:fs'
|
package/types/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export const fs: {
|
|
|
33
33
|
root?: string
|
|
34
34
|
},
|
|
35
35
|
) => Promise<string[]>
|
|
36
|
-
readonly exists: (f: import('fs').PathLike) => Promise<boolean>
|
|
36
|
+
readonly exists: (f: import('node:fs').PathLike) => Promise<boolean>
|
|
37
37
|
readonly getContentType: (uri: string) => string
|
|
38
38
|
readonly getFilePath: (
|
|
39
39
|
fn:
|
|
@@ -76,110 +76,110 @@ export const fs: {
|
|
|
76
76
|
root?: string
|
|
77
77
|
},
|
|
78
78
|
) => Promise<string | string[] | undefined>
|
|
79
|
-
readonly readdir: typeof import('fs/promises').readdir
|
|
80
|
-
readonly readDir: typeof import('fs/promises').readdir
|
|
81
|
-
readonly readFile: typeof import('fs/promises').readFile
|
|
82
|
-
readonly readfile: typeof import('fs/promises').readFile
|
|
83
|
-
readonly rmdir: typeof import('fs/promises').rmdir
|
|
84
|
-
readonly rmDir: typeof import('fs/promises').rmdir
|
|
85
|
-
readonly watch: typeof import('fs').watch
|
|
86
|
-
readonly access: typeof import('fs/promises').access
|
|
87
|
-
readonly copyFile: typeof import('fs/promises').copyFile
|
|
88
|
-
readonly open: typeof import('fs/promises').open
|
|
89
|
-
readonly rename: typeof import('fs/promises').rename
|
|
90
|
-
readonly truncate: typeof import('fs/promises').truncate
|
|
91
|
-
readonly rm: typeof import('fs/promises').rm
|
|
92
|
-
readonly mkdir: typeof import('fs/promises').mkdir
|
|
93
|
-
readonly readlink: typeof import('fs/promises').readlink
|
|
94
|
-
readonly symlink: typeof import('fs/promises').symlink
|
|
95
|
-
readonly lstat: typeof import('fs/promises').lstat
|
|
96
|
-
readonly stat: typeof import('fs/promises').stat
|
|
97
|
-
readonly statfs: typeof import('fs/promises').statfs
|
|
98
|
-
readonly link: typeof import('fs/promises').link
|
|
99
|
-
readonly unlink: typeof import('fs/promises').unlink
|
|
100
|
-
readonly chmod: typeof import('fs/promises').chmod
|
|
101
|
-
readonly lchmod: typeof import('fs/promises').lchmod
|
|
102
|
-
readonly lchown: typeof import('fs/promises').lchown
|
|
103
|
-
readonly lutimes: typeof import('fs/promises').lutimes
|
|
104
|
-
readonly chown: typeof import('fs/promises').chown
|
|
105
|
-
readonly utimes: typeof import('fs/promises').utimes
|
|
106
|
-
readonly realpath: typeof import('fs/promises').realpath
|
|
107
|
-
readonly mkdtemp: typeof import('fs/promises').mkdtemp
|
|
108
|
-
readonly mkdtempDisposable: typeof import('fs/promises').mkdtempDisposable
|
|
109
|
-
readonly writeFile: typeof import('fs/promises').writeFile
|
|
110
|
-
readonly appendFile: typeof import('fs/promises').appendFile
|
|
111
|
-
readonly opendir: typeof import('fs/promises').opendir
|
|
112
|
-
readonly cp: typeof import('fs/promises').cp
|
|
113
|
-
readonly glob: typeof import('fs/promises').glob
|
|
114
|
-
readonly constants: typeof import('fs').constants
|
|
115
|
-
readonly renameSync: typeof import('fs').renameSync
|
|
116
|
-
readonly truncateSync: typeof import('fs').truncateSync
|
|
117
|
-
readonly ftruncate: typeof import('fs').ftruncate
|
|
118
|
-
readonly ftruncateSync: typeof import('fs').ftruncateSync
|
|
119
|
-
readonly chownSync: typeof import('fs').chownSync
|
|
120
|
-
readonly fchown: typeof import('fs').fchown
|
|
121
|
-
readonly fchownSync: typeof import('fs').fchownSync
|
|
122
|
-
readonly lchownSync: typeof import('fs').lchownSync
|
|
123
|
-
readonly lutimesSync: typeof import('fs').lutimesSync
|
|
124
|
-
readonly chmodSync: typeof import('fs').chmodSync
|
|
125
|
-
readonly fchmod: typeof import('fs').fchmod
|
|
126
|
-
readonly fchmodSync: typeof import('fs').fchmodSync
|
|
127
|
-
readonly lchmodSync: typeof import('fs').lchmodSync
|
|
128
|
-
readonly
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
135
|
-
readonly
|
|
136
|
-
readonly
|
|
137
|
-
readonly
|
|
138
|
-
readonly
|
|
139
|
-
readonly
|
|
140
|
-
readonly
|
|
141
|
-
readonly
|
|
142
|
-
readonly
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
145
|
-
readonly
|
|
146
|
-
readonly
|
|
147
|
-
readonly
|
|
148
|
-
readonly
|
|
149
|
-
readonly
|
|
150
|
-
readonly
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
readonly
|
|
155
|
-
readonly
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
readonly
|
|
170
|
-
readonly
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
79
|
+
readonly readdir: typeof import('node:fs/promises').readdir
|
|
80
|
+
readonly readDir: typeof import('node:fs/promises').readdir
|
|
81
|
+
readonly readFile: typeof import('node:fs/promises').readFile
|
|
82
|
+
readonly readfile: typeof import('node:fs/promises').readFile
|
|
83
|
+
readonly rmdir: typeof import('node:fs/promises').rmdir
|
|
84
|
+
readonly rmDir: typeof import('node:fs/promises').rmdir
|
|
85
|
+
readonly watch: typeof import('node:fs').watch
|
|
86
|
+
readonly access: typeof import('node:fs/promises').access
|
|
87
|
+
readonly copyFile: typeof import('node:fs/promises').copyFile
|
|
88
|
+
readonly open: typeof import('node:fs/promises').open
|
|
89
|
+
readonly rename: typeof import('node:fs/promises').rename
|
|
90
|
+
readonly truncate: typeof import('node:fs/promises').truncate
|
|
91
|
+
readonly rm: typeof import('node:fs/promises').rm
|
|
92
|
+
readonly mkdir: typeof import('node:fs/promises').mkdir
|
|
93
|
+
readonly readlink: typeof import('node:fs/promises').readlink
|
|
94
|
+
readonly symlink: typeof import('node:fs/promises').symlink
|
|
95
|
+
readonly lstat: typeof import('node:fs/promises').lstat
|
|
96
|
+
readonly stat: typeof import('node:fs/promises').stat
|
|
97
|
+
readonly statfs: typeof import('node:fs/promises').statfs
|
|
98
|
+
readonly link: typeof import('node:fs/promises').link
|
|
99
|
+
readonly unlink: typeof import('node:fs/promises').unlink
|
|
100
|
+
readonly chmod: typeof import('node:fs/promises').chmod
|
|
101
|
+
readonly lchmod: typeof import('node:fs/promises').lchmod
|
|
102
|
+
readonly lchown: typeof import('node:fs/promises').lchown
|
|
103
|
+
readonly lutimes: typeof import('node:fs/promises').lutimes
|
|
104
|
+
readonly chown: typeof import('node:fs/promises').chown
|
|
105
|
+
readonly utimes: typeof import('node:fs/promises').utimes
|
|
106
|
+
readonly realpath: typeof import('node:fs/promises').realpath
|
|
107
|
+
readonly mkdtemp: typeof import('node:fs/promises').mkdtemp
|
|
108
|
+
readonly mkdtempDisposable: typeof import('node:fs/promises').mkdtempDisposable
|
|
109
|
+
readonly writeFile: typeof import('node:fs/promises').writeFile
|
|
110
|
+
readonly appendFile: typeof import('node:fs/promises').appendFile
|
|
111
|
+
readonly opendir: typeof import('node:fs/promises').opendir
|
|
112
|
+
readonly cp: typeof import('node:fs/promises').cp
|
|
113
|
+
readonly glob: typeof import('node:fs/promises').glob
|
|
114
|
+
readonly constants: typeof import('node:fs').constants
|
|
115
|
+
readonly renameSync: typeof import('node:fs').renameSync
|
|
116
|
+
readonly truncateSync: typeof import('node:fs').truncateSync
|
|
117
|
+
readonly ftruncate: typeof import('node:fs').ftruncate
|
|
118
|
+
readonly ftruncateSync: typeof import('node:fs').ftruncateSync
|
|
119
|
+
readonly chownSync: typeof import('node:fs').chownSync
|
|
120
|
+
readonly fchown: typeof import('node:fs').fchown
|
|
121
|
+
readonly fchownSync: typeof import('node:fs').fchownSync
|
|
122
|
+
readonly lchownSync: typeof import('node:fs').lchownSync
|
|
123
|
+
readonly lutimesSync: typeof import('node:fs').lutimesSync
|
|
124
|
+
readonly chmodSync: typeof import('node:fs').chmodSync
|
|
125
|
+
readonly fchmod: typeof import('node:fs').fchmod
|
|
126
|
+
readonly fchmodSync: typeof import('node:fs').fchmodSync
|
|
127
|
+
readonly lchmodSync: typeof import('node:fs').lchmodSync
|
|
128
|
+
readonly statSync: typeof import('node:fs').statSync
|
|
129
|
+
readonly fstat: typeof import('node:fs').fstat
|
|
130
|
+
readonly fstatSync: typeof import('node:fs').fstatSync
|
|
131
|
+
readonly statfsSync: typeof import('node:fs').statfsSync
|
|
132
|
+
readonly lstatSync: typeof import('node:fs').lstatSync
|
|
133
|
+
readonly linkSync: typeof import('node:fs').linkSync
|
|
134
|
+
readonly symlinkSync: typeof import('node:fs').symlinkSync
|
|
135
|
+
readonly readlinkSync: typeof import('node:fs').readlinkSync
|
|
136
|
+
readonly realpathSync: typeof import('node:fs').realpathSync
|
|
137
|
+
readonly unlinkSync: typeof import('node:fs').unlinkSync
|
|
138
|
+
readonly rmdirSync: typeof import('node:fs').rmdirSync
|
|
139
|
+
readonly rmSync: typeof import('node:fs').rmSync
|
|
140
|
+
readonly mkdirSync: typeof import('node:fs').mkdirSync
|
|
141
|
+
readonly mkdtempSync: typeof import('node:fs').mkdtempSync
|
|
142
|
+
readonly mkdtempDisposableSync: typeof import('node:fs').mkdtempDisposableSync
|
|
143
|
+
readonly readdirSync: typeof import('node:fs').readdirSync
|
|
144
|
+
readonly close: typeof import('node:fs').close
|
|
145
|
+
readonly closeSync: typeof import('node:fs').closeSync
|
|
146
|
+
readonly openSync: typeof import('node:fs').openSync
|
|
147
|
+
readonly utimesSync: typeof import('node:fs').utimesSync
|
|
148
|
+
readonly futimes: typeof import('node:fs').futimes
|
|
149
|
+
readonly futimesSync: typeof import('node:fs').futimesSync
|
|
150
|
+
readonly fsync: typeof import('node:fs').fsync
|
|
151
|
+
readonly fsyncSync: typeof import('node:fs').fsyncSync
|
|
152
|
+
readonly write: typeof import('node:fs').write
|
|
153
|
+
readonly writeSync: typeof import('node:fs').writeSync
|
|
154
|
+
readonly read: typeof import('node:fs').read
|
|
155
|
+
readonly readSync: typeof import('node:fs').readSync
|
|
156
|
+
readonly readFileSync: typeof import('node:fs').readFileSync
|
|
157
|
+
readonly writeFileSync: typeof import('node:fs').writeFileSync
|
|
158
|
+
readonly appendFileSync: typeof import('node:fs').appendFileSync
|
|
159
|
+
readonly watchFile: typeof import('node:fs').watchFile
|
|
160
|
+
readonly unwatchFile: typeof import('node:fs').unwatchFile
|
|
161
|
+
readonly existsSync: typeof import('node:fs').existsSync
|
|
162
|
+
readonly accessSync: typeof import('node:fs').accessSync
|
|
163
|
+
readonly createReadStream: typeof import('node:fs').createReadStream
|
|
164
|
+
readonly createWriteStream: typeof import('node:fs').createWriteStream
|
|
165
|
+
readonly fdatasync: typeof import('node:fs').fdatasync
|
|
166
|
+
readonly fdatasyncSync: typeof import('node:fs').fdatasyncSync
|
|
167
|
+
readonly copyFileSync: typeof import('node:fs').copyFileSync
|
|
168
|
+
readonly writev: typeof import('node:fs').writev
|
|
169
|
+
readonly writevSync: typeof import('node:fs').writevSync
|
|
170
|
+
readonly readv: typeof import('node:fs').readv
|
|
171
|
+
readonly readvSync: typeof import('node:fs').readvSync
|
|
172
|
+
readonly openAsBlob: typeof import('node:fs').openAsBlob
|
|
173
|
+
readonly opendirSync: typeof import('node:fs').opendirSync
|
|
174
|
+
readonly cpSync: typeof import('node:fs').cpSync
|
|
175
|
+
readonly globSync: typeof import('node:fs').globSync
|
|
176
|
+
readonly Stats: typeof import('node:fs').Stats
|
|
177
|
+
readonly StatsFs: typeof import('node:fs').StatsFs
|
|
178
|
+
readonly Dirent: typeof import('node:fs').Dirent
|
|
179
|
+
readonly Dir: typeof import('node:fs').Dir
|
|
180
|
+
readonly ReadStream: typeof import('node:fs').ReadStream
|
|
181
|
+
readonly Utf8Stream: typeof import('node:fs').Utf8Stream
|
|
182
|
+
readonly WriteStream: typeof import('node:fs').WriteStream
|
|
174
183
|
readonly promises: typeof import('node:fs/promises')
|
|
175
|
-
readonly Stats: typeof import('fs').Stats
|
|
176
|
-
readonly StatsFs: typeof import('fs').StatsFs
|
|
177
|
-
readonly Dirent: typeof import('fs').Dirent
|
|
178
|
-
readonly Dir: typeof import('fs').Dir
|
|
179
|
-
readonly ReadStream: typeof import('fs').ReadStream
|
|
180
|
-
readonly Utf8Stream: typeof import('fs').Utf8Stream
|
|
181
|
-
readonly WriteStream: typeof import('fs').WriteStream
|
|
182
|
-
readonly statSync: import('fs').StatSyncFn
|
|
183
|
-
readonly lstatSync: import('fs').StatSyncFn
|
|
184
184
|
}
|
|
185
185
|
export default fs
|