Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-ssh

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-ssh - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

8

Dist/SSH.js

@@ -167,5 +167,3 @@ 'use strict';

}).then(function () {
if (SFTP) {
return SFTP;
} else _this3.requestSFTP();
return SFTP ? Promise.resolve(SFTP) : _this3.requestSFTP();
}).then(function (SFTP) {

@@ -235,6 +233,6 @@ return new Promise(function (resolve, reject) {

return new Promise(function (resolve, reject) {
_this6.connection.sftp(function (err, shell) {
_this6.connection.sftp(function (err, sftp) {
if (err) {
reject(err);
} else resolve(shell);
} else resolve(sftp);
});

@@ -241,0 +239,0 @@ });

{
"name": "node-ssh",
"version": "2.0.4",
"version": "2.0.5",
"description": "SS2 with Promises",

@@ -5,0 +5,0 @@ "main": "Dist/SSH.js",

@@ -129,5 +129,3 @@ // @Compiler-Transpile "true"

}).then(() => {
if (SFTP) {
return SFTP
} else this.requestSFTP()
return SFTP ? Promise.resolve(SFTP) : this.requestSFTP()
}).then(SFTP => {

@@ -185,6 +183,6 @@ return new Promise(function(resolve, reject) {

return new Promise((resolve, reject) => {
this.connection.sftp(function(err, shell) {
this.connection.sftp(function(err, sftp) {
if (err) {
reject(err)
} else resolve(shell)
} else resolve(sftp)
})

@@ -191,0 +189,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc