Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cldpre

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cldpre - npm Package Compare versions

Comparing version 2.8.1-rc.3 to 2.9.0-rc.0

prebuilds/linux-arm64/node.napi.node

33

index.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc