File tree Expand file tree Collapse file tree 3 files changed +1943
-1842
lines changed Expand file tree Collapse file tree 3 files changed +1943
-1842
lines changed Original file line number Diff line number Diff line change @@ -247,11 +247,12 @@ LiveServer.start = function (options) {
247247 // Use http-auth if configured
248248 if ( htpasswd !== null ) {
249249 const auth = require ( 'http-auth' ) ;
250+ const authConnect = require ( 'http-auth-connect' ) ;
250251 const basic = auth . basic ( {
251252 realm : 'Please authorize' ,
252253 file : htpasswd ,
253254 } ) ;
254- app . use ( auth . connect ( basic ) ) ;
255+ app . use ( authConnect ( basic ) ) ;
255256 }
256257
257258 if ( cors ) {
Original file line number Diff line number Diff line change 1818 "cors" : " 2.8.5" ,
1919 "event-stream" : " 3.3.4" ,
2020 "faye-websocket" : " 0.11.x" ,
21- "http-auth" : " 3.2.x" ,
21+ "http-auth" : " 4.1.x" ,
22+ "http-auth-connect" : " ^1.0.5" ,
2223 "morgan" : " 1.10.0" ,
2324 "object-assign" : " 4.1.1" ,
2425 "opn" : " 5.3.0" ,
You can’t perform that action at this time.
0 commit comments