Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update unified-engine, hosted-git-info #69

Merged
merged 2 commits into from
Jun 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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