ssl-validator
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -50,3 +50,3 @@ const { find, trim, isNil, merge } = require('ramda'); | ||
// options => domain, bundle, skipCertDateValdiation, | ||
// options => domain, bundle, skipDateValidation, | ||
const validateSSL = async (cert, options) => { | ||
@@ -53,0 +53,0 @@ if (isNil(options)) { options = {}; } |
{ | ||
"name": "ssl-validator", | ||
"version": "1.0.1", | ||
"description": "Validator for certificates, and keys", | ||
"version": "1.0.2", | ||
"description": "Validator for certificates, bundles, and keys", | ||
"main": "lib/index.js", | ||
@@ -11,8 +11,8 @@ "directories": { | ||
"scripts": { | ||
"lint": "esw *.js lib test examples", | ||
"lint:fix": "esw --fix *.js lib test examples", | ||
"lint:watch": "esw --watch *.js lib test examples", | ||
"lint:staged": "lint-staged", | ||
"precommit": "lint-staged", | ||
"test": "mocha" | ||
"lint": "esw . --ext .js", | ||
"lint:fix": "yarn lint --fix", | ||
"lint:watch": "yarn lint --watch", | ||
"lint:changed": "lint-staged", | ||
"test": "mocha", | ||
"reinstall": "rm -rf node_modules && yarn install" | ||
}, | ||
@@ -41,15 +41,20 @@ "repository": { | ||
"dependencies": { | ||
"pem": "^1.12.3", | ||
"pem": "^1.13.1", | ||
"ramda": "^0.25.0" | ||
}, | ||
"devDependencies": { | ||
"@losant/eslint-config-losant": "^1.3.2", | ||
"husky": "^0.14.3", | ||
"lint-staged": "^4.3.0", | ||
"mocha": "^5.0.5", | ||
"should": "^13.2.1" | ||
"@losant/eslint-config-losant": "^1.3.4", | ||
"husky": "^1.1.2", | ||
"lint-staged": "^7.3.0", | ||
"mocha": "^5.2.0", | ||
"should": "^13.2.3" | ||
}, | ||
"eslintConfig": { | ||
"extends": "@losant/eslint-config-losant/env/node" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
} | ||
} |
@@ -48,2 +48,3 @@ # Node SSL Validator | ||
### Validate SSL Cert | ||
This function validates that the certificate is an SSL certificate and checks the validity period. | ||
@@ -60,2 +61,3 @@ | ||
### Validate SSL Key | ||
This function validates that the certificate is an SSL certificate and checks the validity period. | ||
@@ -68,2 +70,3 @@ | ||
### Validate Cert Bundle | ||
This function validates that the certificate and the bundle are certificates, and ensures that the bundle and certificate go together. | ||
@@ -80,2 +83,3 @@ | ||
### Validate Cert Key Pair | ||
This function validates that the given certificate and key are a matching pair. | ||
@@ -92,2 +96,3 @@ | ||
### Validate Cert To Domain | ||
This function validates the given certificate and that it matches the given domain. | ||
@@ -94,0 +99,0 @@ |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
124292
15
124
1
Updatedpem@^1.13.1