Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/bn.js

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/bn.js - npm Package Compare versions

Comparing version 4.11.1 to 4.11.2

24

bn.js/index.d.ts

@@ -51,2 +51,6 @@ // Type definitions for bn.js 4.11

);
constructor(
number: number | string | number[] | Buffer | BN,
endian?: Endianness
)

@@ -69,2 +73,12 @@ /**

/**
* @description returns the maximum of 2 BN instances.
*/
static max(left: BN, right: BN): BN;
/**
* @description returns the minimum of 2 BN instances.
*/
static min(left: BN, right: BN): BN;
/**
* @description Convert number to red

@@ -103,7 +117,13 @@ */

toArrayLike(
ArrayType: Buffer | any[],
ArrayType: typeof Buffer,
endian?: Endianness,
length?: number
): Buffer | any[];
): Buffer;
toArrayLike(
ArrayType: any[],
endian?: Endianness,
length?: number
): any[];
/**

@@ -110,0 +130,0 @@ * @description convert to Node.js Buffer (if available). For compatibility with browserify and similar tools, use this instead: a.toArrayLike(Buffer, endian, length)

4

bn.js/package.json
{
"name": "@types/bn.js",
"version": "4.11.1",
"version": "4.11.2",
"description": "TypeScript definitions for bn.js",

@@ -27,4 +27,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "58078e96899cd0a2f3f282891443f580e991d51a5eff7b06570300d6d393c84b",
"typesPublisherContentHash": "67c6f49010c66e0f08d1b571afada3f4158343f363dc91716cfd6888073f5aa2",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Tue, 26 Jun 2018 01:10:50 GMT
* Last updated: Tue, 18 Sep 2018 17:44:24 GMT
* Dependencies: node

@@ -14,0 +14,0 @@ * Global values: none

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