From 6cdcb954e7262e63b6020432f14095cbe141e459 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 15 Jan 2019 09:25:40 +0000 Subject: [PATCH] refactor: switch to bignumber.js License: MIT Signed-off-by: Alan Shaw --- package.json | 2 +- src/bitswap/stat.js | 2 +- src/repo/stat.js | 2 +- src/stats/bitswap.js | 2 +- src/stats/bw-util.js | 2 +- src/stats/repo.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index d0fedb4da..ec5a8bc49 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "dependencies": { "async": "^2.6.1", - "big.js": "^5.2.2", + "bignumber.js": "^8.0.2", "bl": "^2.1.2", "bs58": "^4.0.1", "cids": "~0.5.5", diff --git a/src/bitswap/stat.js b/src/bitswap/stat.js index ef12433e2..f0770d47d 100644 --- a/src/bitswap/stat.js +++ b/src/bitswap/stat.js @@ -1,7 +1,7 @@ 'use strict' const promisify = require('promisify-es6') -const Big = require('big.js') +const Big = require('bignumber.js') const transform = function (res, callback) { callback(null, { diff --git a/src/repo/stat.js b/src/repo/stat.js index 840aad4c5..2b922de03 100644 --- a/src/repo/stat.js +++ b/src/repo/stat.js @@ -1,7 +1,7 @@ 'use strict' const promisify = require('promisify-es6') -const Big = require('big.js') +const Big = require('bignumber.js') const transform = function (res, callback) { callback(null, { diff --git a/src/stats/bitswap.js b/src/stats/bitswap.js index cdf892240..3f641f680 100644 --- a/src/stats/bitswap.js +++ b/src/stats/bitswap.js @@ -1,7 +1,7 @@ 'use strict' const promisify = require('promisify-es6') -const Big = require('big.js') +const Big = require('bignumber.js') const transform = function (res, callback) { callback(null, { diff --git a/src/stats/bw-util.js b/src/stats/bw-util.js index 828874024..928ee0c3c 100644 --- a/src/stats/bw-util.js +++ b/src/stats/bw-util.js @@ -1,6 +1,6 @@ 'use strict' -const Big = require('big.js') +const Big = require('bignumber.js') module.exports = (chunk) => { return { diff --git a/src/stats/repo.js b/src/stats/repo.js index 8d7943dec..81f808951 100644 --- a/src/stats/repo.js +++ b/src/stats/repo.js @@ -1,7 +1,7 @@ 'use strict' const promisify = require('promisify-es6') -const Big = require('big.js') +const Big = require('bignumber.js') const transform = function (res, callback) { callback(null, {