Socket
Socket
Sign inDemoInstall

tendermint

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tendermint - npm Package Compare versions

Comparing version 3.0.3 to 3.1.0

7

lib/lightNode.js

@@ -71,3 +71,5 @@ 'use strict';

_this.synced = _this.handleError(_this.initialSync());
_this.handleError(_this.initialSync()).then(function () {
return _this.emit('synced');
});
return _this;

@@ -81,6 +83,5 @@ }

promise.catch(function (err) {
return promise.catch(function (err) {
return _this2.emit('error', err);
});
return promise;
}

@@ -87,0 +88,0 @@ }, {

{
"name": "tendermint",
"version": "3.0.3",
"version": "3.1.0",
"description": "A light client which talks to your Tendermint node over RPC",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -50,8 +50,8 @@ let old = require('old')

this.synced = this.handleError(this.initialSync())
this.handleError(this.initialSync())
.then(() => this.emit('synced'))
}
handleError (promise) {
promise.catch((err) => this.emit('error', err))
return promise
return promise.catch((err) => this.emit('error', err))
}

@@ -58,0 +58,0 @@

@@ -16,3 +16,4 @@ let node = require('.')('ws://localhost:46657', {

node.on('synced', (header) => console.log('synced'))
node.on('update', (header) => console.log(header.height))
node.on('error', (err) => console.error(err.stack))
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