@formatjs/intl-getcanonicallocales 3.2.2 → 3.2.4

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.
@@ -1 +1,5 @@
1
- export declare function shouldPolyfill(): boolean;
1
+ //#region packages/intl-getcanonicallocales/should-polyfill.d.ts
2
+ declare function shouldPolyfill(): boolean;
3
+ //#endregion
4
+ export { shouldPolyfill };
5
+ //# sourceMappingURL=should-polyfill.d.ts.map
@@ -1,3 +1,8 @@
1
- export function shouldPolyfill() {
1
+ //#region packages/intl-getcanonicallocales/should-polyfill.ts
2
+ function shouldPolyfill() {
2
3
  return typeof Intl === "undefined" || !("getCanonicalLocales" in Intl) || Intl.getCanonicalLocales("und-x-private")[0] === "x-private";
3
4
  }
5
+ //#endregion
6
+ export { shouldPolyfill };
7
+
8
+ //# sourceMappingURL=should-polyfill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"should-polyfill.js","names":[],"sources":["../should-polyfill.ts"],"sourcesContent":["export function shouldPolyfill(): boolean {\n return (\n typeof Intl === 'undefined' ||\n !('getCanonicalLocales' in Intl) ||\n // Native Intl.getCanonicalLocales is just buggy\n // https://bugs.chromium.org/p/v8/issues/detail?id=10682\n ((Intl as any).getCanonicalLocales as any)('und-x-private')[0] ===\n 'x-private'\n )\n}\n"],"mappings":";AAAA,SAAgB,iBAA0B;AACxC,QACE,OAAO,SAAS,eAChB,EAAE,yBAAyB,SAGzB,KAAa,oBAA4B,gBAAgB,CAAC,OAC1D"}
@@ -1,4 +0,0 @@
1
- export declare const languageAlias: Record<string, string>;
2
- export declare const territoryAlias: Record<string, string>;
3
- export declare const scriptAlias: Record<string, string>;
4
- export declare const variantAlias: Record<string, string>;