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

refactor: switch to bignumber.js #927

Merged
merged 1 commit into from
Jan 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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