@formatjs/intl-displaynames 6.6.5 → 6.6.7

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 +6 -6
  2. package/polyfill.iife.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-displaynames",
3
- "version": "6.6.5",
3
+ "version": "6.6.7",
4
4
  "description": "Polyfill for: https://tc39.es/proposal-intl-displaynames",
5
5
  "keywords": [
6
6
  "i18n",
@@ -15,19 +15,19 @@
15
15
  "homepage": "https://github.com/formatjs/formatjs",
16
16
  "license": "MIT",
17
17
  "main": "index.js",
18
- "types": "index.d.js",
18
+ "types": "index.d.ts",
19
19
  "repository": {
20
20
  "type": "git",
21
21
  "url": "git+https://github.com/formatjs/formatjs.git"
22
22
  },
23
23
  "dependencies": {
24
24
  "tslib": "^2.4.0",
25
- "@formatjs/ecma402-abstract": "1.18.1",
26
- "@formatjs/intl-localematcher": "0.5.3"
25
+ "@formatjs/ecma402-abstract": "1.18.3",
26
+ "@formatjs/intl-localematcher": "0.5.4"
27
27
  },
28
28
  "devDependencies": {
29
- "@formatjs/intl-locale": "3.4.4",
30
- "@formatjs/intl-getcanonicallocales": "2.3.0"
29
+ "@formatjs/intl-getcanonicallocales": "2.3.0",
30
+ "@formatjs/intl-locale": "3.4.6"
31
31
  },
32
32
  "bugs": {
33
33
  "url": "https://github.com/formatjs/formatjs/issues"
package/polyfill.iife.js CHANGED
@@ -4313,8 +4313,8 @@
4313
4313
  if (!result.distances[desired]) {
4314
4314
  result.distances[desired] = {};
4315
4315
  }
4316
- supportedLocales2.forEach(function(supported, j) {
4317
- var distance = findMatchingDistance(desired, supported) + j + i * 40;
4316
+ supportedLocales2.forEach(function(supported) {
4317
+ var distance = findMatchingDistance(desired, supported) + 0 + i * 40;
4318
4318
  result.distances[desired][supported] = distance;
4319
4319
  if (distance < lowestDistance) {
4320
4320
  lowestDistance = distance;