ssl-validator
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -5,2 +5,10 @@ # SSL Validator Changelog | ||
## 1.0.5 - 2019-06-28 | ||
- Update pem dependency | ||
- Fix a spelling errors, improved error messages | ||
- Add Node 12 to travis.yml | ||
*** | ||
## 1.0.4 - 2019-01-07 | ||
@@ -40,2 +48,2 @@ | ||
- Initial release | ||
- Initial release |
@@ -18,3 +18,3 @@ const { find, trim, isNil, mergeRight } = require('ramda'); | ||
if (!isCertValidFormat(cert)) { | ||
throw new Error('Certificate must start and end with proper formating.'); | ||
throw new Error('Certificate must start and end with proper formatting.'); | ||
} | ||
@@ -38,3 +38,3 @@ const info = await readCertificateInfo(cert); | ||
if (!found) { | ||
throw Error('The cert does not match the domain.'); | ||
throw Error('The certificate does not match the domain.'); | ||
} | ||
@@ -47,3 +47,3 @@ return found; | ||
if (!isKeyValidFormat(key)) { | ||
throw new Error('Key must start and end with proper formating.'); | ||
throw new Error('Key must start and end with proper formatting.'); | ||
} | ||
@@ -64,3 +64,3 @@ return getModulus(key); | ||
if (certMod.modulus !== keyMod.modulus) { | ||
throw Error('The provided cert and key do not match.'); | ||
throw Error('The provided certificate and key do not match.'); | ||
} | ||
@@ -67,0 +67,0 @@ result.keyMod = keyMod; |
{ | ||
"name": "ssl-validator", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Validator for certificates, bundles, and keys", | ||
@@ -40,9 +40,9 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"pem": "^1.14.1", | ||
"pem": "^1.14.2", | ||
"ramda": "^0.26.1" | ||
}, | ||
"devDependencies": { | ||
"@losant/eslint-config-losant": "^1.3.5", | ||
"husky": "^1.3.1", | ||
"lint-staged": "^8.1.0", | ||
"@losant/eslint-config-losant": "^1.3.6", | ||
"husky": "^2.7.0", | ||
"lint-staged": "^8.2.1", | ||
"mocha": "^5.2.0", | ||
@@ -49,0 +49,0 @@ "should": "^13.2.3" |
@@ -124,2 +124,2 @@ # Node SSL Validator | ||
The module is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). | ||
The module is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). |
@@ -61,3 +61,3 @@ const should = require('should'); | ||
} | ||
error.message.should.equal('Certificate must start and end with proper formating.'); | ||
error.message.should.equal('Certificate must start and end with proper formatting.'); | ||
}); | ||
@@ -84,3 +84,3 @@ it('#validateSSLCert should throw error when formatted correctly but cert is still bad', async () => { | ||
} | ||
error.message.should.equal('Key must start and end with proper formating.'); | ||
error.message.should.equal('Key must start and end with proper formatting.'); | ||
}); | ||
@@ -107,3 +107,3 @@ it('#validateSSLKey should throw error when formatted correctly but key is still bad', async () => { | ||
} | ||
error.message.should.equal('The cert does not match the domain.'); | ||
error.message.should.equal('The certificate does not match the domain.'); | ||
}); | ||
@@ -121,3 +121,3 @@ it('#validateCertKeyPair', async () => { | ||
} | ||
error.message.should.equal('The provided cert and key do not match.'); | ||
error.message.should.equal('The provided certificate and key do not match.'); | ||
}); | ||
@@ -124,0 +124,0 @@ it('#validateCertBundle', async () => { |
Sorry, the diff of this file is not supported yet
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
166262
125
Updatedpem@^1.14.2