Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ssh2-sftp-client

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssh2-sftp-client - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

2

package.json
{
"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 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc