0.0.9 Update Deps
parent
7439c7e577
commit
08ed72224c
18
package.json
18
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@uci-utils/sync",
|
"name": "@uci-utils/sync",
|
||||||
"version": "0.0.8",
|
"version": "0.0.9",
|
||||||
"description": "module to copy, maintain, and launch hardware modules on other machines",
|
"description": "module to copy, maintain, and launch hardware modules on other machines",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -31,22 +31,22 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/uCOMmandIt/uci-remote-code#readme",
|
"homepage": "https://github.com/uCOMmandIt/uci-remote-code#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uci-utils/logger": "0.0.13",
|
"@uci-utils/logger": "^0.0.15",
|
||||||
"@uci-utils/read-lines": "^0.2.1",
|
"@uci-utils/read-lines": "^0.2.2",
|
||||||
"@uci-utils/watcher": "^0.2.4",
|
"@uci-utils/watcher": "^0.2.4",
|
||||||
"aggregation": "^1.2.5",
|
"aggregation": "^1.2.5",
|
||||||
"await-to-js": "^2.1.1",
|
"await-to-js": "^2.1.1",
|
||||||
"conf": "^2.2.0",
|
"conf": "^5.0.0",
|
||||||
"debounce-fn": "^1.0.0",
|
"debounce-fn": "^3.0.1",
|
||||||
"esm": "^3.2.7",
|
|
||||||
"fs-read-data": "^1.0.4",
|
"fs-read-data": "^1.0.4",
|
||||||
"path-exists": "^3.0.0",
|
"path-exists": "^4.0.0",
|
||||||
"yargs": "^13.2.1"
|
"yargs": "^13.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^4.2.0",
|
"chai": "^4.2.0",
|
||||||
|
"esm": "^3.2.25",
|
||||||
"mocha": "^6.x",
|
"mocha": "^6.x",
|
||||||
"nodemon": "^1.18.10",
|
"nodemon": "^1.19.1",
|
||||||
"ondeath": "^1.0.0"
|
"ondeath": "^1.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,6 +211,7 @@ class Sync extends merge(Rsync, Emitter) {
|
||||||
}
|
}
|
||||||
let cmd = []
|
let cmd = []
|
||||||
// TODO allow all openssh client options
|
// TODO allow all openssh client options
|
||||||
|
// check if no leading / on path, then check KEYS_DIR if not then add ~/.ssh
|
||||||
if (options.privateKeyPath) cmd.push(`-i ${options.privateKeyPath}`)
|
if (options.privateKeyPath) cmd.push(`-i ${options.privateKeyPath}`)
|
||||||
if (options.port) cmd.push(`-p ${options.port}`)
|
if (options.port) cmd.push(`-p ${options.port}`)
|
||||||
if (options.configFile) cmd.push(`-F ${options.configFile}`)
|
if (options.configFile) cmd.push(`-F ${options.configFile}`)
|
||||||
|
@ -238,7 +239,7 @@ class Sync extends merge(Rsync, Emitter) {
|
||||||
log.info({cmd:cmd, status:status, msg:'sync run'})
|
log.info({cmd:cmd, status:status, msg:'sync run'})
|
||||||
if (!errors) this.emit('sync',status)
|
if (!errors) this.emit('sync',status)
|
||||||
resolve({cmd:cmd, errors:errors, status:status, msg:'sync run'})
|
resolve({cmd:cmd, errors:errors, status:status, msg:'sync run'})
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
function(data) {
|
function(data) {
|
||||||
status += data.toString()
|
status += data.toString()
|
||||||
if (opts.cli) process.stdout.write(data.toString())
|
if (opts.cli) process.stdout.write(data.toString())
|
||||||
|
|
Loading…
Reference in New Issue