Socket
Socket
Sign inDemoInstall

@chainsafe/ssz

Package Overview
Dependencies
Maintainers
5
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/ssz - npm Package Compare versions

Comparing version 0.8.12 to 0.8.13

6

CHANGELOG.md

@@ -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 @@

2

lib/types/basic/uint.js

@@ -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

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