web3-providers-ws
Advanced tools
Comparing version 1.0.0-beta.30 to 1.0.0-beta.31
{ | ||
"name": "web3-providers-ws", | ||
"namespace": "ethereum", | ||
"version": "1.0.0-beta.30", | ||
"version": "1.0.0-beta.31", | ||
"description": "Module to handle web3 RPC connections over WebSockets.", | ||
@@ -11,5 +11,5 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-providers-ws", | ||
"underscore": "1.8.3", | ||
"web3-core-helpers": "1.0.0-beta.30", | ||
"web3-core-helpers": "1.0.0-beta.31", | ||
"websocket": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible" | ||
} | ||
} |
@@ -71,3 +71,3 @@ /* | ||
if(_.isFunction(callback)) | ||
callback(null, result); | ||
callback(result); | ||
}); | ||
@@ -96,15 +96,7 @@ | ||
this.connection.onclose = function(e){ | ||
this.connection.onclose = function(){ | ||
_this._timeout(); | ||
var noteCb = _this.notificationCallbacks; | ||
// reset all requests and callbacks | ||
_this.reset(); | ||
// cancel subscriptions | ||
noteCb.forEach(function (callback) { | ||
if (_.isFunction(callback)) | ||
callback(e); | ||
}); | ||
}; | ||
@@ -194,3 +186,3 @@ | ||
if(this.responseCallbacks.hasOwnProperty(key)){ | ||
this.responseCallbacks[key](errors.InvalidConnection('on IPC')); | ||
this.responseCallbacks[key](errors.InvalidConnection('on WS')); | ||
delete this.responseCallbacks[key]; | ||
@@ -342,2 +334,1 @@ } | ||
module.exports = WebsocketProvider; | ||
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
11536
311
22
42
230
+ Addedobject-inspect@1.13.3(transitive)
+ Addedweb3-core-helpers@1.0.0-beta.31(transitive)
+ Addedweb3-eth-iban@1.0.0-beta.31(transitive)
+ Addedweb3-utils@1.0.0-beta.31(transitive)
- Removedobject-inspect@1.13.2(transitive)
- Removedweb3-core-helpers@1.0.0-beta.30(transitive)
- Removedweb3-eth-iban@1.0.0-beta.30(transitive)
- Removedweb3-utils@1.0.0-beta.30(transitive)