@medmain/core
Advanced tools
Comparing version 0.1.27 to 0.1.28
@@ -43,2 +43,5 @@ import capitalize from 'lodash/capitalize'; | ||
}, | ||
formatPercentage: function formatPercentage(percentage) { | ||
return typeof percentage === 'number' ? numeral(percentage).format('0.000') + '%' : '--'; | ||
}, | ||
formatFileSize: function formatFileSize(size) { | ||
@@ -45,0 +48,0 @@ return typeof size === 'number' ? numeral(size).format('0.[0] b') : '--'; |
@@ -55,2 +55,6 @@ "use strict"; | ||
formatPercentage(percentage) { | ||
return typeof percentage === 'number' ? (0, _numeral.default)(percentage).format('0.000') + '%' : '--'; | ||
}, | ||
formatFileSize(size) { | ||
@@ -57,0 +61,0 @@ return typeof size === 'number' ? (0, _numeral.default)(size).format('0.[0] b') : '--'; |
@@ -45,2 +45,6 @@ import capitalize from 'lodash/capitalize'; | ||
formatPercentage(percentage) { | ||
return typeof percentage === 'number' ? numeral(percentage).format('0.000') + '%' : '--'; | ||
}, | ||
formatFileSize(size) { | ||
@@ -47,0 +51,0 @@ return typeof size === 'number' ? numeral(size).format('0.[0] b') : '--'; |
{ | ||
"name": "@medmain/core", | ||
"version": "0.1.27", | ||
"version": "0.1.28", | ||
"description": "Medmain's core module, root of everything else", | ||
@@ -5,0 +5,0 @@ "files": [ |
67745
2202
2