Update @babel/parser to 7.15.2 (#11331)

* Install new babel

* Remove ts-expect-error
This commit is contained in:
Sosuke Suzuki authored and GitHub committed 2021-08-09 02:26:42 +09:00
1 parent 9dcfd16e6a
commit 9e34cbcc98
3 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@
"dependencies": {
"@angular/compiler": "12.1.4",
"@babel/code-frame": "7.14.5",
"@babel/parser": "7.15.0",
"@babel/parser": "7.15.2",
"@glimmer/syntax": "0.80.0",
"@iarna/toml": "2.2.5",
"@typescript-eslint/typescript-estree": "4.29.0",
-1
View File
@@ -77,7 +77,6 @@ function parseWithOptions(parseMethod, text, options) {
/** @type {import("@babel/parser").parse | import("@babel/parser").parseExpression} */
const parse = require("@babel/parser")[parseMethod];
const ast = parse(text, options);
// @ts-expect-error
const error = ast.errors.find(
(error) => !allowedMessageCodes.has(error.reasonCode)
);
+6 -1
View File
@@ -298,7 +298,12 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
"@babel/parser@7.15.0", "@babel/parser@^7.1.0", "@babel/parser@^7.14.5", "@babel/parser@^7.15.0", "@babel/parser@^7.7.2":
"@babel/parser@7.15.2":
version "7.15.2"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.2.tgz#08d4ffcf90d211bf77e7cc7154c6f02d468d2b1d"
integrity sha512-bMJXql1Ss8lFnvr11TZDH4ArtwlAS5NG9qBmdiFW2UHHm6MVoR+GDc5XE2b9K938cyjc9O6/+vjjcffLDtfuDg==
"@babel/parser@^7.1.0", "@babel/parser@^7.14.5", "@babel/parser@^7.15.0", "@babel/parser@^7.7.2":
version "7.15.0"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.0.tgz#b6d6e29058ca369127b0eeca2a1c4b5794f1b6b9"
integrity sha512-0v7oNOjr6YT9Z2RAOTv4T9aP+ubfx4Q/OhVtAet7PFDt0t9Oy6Jn+/rfC6b8HJ5zEqrQCiMxJfgtHpmIminmJQ==