@economic/taco 2.61.1 → 2.61.2
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/dist/taco.cjs +3 -0
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.js +3 -0
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.cjs
CHANGED
@@ -34711,6 +34711,9 @@ class DataType {
|
|
34711
34711
|
const localeNumberSeparators = /* @__PURE__ */ new Map();
|
34712
34712
|
class NumericDataType extends DataType {
|
34713
34713
|
static format(value, locale2, options) {
|
34714
|
+
if (value === void 0 || typeof value !== "number" || isNaN(value)) {
|
34715
|
+
return "";
|
34716
|
+
}
|
34714
34717
|
const localisedValue = new Intl.NumberFormat(locale2, options).format(value);
|
34715
34718
|
return localisedValue.replace(/[\u00A0\u202F]/g, " ");
|
34716
34719
|
}
|