Socket
Socket
Sign inDemoInstall

ssl-checker

Package Overview
Dependencies
0
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.6 to 2.0.7

17

lib/cmjs/index.js

@@ -47,12 +47,17 @@ "use strict";

};
var DEFAULT_OPTIONS = {
agent: new https.Agent({
maxCachedSessions: 0
}),
method: "HEAD",
port: 443,
rejectUnauthorized: false
};
var sslChecker = function (host, options) {
if (options === void 0) { options = {
agent: false,
method: "HEAD",
port: 443,
rejectUnauthorized: false
}; }
if (options === void 0) { options = {}; }
return new Promise(function (resolve, reject) {
options = Object.assign({}, DEFAULT_OPTIONS, options);
if (!checkPort(options.port)) {
reject(Error("Invalid port"));
return;
}

@@ -59,0 +64,0 @@ try {

@@ -26,12 +26,17 @@ var __assign = (this && this.__assign) || function () {

};
var DEFAULT_OPTIONS = {
agent: new https.Agent({
maxCachedSessions: 0
}),
method: "HEAD",
port: 443,
rejectUnauthorized: false
};
var sslChecker = function (host, options) {
if (options === void 0) { options = {
agent: false,
method: "HEAD",
port: 443,
rejectUnauthorized: false
}; }
if (options === void 0) { options = {}; }
return new Promise(function (resolve, reject) {
options = Object.assign({}, DEFAULT_OPTIONS, options);
if (!checkPort(options.port)) {
reject(Error("Invalid port"));
return;
}

@@ -38,0 +43,0 @@ try {

@@ -56,12 +56,17 @@ var __assign = (this && this.__assign) || function () {

};
var DEFAULT_OPTIONS = {
agent: new https.Agent({
maxCachedSessions: 0
}),
method: "HEAD",
port: 443,
rejectUnauthorized: false
};
var sslChecker = function (host, options) {
if (options === void 0) { options = {
agent: false,
method: "HEAD",
port: 443,
rejectUnauthorized: false
}; }
if (options === void 0) { options = {}; }
return new Promise(function (resolve, reject) {
options = Object.assign({}, DEFAULT_OPTIONS, options);
if (!checkPort(options.port)) {
reject(Error("Invalid port"));
return;
}

@@ -68,0 +73,0 @@ try {

{
"name": "ssl-checker",
"version": "2.0.6",
"version": "2.0.7",
"description": "ssl-checker",

@@ -5,0 +5,0 @@ "main": "./lib/cmjs/index.js",

@@ -30,8 +30,11 @@ # Node SSL Checker

| Option | Default | |
| ------ | ------- | -------------------------------------------------- |
| method | HEAD | can be GET too |
| port | 443 | Your ssl entrypoint |
| agent | | I dont know why but if you'd like provide agent id |
All valid `https.RequestOptions` values.
| Option | Default | Description |
| ------------------ | ------- | -------------------------------------------------- |
| method | HEAD | Can be GET too |
| port | 443 | Your SSL/TLS entry point |
| agent | default | Default HTTPS agent with { maxCachedSessions: 0 } |
| rejectUnauthorized | false | Skips authorization by default |
```ts

@@ -38,0 +41,0 @@ sslChecker("dyaa.me", { method: "GET", port: 443 }).then(console.info);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc