ssh2-sftp-client
Advanced tools
Comparing version 2.0.1 to 2.1.0
{ | ||
"name": "ssh2-sftp-client", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "ssh2 sftp client for node", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -34,3 +34,3 @@ ## SSH2 SFTP Client | ||
``` | ||
sftp.list(romoteFilePath) | ||
sftp.list(remoteFilePath) | ||
``` | ||
@@ -59,3 +59,3 @@ | ||
``` | ||
sftp.get(remoteFilePath, [useCompression], [encoding]); | ||
sftp.get(remoteFilePath, [useCompression], [encoding], [addtionalOptions]); | ||
``` | ||
@@ -67,5 +67,5 @@ | ||
``` | ||
sftp.put(localFilePath, remoteFilePath, [useCompression], [encoding]); | ||
sftp.put(Buffer, remoteFilePath, [useCompression], [encoding]); | ||
sftp.put(Stream, remoteFilePath, [useCompression], [encoding]); | ||
sftp.put(localFilePath, remoteFilePath, [useCompression], [encoding], [addtionalOptions]); | ||
sftp.put(Buffer, remoteFilePath, [useCompression], [encoding], [addtionalOptions]); | ||
sftp.put(Stream, remoteFilePath, [useCompression], [encoding], [addtionalOptions]); | ||
``` | ||
@@ -72,0 +72,0 @@ |
@@ -63,4 +63,4 @@ /** | ||
*/ | ||
SftpClient.prototype.get = function(path, useCompression, encoding) { | ||
let options = this.getOptions(useCompression, encoding) | ||
SftpClient.prototype.get = function(path, useCompression, encoding, otherOptions) { | ||
let options = this.getOptions(useCompression, encoding, otherOptions) | ||
@@ -98,4 +98,4 @@ return new Promise((resolve, reject) => { | ||
*/ | ||
SftpClient.prototype.put = function(input, remotePath, useCompression, encoding) { | ||
let options = this.getOptions(useCompression, encoding) | ||
SftpClient.prototype.put = function(input, remotePath, useCompression, encoding, otherOptions) { | ||
let options = this.getOptions(useCompression, encoding, otherOptions) | ||
@@ -328,7 +328,7 @@ return new Promise((resolve, reject) => { | ||
SftpClient.prototype.getOptions = function(useCompression, encoding){ | ||
SftpClient.prototype.getOptions = function(useCompression, encoding, otherOptions){ | ||
if(encoding === undefined){ | ||
encoding = 'utf8'; | ||
} | ||
let options = Object.assign({}, {encoding: encoding}, useCompression); | ||
let options = Object.assign({}, otherOptions || {}, {encoding: encoding}, useCompression); | ||
return options; | ||
@@ -335,0 +335,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
25168