From fb4d599b257a0b8d2b7cedb481c726029f057071 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 16 Aug 2018 19:47:37 -0600 Subject: [PATCH] v1.1.0: drop some dependencies --- README.md | 3 +++ index.js | 2 -- package.json | 13 +++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a9b908e..469d9bd 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ cert-info.js Read basic info from a cert.pem / x509 certificate. +Used for [Greenlock.js](https://git.coolaj86.com/coolaj86/greenlock-express.js) + Install ======= @@ -41,6 +43,7 @@ var cert = fs.readFile('cert.pem', 'ascii', function (err, certstr) { console.info(certpem.info(certstr)); // way too much info + // (requires npm install --save node.extend@1) console.info(certpem.debug(certstr)); }); diff --git a/index.js b/index.js index 893f9d6..87e9172 100644 --- a/index.js +++ b/index.js @@ -3,8 +3,6 @@ var certInfo = module.exports; module.exports.certpem = certInfo; -require('buffer-v6-polyfill'); - // this is really memory expensive to do // (about half of a megabyte of loaded code) certInfo._pemToBinAb = function (pem) { diff --git a/package.json b/package.json index e0286d6..598aa5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "certpem", - "version": "1.0.1", + "version": "1.1.0", "description": "Read basic info (subject, altnames, expiresAt, issuedAt) from a cert.pem / x509 certificate (tls / ssl / https) ", "main": "index.js", "bin": { @@ -11,7 +11,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/Daplie/cert-info.js.git" + "url": "https://git.coolaj86.com/coolaj86/cert-info.js.git" }, "keywords": [ "cert.pem", @@ -34,13 +34,14 @@ "author": "AJ ONeal (https://coolaj86.com/)", "license": "(MIT OR Apache-2.0)", "bugs": { - "url": "https://github.com/Daplie/cert-info.js/issues" + "url": "https://git.coolaj86.com/coolaj86/cert-info.js/issues" }, - "homepage": "https://github.com/Daplie/cert-info.js#readme", + "homepage": "https://git.coolaj86.com/coolaj86/cert-info.js", "dependencies": { "asn1js": "^1.2.12", - "buffer-v6-polyfill": "^1.0.3", - "node.extend": "^1.1.5", "pkijs": "^1.3.27" + }, + "trulyOptionalDependencies": { + "node.extend": "^1.1.6" } }