Update ava to 4.3.3
The [release notes](https://github.com/avajs/ava/releases/tag/v4.3.3) mention compatibility with Node 18.8.
This commit is contained in:
parent
21530f507f
commit
bea5e4b220
160 changed files with 2647 additions and 2263 deletions
33
node_modules/del/readme.md
generated
vendored
33
node_modules/del/readme.md
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
# del [](https://travis-ci.com/github/sindresorhus/del) [](https://github.com/xojs/xo)
|
||||
# del
|
||||
|
||||
> Delete files and directories using [globs](https://github.com/sindresorhus/globby#globbing-patterns)
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ const del = require('del');
|
|||
|
||||
console.log('Deleted files:\n', deletedFilePaths.join('\n'));
|
||||
console.log('\n\n');
|
||||
console.log('Deleted directories:\n', deletedDirectoryPaths.join('\n));
|
||||
console.log('Deleted directories:\n', deletedDirectoryPaths.join('\n'));
|
||||
})();
|
||||
```
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ Type: `string | string[]`
|
|||
|
||||
See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
||||
|
||||
- [Pattern examples with expected matches](https://github.com/sindresorhus/multimatch/blob/master/test/test.js)
|
||||
- [Pattern examples with expected matches](https://github.com/sindresorhus/multimatch/blob/main/test/test.js)
|
||||
- [Quick globbing pattern overview](https://github.com/sindresorhus/multimatch#globbing-patterns)
|
||||
|
||||
#### options
|
||||
|
|
@ -108,6 +108,33 @@ Minimum: `1`
|
|||
|
||||
Concurrency limit.
|
||||
|
||||
##### onProgress
|
||||
|
||||
Type: `(progress: ProgressData) => void`
|
||||
|
||||
Called after each file or directory is deleted.
|
||||
|
||||
```js
|
||||
import del from 'del';
|
||||
|
||||
await del(patterns, {
|
||||
onProgress: progress => {
|
||||
// …
|
||||
}});
|
||||
```
|
||||
|
||||
###### ProgressData
|
||||
|
||||
```js
|
||||
{
|
||||
totalCount: number,
|
||||
deletedCount: number,
|
||||
percent: number
|
||||
}
|
||||
```
|
||||
|
||||
- `percent` is a value between `0` and `1`
|
||||
|
||||
## CLI
|
||||
|
||||
See [del-cli](https://github.com/sindresorhus/del-cli) for a CLI for this module and [trash-cli](https://github.com/sindresorhus/trash-cli) for a safe version that is suitable for running by hand.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue