Comparing version 5.1.1 to 5.1.2
[ | ||
{ | ||
"timestamp": 1578272714, | ||
"version": "5.1.2", | ||
"changes": [ | ||
{ | ||
"note": "Dependencies updated" | ||
} | ||
] | ||
}, | ||
{ | ||
"timestamp": 1576540892, | ||
@@ -4,0 +13,0 @@ "version": "5.1.1", |
@@ -8,2 +8,6 @@ <!-- | ||
## v5.1.2 - _January 6, 2020_ | ||
* Dependencies updated | ||
## v5.1.1 - _December 17, 2019_ | ||
@@ -10,0 +14,0 @@ |
@@ -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
528016
7974