@qrvey/utils 1.8.0 → 1.8.1
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.
- package/README.md +1 -1
- package/dist/cjs/format/format.js +1 -0
- package/dist/format/format.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,6 +70,7 @@ function formatNumber(num, outputFormat, _config) {
|
|
|
70
70
|
return formatAbbreviated(_num, num_decimals);
|
|
71
71
|
case "Numeric":
|
|
72
72
|
case "Decimal":
|
|
73
|
+
case "Default":
|
|
73
74
|
return (0, d3_format_1.format)(`,.${num_decimals}f`)(_num).replace(/\.(%*)$/, "$1");
|
|
74
75
|
case "Currency": {
|
|
75
76
|
const currency = `${_num < 0 ? "-" : ""} ${(0, get_1._get)(outputFormat, "currency.label", "$")}`;
|
package/dist/format/format.js
CHANGED
|
@@ -62,6 +62,7 @@ function formatNumber(num, outputFormat, _config) {
|
|
|
62
62
|
return formatAbbreviated(_num, num_decimals);
|
|
63
63
|
case "Numeric":
|
|
64
64
|
case "Decimal":
|
|
65
|
+
case "Default":
|
|
65
66
|
return d3Format(`,.${num_decimals}f`)(_num).replace(/\.(%*)$/, "$1");
|
|
66
67
|
case "Currency": {
|
|
67
68
|
const currency = `${_num < 0 ? "-" : ""} ${_get(outputFormat, "currency.label", "$")}`;
|