chore(deps): update dependency flow-parser to v0.229.0 (#16092)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
renovate[bot]andfisker authored and GitHub committed 2024-02-18 23:20:44 +08:00
1 parent 3670261877
commit c66b06d29d
10 files changed
+89 -44

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@
"fast-json-stable-stringify": "2.1.0",
"file-entry-cache": "7.0.2",
"find-cache-dir": "5.0.0",
"flow-parser": "0.228.0",
"flow-parser": "0.229.0",
"get-east-asian-width": "1.2.0",
"get-stdin": "9.0.0",
"graphql": "16.8.1",
@@ -0,0 +1,28 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`declare-interface.js [babel-flow] format 1`] = `
"\`declare export interface\` is not supported. Use \`export interface\` instead. (1:16)
> 1 | declare export interface A {
| ^
2 |
3 |
4 | }
Cause: \`declare export interface\` is not supported. Use \`export interface\` instead. (1:15)"
`;
exports[`declare-interface.js format 1`] = `
====================================options=====================================
parsers: ["flow"]
printWidth: 80
| printWidth
=====================================input======================================
declare export interface A {
}
=====================================output=====================================
declare export interface A {}
================================================================================
`;
@@ -0,0 +1,4 @@
declare export interface A {
}
@@ -0,0 +1 @@
runFormatTest(import.meta, ["flow"], { errors: { "babel-flow": true } });
@@ -0,0 +1,25 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`declare-type.js [babel-flow] format 1`] = `
"\`declare export type\` is not supported. Use \`export type\` instead. (1:16)
> 1 | declare export type DeclareExportType = number
| ^
2 | ;
3 |
Cause: \`declare export type\` is not supported. Use \`export type\` instead. (1:15)"
`;
exports[`declare-type.js format 1`] = `
====================================options=====================================
parsers: ["flow"]
printWidth: 80
| printWidth
=====================================input======================================
declare export type DeclareExportType = number
;
=====================================output=====================================
declare export type DeclareExportType = number;
================================================================================
`;
@@ -0,0 +1,2 @@
declare export type DeclareExportType = number
;
@@ -0,0 +1 @@
runFormatTest(import.meta, ["flow"], { errors: { "babel-flow": true } });
@@ -1,66 +1,53 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`snippet: #0 [babel-flow] format 1`] = `
"\`declare export interface\` is not supported. Use \`export interface\` instead. (1:16)
> 1 | declare export interface A {}
| ^
Cause: \`declare export interface\` is not supported. Use \`export interface\` instead. (1:15)"
"Unexpected token, expected "{" (1:13)
> 1 | interface A mixins B {}
| ^
Cause: Unexpected token, expected "{" (1:12)"
`;
exports[`snippet: #0 [flow] format 1`] = `
"\`declare export interface\` is not supported. Use \`export interface\` instead. (1:16)
> 1 | declare export interface A {}
| ^^^^^^^^^"
"Unexpected identifier, expected the token \`{\` (1:13)
> 1 | interface A mixins B {}
| ^^^^^^"
`;
exports[`snippet: #1 [babel-flow] format 1`] = `
"Unexpected token, expected "{" (1:13)
> 1 | interface A mixins B {}
> 1 | interface A implements B {}
| ^
Cause: Unexpected token, expected "{" (1:12)"
`;
exports[`snippet: #1 [flow] format 1`] = `
"Unexpected identifier, expected the token \`{\` (1:13)
> 1 | interface A mixins B {}
| ^^^^^^"
`;
exports[`snippet: #2 [babel-flow] format 1`] = `
"Unexpected token, expected "{" (1:13)
> 1 | interface A implements B {}
| ^
Cause: Unexpected token, expected "{" (1:12)"
`;
exports[`snippet: #2 [flow] format 1`] = `
"Unexpected identifier, expected the token \`{\` (1:13)
> 1 | interface A implements B {}
| ^^^^^^^^^^"
`;
exports[`snippet: #3 [babel-flow] format 1`] = `
exports[`snippet: #2 [babel-flow] format 1`] = `
"Unexpected token, expected "{" (1:21)
> 1 | declare interface A mixins B {}
| ^
Cause: Unexpected token, expected "{" (1:20)"
`;
exports[`snippet: #2 [flow] format 1`] = `
"Unexpected identifier, expected the token \`{\` (1:21)
> 1 | declare interface A mixins B {}
| ^^^^^^"
`;
exports[`snippet: #3 [babel-flow] format 1`] = `
"Unexpected token, expected "{" (1:21)
> 1 | declare interface A implements B {}
| ^
Cause: Unexpected token, expected "{" (1:20)"
`;
exports[`snippet: #3 [flow] format 1`] = `
"Unexpected identifier, expected the token \`{\` (1:21)
> 1 | declare interface A mixins B {}
| ^^^^^^"
`;
exports[`snippet: #4 [babel-flow] format 1`] = `
"Unexpected token, expected "{" (1:21)
> 1 | declare interface A implements B {}
| ^
Cause: Unexpected token, expected "{" (1:20)"
`;
exports[`snippet: #4 [flow] format 1`] = `
"Unexpected identifier, expected the token \`{\` (1:21)
> 1 | declare interface A implements B {}
| ^^^^^^^^^^"
`;
@@ -2,9 +2,6 @@ runFormatTest(
{
importMeta: import.meta,
snippets: [
// Not allowed
"declare export interface A {}",
// Can't have mixins nor implements
"interface A mixins B {}",
"interface A implements B {}",
+5 -5
View File
@@ -4394,10 +4394,10 @@ __metadata:
languageName: node
linkType: hard
"flow-parser@npm:0.228.0":
version: 0.228.0
resolution: "flow-parser@npm:0.228.0"
checksum: 10/b059d6ff1f43ce49c4ad2dc721bd07db9ac309967136a68a1407e35eae66e9351a37252aa4d3e9f86615a9f54a2efe6f155ddb847b310aaa64d64e1ef3e13b68
"flow-parser@npm:0.229.0":
version: 0.229.0
resolution: "flow-parser@npm:0.229.0"
checksum: 10/02a06e66d7e78aa8c62849ef1e237d00235bad39994036cd79a385b59331638a93099120e5299eb3633ca987f8ec61c8e0014720a58a141ca8ee4d93c38a631d
languageName: node
linkType: hard
@@ -7426,7 +7426,7 @@ __metadata:
fast-json-stable-stringify: "npm:2.1.0"
file-entry-cache: "npm:7.0.2"
find-cache-dir: "npm:5.0.0"
flow-parser: "npm:0.228.0"
flow-parser: "npm:0.229.0"
get-east-asian-width: "npm:1.2.0"
get-stdin: "npm:9.0.0"
graphql: "npm:16.8.1"