Comparing version 1.0.0-beta.5 to 1.0.0-beta.6
{ | ||
"namespace": "ethereum", | ||
"name": "web3", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-beta.6", | ||
"description": "Ethereum JavaScript API", | ||
@@ -39,3 +39,3 @@ "license": "LGPL-3.0", | ||
"name": "Marek Kotewicz", | ||
"email": "marek@ethcore.io", | ||
"email": "marek@parity.io", | ||
"url": "https://github.com/debris" | ||
@@ -49,3 +49,3 @@ }, | ||
"name": "Gav Wood", | ||
"email": "g@ethcore.io", | ||
"email": "g@parity.io", | ||
"homepage": "http://gavwood.com" | ||
@@ -52,0 +52,0 @@ }, |
{ | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-beta.6", | ||
"lerna": "2.0.0", | ||
@@ -4,0 +4,0 @@ "packages": [ |
/* jshint ignore:start */ | ||
Package.describe({ | ||
name: 'ethereum:web3', | ||
version: '1.0.0-beta.5', | ||
version: '1.0.0-beta.6', | ||
summary: 'Ethereum JavaScript API, middleware to talk to a ethreum node over RPC', | ||
@@ -6,0 +6,0 @@ git: 'https://github.com/ethereum/ethereum.js', |
{ | ||
"name": "web3", | ||
"namespace": "ethereum", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-beta.6", | ||
"description": "Ethereum JavaScript API", | ||
@@ -14,5 +14,6 @@ "license": "LGPL-3.0", | ||
"scripts": { | ||
"postinstall": "lerna bootstrap", | ||
"postinstall": "./node_modules/lerna/bin/lerna.js bootstrap", | ||
"build": "gulp", | ||
"watch": "gulp watch", | ||
"docs": "cd docs; make html;", | ||
"lint": "jshint *.js packages", | ||
@@ -44,3 +45,3 @@ "test": "mocha; jshint *.js packages", | ||
"name": "Marek Kotewicz", | ||
"email": "marek@ethcore.io", | ||
"email": "marek@parity.io", | ||
"url": "https://github.com/debris" | ||
@@ -54,3 +55,3 @@ }, | ||
"name": "Gav Wood", | ||
"email": "g@ethcore.io", | ||
"email": "g@parity.io", | ||
"homepage": "http://gavwood.com" | ||
@@ -57,0 +58,0 @@ }, |
@@ -19,3 +19,3 @@ /* | ||
* @file index.js | ||
* @author Marek Kotewicz <marek@ethcore.io> | ||
* @author Marek Kotewicz <marek@parity.io> | ||
* @date 2015 | ||
@@ -22,0 +22,0 @@ */ |
@@ -20,3 +20,3 @@ /* | ||
* @author Fabian Vogelsteller <fabian@ethereum.org> | ||
* @author Marek Kotewicz <marek@ethcore.io> | ||
* @author Marek Kotewicz <marek@parity.io> | ||
* @date 2017 | ||
@@ -23,0 +23,0 @@ */ |
@@ -20,3 +20,3 @@ /* | ||
* @author Fabian Vogelsteller <fabian@ethereum.org> | ||
* @author Marek Kotewicz <marek@ethcore.io> | ||
* @author Marek Kotewicz <marek@parity.io> | ||
* @date 2017 | ||
@@ -23,0 +23,0 @@ */ |
@@ -20,3 +20,3 @@ /* | ||
* @author Fabian Vogelsteller <fabian@ethereum.org> | ||
* @author Marek Kotewicz <marek@ethcore.io> | ||
* @author Marek Kotewicz <marek@parity.io> | ||
* @date 2017 | ||
@@ -23,0 +23,0 @@ */ |
@@ -19,3 +19,3 @@ /* | ||
* @file index.js | ||
* @author Marek Kotewicz <marek@ethcore.io> | ||
* @author Marek Kotewicz <marek@parity.io> | ||
* @author Fabian Vogelsteller <fabian@frozeman.de> | ||
@@ -22,0 +22,0 @@ * @date 2017 |
@@ -19,3 +19,3 @@ /* | ||
* @file formatters.js | ||
* @author Marek Kotewicz <marek@ethcore.io> | ||
* @author Marek Kotewicz <marek@parity.io> | ||
* @author Fabian Vogelsteller <fabian@frozeman.de> | ||
@@ -22,0 +22,0 @@ * @date 2017 |
@@ -22,3 +22,3 @@ /* | ||
* | ||
* @author Marek Kotewicz <marek@ethcore.io> | ||
* @author Marek Kotewicz <marek@parity.io> | ||
* @date 2015 | ||
@@ -25,0 +25,0 @@ */ |
@@ -19,5 +19,5 @@ /* | ||
* @authors: | ||
* Marek Kotewicz <marek@ethdev.com> | ||
* Marian Oancea <marian@ethdev.com> | ||
* Fabian Vogelsteller <fabian@ethdev.com> | ||
* Marek Kotewicz <marek@parity.io> | ||
* Marian Oancea | ||
* Fabian Vogelsteller <fabian@ethereum.org> | ||
* @date 2015 | ||
@@ -24,0 +24,0 @@ */ |
@@ -20,3 +20,3 @@ /* | ||
* Fabian Vogelsteller <fabian@ethereum.org> | ||
* @date 2015 | ||
* @date 2017 | ||
*/ | ||
@@ -23,0 +23,0 @@ |
@@ -19,4 +19,4 @@ /* | ||
* @authors: | ||
* Fabian Vogelsteller <fabian@ethdev.com> | ||
* @date 2015 | ||
* Fabian Vogelsteller <fabian@ethereum.org> | ||
* @date 2017 | ||
*/ | ||
@@ -28,13 +28,14 @@ | ||
var errors = require('web3-core-helpers').errors; | ||
if (typeof global !== 'undefined') | ||
if (typeof global !== 'undefined') { | ||
var WebSocket = require('websocket').w3cwebsocket; | ||
} | ||
// Default connection ws://localhost:8546 | ||
var WebsocketProvider = function WebsocketProvider(path) { | ||
var WebsocketProvider = function WebsocketProvider(url) { | ||
var _this = this; | ||
this.responseCallbacks = {}; | ||
this.notificationCallbacks = []; | ||
this.path = path; | ||
this.connection = new WebSocket(path); | ||
this.connection = new WebSocket(url); | ||
@@ -197,5 +198,14 @@ | ||
WebsocketProvider.prototype.send = function (payload, callback) { | ||
var _this = this; | ||
if (this.connection.readyState === this.connection.CONNECTING) { | ||
setTimeout(function () { | ||
_this.send(payload, callback); | ||
}, 10); | ||
return; | ||
} | ||
// try reconnect, when connection is gone | ||
// if(!this.connection.writable) | ||
// this.connection.connect({path: this.path}); | ||
// this.connection.connect({url: this.url}); | ||
@@ -202,0 +212,0 @@ |
@@ -19,3 +19,3 @@ /* | ||
* @file utils.js | ||
* @author Marek Kotewicz <marek@ethcore.io> | ||
* @author Marek Kotewicz <marek@parity.io> | ||
* @author Fabian Vogelsteller <fabian@ethereum.org> | ||
@@ -22,0 +22,0 @@ * @date 2017 |
@@ -21,5 +21,5 @@ /* | ||
* Fabian Vogelsteller <fabian@ethereum.org> | ||
* Gav Wood <gav@ethcore.io> | ||
* Gav Wood <gav@parity.io> | ||
* Jeffrey Wilcke <jeffrey.wilcke@ethereum.org> | ||
* Marek Kotewicz <marek@ethcore.io> | ||
* Marek Kotewicz <marek@parity.io> | ||
* Marian Oancea <marian@ethereum.org> | ||
@@ -26,0 +26,0 @@ * @date 2017 |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
1865692
152
6966