@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/index.d.ts +1 -2
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/polyfill-force.js +2 -0
- package/polyfill-force.js.map +1 -1
- package/polyfill.iife.js +9 -1
- package/polyfill.js +9 -1
- package/polyfill.js.map +1 -1
- package/should-polyfill.d.ts +1 -2
- package/should-polyfill.js +7 -1
- package/should-polyfill.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -40,5 +40,4 @@ export declare function isUnicodeVariantSubtag(variant: string): boolean;
|
|
|
40
40
|
export declare function parseUnicodeLanguageId(chunks: string[] | string): UnicodeLanguageId;
|
|
41
41
|
export declare function parseUnicodeLocaleId(locale: string): UnicodeLocaleId;
|
|
42
42
|
export declare const likelySubtags: Record<string, string>;
|
|
43
|
-
export declare function getCanonicalLocales(locales?: string[] | string | Intl.Locale | Intl.Locale[] | ArrayLike<string | Intl.Locale>): string[];
|
|
44
|
-
//# sourceMappingURL=index.d.ts.map
|
|
43
|
+
export declare function getCanonicalLocales(locales?: string[] | string | Intl.Locale | Intl.Locale[] | ArrayLike<string | Intl.Locale>): string[];
|
package/index.js
CHANGED
|
@@ -9494,6 +9494,8 @@ function compareKV(t1, t2) {
|
|
|
9494
9494
|
return t1[0] < t2[0] ? -1 : t1[0] > t2[0] ? 1 : 0;
|
|
9495
9495
|
}
|
|
9496
9496
|
function compareExtension(e1, e2) {
|
|
9497
|
+
if (e1.type === "x") return e2.type === "x" ? 0 : 1;
|
|
9498
|
+
if (e2.type === "x") return -1;
|
|
9497
9499
|
return e1.type < e2.type ? -1 : e1.type > e2.type ? 1 : 0;
|
|
9498
9500
|
}
|
|
9499
9501
|
function mergeVariants(v1, v2) {
|