File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ async function setupProgram() {
54
54
55
55
const options = program . opts < LimitedUserConfig > ( ) ;
56
56
57
- generate ( options , version ) ;
57
+ await generate ( options , version ) ;
58
58
}
59
59
60
60
setupProgram ( ) ;
Original file line number Diff line number Diff line change @@ -6,20 +6,20 @@ export const createExports = (service: Service) => {
6
6
const { klasses } = service ;
7
7
const methods = klasses . map ( ( k ) => k . methods ) . flat ( ) ;
8
8
9
- const allGet = methods . filter (
10
- ( m ) => m . httpMethodName . toUpperCase ( ) === "' GET'"
9
+ const allGet = methods . filter ( ( m ) =>
10
+ m . httpMethodName . toUpperCase ( ) . includes ( " GET" )
11
11
) ;
12
- const allPost = methods . filter (
13
- ( m ) => m . httpMethodName . toUpperCase ( ) === "' POST'"
12
+ const allPost = methods . filter ( ( m ) =>
13
+ m . httpMethodName . toUpperCase ( ) . includes ( " POST" )
14
14
) ;
15
- const allPut = methods . filter (
16
- ( m ) => m . httpMethodName . toUpperCase ( ) === "' PUT'"
15
+ const allPut = methods . filter ( ( m ) =>
16
+ m . httpMethodName . toUpperCase ( ) . includes ( " PUT" )
17
17
) ;
18
- const allPatch = methods . filter (
19
- ( m ) => m . httpMethodName . toUpperCase ( ) === "' PATCH'"
18
+ const allPatch = methods . filter ( ( m ) =>
19
+ m . httpMethodName . toUpperCase ( ) . includes ( " PATCH" )
20
20
) ;
21
- const allDelete = methods . filter (
22
- ( m ) => m . httpMethodName . toUpperCase ( ) === "' DELETE'"
21
+ const allDelete = methods . filter ( ( m ) =>
22
+ m . httpMethodName . toUpperCase ( ) . includes ( " DELETE" )
23
23
) ;
24
24
25
25
const allGetQueries = allGet . map ( ( m ) => createUseQuery ( m ) ) ;
You can’t perform that action at this time.
0 commit comments