@formatjs/intl-relativetimeformat 11.2.10 → 11.2.12
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 +5 -5
- package/polyfill.iife.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-relativetimeformat",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.12",
|
|
4
4
|
"description": "Formats JavaScript dates to relative time strings.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"tslib": "^2.4.0",
|
|
24
|
-
"@formatjs/
|
|
25
|
-
"@formatjs/
|
|
24
|
+
"@formatjs/intl-localematcher": "0.5.4",
|
|
25
|
+
"@formatjs/ecma402-abstract": "1.18.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
+
"@formatjs/intl-pluralrules": "5.2.12",
|
|
28
29
|
"@formatjs/intl-getcanonicallocales": "2.3.0",
|
|
29
|
-
"@formatjs/intl-
|
|
30
|
-
"@formatjs/intl-locale": "3.4.3"
|
|
30
|
+
"@formatjs/intl-locale": "3.4.5"
|
|
31
31
|
},
|
|
32
32
|
"main": "index.js",
|
|
33
33
|
"types": "index.d.ts",
|
package/polyfill.iife.js
CHANGED
|
@@ -4164,7 +4164,7 @@
|
|
|
4164
4164
|
throw new Err(message);
|
|
4165
4165
|
}
|
|
4166
4166
|
}
|
|
4167
|
-
var DEFAULT_MATCHING_THRESHOLD =
|
|
4167
|
+
var DEFAULT_MATCHING_THRESHOLD = 838;
|
|
4168
4168
|
var PROCESSED_DATA;
|
|
4169
4169
|
function processData() {
|
|
4170
4170
|
var _a, _b;
|
|
@@ -4291,8 +4291,8 @@
|
|
|
4291
4291
|
if (!result.distances[desired]) {
|
|
4292
4292
|
result.distances[desired] = {};
|
|
4293
4293
|
}
|
|
4294
|
-
supportedLocales2.forEach(function(supported
|
|
4295
|
-
var distance = findMatchingDistance(desired, supported) +
|
|
4294
|
+
supportedLocales2.forEach(function(supported) {
|
|
4295
|
+
var distance = findMatchingDistance(desired, supported) + 0 + i * 40;
|
|
4296
4296
|
result.distances[desired][supported] = distance;
|
|
4297
4297
|
if (distance < lowestDistance) {
|
|
4298
4298
|
lowestDistance = distance;
|