@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.
@@ -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: 2 };
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)) {
@@ -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: 2 };
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)) {
@@ -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: 2 };
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coingecko/cryptoformat",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Javascript library to format and display cryptocurrencies and fiat",
5
5
  "main": "lib/cryptoformat.cjs.js",
6
6
  "module": "lib/cryptoformat.esm.js",