web3-core-subscriptions
Advanced tools
Comparing version 1.0.0-beta.14 to 1.0.0-beta.15
{ | ||
"name": "web3-core-subscriptions", | ||
"version": "1.0.0-beta.14", | ||
"version": "1.0.0-beta.15", | ||
"description": "Manages web3 subscriptions. This is an internal package.", | ||
@@ -11,4 +11,4 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-core-subscriptions", | ||
"underscore": "1.8.3", | ||
"web3-core-helpers": "^1.0.0-beta.14" | ||
"web3-core-helpers": "^1.0.0-beta.15" | ||
} | ||
} |
@@ -198,7 +198,14 @@ /* | ||
if(!this.options.requestManager.provider) { | ||
var err1 = new Error('No provider set.'); | ||
this.callback(err1, null, this); | ||
this.emit('error', err1); | ||
return this; | ||
} | ||
// throw error, if provider doesnt support subscriptions | ||
if(!this.options.requestManager.provider.on) { | ||
var err = new Error('The current provider doesn\'t support subscriptions'+ this.options.requestManager.provider.constructor.name); | ||
this.callback(err, null, this); | ||
this.emit('error', err); | ||
var err2 = new Error('The current provider doesn\'t support subscriptions'+ this.options.requestManager.provider.constructor.name); | ||
this.callback(err2, null, this); | ||
this.emit('error', err2); | ||
return this; | ||
@@ -205,0 +212,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
12784
303