ssh2shell 2.0.7 → 2.0.8

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.
package/lib/ssh2shell.js CHANGED
@@ -979,7 +979,8 @@
979
979
  if (_this._hosts.length === 0) {
980
980
  if (typeof _this._callback === 'function') {
981
981
  _this._callback(_this._allSessions);
982
- return _this._removeListeners();
982
+ _this._removeListeners();
983
+ return _this._allSessions;
983
984
  }
984
985
  } else {
985
986
  return _this.emit("newPrimaryHost", _this._nextPrimaryHost(_this._connect));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssh2shell",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "author": "cmp-202",
5
5
  "description": "A wrapper class for ssh2 to run multiple sequential commands in an SSH shell session, handle command responses, and tunnel through to other hosts using nested host objects",
6
6
  "main": "./lib/ssh2shell.js",
@@ -607,6 +607,7 @@ class SSH2Shell extends Stream
607
607
  if typeof @_callback == 'function'
608
608
  @_callback @_allSessions
609
609
  @_removeListeners()
610
+ return @_allSessions
610
611
  else
611
612
  @.emit "newPrimaryHost", @_nextPrimaryHost(@_connect)
612
613