chore(v2): upgrade dependencies (#3727)

* chore(v2): upgrade dependencies

* Update loader-utils

* Update MDX packages

* Update Babel packages

* Various updates
This commit is contained in:
Alexey Pyltsyn 2020-11-12 14:30:14 +03:00 committed by GitHub
parent 14a65907bd
commit 049634a927
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 1327 additions and 599 deletions

View file

@ -116,16 +116,13 @@ export default ({
// Tested above
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const highlightLinesRange = metastring.match(highlightLinesRangeRegex)![1];
highlightLines = rangeParser
.parse(highlightLinesRange)
.filter((n) => n > 0);
highlightLines = rangeParser(highlightLinesRange).filter((n) => n > 0);
}
if (metastring && codeBlockTitleRegex.test(metastring)) {
// Tested above
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
codeBlockTitle = metastring
.match(codeBlockTitleRegex)![1];
codeBlockTitle = metastring.match(codeBlockTitleRegex)![1];
}
let language =
@ -180,7 +177,7 @@ export default ({
index += 1;
}
}
highlightLines = rangeParser.parse(range);
highlightLines = rangeParser(range);
code = lines.join('\n');
}