tendermint
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -74,3 +74,3 @@ 'use strict'; | ||
if (!data.id) return; | ||
_this2.emit(data.id, data.error || null, data.result); | ||
_this2.emit(data.id, data.error ? Error(data.error) : null, data.result); | ||
}); | ||
@@ -98,6 +98,4 @@ } | ||
value: function callWs(method, args, cb) { | ||
var params = []; | ||
for (var k in args) { | ||
params.push(args[k]); | ||
}var id = Math.random().toString(36); | ||
var id = Math.random().toString(36); | ||
var params = convertArgs(args); | ||
if (method === 'subscribe') { | ||
@@ -104,0 +102,0 @@ this.on(id + '#event', cb); |
{ | ||
"name": "tendermint", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "A light client which talks to your Tendermint node over RPC", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,3 +52,3 @@ 'use strict' | ||
if (!data.id) return | ||
this.emit(data.id, data.error || null, data.result) | ||
this.emit(data.id, data.error ? Error(data.error) : null, data.result) | ||
}) | ||
@@ -74,6 +74,4 @@ } | ||
callWs (method, args, cb) { | ||
let params = [] | ||
for (let k in args) params.push(args[k]) | ||
let id = Math.random().toString(36) | ||
let params = convertArgs(args) | ||
if (method === 'subscribe') { | ||
@@ -80,0 +78,0 @@ this.on(id + '#event', cb) |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
0
73191
9
246