File tree Expand file tree Collapse file tree 4 files changed +692
-667
lines changed Expand file tree Collapse file tree 4 files changed +692
-667
lines changed Original file line number Diff line number Diff line change 25
25
"@babel/plugin-transform-flow-strip-types" : " ^7.0.0" ,
26
26
"@babel/plugin-transform-runtime" : " ^7.0.0" ,
27
27
"@babel/preset-env" : " ^7.6.0" ,
28
- "@playwright-testing-library/test" : " 4.3 .0-beta.1" ,
28
+ "@playwright-testing-library/test" : " 4.4 .0-beta.1" ,
29
29
"@playwright/test" : " ^1.25.0" ,
30
- "babel-jest" : " ^28.1 .0" ,
30
+ "babel-jest" : " ^29.0 .0" ,
31
31
"eslint" : " ^8.22.0" ,
32
32
"eslint-config-prettier" : " ^8.5.0" ,
33
33
"eslint-plugin-import" : " ^2.26.0" ,
34
34
"eslint-plugin-prettier" : " ^4.2.0" ,
35
35
"husky" : " ^8.0.0" ,
36
- "jest" : " ^28.1 .0" ,
37
- "jest-light-runner" : " ^0.3 .0" ,
36
+ "jest" : " ^29.0 .0" ,
37
+ "jest-light-runner" : " ^0.4 .0" ,
38
38
"lint-staged" : " ^13.0.0" ,
39
39
"start-server-and-test" : " ^1.14.0" ,
40
40
"tmp" : " ^0.2.0"
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ import path from "path";
5
5
import { fileURLToPath } from "url" ;
6
6
import "isomorphic-fetch" ;
7
7
import { program } from "commander" ;
8
- import apiDocParser from "@api-platform/api-doc-parser" ;
8
+ import {
9
+ parseHydraDocumentation ,
10
+ parseOpenApi3Documentation ,
11
+ parseSwaggerDocumentation ,
12
+ } from "@api-platform/api-doc-parser" ;
9
13
import generators from "./generators.js" ;
10
14
11
15
const dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
@@ -102,14 +106,11 @@ async function main() {
102
106
switch ( options . format ) {
103
107
case "swagger" : // deprecated
104
108
case "openapi2" :
105
- return apiDocParser . parseSwaggerDocumentation ( entrypointWithSlash ) ;
109
+ return parseSwaggerDocumentation ( entrypointWithSlash ) ;
106
110
case "openapi3" :
107
- return apiDocParser . parseOpenApi3Documentation ( entrypointWithSlash ) ;
111
+ return parseOpenApi3Documentation ( entrypointWithSlash ) ;
108
112
default :
109
- return apiDocParser . parseHydraDocumentation (
110
- entrypointWithSlash ,
111
- parserOptions
112
- ) ;
113
+ return parseHydraDocumentation ( entrypointWithSlash , parserOptions ) ;
113
114
}
114
115
} ;
115
116
Original file line number Diff line number Diff line change 1
1
import type { AppProps } from "next/app" ;
2
+ import type { DehydratedState } from "react-query" ;
2
3
3
4
import Layout from "../components/common/Layout" ;
4
5
5
- const App = ( { Component, pageProps } : AppProps ) => (
6
+ const App = ( { Component, pageProps } : AppProps < { dehydratedState : DehydratedState } > ) => (
6
7
< Layout dehydratedState = { pageProps . dehydratedState } >
7
8
< Component { ...pageProps } />
8
9
</ Layout >
You can’t perform that action at this time.
0 commit comments