File tree Expand file tree Collapse file tree 4 files changed +171
-252
lines changed Expand file tree Collapse file tree 4 files changed +171
-252
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ See <https://github.com/ladjs/lad/blob/master/template/api.js> for the most up t
5050[ MIT] ( LICENSE ) © [ Nick Baugh] ( http://niftylettuce.com/ )
5151
5252
53- ##
53+ ##
5454
5555[ npm ] : https://www.npmjs.com/
5656
Original file line number Diff line number Diff line change @@ -61,11 +61,6 @@ class API {
6161 this . config . redisMonitor
6262 ) ;
6363
64- // store the server initialization
65- // so that we can gracefully exit
66- // later on with `server.close()`
67- let server ;
68-
6964 // allow middleware to access redis client
7065 app . context . client = client ;
7166
@@ -175,10 +170,10 @@ class API {
175170 : http . createServer ;
176171
177172 // start server on either http or https
178- if ( this . config . protocol === 'https' )
179- server = createServer ( this . config . ssl , app . callback ( ) ) ;
180- // server = http2.createSecureServer (this.config.ssl, app.callback());
181- else server = createServer ( app . callback ( ) ) ;
173+ const server =
174+ this . config . protocol === 'https'
175+ ? createServer ( this . config . ssl , app . callback ( ) )
176+ : createServer ( app . callback ( ) ) ;
182177
183178 // expose app, server, client
184179 this . app = app ;
Original file line number Diff line number Diff line change 5454 "codecov" : " ^3.8.0" ,
5555 "cross-env" : " ^7.0.2" ,
5656 "eslint" : " ^7.11.0" ,
57- "eslint-config-xo-lass" : " ^1.0.3 " ,
57+ "eslint-config-xo-lass" : " ^1.0.4 " ,
5858 "fixpack" : " ^3.0.6" ,
5959 "husky" : " ^4.3.0" ,
6060 "lint-staged" : " 10.4.2" ,
6161 "mongoose" : " ^5.10.9" ,
6262 "nyc" : " ^15.1.0" ,
63- "remark-cli" : " 8.x " ,
64- "remark-preset-github" : " ^3.0.0 " ,
63+ "remark-cli" : " ^9.0.0 " ,
64+ "remark-preset-github" : " ^3.0.1 " ,
6565 "supertest" : " ^5.0.0" ,
6666 "xo" : " ^0.34.0"
6767 },
You can’t perform that action at this time.
0 commit comments