Socket
Socket
Sign inDemoInstall

web3-providers-http

Package Overview
Dependencies
Maintainers
1
Versions
420
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-providers-http - npm Package Compare versions

Comparing version 1.0.0-beta.36 to 1.0.0-beta.37

4

package.json
{
"name": "web3-providers-http",
"namespace": "ethereum",
"version": "1.0.0-beta.36",
"version": "1.0.0-beta.37",
"description": "Module to handle web3 RPC connections over HTTP.",

@@ -10,5 +10,5 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-providers-http",

"dependencies": {
"web3-core-helpers": "1.0.0-beta.36",
"web3-core-helpers": "1.0.0-beta.37",
"xhr2-cookies": "1.1.0"
}
}

@@ -36,7 +36,12 @@ /*

options = options || {};
var keepAlive =
(options.keepAlive === true || options.keepAlive !== false) ?
true :
false;
this.host = host || 'http://localhost:8545';
if (this.host.substring(0,5) === "https"){
this.httpsAgent = new https.Agent({ keepAlive: true });
if (this.host.substring(0,5) === "https") {
this.httpsAgent = new https.Agent({ keepAlive: keepAlive });
}else{
this.httpAgent = new http.Agent({ keepAlive: true });
this.httpAgent = new http.Agent({ keepAlive: keepAlive });
}

@@ -43,0 +48,0 @@ this.timeout = options.timeout || 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