@formatjs/intl-relativetimeformat 11.2.11 → 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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/polyfill.iife.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-relativetimeformat",
3
- "version": "11.2.11",
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/ecma402-abstract": "1.18.1",
25
- "@formatjs/intl-localematcher": "0.5.3"
24
+ "@formatjs/intl-localematcher": "0.5.4",
25
+ "@formatjs/ecma402-abstract": "1.18.2"
26
26
  },
27
27
  "devDependencies": {
28
- "@formatjs/intl-locale": "3.4.4",
28
+ "@formatjs/intl-pluralrules": "5.2.12",
29
29
  "@formatjs/intl-getcanonicallocales": "2.3.0",
30
- "@formatjs/intl-pluralrules": "5.2.11"
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
@@ -4291,8 +4291,8 @@
4291
4291
  if (!result.distances[desired]) {
4292
4292
  result.distances[desired] = {};
4293
4293
  }
4294
- supportedLocales2.forEach(function(supported, j) {
4295
- var distance = findMatchingDistance(desired, supported) + j + i * 40;
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;