Socket
Socket
Sign inDemoInstall

forever-agent

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.4.0

LICENSE

22

index.js

@@ -100,5 +100,21 @@ module.exports = ForeverAgent

function createConnectionSSL (port, host, options) {
options.port = port
options.host = host
return tls.connect(options)
if (typeof port === 'object') {
options = port;
} else if (typeof host === 'object') {
options = host;
} else if (typeof options === 'object') {
options = options;
} else {
options = {};
}
if (typeof port === 'number') {
options.port = port;
}
if (typeof host === 'string') {
options.host = host;
}
return tls.connect(options);
}

2

package.json

@@ -5,3 +5,3 @@ {

"description": "HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.",
"version": "0.3.0",
"version": "0.4.0",
"repository": {

@@ -8,0 +8,0 @@ "url": "https://github.com/mikeal/forever-agent"

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