openssl-cert-tools
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -0,1 +1,7 @@ | ||
<a name="1.3.0"></a> | ||
# 1.3.0 (2018-07-11) | ||
- Update Travis CI Node build environment | ||
- Fix spawn buffer parsing & npm auditing issues ([PR#7](https://github.com/frdmn/openssl-cert-tools/pull/7)) (Thanks @[sauvainr](https://github.com/sauvainr)) | ||
<a name="1.2.1"></a> | ||
@@ -2,0 +8,0 @@ # 1.2.1 (2016-11-16) |
@@ -28,13 +28,17 @@ /* jshint node: true */ | ||
// Catch stderr | ||
openssl.stderr.on('data', function (out) { | ||
err = new Error(out); | ||
var stderr = []; | ||
var stdout = []; | ||
// Callback and return array | ||
return cb(err, infoObject); | ||
}); | ||
openssl.stderr.on('data', stderr.push.bind(stderr)); | ||
openssl.stdout.on('data', stdout.push.bind(stdout)); | ||
openssl.stdout.on('data', function (out) { | ||
var data = out.toString(); | ||
openssl.on('close', function (code) { | ||
if (code !== 0) { | ||
var error = Buffer.concat(stderr).toString(); | ||
// Callback and return array | ||
return cb(new Error(error), infoObject); | ||
} | ||
var data = Buffer.concat(stdout).toString(); | ||
// Put each line into an array | ||
@@ -41,0 +45,0 @@ var lineArray = data.split('\n'); |
{ | ||
"name": "openssl-cert-tools", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Module to handle certificate related OpenSSL commands", | ||
@@ -21,4 +21,4 @@ "main": "main.js", | ||
"chai": "^3.5.0", | ||
"mocha": "^3.1.2" | ||
"mocha": "^5.2.0" | ||
} | ||
} |
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
416
36124
13