File tree Expand file tree Collapse file tree 5 files changed +239
-256
lines changed Expand file tree Collapse file tree 5 files changed +239
-256
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import glob from "tiny-glob";
66import parser from "yargs-parser" ;
77import openapiTS from "../dist/index.js" ;
88
9-
109const GREEN = "\u001b[32m" ;
1110const BOLD = "\u001b[1m" ;
1211const RESET = "\u001b[0m" ;
@@ -79,7 +78,8 @@ async function generateSchema(pathToSpec) {
7978 flags . header . forEach ( ( header ) => {
8079 const firstColon = header . indexOf ( ":" ) ;
8180 const k = header . substring ( 0 , firstColon ) . trim ( ) ;
82- httpHeaders [ k ] = header . substring ( firstColon + 1 ) . trim ( ) ;
81+ const v = header . substring ( firstColon + 1 ) . trim ( ) ;
82+ httpHeaders [ k ] = v ;
8383 } ) ;
8484 }
8585
Original file line number Diff line number Diff line change 5151 "dependencies" : {
5252 "js-yaml" : " ^4.1.0" ,
5353 "mime" : " ^3.0.0" ,
54- "prettier" : " ^2.5.1 " ,
54+ "prettier" : " ^2.6.2 " ,
5555 "tiny-glob" : " ^0.2.9" ,
56- "undici" : " ^4.14.1 " ,
57- "yargs-parser" : " ^21.0.0 "
56+ "undici" : " ^5.0.0 " ,
57+ "yargs-parser" : " ^21.0.1 "
5858 },
5959 "devDependencies" : {
6060 "@types/js-yaml" : " ^4.0.5" ,
6161 "@types/mime" : " ^2.0.3" ,
62- "@types/node" : " ^17.0.17 " ,
63- "@types/prettier" : " ^2.4.4 " ,
64- "@typescript-eslint/eslint-plugin" : " ^5.11 .0" ,
65- "@typescript-eslint/parser" : " ^5.11 .0" ,
62+ "@types/node" : " ^17.0.25 " ,
63+ "@types/prettier" : " ^2.6.0 " ,
64+ "@typescript-eslint/eslint-plugin" : " ^5.20 .0" ,
65+ "@typescript-eslint/parser" : " ^5.20 .0" ,
6666 "chai" : " ^4.3.6" ,
6767 "codecov" : " ^3.8.3" ,
6868 "eol" : " ^0.9.1" ,
69- "eslint" : " ^8.9 .0" ,
70- "eslint-config-prettier" : " ^8.3 .0" ,
69+ "eslint" : " ^8.14 .0" ,
70+ "eslint-config-prettier" : " ^8.5 .0" ,
7171 "eslint-plugin-prettier" : " ^4.0.0" ,
72- "mocha" : " ^9.2.0 " ,
72+ "mocha" : " ^9.2.2 " ,
7373 "nyc" : " ^15.1.0" ,
74- "typescript" : " ^4.5.5 "
74+ "typescript" : " ^4.6.3 "
7575 }
7676}
You can’t perform that action at this time.
0 commit comments