Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e500b43

Browse filesBrowse files
TrottRafaelGSS
authored andcommitted
tools: prepare tools/doc for to-vfile 8.0.0
toVFile.readSync() is removed in favor of readSync(). PR-URL: #48485 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent fe16749 commit e500b43
Copy full SHA for e500b43

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎tools/doc/addon-verify.mjs‎

Copy file name to clipboardExpand all lines: tools/doc/addon-verify.mjs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { mkdir, writeFile } from 'fs/promises';
88

99
import gfm from 'remark-gfm';
1010
import remarkParse from 'remark-parse';
11-
import { toVFile } from 'to-vfile';
11+
import { readSync } from 'to-vfile';
1212
import { unified } from 'unified';
1313

1414
const rootDir = new URL('../../', import.meta.url);
1515
const doc = new URL('./doc/api/addons.md', rootDir);
1616
const verifyDir = new URL('./test/addons/', rootDir);
1717

18-
const file = toVFile.readSync(doc, 'utf8');
18+
const file = readSync(doc, 'utf8');
1919
const tree = unified().use(remarkParse).use(gfm).parse(file);
2020
const addons = {};
2121
let id = 0;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.