Skip to content

Commit 9cccc55

Browse files
committed
Update dev-dependencies
1 parent 52d7d63 commit 9cccc55

File tree

4 files changed

+59
-61
lines changed

4 files changed

+59
-61
lines changed

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ jobs:
77
name: '${{matrix.node}} on ${{matrix.os}}'
88
runs-on: ${{matrix.os}}
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
1212
with:
1313
node-version: ${{matrix.node}}
1414
- run: npm install
1515
- run: npm test
16-
- uses: codecov/codecov-action@v3
16+
- uses: codecov/codecov-action@v4
1717
strategy:
1818
matrix:
1919
os:

lib/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ export function findDown(test, paths, callback) {
124124
}
125125

126126
promise.then(function (files) {
127-
// @ts-expect-error: `callbackOne` is defined.
128127
callbackOne(undefined, pickFirst(files))
129128
return files
130129
}, callback)
@@ -181,7 +180,6 @@ export function findDownAll(test, paths, callback) {
181180
}
182181

183182
promise.then(function (files) {
184-
// @ts-expect-error: `callbackAll` is defined.
185183
callbackAll(undefined, files)
186184
return files
187185
}, callbackAll)
@@ -197,8 +195,8 @@ function convert(test) {
197195
return typeof test === 'function'
198196
? test
199197
: typeof test === 'string'
200-
? convertString(test)
201-
: convertTests(test)
198+
? convertString(test)
199+
: convertTests(test)
202200
}
203201

204202
/**

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
},
3939
"devDependencies": {
4040
"@types/node": "^20.0.0",
41-
"c8": "^8.0.0",
41+
"c8": "^9.0.0",
4242
"prettier": "^3.0.0",
43-
"remark-cli": "^11.0.0",
44-
"remark-preset-wooorm": "^9.0.0",
43+
"remark-cli": "^12.0.0",
44+
"remark-preset-wooorm": "^10.0.0",
4545
"type-coverage": "^2.0.0",
4646
"typescript": "^5.0.0",
47-
"xo": "^0.56.0"
47+
"xo": "^0.58.0"
4848
},
4949
"scripts": {
5050
"prepack": "npm run build && npm run format",

readme.md

+50-50
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111

1212
## Contents
1313

14-
* [What is this?](#what-is-this)
15-
* [When should I use this?](#when-should-i-use-this)
16-
* [Install](#install)
17-
* [Use](#use)
18-
* [API](#api)
19-
* [`findDown(test[, paths][, callback])`](#finddowntest-paths-callback)
20-
* [`findDownAll(test[, paths][, callback])`](#finddownalltest-paths-callback)
21-
* [`Assert`](#assert)
22-
* [`Callback`](#callback)
23-
* [`CallbackAll`](#callbackall)
24-
* [`Result`](#result)
25-
* [`Test`](#test)
26-
* [Types](#types)
27-
* [Compatibility](#compatibility)
28-
* [Contribute](#contribute)
29-
* [License](#license)
14+
* [What is this?](#what-is-this)
15+
* [When should I use this?](#when-should-i-use-this)
16+
* [Install](#install)
17+
* [Use](#use)
18+
* [API](#api)
19+
* [`findDown(test[, paths][, callback])`](#finddowntest-paths-callback)
20+
* [`findDownAll(test[, paths][, callback])`](#finddownalltest-paths-callback)
21+
* [`Assert`](#assert)
22+
* [`Callback`](#callback)
23+
* [`CallbackAll`](#callbackall)
24+
* [`Result`](#result)
25+
* [`Test`](#test)
26+
* [Types](#types)
27+
* [Compatibility](#compatibility)
28+
* [Contribute](#contribute)
29+
* [License](#license)
3030

3131
## What is this?
3232

@@ -83,17 +83,17 @@ Find the first file or folder downwards.
8383
8484
###### Signatures
8585

86-
* `(test[, paths], callback) => undefined`
87-
* `(test[, paths]) => Promise<VFile>`
86+
* `(test[, paths], callback) => undefined`
87+
* `(test[, paths]) => Promise<VFile>`
8888

8989
###### Parameters
9090

91-
* `test` ([`Test`][api-test])
92-
— things to search for
93-
* `paths` (`Array<URL | string> | URL | string`, default: `process.cwd()`)
94-
— places to search from
95-
* `callback` ([`Callback`][api-callback], optional)
96-
— callback called when done
91+
* `test` ([`Test`][api-test])
92+
— things to search for
93+
* `paths` (`Array<URL | string> | URL | string`, default: `process.cwd()`)
94+
— places to search from
95+
* `callback` ([`Callback`][api-callback], optional)
96+
— callback called when done
9797

9898
###### Returns
9999

@@ -109,17 +109,17 @@ Find files or folders downwards.
109109
110110
###### Signatures
111111

112-
* `(test[, paths], callback) => undefined`
113-
* `(test[, paths]) => Promise<Array<VFile>>`
112+
* `(test[, paths], callback) => undefined`
113+
* `(test[, paths]) => Promise<Array<VFile>>`
114114

115115
###### Parameters
116116

117-
* `test` ([`Test`][api-test])
118-
— things to search for
119-
* `paths` (`Array<URL | string> | URL | string`, default: `process.cwd()`)
120-
— places to search from
121-
* `callback` ([`CallbackAll`][api-callback-all], optional)
122-
— callback called when done
117+
* `test` ([`Test`][api-test])
118+
— things to search for
119+
* `paths` (`Array<URL | string> | URL | string`, default: `process.cwd()`)
120+
— places to search from
121+
* `callback` ([`CallbackAll`][api-callback-all], optional)
122+
— callback called when done
123123

124124
###### Returns
125125

@@ -132,10 +132,10 @@ Handle a file (TypeScript type).
132132

133133
###### Parameters
134134

135-
* `file` ([`VFile`][vfile])
136-
— file to handle
137-
* `stats` ([`Stats`][stats])
138-
— stats from `fs.stat`
135+
* `file` ([`VFile`][vfile])
136+
— file to handle
137+
* `stats` ([`Stats`][stats])
138+
— stats from `fs.stat`
139139

140140
###### Returns
141141

@@ -147,10 +147,10 @@ Callback called when done finding one file (TypeScript type).
147147

148148
###### Parameters
149149

150-
* `error` (`Error` or `undefined`)
151-
— error; errors are currently never passed
152-
* `file` ([`VFile`][vfile] or `undefined`)
153-
— file
150+
* `error` (`Error` or `undefined`)
151+
— error; errors are currently never passed
152+
* `file` ([`VFile`][vfile] or `undefined`)
153+
— file
154154

155155
###### Returns
156156

@@ -162,10 +162,10 @@ Callback called when done (TypeScript type).
162162

163163
###### Parameters
164164

165-
* `error` (`Error` or `undefined`)
166-
— error; errors are currently never passed
167-
* `files` ([`Array<VFile>`][vfile])
168-
— files
165+
* `error` (`Error` or `undefined`)
166+
— error; errors are currently never passed
167+
* `files` ([`Array<VFile>`][vfile])
168+
— files
169169

170170
###### Returns
171171

@@ -177,12 +177,12 @@ What to do when collecting a file or folder (TypeScript type).
177177

178178
###### Fields
179179

180-
* `break` (`boolean`, default: `false`)
181-
— stop searching after this file or folder
182-
* `include` (`boolean`, default: `false`)
183-
— include this file or folder
184-
* `skip` (`boolean`, default: `false`)
185-
— do not search inside this folder
180+
* `break` (`boolean`, default: `false`)
181+
— stop searching after this file or folder
182+
* `include` (`boolean`, default: `false`)
183+
— include this file or folder
184+
* `skip` (`boolean`, default: `false`)
185+
— do not search inside this folder
186186

187187
### `Test`
188188

0 commit comments

Comments
 (0)