forever-agent
Advanced tools
Comparing version 0.3.0 to 0.4.0
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); | ||
} |
@@ -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" |
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
13288
3
0
103