🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

bn.js

Package Overview
Dependencies
Maintainers
4
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bn.js - npm Package Compare versions

Comparing version
5.2.1
to
5.2.2
+1
-1
package.json
{
"name": "bn.js",
"version": "5.2.1",
"version": "5.2.2",
"description": "Big number implementation in pure javascript",

@@ -5,0 +5,0 @@ "keywords": [

@@ -47,3 +47,3 @@ # <img src="./logo.png" alt="bn.js" width="160" height="160" />

* `n` - the argument of the function must be a plain JavaScript
Number. Decimals are not supported.
Number. Decimals are not supported. The number passed must be smaller than 0x4000000 (67_108_864). Otherwise, an error is thrown.
* `rn` - both argument and return value of the function are plain JavaScript

@@ -73,3 +73,3 @@ Numbers. Decimals are not supported.

which must behave like an `Array`
* `a.toBuffer(endian, length)` - convert to Node.js Buffer (if available). For
* `a.toBuffer(endian, length)` - convert to Node.js Buffer (if available). `length` in bytes. For
compatibility with browserify and similar tools, use this instead:

@@ -76,0 +76,0 @@ `a.toArrayLike(Buffer, endian, length)`

Sorry, the diff of this file is too big to display