Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Apr 23, 2024
1 parent 778b570 commit 86fe5eb
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 57 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
name: '${{matrix.node}} on ${{matrix.os}}'
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
strategy:
matrix:
os:
Expand Down
6 changes: 2 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export function findUp(test, path, callback) {
}

promise.then(function (files) {
// @ts-expect-error: `callbackOne` is defined.
callbackOne(undefined, pickFirst(files))
return files
}, callbackOne)
Expand Down Expand Up @@ -164,7 +163,6 @@ export function findUpAll(test, path, callback) {
}

promise.then(function (files) {
// @ts-expect-error: `callbackAll` is defined.
callbackAll(undefined, files)
return files
}, callbackAll)
Expand All @@ -182,8 +180,8 @@ function convert(test) {
return typeof test === 'function'
? test
: typeof test === 'string'
? convertString(test)
: convertTests(test)
? convertString(test)
: convertTests(test)
}

/**
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
},
"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"c8": "^9.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"remark-cli": "^12.0.0",
"remark-preset-wooorm": "^10.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"xo": "^0.56.0"
"xo": "^0.58.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
Expand Down
92 changes: 46 additions & 46 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@

## Contents

* [What is this?](#what-is-this)
* [When should I use this?](#when-should-i-use-this)
* [Install](#install)
* [Use](#use)
* [API](#api)
* [`findUp(test[, path][, callback])`](#finduptest-path-callback)
* [`findUpAll(test[, path][, callback])`](#findupalltest-path-callback)
* [`Assert`](#assert)
* [`Callback`](#callback)
* [`CallbackAll`](#callbackall)
* [`Result`](#result)
* [`Test`](#test)
* [Types](#types)
* [Compatibility](#compatibility)
* [Contribute](#contribute)
* [License](#license)
* [What is this?](#what-is-this)
* [When should I use this?](#when-should-i-use-this)
* [Install](#install)
* [Use](#use)
* [API](#api)
* [`findUp(test[, path][, callback])`](#finduptest-path-callback)
* [`findUpAll(test[, path][, callback])`](#findupalltest-path-callback)
* [`Assert`](#assert)
* [`Callback`](#callback)
* [`CallbackAll`](#callbackall)
* [`Result`](#result)
* [`Test`](#test)
* [Types](#types)
* [Compatibility](#compatibility)
* [Contribute](#contribute)
* [License](#license)

## What is this?

Expand Down Expand Up @@ -81,17 +81,17 @@ Find the first file or folder upwards.
###### Signatures

* `(test[, path], callback) => undefined`
* `(test[, path]) => Promise<VFile>`
* `(test[, path], callback) => undefined`
* `(test[, path]) => Promise<VFile>`

###### Parameters

* `test` ([`Test`][api-test])
— things to search for
* `path` (`URL` or `string`, default: `process.cwd()`)
— place to search from
* `callback` ([`Callback`][api-callback], optional)
— callback called when done
* `test` ([`Test`][api-test])
— things to search for
* `path` (`URL` or `string`, default: `process.cwd()`)
— place to search from
* `callback` ([`Callback`][api-callback], optional)
— callback called when done

###### Returns

Expand All @@ -107,17 +107,17 @@ Find files or folders upwards.
###### Signatures

* `(test[, path], callback) => undefined`
* `(test[, path]) => Promise<Array<VFile>>`
* `(test[, path], callback) => undefined`
* `(test[, path]) => Promise<Array<VFile>>`

###### Parameters

* `test` ([`Test`][api-test])
— things to search for
* `paths` (`URL` or `string`, default: `process.cwd()`)
— place to search from
* `callback` ([`CallbackAll`][api-callback-all], optional)
— callback called when done
* `test` ([`Test`][api-test])
— things to search for
* `paths` (`URL` or `string`, default: `process.cwd()`)
— place to search from
* `callback` ([`CallbackAll`][api-callback-all], optional)
— callback called when done

###### Returns

Expand All @@ -130,8 +130,8 @@ Handle a file (TypeScript type).

###### Parameters

* `file` ([`VFile`][vfile])
— file to handle
* `file` ([`VFile`][vfile])
— file to handle

###### Returns

Expand All @@ -143,10 +143,10 @@ Callback called when done finding one file (TypeScript type).

###### Parameters

* `error` (`Error | undefined`)
— error; errors are currently never passed
* `file` ([`VFile | undefined`][vfile])
— file
* `error` (`Error | undefined`)
— error; errors are currently never passed
* `file` ([`VFile | undefined`][vfile])
— file

###### Returns

Expand All @@ -158,10 +158,10 @@ Callback called when done (TypeScript type).

###### Parameters

* `error` (`Error | undefined`)
— error; errors are currently never passed
* `files` ([`Array<VFile>`][vfile])
— files
* `error` (`Error | undefined`)
— error; errors are currently never passed
* `files` ([`Array<VFile>`][vfile])
— files

###### Returns

Expand All @@ -173,10 +173,10 @@ What to do when collecting a file or folder (TypeScript type).

###### Fields

* `break` (`boolean`, default: `false`)
— stop searching after this file or folder
* `include` (`boolean`, default: `false`)
— include this file or folder
* `break` (`boolean`, default: `false`)
— stop searching after this file or folder
* `include` (`boolean`, default: `false`)
— include this file or folder

### `Test`

Expand Down

0 comments on commit 86fe5eb

Please sign in to comment.