@formatjs/intl-displaynames 5.3.0 → 5.3.1

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/polyfill.iife.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-displaynames",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "description": "Polyfill for: https://tc39.es/proposal-intl-displaynames",
5
5
  "keywords": [
6
6
  "i18n",
@@ -21,8 +21,8 @@
21
21
  "url": "git+https://github.com/formatjs/formatjs.git"
22
22
  },
23
23
  "dependencies": {
24
- "@formatjs/ecma402-abstract": "1.11.0",
25
- "@formatjs/intl-localematcher": "0.2.21",
24
+ "@formatjs/ecma402-abstract": "1.11.1",
25
+ "@formatjs/intl-localematcher": "0.2.22",
26
26
  "tslib": "^2.1.0"
27
27
  },
28
28
  "bugs": {
package/polyfill.iife.js CHANGED
@@ -113,10 +113,10 @@
113
113
  var BestAvailableLocale_1 = require_BestAvailableLocale();
114
114
  var utils_1 = require_utils();
115
115
  function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
116
- var minimizedAvailableLocaleMap = Array.from(availableLocales).reduce(function(all, l2) {
117
- all[l2] = l2;
118
- return all;
119
- }, {});
116
+ var minimizedAvailableLocaleMap = {};
117
+ availableLocales.forEach(function(l2) {
118
+ return minimizedAvailableLocaleMap[l2] = l2;
119
+ });
120
120
  var minimizedAvailableLocales = new Set();
121
121
  availableLocales.forEach(function(locale2) {
122
122
  var minimizedLocale = new Intl.Locale(locale2).minimize().toString();