@formatjs/intl-datetimeformat 6.12.1 → 6.12.2

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 +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-datetimeformat",
3
- "version": "6.12.1",
3
+ "version": "6.12.2",
4
4
  "description": "Intl.DateTimeFormat polyfill",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -23,11 +23,11 @@
23
23
  "homepage": "https://github.com/formatjs/formatjs#readme",
24
24
  "dependencies": {
25
25
  "tslib": "^2.4.0",
26
- "@formatjs/ecma402-abstract": "1.18.1",
27
- "@formatjs/intl-localematcher": "0.5.3"
26
+ "@formatjs/intl-localematcher": "0.5.4",
27
+ "@formatjs/ecma402-abstract": "1.18.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@formatjs/intl-getcanonicallocales": "2.3.0",
31
- "@formatjs/intl-locale": "3.4.4"
31
+ "@formatjs/intl-locale": "3.4.5"
32
32
  }
33
33
  }
package/polyfill.iife.js CHANGED
@@ -4564,8 +4564,8 @@
4564
4564
  if (!result.distances[desired]) {
4565
4565
  result.distances[desired] = {};
4566
4566
  }
4567
- supportedLocales2.forEach(function(supported, j) {
4568
- var distance = findMatchingDistance(desired, supported) + j + i * 40;
4567
+ supportedLocales2.forEach(function(supported) {
4568
+ var distance = findMatchingDistance(desired, supported) + 0 + i * 40;
4569
4569
  result.distances[desired][supported] = distance;
4570
4570
  if (distance < lowestDistance) {
4571
4571
  lowestDistance = distance;