Socket
Socket
Sign inDemoInstall

chardet

Package Overview
Dependencies
0
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.0 to 1.5.1

9

lib/index.d.ts

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc