desplega-api
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -67,6 +67,6 @@ "use strict"; | ||
catch (error) { | ||
return reject({ | ||
error: new Error(`There was a problem trying to connect to the host ${this.connectConfig.host}: ${error.message}`), | ||
stderr: '', | ||
stdout: '' | ||
return this.resetConnection().then(() => { | ||
return reject({ | ||
error: new Error(`There was a problem trying to connect to the host ${this.connectConfig.host}: ${error.message}`) | ||
}); | ||
}); | ||
@@ -77,3 +77,3 @@ } | ||
if (error) { | ||
return reject({ error, stderr: '', stdout: '' }); | ||
return reject({ error }); | ||
} | ||
@@ -80,0 +80,0 @@ else { |
{ | ||
"name": "desplega-api", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Series of useful modules to create rich automation pipelines", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -63,6 +63,6 @@ import { Client, ConnectConfig, ClientChannel } from 'ssh2' | ||
} catch (error) { | ||
return reject({ | ||
error: new Error(`There was a problem trying to connect to the host ${this.connectConfig.host}: ${error.message}`), | ||
stderr: '', | ||
stdout: '' | ||
return this.resetConnection().then(() => { | ||
return reject({ | ||
error: new Error(`There was a problem trying to connect to the host ${this.connectConfig.host}: ${error.message}`) | ||
}) | ||
}) | ||
@@ -74,3 +74,3 @@ } | ||
if (error) { | ||
return reject({ error, stderr: '', stdout: '' }) | ||
return reject({ error }) | ||
} else { | ||
@@ -77,0 +77,0 @@ let stdout = '' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143605