New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sealsystems/tlscert

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sealsystems/tlscert - npm Package Compare versions

Comparing version 2.5.2 to 2.6.0

18

lib/tlscert.js

@@ -6,2 +6,3 @@ 'use strict';

const util = require('util');
const tls = require('tls');

@@ -97,2 +98,19 @@ const cloneDeep = require('lodash.clonedeep');

const versionMap = {
TLSv1_method: 'TLSv1',
TLSv1_1_method: 'TLSv1.1',
TLSv1_2_method: 'TLSv1.2',
TLSv1_3_method: 'TLSv1.3'
};
tlscert.getTlsMinVersion = async function () {
const value = versionMap[getenv('TLS_PROTOCOL', '')] || getenv('TLS_PROTOCOL', '');
if (!value) {
log.debug('Tls version was undefined. Is set to: ', tls.DEFAULT_MIN_VERSION);
return tls.DEFAULT_MIN_VERSION;
}
log.debug('Tls version: ', value);
return value;
};
module.exports = tlscert;

4

package.json
{
"name": "@sealsystems/tlscert",
"version": "2.5.2",
"version": "2.6.0",
"description": "Provides TLS key and certificate",

@@ -24,3 +24,3 @@ "author": {

"dependencies": {
"@sealsystems/log": "2.4.2",
"@sealsystems/log": "2.4.3",
"getenv": "1.0.0",

@@ -27,0 +27,0 @@ "lodash.clonedeep": "4.5.0"

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