@formatjs/intl-getcanonicallocales 3.3.1 → 3.4.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-getcanonicallocales",
3
- "version": "3.3.1",
3
+ "version": "3.4.0",
4
4
  "description": "Intl.getCanonicalLocales polyfill",
5
5
  "keywords": [
6
6
  "ecma402",
package/polyfill-force.js CHANGED
@@ -9486,6 +9486,8 @@ function compareKV(t1, t2) {
9486
9486
  return t1[0] < t2[0] ? -1 : t1[0] > t2[0] ? 1 : 0;
9487
9487
  }
9488
9488
  function compareExtension(e1, e2) {
9489
+ if (e1.type === "x") return e2.type === "x" ? 0 : 1;
9490
+ if (e2.type === "x") return -1;
9489
9491
  return e1.type < e2.type ? -1 : e1.type > e2.type ? 1 : 0;
9490
9492
  }
9491
9493
  function mergeVariants(v1, v2) {