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 11import { isIP } from 'net' ;
2- import { promises as fs } from 'fs' ;
2+ import { promises as fsPromises } from 'fs' ;
33import { BaseProtocol } from './protocol/base-protocol' ;
44import BaseConnection from './connection/base-connection' ;
55import { JsonProtocol } from './protocol/json-protocol' ;
@@ -36,7 +36,7 @@ export default class JunoModule {
3636 if ( isIP ( host ) && ! isNaN ( Number ( port ) ) ) {
3737 return this . fromInetSocket ( host , Number ( port ) ) ;
3838 }
39- if ( ( await fs . lstat ( socketPath ) ) . isSocket ( ) ) {
39+ if ( ( await fsPromises . lstat ( socketPath ) ) . isSocket ( ) ) {
4040 return this . fromUnixSocket ( socketPath ) ;
4141 }
4242
@@ -49,7 +49,7 @@ export default class JunoModule {
4949 if ( process . platform == 'win32' ) {
5050 throw new Error ( 'Unix sockets are not supported on windows' ) ;
5151 }
52- if ( ( await fs . lstat ( path ) ) . isSocket ( ) ) {
52+ if ( ( await fsPromises . lstat ( path ) ) . isSocket ( ) ) {
5353 return new JunoModule ( new UnixSocketConnection ( path ) , new JsonProtocol ( ) ) ;
5454 }
5555
You can’t perform that action at this time.
0 commit comments