@formatjs/intl-listformat 7.5.3 → 7.5.5
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-listformat",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.5",
|
|
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/intl-localematcher": "0.5.
|
|
24
|
-
"@formatjs/ecma402-abstract": "1.18.
|
|
23
|
+
"@formatjs/intl-localematcher": "0.5.4",
|
|
24
|
+
"@formatjs/ecma402-abstract": "1.18.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@formatjs/intl-getcanonicallocales": "2.3.0",
|
|
28
|
-
"@formatjs/intl-locale": "3.4.
|
|
28
|
+
"@formatjs/intl-locale": "3.4.5"
|
|
29
29
|
},
|
|
30
30
|
"main": "index.js",
|
|
31
31
|
"types": "index.d.ts",
|
package/polyfill.iife.js
CHANGED
|
@@ -4171,7 +4171,7 @@
|
|
|
4171
4171
|
throw new Err(message);
|
|
4172
4172
|
}
|
|
4173
4173
|
}
|
|
4174
|
-
var DEFAULT_MATCHING_THRESHOLD =
|
|
4174
|
+
var DEFAULT_MATCHING_THRESHOLD = 838;
|
|
4175
4175
|
var PROCESSED_DATA;
|
|
4176
4176
|
function processData() {
|
|
4177
4177
|
var _a, _b;
|
|
@@ -4298,8 +4298,8 @@
|
|
|
4298
4298
|
if (!result.distances[desired]) {
|
|
4299
4299
|
result.distances[desired] = {};
|
|
4300
4300
|
}
|
|
4301
|
-
supportedLocales2.forEach(function(supported
|
|
4302
|
-
var distance = findMatchingDistance(desired, supported) +
|
|
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;
|