@formatjs/intl-numberformat 8.10.2 → 8.10.3

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/polyfill.iife.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-numberformat",
3
- "version": "8.10.2",
3
+ "version": "8.10.3",
4
4
  "description": "Ponyfill for ES2020 Intl.NumberFormat",
5
5
  "keywords": [
6
6
  "polyfill",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "tslib": "^2.4.0",
26
- "@formatjs/ecma402-abstract": "1.18.3",
27
- "@formatjs/intl-localematcher": "0.5.4"
26
+ "@formatjs/intl-localematcher": "0.5.4",
27
+ "@formatjs/ecma402-abstract": "2.0.0"
28
28
  },
29
29
  "devDependencies": {
30
+ "@formatjs/intl-pluralrules": "5.2.14",
30
31
  "@formatjs/intl-getcanonicallocales": "2.3.0",
31
- "@formatjs/intl-locale": "3.4.6",
32
- "@formatjs/intl-pluralrules": "5.2.13"
32
+ "@formatjs/intl-locale": "4.0.0"
33
33
  },
34
34
  "bugs": {
35
35
  "url": "https://github.com/formatjs/formatjs/issues"
package/polyfill.iife.js CHANGED
@@ -1534,7 +1534,8 @@
1534
1534
  result.push({ type: "integer", value: integer });
1535
1535
  }
1536
1536
  if (fraction !== void 0) {
1537
- result.push({ type: "decimal", value: symbols.decimal }, { type: "fraction", value: fraction });
1537
+ var decimalSepSymbol = style === "currency" && symbols.currencyDecimal != null ? symbols.currencyDecimal : symbols.decimal;
1538
+ result.push({ type: "decimal", value: decimalSepSymbol }, { type: "fraction", value: fraction });
1538
1539
  }
1539
1540
  if ((notation === "scientific" || notation === "engineering") && isFinite(x)) {
1540
1541
  result.push({ type: "exponentSeparator", value: symbols.exponential });