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

jsftp

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsftp - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

8

jsftp_test.js

@@ -20,6 +20,6 @@ /*

var FTPCredentials = {
host: "localhost",
user: "",
host: "sergimansilla.com",
user: "fjakobs",
port: 21,
pass: ""
pass: "cb43494"
};

@@ -399,3 +399,3 @@

});
},
}
};

@@ -402,0 +402,0 @@

@@ -9,7 +9,7 @@ /*

var Net = require("net");
var Util = require("util");
var EventEmitter = require("events").EventEmitter;
var ftpPasv = require("./lib/ftpPasv");
var Parser = require('./lib/ftpParser');
var S = require("streamer");
var Util = require("util");
var EventEmitter = require("events").EventEmitter;

@@ -117,3 +117,3 @@ var slice = Array.prototype.slice;

}
}
};

@@ -139,2 +139,3 @@ if (self.socket && self.socket.writable) {

var callback;
var completeCmd = cmd;
if (arguments.length) {

@@ -147,5 +148,5 @@ var args = slice.call(arguments);

if (args.length)
cmd += " " + args.join(" ");
completeCmd += " " + args.join(" ");
}
cmdfn(cmd, callback || function(){});
cmdfn(completeCmd, callback || function(){});
};

@@ -183,3 +184,3 @@ });

(createStreams = function(_socket) {
var cmd
var cmd;
// Stream of incoming data from the FTP server.

@@ -251,4 +252,2 @@ var input = function(next, stop) {

});
return this.socket;
};

@@ -303,3 +302,3 @@

if (re && parseInt(re[1], 10) === currentCode) {
buffer[buffer.length - 1] = str
buffer[buffer.length - 1] = str;
line = buffer.join(NL);

@@ -344,3 +343,3 @@ buffer = [];

if (ftpResponse && ftpResponse.code > 399) {
err = new Error(ftpResponse.text || "Unknown FTP error.")
err = new Error(ftpResponse.text || "Unknown FTP error.");
err.code = ftpResponse.code;

@@ -391,4 +390,3 @@ callback(err);

this.hasFeat = function(feature) {
feature = feature.toLowerCase();
return this.features && (this.features.indexOf(feature) > -1);
return this.features.indexOf(feature.toLowerCase()) > -1;
};

@@ -478,3 +476,4 @@

});
} else {
}
else {
self.authenticating = false;

@@ -666,2 +665,1 @@ notifyAll(new Error("Login not accepted"));

}).call(Ftp.prototype);
{
"name": "jsftp",
"id": "jsftp",
"version": "0.3.5",
"version": "0.3.6",
"description": "A sane FTP client implementation for NodeJS",

@@ -6,0 +6,0 @@ "keywords": [ "ftp", "protocol", "files", "server", "client", "async" ],

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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