File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- var fs = require ( 'fs' )
1+ var fsAccess = require ( 'fs-access ' )
22var path = require ( 'path' )
33var which = require ( 'which' )
44
@@ -56,7 +56,7 @@ function getChromeExe (chromeDirName) {
5656 prefix = prefixes [ i ]
5757 try {
5858 windowsChromeDirectory = path . join ( prefix , suffix )
59- fs . accessSync ( windowsChromeDirectory )
59+ fsAccess . sync ( windowsChromeDirectory )
6060 return windowsChromeDirectory
6161 } catch ( e ) { }
6262 }
@@ -88,7 +88,7 @@ function getChromeDarwin (defaultPath) {
8888
8989 try {
9090 var homePath = path . join ( process . env . HOME , defaultPath )
91- fs . accessSync ( homePath )
91+ fsAccess . sync ( homePath )
9292 return homePath
9393 } catch ( e ) {
9494 return defaultPath
Original file line number Diff line number Diff line change 1717 ],
1818 "author" :
" Vojta Jina <[email protected] >" ,
1919 "dependencies" : {
20+ "fs-access" : " ^1.0.0" ,
2021 "which" : " ^1.0.9"
2122 },
2223 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments