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

@0x/utils

Package Overview
Dependencies
Maintainers
6
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0x/utils - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2

9

CHANGELOG.json
[
{
"timestamp": 1578272714,
"version": "5.1.2",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"timestamp": 1576540892,

@@ -4,0 +13,0 @@ "version": "5.1.1",

4

CHANGELOG.md

@@ -8,2 +8,6 @@ <!--

## v5.1.2 - _January 6, 2020_
* Dependencies updated
## v5.1.1 - _December 17, 2019_

@@ -10,0 +14,0 @@

8

lib/src/hex_utils.js

@@ -5,6 +5,6 @@ "use strict";

var ethUtil = require("ethereumjs-util");
var index_1 = require("./index");
var configured_bignumber_1 = require("./configured_bignumber");
// tslint:disable:custom-no-magic-numbers
var WORD_LENGTH = 32;
var WORD_CEIL = new index_1.BigNumber(2).pow(WORD_LENGTH * 8);
var WORD_CEIL = new configured_bignumber_1.BigNumber(2).pow(WORD_LENGTH * 8);
exports.hexUtils = {

@@ -95,7 +95,7 @@ concat: concat,

}
var _n = new index_1.BigNumber(n);
var _n = new configured_bignumber_1.BigNumber(n);
if (_n.isNegative()) {
// Perform two's-complement.
// prettier-ignore
_n = new index_1.BigNumber(invert(toHex(_n.abs()), _size).substr(2), 16).plus(1).mod(WORD_CEIL);
_n = new configured_bignumber_1.BigNumber(invert(toHex(_n.abs()), _size).substr(2), 16).plus(1).mod(WORD_CEIL);
}

@@ -102,0 +102,0 @@ return "0x" + _n.toString(16);

{
"name": "@0x/utils",
"version": "5.1.1",
"version": "5.1.2",
"engines": {

@@ -65,3 +65,3 @@ "node": ">=6.12"

},
"gitHead": "51ca3109eb29e1b03199e98587403fc61f8f2716"
"gitHead": "2113fb490d63bee42042e592d46e7e409cb225b9"
}

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