From b1133d1896e0cbd49055162bc8e5307ff24940f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Daoust?= Date: Tue, 12 Oct 2021 18:12:54 +0200 Subject: [PATCH] fix(validate/webidl): use `crawlSpecs` API (#110) --- src/validate-webidl.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/validate-webidl.ts b/src/validate-webidl.ts index caa9131..268f701 100644 --- a/src/validate-webidl.ts +++ b/src/validate-webidl.ts @@ -14,11 +14,11 @@ if (module === require.main) { export default async function main({ dest, file }: Input) { console.log(`Validating Web IDL defined in ${file}...`); - await install("reffy"); - const { crawlList } = require("reffy/src/cli/crawl-specs"); + await install("reffy@4"); + const { crawlSpecs } = require("reffy"); const fileurl = new URL(file, `file://${dest}/`).href; - const results = await crawlList( + const results = await crawlSpecs( [{ url: fileurl, nightly: { url: fileurl } }], { modules: ["idl"] }, );