@electerm/ssh2 1.18.1 → 1.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/client.js +2 -2
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -244,7 +244,7 @@ class Client extends EventEmitter {
244
244
  ? cfg.debug
245
245
  : undefined);
246
246
 
247
- this.config.sftpEncoding = cfg.sftpEncoding || 'utf8';
247
+ this.config.encode = cfg.encode || 'utf8';
248
248
 
249
249
  if (cfg.agentForward === true && !this.config.allowAgentFwd) {
250
250
  throw new Error(
@@ -606,7 +606,7 @@ class Client extends EventEmitter {
606
606
  };
607
607
  const instance = (
608
608
  isSFTP
609
- ? new SFTP(this, chanInfo, { debug, encoding: this.config.sftpEncoding })
609
+ ? new SFTP(this, chanInfo, { debug, encoding: this.config.encode })
610
610
  : new Channel(this, chanInfo)
611
611
  );
612
612
  this._chanMgr.update(info.recipient, instance);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electerm/ssh2",
3
- "version": "1.18.1",
3
+ "version": "1.18.2",
4
4
  "author": "Brian White <mscdex@mscdex.net>",
5
5
  "description": "SSH2 client and server modules written in pure JavaScript for node.js",
6
6
  "main": "./lib/index.js",