@ethnolib/find-language 0.1.9 → 0.1.10

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.mjs CHANGED
@@ -102064,10 +102064,9 @@ function fd(l) {
102064
102064
  });
102065
102065
  }
102066
102066
  function _d(l, o) {
102067
- if (!(!l || Sh(l) || or(l)))
102068
- return ze(
102069
- (o == null ? void 0 : o.languageNameInScript) || l.autonym || l.exonym
102070
- );
102067
+ return !l || Sh(l) || or(l) ? "" : ze(
102068
+ (o == null ? void 0 : o.languageNameInScript) || l.autonym || l.exonym
102069
+ ) ?? "";
102071
102070
  }
102072
102071
  function ce(l) {
102073
102072
  return Array.isArray ? Array.isArray(l) : mr(l) === "[object Array]";
@@ -24,5 +24,5 @@ interface ITagParts {
24
24
  export declare function splitTag(tag: string): ITagParts;
25
25
  export declare function defaultRegionForLangTag(languageTag: string): IRegion | undefined;
26
26
  export declare function createTagFromOrthography(orthography: IOrthography): string;
27
- export declare function defaultDisplayName(language?: ILanguage, script?: IScript): string | undefined;
27
+ export declare function defaultDisplayName(language?: ILanguage, script?: IScript): string;
28
28
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A library for fuzzy-searching for languages and other utils for language choosers",
4
4
  "author": "SIL Global",
5
5
  "license": "MIT",
6
- "version": "0.1.9",
6
+ "version": "0.1.10",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",
9
9
  "sideEffects": false,