@visulima/fs 2.1.18 → 2.2.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## @visulima/fs [2.2.1](https://github.com/visulima/visulima/compare/@visulima/fs@2.2.0...@visulima/fs@2.2.1) (2024-10-05)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **fs:** fixed typing of findUp and findUpSync when a function is used, export new result types ([08c322a](https://github.com/visulima/visulima/commit/08c322a12270b65766cd4cef7c30c3b8dee88475))
6
+ * updated dev dependencies, updated packem to v1.0.7, fixed naming of some lint config files ([c071a9c](https://github.com/visulima/visulima/commit/c071a9c8e129014a962ff654a16f302ca18a5c67))
7
+
8
+
9
+ ### Dependencies
10
+
11
+ * **@visulima/path:** upgraded to 1.1.0
12
+ * **@visulima/error:** upgraded to 4.4.6
13
+
14
+ ## @visulima/fs [2.2.0](https://github.com/visulima/visulima/compare/@visulima/fs@2.1.18...@visulima/fs@2.2.0) (2024-09-29)
15
+
16
+ ### Features
17
+
18
+ * **fs:** added allowSymlinks to findUp and findUpSync ([1ef8c03](https://github.com/visulima/visulima/commit/1ef8c039e4e7b054177d25f74b98b56d79f2d27b))
19
+
1
20
  ## @visulima/fs [2.1.18](https://github.com/visulima/visulima/compare/@visulima/fs@2.1.17...@visulima/fs@2.1.18) (2024-09-24)
2
21
 
3
22
  ### Bug Fixes
package/LICENSE.md CHANGED
@@ -23,17 +23,14 @@ SOFTWARE.
23
23
  <!-- DEPENDENCIES -->
24
24
 
25
25
  # Licenses of bundled dependencies
26
-
27
26
  The published @visulima/fs artifact additionally contains code with the following licenses:
28
27
  MIT
29
28
 
30
29
  # Bundled dependencies:
31
-
32
30
  ## @visulima/error
33
-
34
31
  License: MIT
35
32
  By: Daniel Bannert
36
- Repository: https://github.com/visulima/visulima.git
33
+ Repository: git+https://github.com/visulima/visulima.git
37
34
 
38
35
  > MIT License
39
36
  >
@@ -57,108 +54,7 @@ Repository: https://github.com/visulima/visulima.git
57
54
  > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
58
55
  > SOFTWARE.
59
56
  >
60
- > # Licenses of bundled dependencies
61
- >
62
- > The published @visulima/error artifact additionally contains code with the following licenses:
63
- > MIT
64
- >
65
- > # Bundled dependencies:
66
- >
67
- > ## is-plain-obj
68
- >
69
- > License: MIT
70
- > By: Sindre Sorhus
71
- > Repository: sindresorhus/is-plain-obj
72
- >
73
- > > MIT License
74
- > >
75
- > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
76
- > >
77
- > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
78
- > >
79
- > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
80
- > >
81
- > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
82
-
83
- ---
84
-
85
- ## detect-indent
86
-
87
- License: MIT
88
- By: Sindre Sorhus
89
- Repository: sindresorhus/detect-indent
90
-
91
- > MIT License
92
- >
93
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
94
- >
95
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
96
- >
97
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
98
- >
99
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
100
-
101
- <!-- DEPENDENCIES -->
102
-
103
- > # Licenses of bundled dependencies
104
- >
105
- > The published @visulima/error artifact additionally contains code with the following licenses:
106
- > MIT
107
- >
108
- > # Bundled dependencies:
109
- >
110
- > ## is-plain-obj
111
- >
112
- > License: MIT
113
- > By: Sindre Sorhus
114
- > Repository: sindresorhus/is-plain-obj
115
- >
116
- > > MIT License
117
- > >
118
- > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
119
- > >
120
- > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
121
- > >
122
- > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
123
- > >
124
- > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
125
- >
126
- > <!-- DEPENDENCIES -->
127
-
128
- # Licenses of bundled dependencies
129
-
130
- The published @visulima/fs artifact additionally contains code with the following licenses:
131
- MIT
132
-
133
- # Bundled dependencies:
134
-
135
- ## @visulima/error
136
-
137
- License: MIT
138
- By: Daniel Bannert
139
- Repository: https://github.com/visulima/visulima.git
140
-
141
- > MIT License
142
- >
143
- > Copyright (c) 2024 visulima
144
- >
145
- > Permission is hereby granted, free of charge, to any person obtaining a copy
146
- > of this software and associated documentation files (the "Software"), to deal
147
- > in the Software without restriction, including without limitation the rights
148
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
149
- > copies of the Software, and to permit persons to whom the Software is
150
- > furnished to do so, subject to the following conditions:
151
57
  >
152
- > The above copyright notice and this permission notice shall be included in all
153
- > copies or substantial portions of the Software.
154
- >
155
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
156
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
157
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
158
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
159
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
160
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
161
- > SOFTWARE.
162
58
  >
163
59
  > # Licenses of bundled dependencies
164
60
  >
@@ -183,10 +79,9 @@ Repository: https://github.com/visulima/visulima.git
183
79
  > >
184
80
  > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
185
81
 
186
- ---
82
+ ---------------------------------------
187
83
 
188
84
  ## detect-indent
189
-
190
85
  License: MIT
191
86
  By: Sindre Sorhus
192
87
  Repository: sindresorhus/detect-indent
@@ -201,227 +96,18 @@ Repository: sindresorhus/detect-indent
201
96
  >
202
97
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
203
98
 
204
- <!-- DEPENDENCIES -->
205
-
206
- > # Licenses of bundled dependencies
207
- >
208
- > The published @visulima/error artifact additionally contains code with the following licenses:
209
- > MIT
210
- >
211
- > # Bundled dependencies:
212
- >
213
- > ## is-plain-obj
214
- >
215
- > License: MIT
216
- > By: Sindre Sorhus
217
- > Repository: sindresorhus/is-plain-obj
218
- >
219
- > > MIT License
220
- > >
221
- > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
222
- > >
223
- > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
224
- > >
225
- > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
226
- > >
227
- > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
228
- >
229
- > <!-- DEPENDENCIES -->
230
-
231
- # Licenses of bundled dependencies
232
-
233
- The published @visulima/fs artifact additionally contains code with the following licenses:
234
- MIT
235
-
236
- # Bundled dependencies:
237
-
238
- ## @visulima/error
239
-
240
- License: MIT
241
- By: Daniel Bannert
242
- Repository: https://github.com/visulima/visulima.git
243
-
244
- > MIT License
245
- >
246
- > Copyright (c) 2024 visulima
247
- >
248
- > Permission is hereby granted, free of charge, to any person obtaining a copy
249
- > of this software and associated documentation files (the "Software"), to deal
250
- > in the Software without restriction, including without limitation the rights
251
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
252
- > copies of the Software, and to permit persons to whom the Software is
253
- > furnished to do so, subject to the following conditions:
254
- >
255
- > The above copyright notice and this permission notice shall be included in all
256
- > copies or substantial portions of the Software.
257
- >
258
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
259
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
260
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
261
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
262
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
263
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
264
- > SOFTWARE.
265
- >
266
- > # Licenses of bundled dependencies
267
- >
268
- > The published @visulima/error artifact additionally contains code with the following licenses:
269
- > MIT
270
- >
271
- > # Bundled dependencies:
272
- >
273
- > ## is-plain-obj
274
- >
275
- > License: MIT
276
- > By: Sindre Sorhus
277
- > Repository: sindresorhus/is-plain-obj
278
- >
279
- > > MIT License
280
- > >
281
- > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
282
- > >
283
- > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
284
- > >
285
- > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
286
- > >
287
- > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
288
-
289
- ---
290
-
291
- ## detect-indent
292
-
293
- License: MIT
294
- By: Sindre Sorhus
295
- Repository: sindresorhus/detect-indent
296
-
297
- > MIT License
298
- >
299
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
300
- >
301
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
302
- >
303
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
304
- >
305
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
306
-
307
- <!-- DEPENDENCIES -->
308
-
309
- > # Licenses of bundled dependencies
310
- >
311
- > The published @visulima/error artifact additionally contains code with the following licenses:
312
- > MIT
313
- >
314
- > # Bundled dependencies:
315
- >
316
- > ## is-plain-obj
317
- >
318
- > License: MIT
319
- > By: Sindre Sorhus
320
- > Repository: sindresorhus/is-plain-obj
321
- >
322
- > > MIT License
323
- > >
324
- > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
325
- > >
326
- > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
327
- > >
328
- > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
329
- > >
330
- > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
331
- >
332
- > <!-- DEPENDENCIES -->
333
-
334
- # Licenses of bundled dependencies
335
-
336
- The published @visulima/fs artifact additionally contains code with the following licenses:
337
- MIT
338
-
339
- # Bundled dependencies:
340
-
341
- ## @visulima/error
342
-
343
- License: MIT
344
- By: Daniel Bannert
345
- Repository: https://github.com/visulima/visulima.git
346
-
347
- > MIT License
348
- >
349
- > Copyright (c) 2024 visulima
350
- >
351
- > Permission is hereby granted, free of charge, to any person obtaining a copy
352
- > of this software and associated documentation files (the "Software"), to deal
353
- > in the Software without restriction, including without limitation the rights
354
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
355
- > copies of the Software, and to permit persons to whom the Software is
356
- > furnished to do so, subject to the following conditions:
357
- >
358
- > The above copyright notice and this permission notice shall be included in all
359
- > copies or substantial portions of the Software.
360
- >
361
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
362
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
363
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
364
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
365
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
366
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
367
- > SOFTWARE.
368
- >
369
- > # Licenses of bundled dependencies
370
- >
371
- > The published @visulima/error artifact additionally contains code with the following licenses:
372
- > MIT
373
- >
374
- > # Bundled dependencies:
375
- >
376
- > ## is-plain-obj
377
- >
378
- > License: MIT
379
- > By: Sindre Sorhus
380
- > Repository: sindresorhus/is-plain-obj
381
- >
382
- > > MIT License
383
- > >
384
- > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
385
- > >
386
- > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
387
- > >
388
- > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
389
- > >
390
- > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
391
-
392
- ---
393
-
394
- ## detect-indent
395
-
396
- License: MIT
397
- By: Sindre Sorhus
398
- Repository: sindresorhus/detect-indent
399
-
400
- > MIT License
401
- >
402
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
403
- >
404
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
405
- >
406
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
407
- >
408
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
409
-
410
- <!-- DEPENDENCIES -->
99
+ <!-- /DEPENDENCIES -->
411
100
 
412
101
  <!-- TYPE_DEPENDENCIES -->
413
102
 
414
103
  # Licenses of bundled types
415
-
416
104
  The published @visulima/fs artifact additionally contains code with the following licenses:
417
105
  (MIT OR CC0-1.0)
418
106
 
419
107
  # Bundled types:
420
-
421
108
  ## type-fest
422
-
423
109
  License: (MIT OR CC0-1.0)
424
110
  By: Sindre Sorhus
425
111
  Repository: sindresorhus/type-fest
426
112
 
427
- <!-- TYPE_DEPENDENCIES -->
113
+ <!-- /TYPE_DEPENDENCIES -->
package/README.md CHANGED
@@ -191,7 +191,8 @@ console.log(file);
191
191
 
192
192
  #### name
193
193
 
194
- Type: `string | string[] | (dir: string) => string | symbole | undefined`
194
+ Type: `string[] | string | ((directory: PathLike) => PathLike | Promise<PathLike | typeof FIND_UP_STOP> | typeof FIND_UP_STOP)` \
195
+ Sync Type: `string[] | string | ((directory: PathLike) => PathLike | typeof FIND_UP_STOP)`
195
196
 
196
197
  The name of the file or directory to find.
197
198
 
@@ -227,6 +228,13 @@ Default: Root directory
227
228
 
228
229
  A directory path where the search halts if no matches are found before reaching this point.
229
230
 
231
+ ##### allowSymlinks
232
+
233
+ Type: `boolean`\
234
+ Default: `true`
235
+
236
+ Allow symbolic links to match if they point to the target file or directory.
237
+
230
238
  ## readFile
231
239
 
232
240
  Read a file.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./packem_shared/F_OK-B8R_JA-Q.cjs"),n=require("./packem_shared/ensureDir-DVHj-_yp.cjs"),i=require("./packem_shared/ensureDirSync-CvjJ3bGq.cjs"),c=require("./packem_shared/ensureFile-CcJ5XIZm.cjs"),s=require("./packem_shared/ensureFileSync-v-PhMLTr.cjs"),t=require("./packem_shared/ensureLink-C-v4AxzH.cjs"),o=require("./packem_shared/ensureLinkSync-C4S-zdVb.cjs"),u=require("./packem_shared/ensureSymlink-C5cy9585.cjs"),l=require("./packem_shared/ensureSymlinkSync-YDRbg9hX.cjs"),r=require("./packem_shared/LF-D4BqIfQm.cjs"),y=require("./packem_shared/collect-4au76gDu.cjs"),S=require("./packem_shared/collectSync-CbKwt8rz.cjs"),q=require("./packem_shared/findUp-DTU501Mn.cjs"),a=require("./packem_shared/findUpSync-C1w6Z_6P.cjs"),m=require("./packem_shared/walk-BJgnJy5d.cjs"),F=require("./packem_shared/walkSync-DYawhxUA.cjs"),d=require("./packem_shared/isAccessible-C58XjRjT.cjs"),w=require("./packem_shared/isAccessibleSync-9njSth1z.cjs"),O=require("./packem_shared/readFile-DIQKBQ0d.cjs"),_=require("./packem_shared/readFileSync-CTVwduD2.cjs"),k=require("./packem_shared/readJson-Cf5QS1cQ.cjs"),L=require("./packem_shared/readJsonSync-Dzu0ErIN.cjs"),D=require("./packem_shared/readYaml-D4PbAXZD.cjs"),p=require("./packem_shared/readYamlSync-Bnyr8iGt.cjs"),K=require("./packem_shared/emptyDir-DKxQHQQb.cjs"),J=require("./packem_shared/emptyDirSync-CLM_zyIb.cjs"),Y=require("./packem_shared/remove-B-9MI2l5.cjs"),f=require("./packem_shared/removeSync-CJPR6M7V.cjs"),b=require("./packem_shared/writeFile-z1NYn8jk.cjs"),U=require("./packem_shared/writeFileSync-rAuaAA6w.cjs"),v=require("./packem_shared/writeJson-BW5_Vr5i.cjs"),P=require("./packem_shared/writeJsonSync-BkoMtNUG.cjs"),A=require("./packem_shared/writeYaml-BO_bcnqK.cjs"),R=require("./packem_shared/writeYamlSync-DozAaY0A.cjs");exports.FIND_UP_STOP=e.FIND_UP_STOP;exports.F_OK=e.F_OK;exports.R_OK=e.R_OK;exports.W_OK=e.W_OK;exports.X_OK=e.X_OK;exports.ensureDir=n;exports.ensureDirSync=i;exports.ensureFile=c;exports.ensureFileSync=s;exports.ensureLink=t;exports.ensureLinkSync=o;exports.ensureSymlink=u;exports.ensureSymlinkSync=l;exports.CRLF=r.CRLF;exports.EOL=r.EOL;exports.LF=r.LF;exports.detect=r.detect;exports.format=r.format;exports.collect=y;exports.collectSync=S;exports.findUp=q;exports.findUpSync=a;exports.walk=m;exports.walkSync=F;exports.isAccessible=d;exports.isAccessibleSync=w;exports.readFile=O;exports.readFileSync=_;exports.readJson=k;exports.readJsonSync=L;exports.readYaml=D;exports.readYamlSync=p;exports.emptyDir=K;exports.emptyDirSync=J;exports.remove=Y;exports.removeSync=f;exports.writeFile=b;exports.writeFileSync=U;exports.writeJson=v;exports.writeJsonSync=P;exports.writeYaml=A;exports.writeYamlSync=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./packem_shared/F_OK-B8R_JA-Q.cjs"),n=require("./packem_shared/ensureDir-DVHj-_yp.cjs"),i=require("./packem_shared/ensureDirSync-CvjJ3bGq.cjs"),c=require("./packem_shared/ensureFile-CcJ5XIZm.cjs"),s=require("./packem_shared/ensureFileSync-v-PhMLTr.cjs"),t=require("./packem_shared/ensureLink-C-v4AxzH.cjs"),o=require("./packem_shared/ensureLinkSync-C4S-zdVb.cjs"),u=require("./packem_shared/ensureSymlink-C5cy9585.cjs"),l=require("./packem_shared/ensureSymlinkSync-YDRbg9hX.cjs"),r=require("./packem_shared/LF-D4BqIfQm.cjs"),y=require("./packem_shared/collect-4au76gDu.cjs"),S=require("./packem_shared/collectSync-CbKwt8rz.cjs"),q=require("./packem_shared/findUp-DWKie4QO.cjs"),a=require("./packem_shared/findUpSync-Y1Jpw0nr.cjs"),m=require("./packem_shared/walk-BJgnJy5d.cjs"),F=require("./packem_shared/walkSync-DYawhxUA.cjs"),d=require("./packem_shared/isAccessible-C58XjRjT.cjs"),w=require("./packem_shared/isAccessibleSync-9njSth1z.cjs"),O=require("./packem_shared/readFile-DIQKBQ0d.cjs"),_=require("./packem_shared/readFileSync-CTVwduD2.cjs"),k=require("./packem_shared/readJson-Cf5QS1cQ.cjs"),L=require("./packem_shared/readJsonSync-Dzu0ErIN.cjs"),D=require("./packem_shared/readYaml-D4PbAXZD.cjs"),p=require("./packem_shared/readYamlSync-Bnyr8iGt.cjs"),K=require("./packem_shared/emptyDir-DKxQHQQb.cjs"),J=require("./packem_shared/emptyDirSync-CLM_zyIb.cjs"),Y=require("./packem_shared/remove-B-9MI2l5.cjs"),f=require("./packem_shared/removeSync-CJPR6M7V.cjs"),b=require("./packem_shared/writeFile-z1NYn8jk.cjs"),U=require("./packem_shared/writeFileSync-rAuaAA6w.cjs"),v=require("./packem_shared/writeJson-BW5_Vr5i.cjs"),P=require("./packem_shared/writeJsonSync-BkoMtNUG.cjs"),A=require("./packem_shared/writeYaml-BO_bcnqK.cjs"),R=require("./packem_shared/writeYamlSync-DozAaY0A.cjs");exports.FIND_UP_STOP=e.FIND_UP_STOP;exports.F_OK=e.F_OK;exports.R_OK=e.R_OK;exports.W_OK=e.W_OK;exports.X_OK=e.X_OK;exports.ensureDir=n;exports.ensureDirSync=i;exports.ensureFile=c;exports.ensureFileSync=s;exports.ensureLink=t;exports.ensureLinkSync=o;exports.ensureSymlink=u;exports.ensureSymlinkSync=l;exports.CRLF=r.CRLF;exports.EOL=r.EOL;exports.LF=r.LF;exports.detect=r.detect;exports.format=r.format;exports.collect=y;exports.collectSync=S;exports.findUp=q;exports.findUpSync=a;exports.walk=m;exports.walkSync=F;exports.isAccessible=d;exports.isAccessibleSync=w;exports.readFile=O;exports.readFileSync=_;exports.readJson=k;exports.readJsonSync=L;exports.readYaml=D;exports.readYamlSync=p;exports.emptyDir=K;exports.emptyDirSync=J;exports.remove=Y;exports.removeSync=f;exports.writeFile=b;exports.writeFileSync=U;exports.writeJson=v;exports.writeJsonSync=P;exports.writeYaml=A;exports.writeYamlSync=R;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { W as WalkOptions, M as Match, F as FindUpOptions, a as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, b as ReadJsonOptions, c as JsonReviver, d as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions, g as YamlReplacer } from './packem_shared/observable-like.d-CpT5ICZl.cjs';
2
- export { l as CodeFrameLocation, i as FIND_UP_STOP, h as F_OK, m as JsonReplacer, j as R_OK, n as ReadFileEncoding, k as W_OK, X as X_OK } from './packem_shared/observable-like.d-CpT5ICZl.cjs';
1
+ import { W as WalkOptions, F as FindUpName, a as FindUpOptions, b as FindUpNameSync, c as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, d as ReadJsonOptions, e as JsonReviver, f as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, g as WriteFileOptions, h as WriteJsonOptions, i as YamlReplacer } from './packem_shared/observable-like.d-CJo2GVD9.cjs';
2
+ export { n as CodeFrameLocation, k as FIND_UP_STOP, j as F_OK, o as FindUpNameFnResult, p as FindUpNameSyncFnResult, q as JsonReplacer, l as R_OK, r as ReadFileEncoding, m as W_OK, X as X_OK } from './packem_shared/observable-like.d-CJo2GVD9.cjs';
3
3
  import { symlink } from 'node:fs';
4
4
  import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml';
5
5
 
@@ -29,9 +29,9 @@ declare const collect: (directory: string, options?: WalkOptions) => Promise<str
29
29
 
30
30
  declare const collectSync: (directory: string, options?: WalkOptions) => string[];
31
31
 
32
- declare const findUp: (name: ReadonlyArray<string> | string[] | string | ((directory: string) => Match | Promise<Match>), options?: FindUpOptions) => Promise<string | undefined>;
32
+ declare const findUp: (name: FindUpName, options?: FindUpOptions) => Promise<string | undefined>;
33
33
 
34
- declare const findUpSync: (name: ReadonlyArray<string> | string[] | string | ((directory: string) => Match), options?: FindUpOptions) => string | undefined;
34
+ declare const findUpSync: (name: FindUpNameSync, options?: FindUpOptions) => string | undefined;
35
35
 
36
36
  declare function walk(directory: URL | string, { extensions, followSymlinks, includeDirs: includeDirectories, includeFiles, includeSymlinks, match, maxDepth, skip, }?: WalkOptions): AsyncIterableIterator<WalkEntry>;
37
37
 
@@ -87,4 +87,4 @@ type Options = CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOption
87
87
  declare function writeYamlSync(path: URL | string, data: any, options?: Options): void;
88
88
  declare function writeYamlSync(path: URL | string, data: any, replacer?: YamlReplacer, options?: Options | number | string): void;
89
89
 
90
- export { CRLF, EOL, EmptyDirOptions, FindUpOptions, JsonReviver, LF, ReadFileOptions, ReadJsonOptions, WalkEntry, WalkOptions, WriteFileOptions, WriteJsonOptions, YamlReplacer, collect, collectSync, detect, emptyDir$1 as emptyDir, emptyDir as emptyDirSync, ensureDir, ensureDirSync, ensureFile, ensureFileSync, ensureLink, ensureLinkSync, ensureSymlink, ensureSymlinkSync, findUp, findUpSync, format, isAccessible, isAccessibleSync, readFile, readFileSync, readJson, readJsonSync, readYaml, readYamlSync, remove, removeSync, walk, walkSync, writeFile, writeFileSync, writeJson, writeJsonSync, writeYaml, writeYamlSync };
90
+ export { CRLF, EOL, EmptyDirOptions, FindUpName, FindUpNameSync, FindUpOptions, JsonReviver, LF, ReadFileOptions, ReadJsonOptions, WalkEntry, WalkOptions, WriteFileOptions, WriteJsonOptions, YamlReplacer, collect, collectSync, detect, emptyDir$1 as emptyDir, emptyDir as emptyDirSync, ensureDir, ensureDirSync, ensureFile, ensureFileSync, ensureLink, ensureLinkSync, ensureSymlink, ensureSymlinkSync, findUp, findUpSync, format, isAccessible, isAccessibleSync, readFile, readFileSync, readJson, readJsonSync, readYaml, readYamlSync, remove, removeSync, walk, walkSync, writeFile, writeFileSync, writeJson, writeJsonSync, writeYaml, writeYamlSync };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { W as WalkOptions, M as Match, F as FindUpOptions, a as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, b as ReadJsonOptions, c as JsonReviver, d as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions, g as YamlReplacer } from './packem_shared/observable-like.d-CpT5ICZl.mjs';
2
- export { l as CodeFrameLocation, i as FIND_UP_STOP, h as F_OK, m as JsonReplacer, j as R_OK, n as ReadFileEncoding, k as W_OK, X as X_OK } from './packem_shared/observable-like.d-CpT5ICZl.mjs';
1
+ import { W as WalkOptions, F as FindUpName, a as FindUpOptions, b as FindUpNameSync, c as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, d as ReadJsonOptions, e as JsonReviver, f as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, g as WriteFileOptions, h as WriteJsonOptions, i as YamlReplacer } from './packem_shared/observable-like.d-CJo2GVD9.mjs';
2
+ export { n as CodeFrameLocation, k as FIND_UP_STOP, j as F_OK, o as FindUpNameFnResult, p as FindUpNameSyncFnResult, q as JsonReplacer, l as R_OK, r as ReadFileEncoding, m as W_OK, X as X_OK } from './packem_shared/observable-like.d-CJo2GVD9.mjs';
3
3
  import { symlink } from 'node:fs';
4
4
  import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml';
5
5
 
@@ -29,9 +29,9 @@ declare const collect: (directory: string, options?: WalkOptions) => Promise<str
29
29
 
30
30
  declare const collectSync: (directory: string, options?: WalkOptions) => string[];
31
31
 
32
- declare const findUp: (name: ReadonlyArray<string> | string[] | string | ((directory: string) => Match | Promise<Match>), options?: FindUpOptions) => Promise<string | undefined>;
32
+ declare const findUp: (name: FindUpName, options?: FindUpOptions) => Promise<string | undefined>;
33
33
 
34
- declare const findUpSync: (name: ReadonlyArray<string> | string[] | string | ((directory: string) => Match), options?: FindUpOptions) => string | undefined;
34
+ declare const findUpSync: (name: FindUpNameSync, options?: FindUpOptions) => string | undefined;
35
35
 
36
36
  declare function walk(directory: URL | string, { extensions, followSymlinks, includeDirs: includeDirectories, includeFiles, includeSymlinks, match, maxDepth, skip, }?: WalkOptions): AsyncIterableIterator<WalkEntry>;
37
37
 
@@ -87,4 +87,4 @@ type Options = CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOption
87
87
  declare function writeYamlSync(path: URL | string, data: any, options?: Options): void;
88
88
  declare function writeYamlSync(path: URL | string, data: any, replacer?: YamlReplacer, options?: Options | number | string): void;
89
89
 
90
- export { CRLF, EOL, EmptyDirOptions, FindUpOptions, JsonReviver, LF, ReadFileOptions, ReadJsonOptions, WalkEntry, WalkOptions, WriteFileOptions, WriteJsonOptions, YamlReplacer, collect, collectSync, detect, emptyDir$1 as emptyDir, emptyDir as emptyDirSync, ensureDir, ensureDirSync, ensureFile, ensureFileSync, ensureLink, ensureLinkSync, ensureSymlink, ensureSymlinkSync, findUp, findUpSync, format, isAccessible, isAccessibleSync, readFile, readFileSync, readJson, readJsonSync, readYaml, readYamlSync, remove, removeSync, walk, walkSync, writeFile, writeFileSync, writeJson, writeJsonSync, writeYaml, writeYamlSync };
90
+ export { CRLF, EOL, EmptyDirOptions, FindUpName, FindUpNameSync, FindUpOptions, JsonReviver, LF, ReadFileOptions, ReadJsonOptions, WalkEntry, WalkOptions, WriteFileOptions, WriteJsonOptions, YamlReplacer, collect, collectSync, detect, emptyDir$1 as emptyDir, emptyDir as emptyDirSync, ensureDir, ensureDirSync, ensureFile, ensureFileSync, ensureLink, ensureLinkSync, ensureSymlink, ensureSymlinkSync, findUp, findUpSync, format, isAccessible, isAccessibleSync, readFile, readFileSync, readJson, readJsonSync, readYaml, readYamlSync, remove, removeSync, walk, walkSync, writeFile, writeFileSync, writeJson, writeJsonSync, writeYaml, writeYamlSync };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { W as WalkOptions, M as Match, F as FindUpOptions, a as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, b as ReadJsonOptions, c as JsonReviver, d as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, e as WriteFileOptions, f as WriteJsonOptions, g as YamlReplacer } from './packem_shared/observable-like.d-CpT5ICZl.d.mjs';
2
- export { l as CodeFrameLocation, i as FIND_UP_STOP, h as F_OK, m as JsonReplacer, j as R_OK, n as ReadFileEncoding, k as W_OK, X as X_OK } from './packem_shared/observable-like.d-CpT5ICZl.d.mjs';
1
+ import { W as WalkOptions, F as FindUpName, a as FindUpOptions, b as FindUpNameSync, c as WalkEntry, R as ReadFileOptions, C as ContentType, J as JsonValue, d as ReadJsonOptions, e as JsonReviver, f as ReadYamlOptions, Y as YamlReviver, E as EmptyDirOptions, g as WriteFileOptions, h as WriteJsonOptions, i as YamlReplacer } from './packem_shared/observable-like.d-CJo2GVD9.d.mjs';
2
+ export { n as CodeFrameLocation, k as FIND_UP_STOP, j as F_OK, o as FindUpNameFnResult, p as FindUpNameSyncFnResult, q as JsonReplacer, l as R_OK, r as ReadFileEncoding, m as W_OK, X as X_OK } from './packem_shared/observable-like.d-CJo2GVD9.d.mjs';
3
3
  import { symlink } from 'node:fs';
4
4
  import { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToStringOptions } from 'yaml';
5
5
 
@@ -29,9 +29,9 @@ declare const collect: (directory: string, options?: WalkOptions) => Promise<str
29
29
 
30
30
  declare const collectSync: (directory: string, options?: WalkOptions) => string[];
31
31
 
32
- declare const findUp: (name: ReadonlyArray<string> | string[] | string | ((directory: string) => Match | Promise<Match>), options?: FindUpOptions) => Promise<string | undefined>;
32
+ declare const findUp: (name: FindUpName, options?: FindUpOptions) => Promise<string | undefined>;
33
33
 
34
- declare const findUpSync: (name: ReadonlyArray<string> | string[] | string | ((directory: string) => Match), options?: FindUpOptions) => string | undefined;
34
+ declare const findUpSync: (name: FindUpNameSync, options?: FindUpOptions) => string | undefined;
35
35
 
36
36
  declare function walk(directory: URL | string, { extensions, followSymlinks, includeDirs: includeDirectories, includeFiles, includeSymlinks, match, maxDepth, skip, }?: WalkOptions): AsyncIterableIterator<WalkEntry>;
37
37
 
@@ -87,4 +87,4 @@ type Options = CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOption
87
87
  declare function writeYamlSync(path: URL | string, data: any, options?: Options): void;
88
88
  declare function writeYamlSync(path: URL | string, data: any, replacer?: YamlReplacer, options?: Options | number | string): void;
89
89
 
90
- export { CRLF, EOL, EmptyDirOptions, FindUpOptions, JsonReviver, LF, ReadFileOptions, ReadJsonOptions, WalkEntry, WalkOptions, WriteFileOptions, WriteJsonOptions, YamlReplacer, collect, collectSync, detect, emptyDir$1 as emptyDir, emptyDir as emptyDirSync, ensureDir, ensureDirSync, ensureFile, ensureFileSync, ensureLink, ensureLinkSync, ensureSymlink, ensureSymlinkSync, findUp, findUpSync, format, isAccessible, isAccessibleSync, readFile, readFileSync, readJson, readJsonSync, readYaml, readYamlSync, remove, removeSync, walk, walkSync, writeFile, writeFileSync, writeJson, writeJsonSync, writeYaml, writeYamlSync };
90
+ export { CRLF, EOL, EmptyDirOptions, FindUpName, FindUpNameSync, FindUpOptions, JsonReviver, LF, ReadFileOptions, ReadJsonOptions, WalkEntry, WalkOptions, WriteFileOptions, WriteJsonOptions, YamlReplacer, collect, collectSync, detect, emptyDir$1 as emptyDir, emptyDir as emptyDirSync, ensureDir, ensureDirSync, ensureFile, ensureFileSync, ensureLink, ensureLinkSync, ensureSymlink, ensureSymlinkSync, findUp, findUpSync, format, isAccessible, isAccessibleSync, readFile, readFileSync, readJson, readJsonSync, readYaml, readYamlSync, remove, removeSync, walk, walkSync, writeFile, writeFileSync, writeJson, writeJsonSync, writeYaml, writeYamlSync };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{FIND_UP_STOP as t,F_OK as a,R_OK as o,W_OK as f,X_OK as l}from"./packem_shared/F_OK-CiLqIeYK.mjs";import{default as m}from"./packem_shared/ensureDir-BtvxsJiS.mjs";import{default as u}from"./packem_shared/ensureDirSync-bGe0QB7d.mjs";import{default as n}from"./packem_shared/ensureFile-C46R6-4l.mjs";import{default as i}from"./packem_shared/ensureFileSync-CwYTIP4G.mjs";import{default as y}from"./packem_shared/ensureLink-63XWiA3I.mjs";import{default as F}from"./packem_shared/ensureLinkSync-D2LVObKd.mjs";import{default as k}from"./packem_shared/ensureSymlink-D36fS4KE.mjs";import{default as _}from"./packem_shared/ensureSymlinkSync-PvWVgeXc.mjs";import{CRLF as L,EOL as J,LF as K,detect as Y,format as U}from"./packem_shared/LF-Dbx0i6a7.mjs";import{default as v}from"./packem_shared/collect-CRzGiRGg.mjs";import{default as P}from"./packem_shared/collectSync-BE8DAOke.mjs";import{default as C}from"./packem_shared/findUp-ik4TWAC2.mjs";import{default as I}from"./packem_shared/findUpSync-DO0R67zX.mjs";import{default as T}from"./packem_shared/walk-DH-95i_B.mjs";import{default as X}from"./packem_shared/walkSync-D4zvt_kM.mjs";import{default as h}from"./packem_shared/isAccessible-vmOjbVOF.mjs";import{default as q}from"./packem_shared/isAccessibleSync-BxoK0UkJ.mjs";import{default as B}from"./packem_shared/readFile-D6U3MP6g.mjs";import{default as H}from"./packem_shared/readFileSync-Bao-E5R8.mjs";import{default as Q}from"./packem_shared/readJson-fgrin-Wb.mjs";import{default as Z}from"./packem_shared/readJsonSync-D2_W7t7m.mjs";import{default as ee}from"./packem_shared/readYaml-BYMJDJU0.mjs";import{default as te}from"./packem_shared/readYamlSync-CdYj75zz.mjs";import{default as oe}from"./packem_shared/emptyDir-D2m8OP8u.mjs";import{default as le}from"./packem_shared/emptyDirSync-CZNcW4wc.mjs";import{default as me}from"./packem_shared/remove-DzfvbZOm.mjs";import{default as ue}from"./packem_shared/removeSync-D165rXSn.mjs";import{default as ne}from"./packem_shared/writeFile-DwkUvAF-.mjs";import{default as ie}from"./packem_shared/writeFileSync-DYhY33yC.mjs";import{default as ye}from"./packem_shared/writeJson-DI_vpDVy.mjs";import{default as Fe}from"./packem_shared/writeJsonSync-DLo6ZPEV.mjs";import{default as ke}from"./packem_shared/writeYaml-B4jtxffY.mjs";import{default as _e}from"./packem_shared/writeYamlSync-BG69YBbH.mjs";export{L as CRLF,J as EOL,t as FIND_UP_STOP,a as F_OK,K as LF,o as R_OK,f as W_OK,l as X_OK,v as collect,P as collectSync,Y as detect,oe as emptyDir,le as emptyDirSync,m as ensureDir,u as ensureDirSync,n as ensureFile,i as ensureFileSync,y as ensureLink,F as ensureLinkSync,k as ensureSymlink,_ as ensureSymlinkSync,C as findUp,I as findUpSync,U as format,h as isAccessible,q as isAccessibleSync,B as readFile,H as readFileSync,Q as readJson,Z as readJsonSync,ee as readYaml,te as readYamlSync,me as remove,ue as removeSync,T as walk,X as walkSync,ne as writeFile,ie as writeFileSync,ye as writeJson,Fe as writeJsonSync,ke as writeYaml,_e as writeYamlSync};
1
+ import{FIND_UP_STOP as t,F_OK as a,R_OK as o,W_OK as f,X_OK as l}from"./packem_shared/F_OK-CiLqIeYK.mjs";import{default as m}from"./packem_shared/ensureDir-BtvxsJiS.mjs";import{default as u}from"./packem_shared/ensureDirSync-bGe0QB7d.mjs";import{default as n}from"./packem_shared/ensureFile-C46R6-4l.mjs";import{default as i}from"./packem_shared/ensureFileSync-CwYTIP4G.mjs";import{default as y}from"./packem_shared/ensureLink-63XWiA3I.mjs";import{default as F}from"./packem_shared/ensureLinkSync-D2LVObKd.mjs";import{default as k}from"./packem_shared/ensureSymlink-D36fS4KE.mjs";import{default as _}from"./packem_shared/ensureSymlinkSync-PvWVgeXc.mjs";import{CRLF as L,EOL as J,LF as K,detect as Y,format as U}from"./packem_shared/LF-Dbx0i6a7.mjs";import{default as v}from"./packem_shared/collect-CRzGiRGg.mjs";import{default as P}from"./packem_shared/collectSync-BE8DAOke.mjs";import{default as C}from"./packem_shared/findUp-DuKqk_9D.mjs";import{default as I}from"./packem_shared/findUpSync-Cal_fll7.mjs";import{default as T}from"./packem_shared/walk-DH-95i_B.mjs";import{default as X}from"./packem_shared/walkSync-D4zvt_kM.mjs";import{default as h}from"./packem_shared/isAccessible-vmOjbVOF.mjs";import{default as q}from"./packem_shared/isAccessibleSync-BxoK0UkJ.mjs";import{default as B}from"./packem_shared/readFile-D6U3MP6g.mjs";import{default as H}from"./packem_shared/readFileSync-Bao-E5R8.mjs";import{default as Q}from"./packem_shared/readJson-fgrin-Wb.mjs";import{default as Z}from"./packem_shared/readJsonSync-D2_W7t7m.mjs";import{default as ee}from"./packem_shared/readYaml-BYMJDJU0.mjs";import{default as te}from"./packem_shared/readYamlSync-CdYj75zz.mjs";import{default as oe}from"./packem_shared/emptyDir-D2m8OP8u.mjs";import{default as le}from"./packem_shared/emptyDirSync-CZNcW4wc.mjs";import{default as me}from"./packem_shared/remove-DzfvbZOm.mjs";import{default as ue}from"./packem_shared/removeSync-D165rXSn.mjs";import{default as ne}from"./packem_shared/writeFile-DwkUvAF-.mjs";import{default as ie}from"./packem_shared/writeFileSync-DYhY33yC.mjs";import{default as ye}from"./packem_shared/writeJson-DI_vpDVy.mjs";import{default as Fe}from"./packem_shared/writeJsonSync-DLo6ZPEV.mjs";import{default as ke}from"./packem_shared/writeYaml-B4jtxffY.mjs";import{default as _e}from"./packem_shared/writeYamlSync-BG69YBbH.mjs";export{L as CRLF,J as EOL,t as FIND_UP_STOP,a as F_OK,K as LF,o as R_OK,f as W_OK,l as X_OK,v as collect,P as collectSync,Y as detect,oe as emptyDir,le as emptyDirSync,m as ensureDir,u as ensureDirSync,n as ensureFile,i as ensureFileSync,y as ensureLink,F as ensureLinkSync,k as ensureSymlink,_ as ensureSymlinkSync,C as findUp,I as findUpSync,U as format,h as isAccessible,q as isAccessibleSync,B as readFile,H as readFileSync,Q as readJson,Z as readJsonSync,ee as readYaml,te as readYamlSync,me as remove,ue as removeSync,T as walk,X as walkSync,ne as writeFile,ie as writeFileSync,ye as writeJson,Fe as writeJsonSync,ke as writeYaml,_e as writeYamlSync};
@@ -0,0 +1 @@
1
+ "use strict";var h=Object.defineProperty;var f=(t,r)=>h(t,"name",{value:r,configurable:!0});const l=require("node:fs/promises"),v=require("node:url"),s=require("@visulima/path"),u=require("@visulima/path/utils"),A=require("./F_OK-B8R_JA-Q.cjs");var P=Object.defineProperty,y=f((t,r)=>P(t,"name",{value:r,configurable:!0}),"s");const q=y(async(t,r={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const p=r.cwd?u.toPath(r.cwd):process.cwd();let o=s.resolve(p);const{root:n}=s.parse(o),w=u.toPath(r.stopAt??n),d=s.resolve(o,w),i=r.type??"file",m=y(async function(e){return typeof t=="function"?[await t(e)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");r.allowSymlinks===void 0&&(r.allowSymlinks=!0);const g=r.allowSymlinks?l.stat:l.lstat;for(;o&&o!==d&&o!==n;){for await(let e of await m(o)){if(e===A.FIND_UP_STOP)return;if(e===void 0)continue;Buffer.isBuffer(e)?e=e.toString():e instanceof URL&&(e=v.fileURLToPath(e));const a=s.isAbsolute(e)?e:s.resolve(o,e);try{const c=await g(a);if(i==="file"&&c.isFile()||i==="directory"&&c.isDirectory())return a}catch{}}o=s.dirname(o)}},"findUp");module.exports=q;
@@ -0,0 +1 @@
1
+ var g=Object.defineProperty;var c=(t,r)=>g(t,"name",{value:r,configurable:!0});import{stat as h,lstat as v}from"node:fs/promises";import{fileURLToPath as A}from"node:url";import{resolve as i,parse as P,isAbsolute as S,dirname as b}from"@visulima/path";import{toPath as l}from"@visulima/path/utils";import{FIND_UP_STOP as k}from"./F_OK-CiLqIeYK.mjs";var T=Object.defineProperty,y=c((t,r)=>T(t,"name",{value:r,configurable:!0}),"s");const R=y(async(t,r={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const m=r.cwd?l(r.cwd):process.cwd();let e=i(m);const{root:n}=P(e),p=l(r.stopAt??n),u=i(e,p),a=r.type??"file",w=y(async function(o){return typeof t=="function"?[await t(o)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");r.allowSymlinks===void 0&&(r.allowSymlinks=!0);const d=r.allowSymlinks?h:v;for(;e&&e!==u&&e!==n;){for await(let o of await w(e)){if(o===k)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=A(o));const s=S(o)?o:i(e,o);try{const f=await d(s);if(a==="file"&&f.isFile()||a==="directory"&&f.isDirectory())return s}catch{}}e=b(e)}},"findUp");export{R as default};
@@ -0,0 +1 @@
1
+ var w=Object.defineProperty;var a=(t,r)=>w(t,"name",{value:r,configurable:!0});import{statSync as S,lstatSync as h}from"node:fs";import{fileURLToPath as v}from"node:url";import{resolve as n,parse as A,isAbsolute as P,dirname as b}from"@visulima/path";import{toPath as l}from"@visulima/path/utils";import{FIND_UP_STOP as k}from"./F_OK-CiLqIeYK.mjs";var T=Object.defineProperty,y=a((t,r)=>T(t,"name",{value:r,configurable:!0}),"o");const R=y((t,r={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const m=r.cwd?l(r.cwd):process.cwd();let e=n(m);const{root:i}=A(e),p=l(r.stopAt??i),u=n(e,p),f=r.type??"file",d=y(function(o){return typeof t=="function"?[t(o)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");r.allowSymlinks===void 0&&(r.allowSymlinks=!0);const g=r.allowSymlinks?S:h;for(;e&&e!==u&&e!==i;){for(let o of d(e)){if(o===k)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=v(o));const s=P(o)?o:n(e,o);try{const c=g(s);if(f==="file"&&c.isFile()||f==="directory"&&c.isDirectory())return s}catch{}}e=b(e)}},"findUpSync");export{R as default};
@@ -0,0 +1 @@
1
+ "use strict";var v=Object.defineProperty;var a=(t,o)=>v(t,"name",{value:o,configurable:!0});const l=require("node:fs"),w=require("node:url"),n=require("@visulima/path"),u=require("@visulima/path/utils"),S=require("./F_OK-B8R_JA-Q.cjs");var A=Object.defineProperty,y=a((t,o)=>A(t,"name",{value:o,configurable:!0}),"o");const P=y((t,o={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const p=o.cwd?u.toPath(o.cwd):process.cwd();let r=n.resolve(p);const{root:s}=n.parse(r),d=u.toPath(o.stopAt??s),g=n.resolve(r,d),i=o.type??"file",m=y(function(e){return typeof t=="function"?[t(e)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");o.allowSymlinks===void 0&&(o.allowSymlinks=!0);const h=o.allowSymlinks?l.statSync:l.lstatSync;for(;r&&r!==g&&r!==s;){for(let e of m(r)){if(e===S.FIND_UP_STOP)return;if(e===void 0)continue;Buffer.isBuffer(e)?e=e.toString():e instanceof URL&&(e=w.fileURLToPath(e));const c=n.isAbsolute(e)?e:n.resolve(r,e);try{const f=h(c);if(i==="file"&&f.isFile()||i==="directory"&&f.isDirectory())return c}catch{}}r=n.dirname(r)}},"findUpSync");module.exports=P;
@@ -1,4 +1,4 @@
1
- import { Dirent } from 'node:fs';
1
+ import { Dirent, PathLike } from 'node:fs';
2
2
  import { DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions } from 'yaml';
3
3
 
4
4
  declare const F_OK = 0;
@@ -66,11 +66,15 @@ type WriteJsonOptions = WriteFileOptions & {
66
66
  stringify?: (data: unknown, replacer: JsonReplacer, space: number | string | undefined) => string;
67
67
  };
68
68
  type FindUpOptions = {
69
+ allowSymlinks?: boolean;
69
70
  cwd?: URL | string;
70
71
  stopAt?: URL | string;
71
72
  type?: "directory" | "file";
72
73
  };
73
- type Match = string | typeof FIND_UP_STOP | undefined;
74
+ type FindUpNameFnResult = PathLike | Promise<PathLike | typeof FIND_UP_STOP> | typeof FIND_UP_STOP | undefined;
75
+ type FindUpName = string[] | string | ((directory: string) => FindUpNameFnResult);
76
+ type FindUpNameSyncFnResult = PathLike | typeof FIND_UP_STOP | undefined;
77
+ type FindUpNameSync = string[] | string | ((directory: string) => FindUpNameSyncFnResult);
74
78
  type EmptyDirOptions = {
75
79
  maxRetries?: number | undefined;
76
80
  retryDelay?: number | undefined;
@@ -117,4 +121,4 @@ declare global {
117
121
  }
118
122
  }
119
123
 
120
- export { type ContentType as C, type EmptyDirOptions as E, type FindUpOptions as F, type JsonValue as J, type Match as M, type ReadFileOptions as R, type WalkOptions as W, X_OK as X, type YamlReviver as Y, type WalkEntry as a, type ReadJsonOptions as b, type JsonReviver as c, type ReadYamlOptions as d, type WriteFileOptions as e, type WriteJsonOptions as f, type YamlReplacer as g, F_OK as h, FIND_UP_STOP as i, R_OK as j, W_OK as k, type CodeFrameLocation as l, type JsonReplacer as m, type ReadFileEncoding as n, type CodeFrameOptions as o };
124
+ export { type ContentType as C, type EmptyDirOptions as E, type FindUpName as F, type JsonValue as J, type ReadFileOptions as R, type WalkOptions as W, X_OK as X, type YamlReviver as Y, type FindUpOptions as a, type FindUpNameSync as b, type WalkEntry as c, type ReadJsonOptions as d, type JsonReviver as e, type ReadYamlOptions as f, type WriteFileOptions as g, type WriteJsonOptions as h, type YamlReplacer as i, F_OK as j, FIND_UP_STOP as k, R_OK as l, W_OK as m, type CodeFrameLocation as n, type FindUpNameFnResult as o, type FindUpNameSyncFnResult as p, type JsonReplacer as q, type ReadFileEncoding as r, type CodeFrameOptions as s };
@@ -1,4 +1,4 @@
1
- import { Dirent } from 'node:fs';
1
+ import { Dirent, PathLike } from 'node:fs';
2
2
  import { DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions } from 'yaml';
3
3
 
4
4
  declare const F_OK = 0;
@@ -66,11 +66,15 @@ type WriteJsonOptions = WriteFileOptions & {
66
66
  stringify?: (data: unknown, replacer: JsonReplacer, space: number | string | undefined) => string;
67
67
  };
68
68
  type FindUpOptions = {
69
+ allowSymlinks?: boolean;
69
70
  cwd?: URL | string;
70
71
  stopAt?: URL | string;
71
72
  type?: "directory" | "file";
72
73
  };
73
- type Match = string | typeof FIND_UP_STOP | undefined;
74
+ type FindUpNameFnResult = PathLike | Promise<PathLike | typeof FIND_UP_STOP> | typeof FIND_UP_STOP | undefined;
75
+ type FindUpName = string[] | string | ((directory: string) => FindUpNameFnResult);
76
+ type FindUpNameSyncFnResult = PathLike | typeof FIND_UP_STOP | undefined;
77
+ type FindUpNameSync = string[] | string | ((directory: string) => FindUpNameSyncFnResult);
74
78
  type EmptyDirOptions = {
75
79
  maxRetries?: number | undefined;
76
80
  retryDelay?: number | undefined;
@@ -117,4 +121,4 @@ declare global {
117
121
  }
118
122
  }
119
123
 
120
- export { type ContentType as C, type EmptyDirOptions as E, type FindUpOptions as F, type JsonValue as J, type Match as M, type ReadFileOptions as R, type WalkOptions as W, X_OK as X, type YamlReviver as Y, type WalkEntry as a, type ReadJsonOptions as b, type JsonReviver as c, type ReadYamlOptions as d, type WriteFileOptions as e, type WriteJsonOptions as f, type YamlReplacer as g, F_OK as h, FIND_UP_STOP as i, R_OK as j, W_OK as k, type CodeFrameLocation as l, type JsonReplacer as m, type ReadFileEncoding as n, type CodeFrameOptions as o };
124
+ export { type ContentType as C, type EmptyDirOptions as E, type FindUpName as F, type JsonValue as J, type ReadFileOptions as R, type WalkOptions as W, X_OK as X, type YamlReviver as Y, type FindUpOptions as a, type FindUpNameSync as b, type WalkEntry as c, type ReadJsonOptions as d, type JsonReviver as e, type ReadYamlOptions as f, type WriteFileOptions as g, type WriteJsonOptions as h, type YamlReplacer as i, F_OK as j, FIND_UP_STOP as k, R_OK as l, W_OK as m, type CodeFrameLocation as n, type FindUpNameFnResult as o, type FindUpNameSyncFnResult as p, type JsonReplacer as q, type ReadFileEncoding as r, type CodeFrameOptions as s };
@@ -1,4 +1,4 @@
1
- import { Dirent } from 'node:fs';
1
+ import { Dirent, PathLike } from 'node:fs';
2
2
  import { DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions } from 'yaml';
3
3
 
4
4
  declare const F_OK = 0;
@@ -66,11 +66,15 @@ type WriteJsonOptions = WriteFileOptions & {
66
66
  stringify?: (data: unknown, replacer: JsonReplacer, space: number | string | undefined) => string;
67
67
  };
68
68
  type FindUpOptions = {
69
+ allowSymlinks?: boolean;
69
70
  cwd?: URL | string;
70
71
  stopAt?: URL | string;
71
72
  type?: "directory" | "file";
72
73
  };
73
- type Match = string | typeof FIND_UP_STOP | undefined;
74
+ type FindUpNameFnResult = PathLike | Promise<PathLike | typeof FIND_UP_STOP> | typeof FIND_UP_STOP | undefined;
75
+ type FindUpName = string[] | string | ((directory: string) => FindUpNameFnResult);
76
+ type FindUpNameSyncFnResult = PathLike | typeof FIND_UP_STOP | undefined;
77
+ type FindUpNameSync = string[] | string | ((directory: string) => FindUpNameSyncFnResult);
74
78
  type EmptyDirOptions = {
75
79
  maxRetries?: number | undefined;
76
80
  retryDelay?: number | undefined;
@@ -117,4 +121,4 @@ declare global {
117
121
  }
118
122
  }
119
123
 
120
- export { type ContentType as C, type EmptyDirOptions as E, type FindUpOptions as F, type JsonValue as J, type Match as M, type ReadFileOptions as R, type WalkOptions as W, X_OK as X, type YamlReviver as Y, type WalkEntry as a, type ReadJsonOptions as b, type JsonReviver as c, type ReadYamlOptions as d, type WriteFileOptions as e, type WriteJsonOptions as f, type YamlReplacer as g, F_OK as h, FIND_UP_STOP as i, R_OK as j, W_OK as k, type CodeFrameLocation as l, type JsonReplacer as m, type ReadFileEncoding as n, type CodeFrameOptions as o };
124
+ export { type ContentType as C, type EmptyDirOptions as E, type FindUpName as F, type JsonValue as J, type ReadFileOptions as R, type WalkOptions as W, X_OK as X, type YamlReviver as Y, type FindUpOptions as a, type FindUpNameSync as b, type WalkEntry as c, type ReadJsonOptions as d, type JsonReviver as e, type ReadYamlOptions as f, type WriteFileOptions as g, type WriteJsonOptions as h, type YamlReplacer as i, F_OK as j, FIND_UP_STOP as k, R_OK as l, W_OK as m, type CodeFrameLocation as n, type FindUpNameFnResult as o, type FindUpNameSyncFnResult as p, type JsonReplacer as q, type ReadFileEncoding as r, type CodeFrameOptions as s };
package/dist/utils.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.cjs';
2
- import { J as JsonValue, o as CodeFrameOptions, c as JsonReviver } from './packem_shared/observable-like.d-CpT5ICZl.cjs';
2
+ import { J as JsonValue, s as CodeFrameOptions, e as JsonReviver } from './packem_shared/observable-like.d-CJo2GVD9.cjs';
3
3
  export { toPath } from '@visulima/path/utils';
4
4
  import 'node:fs';
5
5
  import 'yaml';
package/dist/utils.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.mjs';
2
- import { J as JsonValue, o as CodeFrameOptions, c as JsonReviver } from './packem_shared/observable-like.d-CpT5ICZl.mjs';
2
+ import { J as JsonValue, s as CodeFrameOptions, e as JsonReviver } from './packem_shared/observable-like.d-CJo2GVD9.mjs';
3
3
  export { toPath } from '@visulima/path/utils';
4
4
  import 'node:fs';
5
5
  import 'yaml';
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.d.mjs';
2
- import { J as JsonValue, o as CodeFrameOptions, c as JsonReviver } from './packem_shared/observable-like.d-CpT5ICZl.d.mjs';
2
+ import { J as JsonValue, s as CodeFrameOptions, e as JsonReviver } from './packem_shared/observable-like.d-CJo2GVD9.d.mjs';
3
3
  export { toPath } from '@visulima/path/utils';
4
4
  import 'node:fs';
5
5
  import 'yaml';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/fs",
3
- "version": "2.1.18",
3
+ "version": "2.2.1",
4
4
  "description": "Human friendly file system utilities for Node.js",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -132,7 +132,7 @@
132
132
  "LICENSE.md"
133
133
  ],
134
134
  "dependencies": {
135
- "@visulima/path": "1.0.9"
135
+ "@visulima/path": "1.1.0"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@anolilab/eslint-config": "^15.0.3",
@@ -140,13 +140,13 @@
140
140
  "@anolilab/semantic-release-pnpm": "^1.1.3",
141
141
  "@anolilab/semantic-release-preset": "^9.0.0",
142
142
  "@arethetypeswrong/cli": "^0.16.4",
143
- "@babel/core": "^7.25.2",
143
+ "@babel/core": "^7.25.7",
144
144
  "@rushstack/eslint-plugin-security": "^0.8.3",
145
145
  "@types/node": "18.19.15",
146
- "@visulima/error": "4.4.5",
147
- "@visulima/packem": "1.0.1",
148
- "@vitest/coverage-v8": "^2.1.1",
149
- "@vitest/ui": "^2.1.1",
146
+ "@visulima/error": "4.4.6",
147
+ "@visulima/packem": "1.0.7",
148
+ "@vitest/coverage-v8": "^2.1.2",
149
+ "@vitest/ui": "^2.1.2",
150
150
  "conventional-changelog-conventionalcommits": "8.0.0",
151
151
  "cross-env": "^7.0.3",
152
152
  "detect-indent": "^7.0.1",
@@ -160,14 +160,14 @@
160
160
  "eslint-plugin-vitest-globals": "^1.5.0",
161
161
  "fast-safe-stringify": "2.1.1",
162
162
  "prettier": "^3.3.3",
163
- "redos-detector": "^5.1.0",
163
+ "redos-detector": "^5.1.2",
164
164
  "rimraf": "5.0.9",
165
165
  "safe-regex2": "^4.0.0",
166
166
  "semantic-release": "24.0.0",
167
167
  "tempy": "^3.1.0",
168
168
  "type-fest": "^4.26.1",
169
169
  "typescript": "5.4.5",
170
- "vitest": "^2.1.1",
170
+ "vitest": "^2.1.2",
171
171
  "yaml": "^2.5.1"
172
172
  },
173
173
  "peerDependencies": {
@@ -1 +0,0 @@
1
- "use strict";var g=Object.defineProperty;var f=(r,t)=>g(r,"name",{value:t,configurable:!0});const h=require("node:fs/promises"),i=require("@visulima/path"),u=require("@visulima/path/utils"),v=require("./F_OK-B8R_JA-Q.cjs");var m=Object.defineProperty,y=f((r,t)=>m(r,"name",{value:t,configurable:!0}),"n");const A=y(async(r,t={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const p=t.cwd?u.toPath(t.cwd):process.cwd();let e=i.resolve(p);const{root:s}=i.parse(e),l=u.toPath(t.stopAt??s),d=i.resolve(e,l),n=t.type??"file",w=y(async function(o){return typeof r=="function"?[await r(o)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");for(;e&&e!==d&&e!==s;){for await(const o of await w(e)){if(o===v.FIND_UP_STOP)return;if(o===void 0)continue;const a=i.isAbsolute(o)?o:i.resolve(e,o);try{const c=await h.stat(a);if(n==="file"&&c.isFile()||n==="directory"&&c.isDirectory())return a}catch{}}e=i.dirname(e)}},"findUp");module.exports=A;
@@ -1 +0,0 @@
1
- var w=Object.defineProperty;var c=(r,o)=>w(r,"name",{value:o,configurable:!0});import{stat as g}from"node:fs/promises";import{resolve as i,parse as h,isAbsolute as A,dirname as v}from"@visulima/path";import{toPath as y}from"@visulima/path/utils";import{FIND_UP_STOP as b}from"./F_OK-CiLqIeYK.mjs";var P=Object.defineProperty,p=c((r,o)=>P(r,"name",{value:o,configurable:!0}),"n");const _=p(async(r,o={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const u=o.cwd?y(o.cwd):process.cwd();let t=i(u);const{root:n}=h(t),m=y(o.stopAt??n),d=i(t,m),a=o.type??"file",l=p(async function(e){return typeof r=="function"?[await r(e)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");for(;t&&t!==d&&t!==n;){for await(const e of await l(t)){if(e===b)return;if(e===void 0)continue;const s=A(e)?e:i(t,e);try{const f=await g(s);if(a==="file"&&f.isFile()||a==="directory"&&f.isDirectory())return s}catch{}}t=v(t)}},"findUp");export{_ as default};
@@ -1 +0,0 @@
1
- "use strict";var h=Object.defineProperty;var a=(r,t)=>h(r,"name",{value:t,configurable:!0});const v=require("node:fs"),n=require("@visulima/path"),u=require("@visulima/path/utils"),A=require("./F_OK-B8R_JA-Q.cjs");var m=Object.defineProperty,y=a((r,t)=>m(r,"name",{value:t,configurable:!0}),"o");const w=y((r,t={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const p=t.cwd?u.toPath(t.cwd):process.cwd();let e=n.resolve(p);const{root:s}=n.parse(e),l=u.toPath(t.stopAt??s),d=n.resolve(e,l),i=t.type??"file",g=y(function(o){return typeof r=="function"?[r(o)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");for(;e&&e!==d&&e!==s;){for(const o of g(e)){if(o===A.FIND_UP_STOP)return;if(o===void 0)continue;const c=n.isAbsolute(o)?o:n.resolve(e,o);try{const f=v.statSync(c);if(i==="file"&&f.isFile()||i==="directory"&&f.isDirectory())return c}catch{}}e=n.dirname(e)}},"findUpSync");module.exports=w;
@@ -1 +0,0 @@
1
- var g=Object.defineProperty;var a=(r,t)=>g(r,"name",{value:t,configurable:!0});import{statSync as h}from"node:fs";import{resolve as i,parse as A,isAbsolute as v,dirname as w}from"@visulima/path";import{toPath as p}from"@visulima/path/utils";import{FIND_UP_STOP as b}from"./F_OK-CiLqIeYK.mjs";var P=Object.defineProperty,y=a((r,t)=>P(r,"name",{value:t,configurable:!0}),"o");const U=y((r,t={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const u=t.cwd?p(t.cwd):process.cwd();let o=i(u);const{root:n}=A(o),m=p(t.stopAt??n),d=i(o,m),f=t.type??"file",l=y(function(e){return typeof r=="function"?[r(e)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");for(;o&&o!==d&&o!==n;){for(const e of l(o)){if(e===b)return;if(e===void 0)continue;const s=v(e)?e:i(o,e);try{const c=h(s);if(f==="file"&&c.isFile()||f==="directory"&&c.isDirectory())return s}catch{}}o=w(o)}},"findUpSync");export{U as default};