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 1616 "devDependencies" : {
1717 "@changesets/changelog-github" : " ^0.5.0" ,
1818 "@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" ,
2121 "del-cli" : " ^5.1.0" ,
2222 "eslint" : " ^8.57.0" ,
2323 "eslint-config-prettier" : " ^9.1.0" ,
2626 "eslint-plugin-prettier" : " ^5.1.3" ,
2727 "eslint-plugin-vitest" : " ^0.2.8" ,
2828 "prettier" : " ^3.2.5" ,
29- "typescript" : " ^5.4.4 "
29+ "typescript" : " ^5.4.5 "
3030 }
3131}
Original file line number Diff line number Diff line change 66 "dev" : " next dev"
77 },
88 "dependencies" : {
9- "next" : " 14.1.0 " ,
9+ "next" : " 14.2.2 " ,
1010 "openapi-fetch" : " workspace:^" ,
1111 "react" : " 18.2.0" ,
1212 "react-dom" : " 18.2.0"
1313 },
1414 "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 " ,
1818 "openapi-typescript" : " workspace:^" ,
19- "typescript" : " 5.4.4 "
19+ "typescript" : " 5.4.5 "
2020 }
2121}
Original file line number Diff line number Diff line change 66 "dev" : " vite dev"
77 },
88 "dependencies" : {
9- "@tanstack/react-query" : " ^5.29 .0" ,
9+ "@tanstack/react-query" : " ^5.32 .0" ,
1010 "openapi-fetch" : " workspace:^" ,
1111 "openapi-typescript" : " workspace:^" ,
1212 "react" : " ^18.2.0" ,
1313 "react-dom" : " ^18.2.0"
1414 },
1515 "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 " ,
1818 "@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 "
2121 }
2222}
Original file line number Diff line number Diff line change 1313 },
1414 "devDependencies" : {
1515 "@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 " ,
1919 "svelte-check" : " ^3.6.9" ,
2020 "tslib" : " ^2.6.2" ,
21- "typescript" : " ^5.4.4 " ,
22- "vite" : " ^5.2.8 "
21+ "typescript" : " ^5.4.5 " ,
22+ "vite" : " ^5.2.10 "
2323 }
2424}
Original file line number Diff line number Diff line change 6666 "openapi-typescript-helpers" : " ^0.0.7"
6767 },
6868 "devDependencies" : {
69- "axios" : " ^1.6.7 " ,
69+ "axios" : " ^1.6.8 " ,
7070 "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 " ,
7474 "openapi-typescript-codegen" : " ^0.25.0" ,
7575 "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"
7979 }
8080}
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export interface paths {
5252 requestBody ?: never ;
5353 responses : {
5454 200 : components [ "responses" ] [ "AllPostsGet" ] ;
55+ 401 : components [ "responses" ] [ "EmptyError" ] ;
5556 500 : components [ "responses" ] [ "Error" ] ;
5657 } ;
5758 } ;
@@ -823,6 +824,12 @@ export interface components {
823824 "text/html" : string ;
824825 } ;
825826 } ;
827+ EmptyError : {
828+ headers : {
829+ [ name : string ] : unknown ;
830+ } ;
831+ content ?: never ;
832+ } ;
826833 Error : {
827834 headers : {
828835 [ name : string ] : unknown ;
Original file line number Diff line number Diff line change @@ -959,10 +959,9 @@ describe("client", () => {
959959 } ,
960960 async onResponse ( res ) {
961961 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 } ) ;
966965 }
967966 } ,
968967 } ,
@@ -972,11 +971,10 @@ describe("client", () => {
972971 return req ;
973972 } ,
974973 async onResponse ( res ) {
974+ const headers = new Headers ( res . headers ) ;
975+ headers . set ( "step" , "B" ) ;
975976 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 } ) ;
980978 }
981979 } ,
982980 } ,
Original file line number Diff line number Diff line change @@ -964,10 +964,9 @@ describe("client", () => {
964964 } ,
965965 async onResponse ( res ) {
966966 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 } ) ;
971970 }
972971 } ,
973972 } ,
@@ -978,10 +977,9 @@ describe("client", () => {
978977 } ,
979978 async onResponse ( res ) {
980979 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 } ) ;
985983 }
986984 } ,
987985 } ,
Original file line number Diff line number Diff line change 4040 "test" : " tsc --noEmit"
4141 },
4242 "devDependencies" : {
43- "typescript" : " ^5.4.4 "
43+ "typescript" : " ^5.4.5 "
4444 }
4545}
Original file line number Diff line number Diff line change 6262 "typescript" : " ^5.x"
6363 },
6464 "dependencies" : {
65- "@redocly/openapi-core" : " ^1.10.3 " ,
65+ "@redocly/openapi-core" : " ^1.11.0 " ,
6666 "ansi-colors" : " ^4.1.3" ,
6767 "supports-color" : " ^9.4.0" ,
6868 "yargs-parser" : " ^21.1.1"
6969 },
7070 "devDependencies" : {
7171 "@types/degit" : " ^2.8.6" ,
7272 "@types/js-yaml" : " ^4.0.9" ,
73- "@types/node" : " ^20.11.24 " ,
73+ "@types/node" : " ^20.12.7 " ,
7474 "degit" : " ^2.8.4" ,
7575 "del-cli" : " ^5.1.0" ,
76- "esbuild" : " ^0.20.1 " ,
76+ "esbuild" : " ^0.20.2 " ,
7777 "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"
8181 }
8282}
You can’t perform that action at this time.
0 commit comments