Comparing version 2.8.1-rc.3 to 2.9.0-rc.0
@@ -14,7 +14,7 @@ interface Language { | ||
interface Options { | ||
readonly isHTML: false; | ||
readonly languageHint: string; | ||
readonly encodingHint: string; | ||
readonly tldHint: string; | ||
readonly httpHint: string; | ||
readonly isHTML?: boolean; | ||
readonly languageHint?: string; | ||
readonly encodingHint?: string; | ||
readonly tldHint?: string; | ||
readonly httpHint?: string; | ||
} | ||
@@ -27,16 +27,11 @@ interface DetectLanguage { | ||
} | ||
export declare module "cldpre" { | ||
declare function detect( | ||
text: string, | ||
options: Options, | ||
callback: (err: string, result: DetectLanguage) => void | ||
): void; | ||
declare function detect( | ||
text: string, | ||
callback: (err: string, result: DetectLanguage) => void | ||
): void; | ||
declare function detect( | ||
text: string, | ||
options: Options | ||
): Promise<DetectLanguage>; | ||
export declare module 'cldpre' { | ||
const LANGUAGES: {[name: string]: string}; | ||
const DETECTED_LANGUAGES: string[]; | ||
const ENCODINGS: string[]; | ||
declare function detect(text: string, options: Options, callback: (err: string, result: DetectLanguage) => void): void; | ||
declare function detect(text: string, callback: (err: string, result: DetectLanguage) => void): void; | ||
declare function detect(text: string, options: Options): Promise<DetectLanguage>; | ||
declare function detect(text: string): Promise<DetectLanguage>; | ||
} |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "2.8.1-rc.3", | ||
"version": "2.9.0-rc.0", | ||
"main": "./index.js", | ||
@@ -14,0 +14,0 @@ "types": "./index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135115596
121
565