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

fix: repo stat for non-numeric string values #1148

Closed
wants to merge 1 commit into from

Conversation

PedroMiguelSS
Copy link
Contributor

@PedroMiguelSS PedroMiguelSS commented Nov 7, 2019

new Big() cannot be applied to non-numeric string variables, which can be the case when human option is true.
E.g.: 10GB

This PR fixes that problem.

⚠️ It needs the following PR merged and released before this one can be:

@alanshaw
Copy link
Contributor

alanshaw commented Nov 8, 2019

@PedroMiguelSS please add a test to https://github.com/ipfs/interface-js-ipfs-core/blob/master/src/repo/stat.js so we can verify this works. Shout if you need a hand with anything.

@PedroMiguelSS
Copy link
Contributor Author

@PedroMiguelSS PedroMiguelSS force-pushed the fix/repo-stat branch 2 times, most recently from c1c385c to 754c0a4 Compare November 14, 2019 10:57
@PedroMiguelSS
Copy link
Contributor Author

PedroMiguelSS commented Nov 14, 2019

Can I get a second review here, please? @alanshaw @hugomrdias @achingbrain

Please note that this PR depends on ipfs-inactive/interface-js-ipfs-core#554.

@PedroMiguelSS PedroMiguelSS changed the title fix: repo stat for string values fix: repo stat for non-numeric string values Nov 15, 2019
@achingbrain
Copy link
Collaborator

LGTM, just needs the git url removing from the package.json

@PedroMiguelSS PedroMiguelSS deleted the fix/repo-stat branch November 25, 2019 12:08
@PedroMiguelSS
Copy link
Contributor Author

Closed in favor of ipfs/js-ipfs#2630.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants