ftp-deploy
Advanced tools
Comparing version 2.4.6 to 2.4.7
{ | ||
"name": "ftp-deploy", | ||
"version": "2.4.6", | ||
"version": "2.4.7", | ||
"author": "Simon Hampton", | ||
@@ -15,3 +15,3 @@ "description": "Ftp a folder from your local disk to an ftp destination", | ||
"read": "^2.1.0", | ||
"ssh2-sftp-client": "^7.2.1", | ||
"ssh2-sftp-client": "^7.2.3", | ||
"upath": "^2.0.1" | ||
@@ -18,0 +18,0 @@ }, |
@@ -5,4 +5,2 @@ # ftp-deploy | ||
Version 2.0.0 is an almost complete re-write to use promises and [promise-ftp](https://github.com/realtymaps/promise-ftp) instead of jsftp. The one breaking change is listed in the notes of Usage section. | ||
## Installation | ||
@@ -120,2 +118,11 @@ | ||
## Release | ||
```sh | ||
npm version patch | ||
git commit -m 'bump' | ||
npm publish | ||
git push origin vx.y.z | ||
``` | ||
## ToDo | ||
@@ -122,0 +129,0 @@ |
@@ -30,3 +30,3 @@ "use strict"; | ||
const d = new FtpDeploy(); | ||
const configError = Object.assign({}, config, { port: 212 }); | ||
const configError = { ...config, port: 212 }; | ||
return del(remoteDir) | ||
@@ -49,3 +49,3 @@ .then(() => { | ||
.then(() => { | ||
let c2 = Object.assign({}, config, { include: [] }); | ||
let c2 = { ...config, include: [] }; | ||
return d.deploy(c2); | ||
@@ -52,0 +52,0 @@ }) |
@@ -6,3 +6,2 @@ const fs = require("fs"); | ||
const read = require("read"); | ||
const readP = util.promisify(read); | ||
@@ -39,3 +38,3 @@ const { minimatch } = require("minimatch"); | ||
}; | ||
return readP(options).then((res) => { | ||
return read(options).then((res) => { | ||
let config2 = Object.assign(config, { password: res }); | ||
@@ -162,6 +161,5 @@ return config2; | ||
// Apply the mapper function to the current item | ||
return mapper(item, index, array) | ||
.then(res => { | ||
output.push(res); | ||
}); | ||
return mapper(item, index, array).then((res) => { | ||
output.push(res); | ||
}); | ||
}); | ||
@@ -168,0 +166,0 @@ }); |
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
130
29815
551
Updatedssh2-sftp-client@^7.2.3