@formatjs/intl-segmenter 11.5.4 → 11.5.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/polyfill.iife.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-segmenter",
3
- "version": "11.5.4",
3
+ "version": "11.5.6",
4
4
  "description": "Polyfill for Intl.Segmenter",
5
5
  "keywords": [
6
6
  "intl",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "tslib": "^2.4.0",
23
- "@formatjs/ecma402-abstract": "1.18.1",
24
- "@formatjs/intl-localematcher": "0.5.3"
23
+ "@formatjs/intl-localematcher": "0.5.4",
24
+ "@formatjs/ecma402-abstract": "1.18.3"
25
25
  },
26
26
  "main": "index.js",
27
27
  "types": "index.d.ts",
package/polyfill.iife.js CHANGED
@@ -5561,8 +5561,8 @@
5561
5561
  if (!result.distances[desired]) {
5562
5562
  result.distances[desired] = {};
5563
5563
  }
5564
- supportedLocales.forEach(function(supported, j) {
5565
- var distance = findMatchingDistance(desired, supported) + j + i * 40;
5564
+ supportedLocales.forEach(function(supported) {
5565
+ var distance = findMatchingDistance(desired, supported) + 0 + i * 40;
5566
5566
  result.distances[desired][supported] = distance;
5567
5567
  if (distance < lowestDistance) {
5568
5568
  lowestDistance = distance;