chromedriver
Advanced tools
Comparing version 2.9.0 to 2.9.1-0
@@ -183,13 +183,21 @@ 'use strict' | ||
var deferred = kew.defer() | ||
// Look for the extracted directory, so we can rename it. | ||
var files = fs.readdirSync(tmpPath) | ||
for (var i = 0; i < files.length; i++) { | ||
var file = path.join(tmpPath, files[i]); | ||
var targetFile = path.join(targetPath, files[i]); | ||
fs.createReadStream(file).pipe(fs.createWriteStream(targetFile)); | ||
} | ||
deferred.resolve(true) | ||
var files = fs.readdirSync(tmpPath); | ||
var promises = files.map(function (name) { | ||
var deferred = kew.defer(); | ||
return deferred.promise | ||
var file = path.join(tmpPath, name); | ||
var reader = fs.createReadStream(file); | ||
var targetFile = path.join(targetPath, name); | ||
var writer = fs.createWriteStream(targetFile); | ||
writer.on("finish", function() { | ||
deferred.resolve(true); | ||
}); | ||
reader.pipe(writer); | ||
return deferred.promise; | ||
}); | ||
return kew.all(promises); | ||
} | ||
@@ -196,0 +204,0 @@ |
{ | ||
"name": "chromedriver", | ||
"version": "2.9.0", | ||
"version": "2.9.1-0", | ||
"keywords": ["chromedriver", "selenium"], | ||
@@ -5,0 +5,0 @@ "description": "ChromeDriver for Selenium", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
9938
189
1