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";
6
6
import parser from "yargs-parser" ;
7
7
import openapiTS from "../dist/index.js" ;
8
8
9
-
10
9
const GREEN = "\u001b[32m" ;
11
10
const BOLD = "\u001b[1m" ;
12
11
const RESET = "\u001b[0m" ;
@@ -79,7 +78,8 @@ async function generateSchema(pathToSpec) {
79
78
flags . header . forEach ( ( header ) => {
80
79
const firstColon = header . indexOf ( ":" ) ;
81
80
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 ;
83
83
} ) ;
84
84
}
85
85
Original file line number Diff line number Diff line change 51
51
"dependencies" : {
52
52
"js-yaml" : " ^4.1.0" ,
53
53
"mime" : " ^3.0.0" ,
54
- "prettier" : " ^2.5.1 " ,
54
+ "prettier" : " ^2.6.2 " ,
55
55
"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 "
58
58
},
59
59
"devDependencies" : {
60
60
"@types/js-yaml" : " ^4.0.5" ,
61
61
"@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" ,
66
66
"chai" : " ^4.3.6" ,
67
67
"codecov" : " ^3.8.3" ,
68
68
"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" ,
71
71
"eslint-plugin-prettier" : " ^4.0.0" ,
72
- "mocha" : " ^9.2.0 " ,
72
+ "mocha" : " ^9.2.2 " ,
73
73
"nyc" : " ^15.1.0" ,
74
- "typescript" : " ^4.5.5 "
74
+ "typescript" : " ^4.6.3 "
75
75
}
76
76
}
You can’t perform that action at this time.
0 commit comments