web3-providers-http
Advanced tools
Comparing version 1.0.0-beta.36 to 1.0.0-beta.37
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4721
98
+ Addedweb3-core-helpers@1.0.0-beta.37(transitive)
+ Addedweb3-eth-iban@1.0.0-beta.37(transitive)
+ Addedweb3-utils@1.0.0-beta.37(transitive)
- Removedweb3-core-helpers@1.0.0-beta.36(transitive)
- Removedweb3-eth-iban@1.0.0-beta.36(transitive)
- Removedweb3-utils@1.0.0-beta.36(transitive)