diff --git a/tools/doc/addon-verify.mjs b/tools/doc/addon-verify.mjs index 87d27a663e7fce..ee4d597693b8b3 100644 --- a/tools/doc/addon-verify.mjs +++ b/tools/doc/addon-verify.mjs @@ -5,7 +5,6 @@ // Triggered from the build-addons target in the Makefile and vcbuild.bat. import { mkdir, writeFile } from 'fs/promises'; -import { fileURLToPath } from 'url'; import gfm from 'remark-gfm'; import remarkParse from 'remark-parse'; @@ -16,7 +15,7 @@ const rootDir = new URL('../../', import.meta.url); const doc = new URL('./doc/api/addons.md', rootDir); const verifyDir = new URL('./test/addons/', rootDir); -const file = toVFile.readSync(fileURLToPath(doc), 'utf8'); +const file = toVFile.readSync(doc, 'utf8'); const tree = unified().use(remarkParse).use(gfm).parse(file); const addons = {}; let id = 0; diff --git a/tools/doc/package-lock.json b/tools/doc/package-lock.json index dfbd40aa6392b7..9d9ce759c0896e 100644 --- a/tools/doc/package-lock.json +++ b/tools/doc/package-lock.json @@ -19,7 +19,7 @@ "remark-html": "13.0.1", "remark-parse": "^9.0.0", "remark-rehype": "8.1.0", - "to-vfile": "7.0.0", + "to-vfile": "7.1.0", "unified": "9.2.1", "unist-util-select": "4.0.0", "unist-util-visit": "3.1.0" @@ -972,9 +972,9 @@ } }, "node_modules/to-vfile": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/to-vfile/-/to-vfile-7.0.0.tgz", - "integrity": "sha512-l2/CqmSVwXZhzyWsxsllCi/JQr9oFO4hKNG7Y1dk9nhHQnO/2hU94wxxmTehMvQKA4z+EcjSyfWJFR+Ybhy4cA==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/to-vfile/-/to-vfile-7.1.0.tgz", + "integrity": "sha512-t1c42ASuWo39ddjh2R+hX5+kbDcc2CmbhaTSJkVavDYMjnFkpq0L4LeF+rcPoDdieGUsFaivSSkmwuFpYzhBZw==", "dev": true, "dependencies": { "is-buffer": "^2.0.0", @@ -1947,9 +1947,9 @@ } }, "to-vfile": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/to-vfile/-/to-vfile-7.0.0.tgz", - "integrity": "sha512-l2/CqmSVwXZhzyWsxsllCi/JQr9oFO4hKNG7Y1dk9nhHQnO/2hU94wxxmTehMvQKA4z+EcjSyfWJFR+Ybhy4cA==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/to-vfile/-/to-vfile-7.1.0.tgz", + "integrity": "sha512-t1c42ASuWo39ddjh2R+hX5+kbDcc2CmbhaTSJkVavDYMjnFkpq0L4LeF+rcPoDdieGUsFaivSSkmwuFpYzhBZw==", "dev": true, "requires": { "is-buffer": "^2.0.0", diff --git a/tools/doc/package.json b/tools/doc/package.json index 4bacaba2bafc4a..355701c6db9eae 100644 --- a/tools/doc/package.json +++ b/tools/doc/package.json @@ -15,7 +15,7 @@ "remark-html": "13.0.1", "remark-parse": "^9.0.0", "remark-rehype": "8.1.0", - "to-vfile": "7.0.0", + "to-vfile": "7.1.0", "unified": "9.2.1", "unist-util-select": "4.0.0", "unist-util-visit": "3.1.0"