File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { isIP } from 'net' ;
2
- import { promises as fs } from 'fs' ;
2
+ import { promises as fsPromises } from 'fs' ;
3
3
import { BaseProtocol } from './protocol/base-protocol' ;
4
4
import BaseConnection from './connection/base-connection' ;
5
5
import { JsonProtocol } from './protocol/json-protocol' ;
@@ -36,7 +36,7 @@ export default class JunoModule {
36
36
if ( isIP ( host ) && ! isNaN ( Number ( port ) ) ) {
37
37
return this . fromInetSocket ( host , Number ( port ) ) ;
38
38
}
39
- if ( ( await fs . lstat ( socketPath ) ) . isSocket ( ) ) {
39
+ if ( ( await fsPromises . lstat ( socketPath ) ) . isSocket ( ) ) {
40
40
return this . fromUnixSocket ( socketPath ) ;
41
41
}
42
42
@@ -49,7 +49,7 @@ export default class JunoModule {
49
49
if ( process . platform == 'win32' ) {
50
50
throw new Error ( 'Unix sockets are not supported on windows' ) ;
51
51
}
52
- if ( ( await fs . lstat ( path ) ) . isSocket ( ) ) {
52
+ if ( ( await fsPromises . lstat ( path ) ) . isSocket ( ) ) {
53
53
return new JunoModule ( new UnixSocketConnection ( path ) , new JsonProtocol ( ) ) ;
54
54
}
55
55
You can’t perform that action at this time.
0 commit comments