Comparing version 1.12.4 to 1.12.5
@@ -201,5 +201,5 @@ var Buffer = require('safe-buffer').Buffer | ||
tmpfiles = [].concat(tmpfiles) | ||
params.forEach(function (value, i) { | ||
var fpath | ||
if (value === '--TMPFILE--') { | ||
var fpath, i | ||
for (i = 0; i < params.length; i++) { | ||
if (params[i] === '--TMPFILE--') { | ||
fpath = pathlib.join(tempDir, crypto.randomBytes(20).toString('hex')) | ||
@@ -211,11 +211,12 @@ files.push({ | ||
params[i] = fpath | ||
delTempPWFiles[delTempPWFiles.length] = fpath | ||
delTempPWFiles.push(fpath) | ||
} | ||
}) | ||
} | ||
} | ||
// TODO: need to refactored | ||
files.forEach(function (file) { | ||
var file | ||
for (i = 0; i < files.length; i++) { | ||
file = files[i] | ||
fs.writeFileSync(file.path, file.contents) | ||
}) | ||
} | ||
@@ -222,0 +223,0 @@ spawn(params, binary, function (err, code, stdout, stderr) { |
@@ -13,3 +13,3 @@ { | ||
"description": "Create private keys and certificates with node.js and io.js", | ||
"version": "1.12.4", | ||
"version": "1.12.5", | ||
"repository": { | ||
@@ -16,0 +16,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
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
2985
168051