@qrvey/utils 1.14.0-7 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,7 +66,8 @@ function formatAbbreviated(num, decimals) {
66
66
  const exp = Math.floor(Math.log10(absValue));
67
67
  if (exp <= 0 && exp >= -3)
68
68
  return num.toFixed(decimals === 0 ? 2 : decimals);
69
- return (0, d3_format_1.format)(num > -100 && num < 100 ? `.${decimals + 2}n` : ".3s")(num);
69
+ const numberWithFormat = (0, d3_format_1.format)(num > -100 && num < 100 ? `.${decimals + 2}n` : ".3s")(num);
70
+ return numberWithFormat.toUpperCase();
70
71
  }
71
72
  exports.formatAbbreviated = formatAbbreviated;
72
73
  function formatNumber(num, outputFormat, _config) {
@@ -59,7 +59,8 @@ export function formatAbbreviated(num, decimals) {
59
59
  const exp = Math.floor(Math.log10(absValue));
60
60
  if (exp <= 0 && exp >= -3)
61
61
  return num.toFixed(decimals === 0 ? 2 : decimals);
62
- return d3Format(num > -100 && num < 100 ? `.${decimals + 2}n` : ".3s")(num);
62
+ const numberWithFormat = d3Format(num > -100 && num < 100 ? `.${decimals + 2}n` : ".3s")(num);
63
+ return numberWithFormat.toUpperCase();
63
64
  }
64
65
  function formatNumber(num, outputFormat, _config) {
65
66
  let _num = num;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.14.0-7",
3
+ "version": "1.14.0",
4
4
  "description": "Helper, Utils for all Qrvey Projects",
5
5
  "homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
6
6
  "main": "dist/index.js",