Comparing version 1.5.2 to 1.5.3
@@ -559,8 +559,12 @@ /* vim:set ts=2 sw=2 sts=2 expandtab */ | ||
var totalSize = err ? 0 : stats.size; | ||
if (stats.isDirectory()) { | ||
return callback(new Error('Local path cannot be a directory')); | ||
} | ||
var totalSize = err ? 0 : stats.size; | ||
var localFileStream = fs.createReadStream(from, { | ||
bufferSize: 4 * 1024 | ||
}); | ||
bufferSize: 4 * 1024 | ||
}); | ||
putReadable(localFileStream, to, totalSize, callback); | ||
}); | ||
}); | ||
} else { // `from` is a readable stream | ||
@@ -567,0 +571,0 @@ putReadable(from, to, from.size, callback); |
{ | ||
"name": "jsftp", | ||
"id": "jsftp", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "A sane FTP client implementation for NodeJS", | ||
@@ -24,16 +24,17 @@ "keywords": [ | ||
"dependencies": { | ||
"debug": "2.1.1", | ||
"debug": "2.2.0", | ||
"event-stream": "3.1.7", | ||
"ftp-response-parser": "1.0.0", | ||
"once": "1.3.0", | ||
"parse-listing": "1.1.2", | ||
"unorm": "^1.3.3" | ||
"parse-listing": "1.1.3", | ||
"unorm": "1.4.1" | ||
}, | ||
"devDependencies": { | ||
"concat-stream": "1.5.0", | ||
"ftp-test-server": "0.0.2", | ||
"istanbul": "0.3.22", | ||
"mocha": "1.21.4", | ||
"istanbul": "0.3.2", | ||
"mocha-istanbul": "0.2.0", | ||
"sinon": "1.10.3", | ||
"ftp-test-server": "0.0.2", | ||
"rimraf": "2.2.8" | ||
"rimraf": "2.2.8", | ||
"sinon": "1.17.1" | ||
}, | ||
@@ -40,0 +41,0 @@ "main": "./jsftp.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
199816
27
4141
7
5
6
+ Addeddebug@2.2.0(transitive)
+ Addedms@0.7.1(transitive)
+ Addedparse-listing@1.1.3(transitive)
+ Addedunorm@1.4.1(transitive)
- Removeddebug@2.1.1(transitive)
- Removedms@0.6.2(transitive)
- Removedparse-listing@1.1.2(transitive)
- Removedunorm@1.6.0(transitive)
Updateddebug@2.2.0
Updatedparse-listing@1.1.3
Updatedunorm@1.4.1