@@ -4,7 +4,7 @@ const { downloadArtifact } = require('@electron/get')
4
4
const extractZip = require ( 'extract-zip' )
5
5
const versionToDownload = require ( './package' ) . version
6
6
7
- function download ( version ) {
7
+ function download ( version ) {
8
8
return downloadArtifact ( {
9
9
version,
10
10
artifactName : 'chromedriver' ,
@@ -13,20 +13,27 @@ function download (version) {
13
13
platform : process . env . npm_config_platform ,
14
14
arch : process . env . npm_config_arch ,
15
15
rejectUnauthorized : process . env . npm_config_strict_ssl === 'true' ,
16
- quiet : [ 'info' , 'verbose' , 'silly' , 'http' ] . indexOf ( process . env . npm_config_loglevel ) === - 1
16
+ quiet :
17
+ [ 'info' , 'verbose' , 'silly' , 'http' ] . indexOf (
18
+ process . env . npm_config_loglevel ,
19
+ ) === - 1 ,
17
20
} )
18
21
}
19
22
20
- async function attemptDownload ( version ) {
23
+ async function attemptDownload ( version ) {
21
24
// Fall back to latest stable if there is not a stamped version, for tests
22
25
if ( version === '0.0.0-development' ) {
23
26
if ( ! process . env . ELECTRON_CHROMEDRIVER_STABLE_FALLBACK ) {
24
- console . log ( 'WARNING: chromedriver in development needs the environment variable ELECTRON_CHROMEDRIVER_STABLE_FALLBACK set' )
27
+ console . log (
28
+ 'WARNING: chromedriver in development needs the environment variable ELECTRON_CHROMEDRIVER_STABLE_FALLBACK set' ,
29
+ )
25
30
process . exit ( 1 )
26
31
}
27
32
28
33
const { ElectronVersions } = require ( '@electron/fiddle-core' )
29
- const versions = await ElectronVersions . create ( undefined , { ignoreCache : true } )
34
+ const versions = await ElectronVersions . create ( undefined , {
35
+ ignoreCache : true ,
36
+ } )
30
37
version = versions . latestStable . version
31
38
}
32
39
0 commit comments