ssl-checker
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -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 @@ }); |
{ | ||
"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 |
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
12890
215