fix(ssh): modernize filesystem handling and package exports for NodeNext compatibility
This commit is contained in:
@@ -18,7 +18,7 @@ export class SshInstance {
|
||||
this._sshKeyArray = [];
|
||||
this._sshConfig = new SshConfig(this._sshKeyArray);
|
||||
this._sshDir = new SshDir(this._sshKeyArray, this._sshConfig, optionsArg.sshDirPath);
|
||||
this._sshSync = optionsArg.sshSync;
|
||||
this._sshSync = optionsArg.sshSync ?? false;
|
||||
}
|
||||
|
||||
// altering methods
|
||||
@@ -43,7 +43,7 @@ export class SshInstance {
|
||||
}
|
||||
|
||||
// non altering methods
|
||||
getKey(hostArg: string): SshKey {
|
||||
getKey(hostArg: string): SshKey | undefined {
|
||||
this._syncAuto('from');
|
||||
let filteredArray = this._sshKeyArray.filter(function (keyArg) {
|
||||
return keyArg.host === hostArg;
|
||||
|
||||
Reference in New Issue
Block a user