Skip to content

Commit

Permalink
Update dependency flow-parser to v0.180.0 (#12990)
Browse files Browse the repository at this point in the history
* Update `flow-parser`

* Update snapshots
  • Loading branch information
sosukesuzuki committed Jun 10, 2022
1 parent aa1d536 commit 7f9a087
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -48,7 +48,7 @@
"fast-glob": "3.2.11",
"fast-json-stable-stringify": "2.1.0",
"find-parent-dir": "0.3.1",
"flow-parser": "0.176.3",
"flow-parser": "0.180.0",
"get-stdin": "8.0.0",
"graphql": "15.6.1",
"html-element-attributes": "3.1.0",
Expand Down
7 changes: 0 additions & 7 deletions tests/format/js/regex/__snapshots__/jsfmt.spec.js.snap
@@ -1,12 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`d-flag.js [flow] format 1`] = `
"Invalid flags supplied to RegExp constructor 'd' (1:5)
> 1 | /./d;
| ^
2 |"
`;

exports[`d-flag.js [meriyah] format 1`] = `
"Unexpected regular expression flag (1:3)
> 1 | /./d;
Expand Down
2 changes: 1 addition & 1 deletion tests/format/js/regex/jsfmt.spec.js
@@ -1,6 +1,6 @@
run_spec(__dirname, ["babel", "flow", "typescript"], {
errors: {
flow: ["d-flag.js", "v-flag.js"],
flow: ["v-flag.js"],
acorn: ["v-flag.js"],
espree: ["v-flag.js"],
meriyah: ["d-flag.js", "v-flag.js"],
Expand Down
Expand Up @@ -9,7 +9,7 @@ exports[`async-arrow-invalid.js [flow] format 1`] = `
`;
exports[`default-escaped.js [flow] format 1`] = `
"Unexpected identifier, expected the token \`{\` (1:8)
"Unexpected token \`async\`, expected a declaration, statement or export specifiers (1:8)
> 1 | export asyn\\u{63} from "async";
| ^^^^^^^^^^
2 |"
Expand Down
Expand Up @@ -127,7 +127,7 @@ exports[`snippet: #1 [espree] format 1`] = `
`;

exports[`snippet: #1 [flow] format 1`] = `
"Unexpected token \`switch\` (1:7)
"Unexpected token \`switch\`, expected an identifier (1:7)
> 1 | class switch() {}
| ^^^^^^"
`;
Expand Down
Expand Up @@ -92,7 +92,7 @@ exports[`template-literal-types.ts [babel-flow] format 1`] = `
`;
exports[`template-literal-types.ts [flow] format 1`] = `
"Unexpected token \`\`\` (1:84)
"Unexpected token \`\`\`, expected a type (1:84)
> 1 | const foo1: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo<\`Hello, \${keyof World}\`> = a;
| ^
2 |"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -3427,10 +3427,10 @@ flatten@^1.0.2:
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.3.tgz#c1283ac9f27b368abc1e36d1ff7b04501a30356b"
integrity sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==

flow-parser@0.176.3:
version "0.176.3"
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.176.3.tgz#a12d9c79ff1e857b70c9574c3e88be06d2f96181"
integrity sha512-KDzHEoEtc/kbW7NzujhfFkcTCdNi6VK91UpcdT3tc3yEAQdh4JXAEY/0TVJKipjRuVm8E2FxX/3B5Xpm3EFWXA==
flow-parser@0.180.0:
version "0.180.0"
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.180.0.tgz#05d49a88715ceca0457607499a018e2bf5908d72"
integrity sha512-kkzsuGAhckWgn/G+JfCyEa6BYslGrjlH4CJL0LZhdn9of9ukvi7SzVQSFsrEhuhh/zQUghfUEoaeZy1wjQXpUg==

form-data@^3.0.0:
version "3.0.1"
Expand Down

0 comments on commit 7f9a087

Please sign in to comment.