Comparing version 1.5.1 to 1.5.2
@@ -20,2 +20,3 @@ /* vim:set ts=2 sw=2 sts=2 expandtab */ | ||
var once = require('once'); | ||
var unorm = require('unorm'); | ||
@@ -387,4 +388,5 @@ var debug = require('debug')('jsftp:general'); | ||
socket.setEncoding('utf8'); | ||
socket.on('data', function(data) { | ||
listing += data.toString('binary'); | ||
listing += data; | ||
}); | ||
@@ -674,3 +676,12 @@ | ||
ListingParser.parseFtpEntries(entries.text || entries, callback); | ||
ListingParser.parseFtpEntries(entries.text || entries, function(err, files) { | ||
if (err) return callback(err); | ||
files.forEach(function(file) { | ||
// Normalize UTF8 doing canonical decomposition, followed by | ||
// canonical Composition | ||
file.name = unorm.nfc(file.name); | ||
}); | ||
callback(null, files); | ||
}); | ||
} | ||
@@ -677,0 +688,0 @@ |
{ | ||
"name": "jsftp", | ||
"id": "jsftp", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "A sane FTP client implementation for NodeJS", | ||
@@ -28,3 +28,4 @@ "keywords": [ | ||
"once": "1.3.0", | ||
"parse-listing": "1.1.2" | ||
"parse-listing": "1.1.2", | ||
"unorm": "^1.3.3" | ||
}, | ||
@@ -31,0 +32,0 @@ "devDependencies": { |
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
33991
6
12
634
+ Addedunorm@^1.3.3
+ Addedunorm@1.6.0(transitive)