@ethnolib/find-language 0.0.16 → 0.0.18

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
@@ -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.0.16",
6
+ "version": "0.0.18",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",
9
9
  "scripts": {
@@ -3,6 +3,7 @@ import { ILanguage, IScript } from './findLanguageInterfaces';
3
3
  export declare function stripResultMetadata(results: FuseResult<ILanguage>[]): ILanguage[];
4
4
  export declare function filterScripts(scriptFilter: (value: IScript) => boolean, results: ILanguage[]): ILanguage[];
5
5
  export declare function modifyScripts(scriptModifier: (value: IScript) => IScript, results: ILanguage[]): ILanguage[];
6
+ export declare function rawIsoCode(result: ILanguage): string | undefined;
6
7
  export declare function codeMatches(code1: string | undefined, code2: string | undefined): boolean;
7
8
  export declare function substituteInSpecialEntry(targetCode: string, getSpecialEntry: (result: ILanguage) => ILanguage, results: ILanguage[]): ILanguage[];
8
9
  export declare function filterLanguageCodes(langCodeFilter: (value: string) => boolean, results: ILanguage[]): ILanguage[];