@coingecko/cryptoformat 0.6.0 → 0.7.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.
package/lib/cryptoformat.cjs.js
CHANGED
|
@@ -171,7 +171,7 @@ function generateAbbreviatedFormatter(isoCode, locale) {
|
|
|
171
171
|
return generateFallbackFormatter(isoCode, locale, 0);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
let numberFormatOptions = { style: "decimal", notation: "compact", minimumFractionDigits: 0, maximumFractionDigits:
|
|
174
|
+
let numberFormatOptions = { style: "decimal", notation: "compact", minimumFractionDigits: 0, maximumFractionDigits: 3 };
|
|
175
175
|
|
|
176
176
|
// Currency symbol is supported if currency is Fiat/BTC/ETH.
|
|
177
177
|
if (!isCrypto(isoCode) || isBTCETH(isoCode)) {
|
package/lib/cryptoformat.esm.js
CHANGED
|
@@ -167,7 +167,7 @@ function generateAbbreviatedFormatter(isoCode, locale) {
|
|
|
167
167
|
return generateFallbackFormatter(isoCode, locale, 0);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
let numberFormatOptions = { style: "decimal", notation: "compact", minimumFractionDigits: 0, maximumFractionDigits:
|
|
170
|
+
let numberFormatOptions = { style: "decimal", notation: "compact", minimumFractionDigits: 0, maximumFractionDigits: 3 };
|
|
171
171
|
|
|
172
172
|
// Currency symbol is supported if currency is Fiat/BTC/ETH.
|
|
173
173
|
if (!isCrypto(isoCode) || isBTCETH(isoCode)) {
|
package/lib/cryptoformat.umd.js
CHANGED
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
return generateFallbackFormatter(isoCode, locale, 0);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
let numberFormatOptions = { style: "decimal", notation: "compact", minimumFractionDigits: 0, maximumFractionDigits:
|
|
176
|
+
let numberFormatOptions = { style: "decimal", notation: "compact", minimumFractionDigits: 0, maximumFractionDigits: 3 };
|
|
177
177
|
|
|
178
178
|
// Currency symbol is supported if currency is Fiat/BTC/ETH.
|
|
179
179
|
if (!isCrypto(isoCode) || isBTCETH(isoCode)) {
|
package/package.json
CHANGED