File tree Expand file tree Collapse file tree 11 files changed +4557
-4232
lines changed
openapi-typescript-helpers Expand file tree Collapse file tree 11 files changed +4557
-4232
lines changed Original file line number Diff line number Diff line change 16
16
"devDependencies" : {
17
17
"@changesets/changelog-github" : " ^0.5.0" ,
18
18
"@changesets/cli" : " ^2.27.1" ,
19
- "@typescript-eslint/eslint-plugin" : " ^7.1 .1" ,
20
- "@typescript-eslint/parser" : " ^7.1 .1" ,
19
+ "@typescript-eslint/eslint-plugin" : " ^7.7 .1" ,
20
+ "@typescript-eslint/parser" : " ^7.7 .1" ,
21
21
"del-cli" : " ^5.1.0" ,
22
22
"eslint" : " ^8.57.0" ,
23
23
"eslint-config-prettier" : " ^9.1.0" ,
26
26
"eslint-plugin-prettier" : " ^5.1.3" ,
27
27
"eslint-plugin-vitest" : " ^0.2.8" ,
28
28
"prettier" : " ^3.2.5" ,
29
- "typescript" : " ^5.4.4 "
29
+ "typescript" : " ^5.4.5 "
30
30
}
31
31
}
Original file line number Diff line number Diff line change 6
6
"dev" : " next dev"
7
7
},
8
8
"dependencies" : {
9
- "next" : " 14.1.0 " ,
9
+ "next" : " 14.2.2 " ,
10
10
"openapi-fetch" : " workspace:^" ,
11
11
"react" : " 18.2.0" ,
12
12
"react-dom" : " 18.2.0"
13
13
},
14
14
"devDependencies" : {
15
- "@types/node" : " 20.11.24 " ,
16
- "@types/react" : " 18.2.20 " ,
17
- "@types/react-dom" : " 18.2.7 " ,
15
+ "@types/node" : " 20.12.7 " ,
16
+ "@types/react" : " 18.2.79 " ,
17
+ "@types/react-dom" : " 18.2.25 " ,
18
18
"openapi-typescript" : " workspace:^" ,
19
- "typescript" : " 5.4.4 "
19
+ "typescript" : " 5.4.5 "
20
20
}
21
21
}
Original file line number Diff line number Diff line change 6
6
"dev" : " vite dev"
7
7
},
8
8
"dependencies" : {
9
- "@tanstack/react-query" : " ^5.29 .0" ,
9
+ "@tanstack/react-query" : " ^5.32 .0" ,
10
10
"openapi-fetch" : " workspace:^" ,
11
11
"openapi-typescript" : " workspace:^" ,
12
12
"react" : " ^18.2.0" ,
13
13
"react-dom" : " ^18.2.0"
14
14
},
15
15
"devDependencies" : {
16
- "@types/react" : " 18.2.20 " ,
17
- "@types/react-dom" : " 18.2.7 " ,
16
+ "@types/react" : " 18.2.79 " ,
17
+ "@types/react-dom" : " 18.2.25 " ,
18
18
"@vitejs/plugin-react-swc" : " ^3.6.0" ,
19
- "typescript" : " ^5.4.4 " ,
20
- "vite" : " ^5.2.8 "
19
+ "typescript" : " ^5.4.5 " ,
20
+ "vite" : " ^5.2.10 "
21
21
}
22
22
}
Original file line number Diff line number Diff line change 13
13
},
14
14
"devDependencies" : {
15
15
"@sveltejs/adapter-auto" : " ^3.2.0" ,
16
- "@sveltejs/kit" : " ^2.5.5 " ,
17
- "@sveltejs/vite-plugin-svelte" : " ^3.0.2 " ,
18
- "svelte" : " ^4.2.12 " ,
16
+ "@sveltejs/kit" : " ^2.5.7 " ,
17
+ "@sveltejs/vite-plugin-svelte" : " ^3.1.0 " ,
18
+ "svelte" : " ^4.2.15 " ,
19
19
"svelte-check" : " ^3.6.9" ,
20
20
"tslib" : " ^2.6.2" ,
21
- "typescript" : " ^5.4.4 " ,
22
- "vite" : " ^5.2.8 "
21
+ "typescript" : " ^5.4.5 " ,
22
+ "vite" : " ^5.2.10 "
23
23
}
24
24
}
Original file line number Diff line number Diff line change 66
66
"openapi-typescript-helpers" : " ^0.0.7"
67
67
},
68
68
"devDependencies" : {
69
- "axios" : " ^1.6.7 " ,
69
+ "axios" : " ^1.6.8 " ,
70
70
"del-cli" : " ^5.1.0" ,
71
- "esbuild" : " ^0.20.0 " ,
72
- "msw" : " ^2.2.3 " ,
73
- "openapi-typescript" : " ^6.7.4 " ,
71
+ "esbuild" : " ^0.20.2 " ,
72
+ "msw" : " ^2.2.14 " ,
73
+ "openapi-typescript" : " ^6.7.5 " ,
74
74
"openapi-typescript-codegen" : " ^0.25.0" ,
75
75
"openapi-typescript-fetch" : " ^1.1.3" ,
76
- "superagent" : " ^8.1.2 " ,
77
- "typescript" : " ^5.4.4 " ,
78
- "vitest" : " ^1.4 .0"
76
+ "superagent" : " ^9.0.0 " ,
77
+ "typescript" : " ^5.4.5 " ,
78
+ "vitest" : " ^1.5 .0"
79
79
}
80
80
}
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export interface paths {
52
52
requestBody ?: never ;
53
53
responses : {
54
54
200 : components [ "responses" ] [ "AllPostsGet" ] ;
55
+ 401 : components [ "responses" ] [ "EmptyError" ] ;
55
56
500 : components [ "responses" ] [ "Error" ] ;
56
57
} ;
57
58
} ;
@@ -823,6 +824,12 @@ export interface components {
823
824
"text/html" : string ;
824
825
} ;
825
826
} ;
827
+ EmptyError : {
828
+ headers : {
829
+ [ name : string ] : unknown ;
830
+ } ;
831
+ content ?: never ;
832
+ } ;
826
833
Error : {
827
834
headers : {
828
835
[ name : string ] : unknown ;
Original file line number Diff line number Diff line change @@ -959,10 +959,9 @@ describe("client", () => {
959
959
} ,
960
960
async onResponse ( res ) {
961
961
if ( res . headers . get ( "step" ) === "B" ) {
962
- return new Response ( res . body , {
963
- ...res ,
964
- headers : { ...res . headers , step : "A" } ,
965
- } ) ;
962
+ const headers = new Headers ( res . headers ) ;
963
+ headers . set ( "step" , "A" ) ;
964
+ return new Response ( res . body , { ...res , headers } ) ;
966
965
}
967
966
} ,
968
967
} ,
@@ -972,11 +971,10 @@ describe("client", () => {
972
971
return req ;
973
972
} ,
974
973
async onResponse ( res ) {
974
+ const headers = new Headers ( res . headers ) ;
975
+ headers . set ( "step" , "B" ) ;
975
976
if ( res . headers . get ( "step" ) === "C" ) {
976
- return new Response ( res . body , {
977
- ...res ,
978
- headers : { ...res . headers , step : "B" } ,
979
- } ) ;
977
+ return new Response ( res . body , { ...res , headers } ) ;
980
978
}
981
979
} ,
982
980
} ,
Original file line number Diff line number Diff line change @@ -964,10 +964,9 @@ describe("client", () => {
964
964
} ,
965
965
async onResponse ( res ) {
966
966
if ( res . headers . get ( "step" ) === "B" ) {
967
- return new Response ( res . body , {
968
- ...res ,
969
- headers : { ...res . headers , step : "A" } ,
970
- } ) ;
967
+ const headers = new Headers ( res . headers ) ;
968
+ headers . set ( "step" , "A" ) ;
969
+ return new Response ( res . body , { ...res , headers } ) ;
971
970
}
972
971
} ,
973
972
} ,
@@ -978,10 +977,9 @@ describe("client", () => {
978
977
} ,
979
978
async onResponse ( res ) {
980
979
if ( res . headers . get ( "step" ) === "C" ) {
981
- return new Response ( res . body , {
982
- ...res ,
983
- headers : { ...res . headers , step : "B" } ,
984
- } ) ;
980
+ const headers = new Headers ( res . headers ) ;
981
+ headers . set ( "step" , "B" ) ;
982
+ return new Response ( res . body , { ...res , headers } ) ;
985
983
}
986
984
} ,
987
985
} ,
Original file line number Diff line number Diff line change 40
40
"test" : " tsc --noEmit"
41
41
},
42
42
"devDependencies" : {
43
- "typescript" : " ^5.4.4 "
43
+ "typescript" : " ^5.4.5 "
44
44
}
45
45
}
Original file line number Diff line number Diff line change 62
62
"typescript" : " ^5.x"
63
63
},
64
64
"dependencies" : {
65
- "@redocly/openapi-core" : " ^1.10.3 " ,
65
+ "@redocly/openapi-core" : " ^1.11.0 " ,
66
66
"ansi-colors" : " ^4.1.3" ,
67
67
"supports-color" : " ^9.4.0" ,
68
68
"yargs-parser" : " ^21.1.1"
69
69
},
70
70
"devDependencies" : {
71
71
"@types/degit" : " ^2.8.6" ,
72
72
"@types/js-yaml" : " ^4.0.9" ,
73
- "@types/node" : " ^20.11.24 " ,
73
+ "@types/node" : " ^20.12.7 " ,
74
74
"degit" : " ^2.8.4" ,
75
75
"del-cli" : " ^5.1.0" ,
76
- "esbuild" : " ^0.20.1 " ,
76
+ "esbuild" : " ^0.20.2 " ,
77
77
"execa" : " ^7.2.0" ,
78
- "typescript" : " ^5.4.4 " ,
79
- "vite-node" : " ^1.4 .0" ,
80
- "vitest" : " ^1.4 .0"
78
+ "typescript" : " ^5.4.5 " ,
79
+ "vite-node" : " ^1.5 .0" ,
80
+ "vitest" : " ^1.5 .0"
81
81
}
82
82
}
You can’t perform that action at this time.
0 commit comments