@formatjs/intl-listformat 7.5.4 → 7.5.6

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 +4 -4
  2. package/polyfill.iife.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-listformat",
3
- "version": "7.5.4",
3
+ "version": "7.5.6",
4
4
  "description": "Formats JS list in a i18n-safe way",
5
5
  "keywords": [
6
6
  "intl",
@@ -20,12 +20,12 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "tslib": "^2.4.0",
23
- "@formatjs/ecma402-abstract": "1.18.1",
24
- "@formatjs/intl-localematcher": "0.5.3"
23
+ "@formatjs/intl-localematcher": "0.5.4",
24
+ "@formatjs/ecma402-abstract": "1.18.3"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@formatjs/intl-getcanonicallocales": "2.3.0",
28
- "@formatjs/intl-locale": "3.4.4"
28
+ "@formatjs/intl-locale": "3.4.6"
29
29
  },
30
30
  "main": "index.js",
31
31
  "types": "index.d.ts",
package/polyfill.iife.js CHANGED
@@ -4298,8 +4298,8 @@
4298
4298
  if (!result.distances[desired]) {
4299
4299
  result.distances[desired] = {};
4300
4300
  }
4301
- supportedLocales2.forEach(function(supported, j) {
4302
- var distance = findMatchingDistance(desired, supported) + j + i * 40;
4301
+ supportedLocales2.forEach(function(supported) {
4302
+ var distance = findMatchingDistance(desired, supported) + 0 + i * 40;
4303
4303
  result.distances[desired][supported] = distance;
4304
4304
  if (distance < lowestDistance) {
4305
4305
  lowestDistance = distance;