@@ -40,14 +40,6 @@ interface ConnectionSettings {
4040 dockerService ?: string ;
4141}
4242
43- // Needed to fix a TS error
44- declare let AbortSignal : {
45- prototype : AbortSignal ;
46- new ( ) : AbortSignal ;
47- abort ( reason ?: any ) : AbortSignal ;
48- timeout ( milliseconds : number ) : AbortSignal ;
49- } ;
50-
5143export class AtelierAPI {
5244 private _config : ConnectionSettings ;
5345 private namespace : string ;
@@ -369,7 +361,7 @@ export class AtelierAPI {
369361 } else if ( ! cookies . length ) {
370362 if ( ! authRequest ) {
371363 // Recursion point
372- authRequest = this . request ( 0 , "HEAD" ) ;
364+ authRequest = this . request ( 0 , "HEAD" , undefined , undefined , undefined , undefined , options ) ;
373365 authRequestMap . set ( target , authRequest ) ;
374366 }
375367 auth = authRequest ;
@@ -408,7 +400,6 @@ export class AtelierAPI {
408400 data : body ,
409401 withCredentials : true ,
410402 httpsAgent,
411- timeout : options ?. timeout ? options . timeout : 0 ,
412403 signal : options ?. timeout ? AbortSignal . timeout ( options . timeout ) : undefined ,
413404 validateStatus : ( status ) => status < 504 ,
414405 } ) ;
@@ -571,7 +562,6 @@ export class AtelierAPI {
571562 return Promise . all ( [
572563 workspaceState . update ( this . configName . toLowerCase ( ) + ":apiVersion" , apiVersion ) ,
573564 workspaceState . update ( this . configName . toLowerCase ( ) + ":serverVersion" , serverVersion ) ,
574- workspaceState . update ( this . configName . toLowerCase ( ) + ":iris" , data . version . startsWith ( "IRIS" ) ) ,
575565 ] ) . then ( ( ) => info ) ;
576566 }
577567 } ) ;
0 commit comments