refactor: 💡 update to new filesize package and output format (#306)
This commit is contained in:
1 parent
63c6d24363
commit
d130a019d7
4 files changed
+65
-57
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { helper } from '@ember/component/helper';
|
||||
import filesize from 'file-size';
|
||||
import { filesize } from 'filesize';
|
||||
|
||||
/**
|
||||
* Takes a int expressing file size in bytes and returns a conversion
|
||||
@@ -8,5 +8,5 @@ import filesize from 'file-size';
|
||||
*/
|
||||
export default helper(function formatBytesSize([sizeInBytes]) {
|
||||
const numberOfBytes = Number(sizeInBytes);
|
||||
return filesize(numberOfBytes).human('si');
|
||||
return filesize(numberOfBytes);
|
||||
});
|
||||
Reference in new issue
Block a user