@formatjs/intl-segmenter 11.5.3 → 11.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/polyfill.iife.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-segmenter",
3
- "version": "11.5.3",
3
+ "version": "11.5.5",
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/intl-localematcher": "0.5.2",
24
- "@formatjs/ecma402-abstract": "1.18.0"
23
+ "@formatjs/intl-localematcher": "0.5.4",
24
+ "@formatjs/ecma402-abstract": "1.18.2"
25
25
  },
26
26
  "main": "index.js",
27
27
  "types": "index.d.ts",
package/polyfill.iife.js CHANGED
@@ -5434,7 +5434,7 @@
5434
5434
  throw new Err(message);
5435
5435
  }
5436
5436
  }
5437
- var DEFAULT_MATCHING_THRESHOLD = 840;
5437
+ var DEFAULT_MATCHING_THRESHOLD = 838;
5438
5438
  var PROCESSED_DATA;
5439
5439
  function processData() {
5440
5440
  var _a, _b;
@@ -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;