chore: upgrade dependencies (#5608)

* chore: upgrade dependencies

* Revert github-slugger

* Fixes

* Update snapshots

* Update Babel deps
This commit is contained in:
Alexey Pyltsyn 2021-09-24 17:36:41 +03:00 committed by GitHub
parent a52d499218
commit b62a12bfc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 783 additions and 882 deletions

View file

@ -183,7 +183,7 @@ export async function parseMarkdownFile(
const markdownString = await fs.readFile(source, 'utf-8');
try {
return parseMarkdownString(markdownString, options);
} catch (e) {
} catch (e: any) {
throw new Error(
`Error while parsing Markdown file ${source}: "${e.message}".`,
);