Skip to content

Commit

Permalink
Update bignumber.js to 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Mar 13, 2019
1 parent 5bea43c commit e5a922b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ you spot any mistakes.
* Remove special case for handshake in determine packet code
* Small performance improvement starting command sequence
* Support Node.js 11.x
* Update `bignumber.js` to 6.0.0

## v2.16.0 (2018-07-17)

Expand Down
2 changes: 1 addition & 1 deletion lib/protocol/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Parser.prototype.parseLengthCodedNumber = function parseLengthCodedNumber() {
var value;

if (high >>> 21) {
value = (new BigNumber(low)).plus((new BigNumber(MUL_32BIT)).times(high)).toString();
value = BigNumber(MUL_32BIT).times(high).plus(low).toString();

if (this._supportBigNumbers) {
return value;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"repository": "mysqljs/mysql",
"dependencies": {
"bignumber.js": "4.1.0",
"bignumber.js": "6.0.0",
"readable-stream": "2.3.6",
"safe-buffer": "5.1.2",
"sqlstring": "2.3.1"
Expand Down

0 comments on commit e5a922b

Please sign in to comment.