@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.
- package/package.json +4 -4
- 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.
|
|
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.
|
|
26
|
-
"@formatjs/intl-localematcher": "0.5.
|
|
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.
|
|
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 =
|
|
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
|
|
4317
|
-
var distance = findMatchingDistance(desired, supported) +
|
|
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;
|