@chainsafe/ssz
Advanced tools
Comparing version 0.8.12 to 0.8.13
@@ -0,1 +1,7 @@ | ||
## 0.8.13 (2021-08-04) | ||
## Features | ||
- Use utility function for bigint exponentiation ([c2d3a7](https://github.com/chainsafe/ssz/commit/c2d3a7)) | ||
## 0.8.12 (2021-07-30) | ||
@@ -2,0 +8,0 @@ |
@@ -63,3 +63,3 @@ "use strict"; | ||
struct_assertValidValue(value) { | ||
if (value !== Infinity && (!Number.isSafeInteger(value) || value > BigInt(2) ** (BigInt(8) * BigInt(this.byteLength)))) { | ||
if (value !== Infinity && (!Number.isSafeInteger(value) || value > (0, _bigInt.bigIntPow)(BigInt(2), BigInt(8) * BigInt(this.byteLength)))) { | ||
throw new Error("Uint value is not a number"); | ||
@@ -66,0 +66,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"homepage": "https://github.com/chainsafe/ssz", | ||
"version": "0.8.12", | ||
"version": "0.8.13", | ||
"main": "lib/index.js", | ||
@@ -10,0 +10,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
792614