Skip to content

Commit

Permalink
Update unified-engine, hosted-git-info
Browse files Browse the repository at this point in the history
Also updates dev-dependencies.

Closes GH-69.
  • Loading branch information
JounQin authored Jun 29, 2022
1 parent d6420be commit 8f58878
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
* @typedef {import('./lib/index.js').Options} Options
*/

import remarkValidateLinks from './lib/index.js'

export default remarkValidateLinks
export {default} from './lib/index.js'
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
"dependencies": {
"@types/mdast": "^3.0.0",
"github-slugger": "^1.0.0",
"hosted-git-info": "^4.0.0",
"hosted-git-info": "^5.0.0",
"mdast-util-to-string": "^3.0.0",
"propose": "0.0.5",
"to-vfile": "^7.0.0",
"trough": "^2.0.0",
"unified": "^10.0.0",
"unified-engine": "^9.0.0",
"unified-engine": "^10.0.1",
"unist-util-visit": "^4.0.0",
"vfile": "^5.0.0"
},
Expand All @@ -67,15 +67,15 @@
"c8": "^7.0.0",
"prettier": "^2.0.0",
"remark": "^14.0.0",
"remark-cli": "^10.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"strip-ansi": "^7.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"vfile-sort": "^3.0.0",
"xo": "^0.45.0"
"xo": "^0.50.0"
},
"scripts": {
"build": "rimraf \"lib/**/*.d.ts\" \"test/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage",
Expand Down
8 changes: 5 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ test.onFinish(() => {
const bin = path.join('..', '..', 'node_modules', '.bin', 'remark')

test('remark-validate-links', async (t) => {
const vfile = await remark()
.use(links)
.use(sort)
.process(readSync('github.md'))
t.deepEqual(
(
await remark().use(links).use(sort).process(readSync('github.md'))
).messages.map((d) => String(d)),
vfile.messages.map(String),
[
'github.md:5:37-5:51: Link to unknown heading: `world`',
'github.md:27:10-27:37: Link to unknown file: `examples/world.md`',
Expand Down

0 comments on commit 8f58878

Please sign in to comment.