Comparing version 0.3.3 to 0.3.4
@@ -20,6 +20,6 @@ /* | ||
var FTPCredentials = { | ||
host: "ftp.100procentjan.nl", | ||
user: "sergi", | ||
host: "localhost", | ||
user: "", | ||
port: 21, | ||
pass: "hupholland1" | ||
pass: "" | ||
}; | ||
@@ -26,0 +26,0 @@ |
11
jsftp.js
@@ -561,5 +561,10 @@ /* | ||
onCmdWrite: function() { | ||
var socket = self.dataConn.socket; | ||
if (socket.writable) | ||
socket.end(buffer); | ||
if (self.dataConn) { | ||
var socket = self.dataConn.socket; | ||
if (socket.writable) | ||
socket.end(buffer); | ||
} | ||
else { | ||
console.log("FTP error: Couldn't retrieve PASV connection for command 'stor " + filePath + "'."); | ||
} | ||
}, | ||
@@ -566,0 +571,0 @@ pasvCallback: callback |
{ | ||
"name": "jsftp", | ||
"id": "jsftp", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "A sane FTP client implementation for NodeJS", | ||
@@ -6,0 +6,0 @@ "keywords": [ "ftp", "protocol", "files", "server", "client", "async" ], |
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
360637
1668