Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
refactor: switch to bignumber.js (#927)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: All API methods that returned [`big.js`](https://github.com/MikeMcl/big.js/) instances now return [`bignumber.js`](https://github.com/MikeMcl/bignumber.js/) instances.

License: MIT
Signed-off-by: Alan Shaw <[email protected]>
  • Loading branch information
Alan Shaw authored Jan 15, 2019
1 parent 39e4d7c commit 1a54ae5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/bitswap/stat.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/repo/stat.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/stats/bitswap.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/stats/bw-util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Big = require('big.js')
const Big = require('bignumber.js')

module.exports = (chunk) => {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/stats/repo.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand Down

0 comments on commit 1a54ae5

Please sign in to comment.