Skip to content

Commit 4fd8552

Browse files
committed
deps: Upgrade vfile
1 parent f111030 commit 4fd8552

File tree

4 files changed

+167
-42
lines changed

4 files changed

+167
-42
lines changed

__tests__/__snapshots__/test.js.snap

+5-5
Original file line numberDiff line numberDiff line change
@@ -1530,14 +1530,14 @@ exports[`html nested.input.js 1`] = `
15301530
"<!doctype html>
15311531
<html>
15321532
<head>
1533-
<meta charset='utf-8' />
1533+
<meta charset='utf-8'>
15341534
<title> | Documentation</title>
15351535
<meta name='description' content='a documentation generator'>
15361536
<meta name='viewport' content='width=device-width,initial-scale=1'>
1537-
<link href='assets/bass.css' rel='stylesheet' />
1538-
<link href='assets/style.css' rel='stylesheet' />
1539-
<link href='assets/github.css' rel='stylesheet' />
1540-
<link href='assets/split.css' rel='stylesheet' />
1537+
<link href='assets/bass.css' rel='stylesheet'>
1538+
<link href='assets/style.css' rel='stylesheet'>
1539+
<link href='assets/github.css' rel='stylesheet'>
1540+
<link href='assets/split.css' rel='stylesheet'>
15411541
</head>
15421542
<body class='documentation m0'>
15431543
<div class='flex'>

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
"tiny-lr": "^1.1.0",
6666
"unist-builder": "^1.0.2",
6767
"unist-util-visit": "^1.3.0",
68-
"vfile": "^3.0.0",
69-
"vfile-reporter": "^5.0.0",
68+
"vfile": "^4.0.0",
69+
"vfile-reporter": "^6.0.0",
7070
"vfile-sort": "^2.1.0",
7171
"vinyl": "^2.1.0",
7272
"vinyl-fs": "^3.0.2",

src/lint.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function formatLint(comments) {
7777
new VFile({
7878
path: p
7979
});
80-
vFiles[p].warn(error.message, {
80+
vFiles[p].message(error.message, {
8181
line: comment.loc.start.line + (error.commentLineNumber || 0)
8282
});
8383
});

0 commit comments

Comments
 (0)