import * as debug from 'debug' ; const d = debug ( '@electron/get:proxy' ) ; /**
 * Initializes a third-party proxy module for HTTP(S) requests.
 */ export function initializeProxy ( ) { try { const MAJOR_NODEJS_VERSION = parseInt ( process . version . slice ( 1 ) . split ( '.' ) [ 0 ] , 10 ) ; if ( MAJOR_NODEJS_VERSION >= 10 ) { require ( 'global-agent' ) . bootstrap ( ) ; } else { require ( 'global-tunnel-ng' ) . initialize ( ) ; } } catch ( e ) { d ( 'Could not load either proxy modules, built-in proxy support not available:' , e ) ; } }