react-intl 5.20.2 → 5.20.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 +3 -3
  2. package/react-intl.iife.js +13 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-intl",
3
- "version": "5.20.2",
3
+ "version": "5.20.3",
4
4
  "description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",
5
5
  "keywords": [
6
6
  "intl",
@@ -130,12 +130,12 @@
130
130
  "dependencies": {
131
131
  "@formatjs/ecma402-abstract": "1.9.3",
132
132
  "@formatjs/icu-messageformat-parser": "2.0.6",
133
- "@formatjs/intl": "1.13.0",
133
+ "@formatjs/intl": "1.13.1",
134
134
  "@formatjs/intl-displaynames": "5.1.5",
135
135
  "@formatjs/intl-listformat": "6.2.5",
136
136
  "@types/hoist-non-react-statics": "^3.3.1",
137
137
  "hoist-non-react-statics": "^3.3.2",
138
- "intl-messageformat": "9.6.18",
138
+ "intl-messageformat": "9.7.0",
139
139
  "tslib": "^2.1.0"
140
140
  },
141
141
  "peerDependencies": {
@@ -424,10 +424,16 @@ var ReactIntl = (function() {
424
424
  }
425
425
  return t;
426
426
  }
427
- function __spreadArray(to, from) {
428
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
429
- to[j] = from[i];
430
- return to;
427
+ function __spreadArray(to, from, pack) {
428
+ if (pack || arguments.length === 2)
429
+ for (var i = 0, l = from.length, ar; i < l; i++) {
430
+ if (ar || !(i in from)) {
431
+ if (!ar)
432
+ ar = Array.prototype.slice.call(from, 0, i);
433
+ ar[i] = from[i];
434
+ }
435
+ }
436
+ return to.concat(ar || from);
431
437
  }
432
438
 
433
439
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/createFormattedComponent.js
@@ -2187,6 +2193,9 @@ var ReactIntl = (function() {
2187
2193
  IntlMessageFormat2.__parse = parse;
2188
2194
  IntlMessageFormat2.formats = {
2189
2195
  number: {
2196
+ integer: {
2197
+ maximumFractionDigits: 0
2198
+ },
2190
2199
  currency: {
2191
2200
  style: "currency"
2192
2201
  },