chardet
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -6,10 +6,11 @@ import { Match } from './match'; | ||
} | ||
declare type Options = Partial<FullOptions>; | ||
declare type DetectResult = Match[] | string | null; | ||
export type Options = Partial<FullOptions>; | ||
export type AnalyseResult = Match[]; | ||
export type DetectResult = string | null; | ||
export declare const detect: (buffer: Uint8Array) => string | null; | ||
export declare const analyse: (buffer: Uint8Array) => Match[]; | ||
export declare const analyse: (buffer: Uint8Array) => AnalyseResult; | ||
export declare const detectFile: (filepath: string, opts?: Options) => Promise<DetectResult>; | ||
export declare const detectFileSync: (filepath: string, opts?: Options) => DetectResult; | ||
declare const _default: { | ||
analyse: (buffer: Uint8Array) => Match[]; | ||
analyse: (buffer: Uint8Array) => AnalyseResult; | ||
detect: (buffer: Uint8Array) => string | null; | ||
@@ -16,0 +17,0 @@ detectFileSync: (filepath: string, opts?: Partial<FullOptions>) => DetectResult; |
{ | ||
"name": "chardet", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"homepage": "https://github.com/runk/node-chardet", | ||
@@ -36,8 +36,8 @@ "description": "Character encoding detector", | ||
"devDependencies": { | ||
"@types/jest": "^26.0.14", | ||
"@types/node": "^14.11.2", | ||
"jest": "^26.4.2", | ||
"@types/jest": "^29.0.0", | ||
"@types/node": "^18.0.0", | ||
"jest": "^29.0.0", | ||
"prettier": "^2.7.1", | ||
"semantic-release": "^19.0.5", | ||
"ts-jest": "^26.4.0", | ||
"ts-jest": "^29.0.0", | ||
"ts-node": "^10.9.1", | ||
@@ -44,0 +44,0 @@ "typescript": "^4.8.4" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
156078
1793
0