ssh-client-wrapper 1.5.0 → 1.5.1

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/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -148,7 +148,7 @@ class SshClientWrapper {
148
148
  * @param {Integer} timeout - timeout in secconds
149
149
  * @returns {Promise} - Resolved with true on success, otherwise rejected with Error.
150
150
  */
151
- canConnect(timeout) {
151
+ canConnect(timeout = 60) {
152
152
  debug("canConnect called timeout=", timeout);
153
153
 
154
154
  if (!Number.isInteger(timeout) || timeout <= 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssh-client-wrapper",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "wrapper library for open ssh client and rsync",
5
5
  "keywords": [
6
6
  "ssh",