Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ssl-checker

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssl-checker - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

5

lib/cmjs/index.js

@@ -54,9 +54,8 @@ "use strict";

var _a = res.connection.getPeerCertificate(), valid_from = _a.valid_from, valid_to = _a.valid_to;
var validFrom = new Date(valid_from);
var validTo = new Date(valid_to);
resolve({
daysRemaining: getDaysRemaining(validFrom, validTo),
daysRemaining: getDaysRemaining(new Date(), validTo),
valid: res.socket
.authorized || false,
validFrom: validFrom.toISOString(),
validFrom: new Date(valid_from).toISOString(),
validTo: validTo.toISOString()

@@ -63,0 +62,0 @@ });

@@ -45,9 +45,8 @@ var __assign = (this && this.__assign) || function () {

var _a = res.connection.getPeerCertificate(), valid_from = _a.valid_from, valid_to = _a.valid_to;
var validFrom = new Date(valid_from);
var validTo = new Date(valid_to);
resolve({
daysRemaining: getDaysRemaining(validFrom, validTo),
daysRemaining: getDaysRemaining(new Date(), validTo),
valid: res.socket
.authorized || false,
validFrom: validFrom.toISOString(),
validFrom: new Date(valid_from).toISOString(),
validTo: validTo.toISOString()

@@ -54,0 +53,0 @@ });

@@ -63,9 +63,8 @@ var __assign = (this && this.__assign) || function () {

var _a = res.connection.getPeerCertificate(), valid_from = _a.valid_from, valid_to = _a.valid_to;
var validFrom = new Date(valid_from);
var validTo = new Date(valid_to);
resolve({
daysRemaining: getDaysRemaining(validFrom, validTo),
daysRemaining: getDaysRemaining(new Date(), validTo),
valid: res.socket
.authorized || false,
validFrom: validFrom.toISOString(),
validFrom: new Date(valid_from).toISOString(),
validTo: validTo.toISOString()

@@ -72,0 +71,0 @@ });

4

package.json
{
"name": "ssl-checker",
"version": "2.0.3",
"version": "2.0.4",
"description": "ssl-checker",

@@ -48,3 +48,3 @@ "main": "./lib/cmjs/index.js",

"prettier": "^1.18.2",
"pretty-quick": "^1.11.1",
"pretty-quick": "^2.0.0",
"ts-jest": "^24.0.2",

@@ -51,0 +51,0 @@ "tslint": "^5.20.0",

@@ -34,3 +34,3 @@ # Node SSL Checker

| port | 443 | Your ssl entrypoint |
| agent | HEAD | I dont know why but if you'd like provide agent id |
| agent | | I dont know why but if you'd like provide agent id |

@@ -37,0 +37,0 @@ ```ts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc