@formatjs/intl-displaynames 6.6.4 → 6.6.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 +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-displaynames",
3
- "version": "6.6.4",
3
+ "version": "6.6.6",
4
4
  "description": "Polyfill for: https://tc39.es/proposal-intl-displaynames",
5
5
  "keywords": [
6
6
  "i18n",
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "tslib": "^2.4.0",
25
- "@formatjs/ecma402-abstract": "1.18.0",
26
- "@formatjs/intl-localematcher": "0.5.2"
25
+ "@formatjs/ecma402-abstract": "1.18.2",
26
+ "@formatjs/intl-localematcher": "0.5.4"
27
27
  },
28
28
  "devDependencies": {
29
- "@formatjs/intl-locale": "3.4.3",
29
+ "@formatjs/intl-locale": "3.4.5",
30
30
  "@formatjs/intl-getcanonicallocales": "2.3.0"
31
31
  },
32
32
  "bugs": {
package/polyfill.iife.js CHANGED
@@ -4186,7 +4186,7 @@
4186
4186
  throw new Err(message);
4187
4187
  }
4188
4188
  }
4189
- var DEFAULT_MATCHING_THRESHOLD = 840;
4189
+ var DEFAULT_MATCHING_THRESHOLD = 838;
4190
4190
  var PROCESSED_DATA;
4191
4191
  function processData() {
4192
4192
  var _a, _b;
@@ -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;