Skip to content

Commit e5a922b

Browse files
committed
Update bignumber.js to 6.0.0
1 parent 5bea43c commit e5a922b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ you spot any mistakes.
1212
* Remove special case for handshake in determine packet code
1313
* Small performance improvement starting command sequence
1414
* Support Node.js 11.x
15+
* Update `bignumber.js` to 6.0.0
1516

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

lib/protocol/Parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Parser.prototype.parseLengthCodedNumber = function parseLengthCodedNumber() {
200200
var value;
201201

202202
if (high >>> 21) {
203-
value = (new BigNumber(low)).plus((new BigNumber(MUL_32BIT)).times(high)).toString();
203+
value = BigNumber(MUL_32BIT).times(high).plus(low).toString();
204204

205205
if (this._supportBigNumbers) {
206206
return value;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"repository": "mysqljs/mysql",
1515
"dependencies": {
16-
"bignumber.js": "4.1.0",
16+
"bignumber.js": "6.0.0",
1717
"readable-stream": "2.3.6",
1818
"safe-buffer": "5.1.2",
1919
"sqlstring": "2.3.1"

0 commit comments

Comments
 (0)