Skip to content

Commit

Permalink
Update @types/mdast, utilities, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 23, 2023
1 parent 7cad15b commit 552d7a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/find-nearest-package.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import parse from 'parse-author'
import {read} from 'to-vfile'
import {findUpOne} from 'vfile-find-up'
import {findUp} from 'vfile-find-up'

/**
* @param {string} base
* @returns {Promise<{license: string|undefined, name: string|undefined, url: string|undefined}>}
*/
export async function findNearestPackage(base) {
const file = await findUpOne('package.json', base)
const file = await findUp('package.json', base)

if (file) {
await read(file)
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

import path from 'node:path'
import spdx from 'spdx-license-list'
import {findUpOne} from 'vfile-find-up'
import {findUp} from 'vfile-find-up'
import {headingRange} from 'mdast-util-heading-range'
import {findNearestPackage} from './find-nearest-package.js'
import {findLicense} from './find-license.js'
Expand All @@ -64,7 +64,7 @@ export default function remarkLicense(options = {}) {
// Else is for stdin, typically not used.
/* c8 ignore next */
const base = file.dirname ? path.resolve(file.cwd, file.dirname) : file.cwd
const packageFile = await findUpOne('package.json', base)
const packageFile = await findUp('package.json', base)
/** @type {string|undefined} */
let defaultName
/** @type {string|undefined} */
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@
"index.js"
],
"dependencies": {
"@types/mdast": "^3.0.0",
"mdast-util-heading-range": "^3.0.0",
"@types/mdast": "^4.0.0",
"mdast-util-heading-range": "^4.0.0",
"parse-author": "^2.0.0",
"spdx-license-list": "^6.0.0",
"to-vfile": "^7.0.0",
"unified": "^10.0.0",
"vfile-find-up": "^6.0.0"
"to-vfile": "^8.0.0",
"unified": "^11.0.0",
"vfile-find-up": "^7.0.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/parse-author": "^2.0.0",
"c8": "^8.0.0",
"prettier": "^3.0.0",
"remark": "^14.0.0",
"remark": "^15.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"semver": "^7.0.0",
"type-coverage": "^2.0.0",
"type-fest": "^2.0.0",
"type-fest": "^4.0.0",
"typescript": "^5.0.0",
"xo": "^0.56.0"
},
Expand Down

0 comments on commit 552d7a8

Please sign in to comment.