tendermint
Advanced tools
Comparing version 4.0.5 to 4.0.6
@@ -5,8 +5,5 @@ 'use strict'; | ||
var n = parseInt(nStr); | ||
if (!Number.isInteger(n)) { | ||
throw Error('Value ' + JSON.stringify(nStr) + ' is not an integer'); | ||
if (!Number.isSafeInteger(n)) { | ||
throw Error('Value ' + JSON.stringify(nStr) + ' is not an integer in the valid range'); | ||
} | ||
if (Math.abs(n) >= Number.MAX_SAFE_INTEGER) { | ||
throw Error('Absolute value must be < 2^53'); | ||
} | ||
if (String(n) !== String(nStr)) { | ||
@@ -13,0 +10,0 @@ throw Error('Value ' + JSON.stringify(nStr) + ' is not a canonical integer string representation'); |
@@ -35,2 +35,4 @@ 'use strict'; | ||
function encodingLength(n) { | ||
n = safeParseInt(n); | ||
if (signed) n *= 2; | ||
@@ -37,0 +39,0 @@ if (!signed && n < 0 || Math.abs(n) > Number.MAX_SAFE_INTEGER) { |
@@ -315,2 +315,4 @@ 'use strict'; | ||
} | ||
// TODO: also pass transition if +2/3 of old validator set is still represented in commit | ||
} | ||
@@ -317,0 +319,0 @@ } |
{ | ||
"name": "tendermint", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "A light client which talks to your Tendermint node over RPC", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
48351
1139