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
36
node_modules/del/index.d.ts
generated
vendored
36
node_modules/del/index.d.ts
generated
vendored
|
|
@ -1,6 +1,23 @@
|
|||
import {GlobbyOptions} from 'globby';
|
||||
|
||||
declare namespace del {
|
||||
interface ProgressData {
|
||||
/**
|
||||
Deleted files and directories count.
|
||||
*/
|
||||
deletedCount: number;
|
||||
|
||||
/**
|
||||
Total files and directories count.
|
||||
*/
|
||||
totalCount: number;
|
||||
|
||||
/**
|
||||
Completed percentage. A value between `0` and `1`.
|
||||
*/
|
||||
percent: number;
|
||||
}
|
||||
|
||||
interface Options extends GlobbyOptions {
|
||||
/**
|
||||
Allow deleting the current working directory and outside.
|
||||
|
|
@ -33,6 +50,21 @@ declare namespace del {
|
|||
@default Infinity
|
||||
*/
|
||||
readonly concurrency?: number;
|
||||
|
||||
/**
|
||||
Called after each file or directory is deleted.
|
||||
|
||||
@example
|
||||
```
|
||||
import del from 'del';
|
||||
|
||||
await del(patterns, {
|
||||
onProgress: progress => {
|
||||
// …
|
||||
}});
|
||||
```
|
||||
*/
|
||||
readonly onProgress?: (progress: ProgressData) => void;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -43,7 +75,7 @@ declare const del: {
|
|||
Note that glob patterns can only contain forward-slashes, not backward-slashes. Windows file paths can use backward-slashes as long as the path does not contain any glob-like characters, otherwise use `path.posix.join()` instead of `path.join()`.
|
||||
|
||||
@param patterns - 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)
|
||||
@param options - You can specify any of the [`globby` options](https://github.com/sindresorhus/globby#options) in addition to the `del` options. In contrast to the `globby` defaults, `expandDirectories`, `onlyFiles`, and `followSymbolicLinks` are `false` by default.
|
||||
@returns The deleted paths.
|
||||
|
|
@ -59,7 +91,7 @@ declare const del: {
|
|||
Note that glob patterns can only contain forward-slashes, not backward-slashes. Windows file paths can use backward-slashes as long as the path does not contain any glob-like characters, otherwise use `path.posix.join()` instead of `path.join()`.
|
||||
|
||||
@param patterns - 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)
|
||||
@param options - You can specify any of the [`globby` options](https://github.com/sindresorhus/globby#options) in addition to the `del` options. In contrast to the `globby` defaults, `expandDirectories`, `onlyFiles`, and `followSymbolicLinks` are `false` by default.
|
||||
@returns The deleted paths.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue