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

stream-file-type

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-file-type - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

42

index.d.ts

@@ -1,9 +0,41 @@

import { Duplex } from 'stream'
import { Duplex, Readable } from 'stream'
declare class FileType extends Duplex {
fileTypePromise(): Promise<FileType.FileTypeResult>
fileTypePromise(): Promise<FileType.FileTypeResult | null>
addListener(event: 'file-type', listener: (fileType: FileType.FileTypeResult) => void): this
on(event: 'file-type', listener: (fileType: FileType.FileTypeResult) => void): this
once(event: 'file-type', listener: (fileType: FileType.FileTypeResult) => void): this
addListener(event: 'close', listener: () => void): this
addListener(event: 'data', listener: (chunk: any) => void): this
addListener(event: 'drain', listener: () => void): this
addListener(event: 'end', listener: () => void): this
addListener(event: 'error', listener: (err: Error) => void): this
addListener(event: 'file-type', listener: (fileType: FileType.FileTypeResult | null) => void): this
addListener(event: 'finish', listener: () => void): this
addListener(event: 'pipe', listener: (src: Readable) => void): this
addListener(event: 'readable', listener: () => void): this
addListener(event: 'unpipe', listener: (src: Readable) => void): this
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
on(event: 'close', listener: () => void): this
on(event: 'data', listener: (chunk: any) => void): this
on(event: 'drain', listener: () => void): this
on(event: 'end', listener: () => void): this
on(event: 'error', listener: (err: Error) => void): this
on(event: 'file-type', listener: (fileType: FileType.FileTypeResult | null) => void): this
on(event: 'finish', listener: () => void): this
on(event: 'pipe', listener: (src: Readable) => void): this
on(event: 'readable', listener: () => void): this
on(event: 'unpipe', listener: (src: Readable) => void): this
on(event: string | symbol, listener: (...args: any[]) => void): this;
once(event: 'close', listener: () => void): this
once(event: 'data', listener: (chunk: any) => void): this
once(event: 'drain', listener: () => void): this
once(event: 'end', listener: () => void): this
once(event: 'error', listener: (err: Error) => void): this
once(event: 'file-type', listener: (fileType: FileType.FileTypeResult | null) => void): this
once(event: 'finish', listener: () => void): this
once(event: 'pipe', listener: (src: Readable) => void): this
once(event: 'readable', listener: () => void): this
once(event: 'unpipe', listener: (src: Readable) => void): this
once(event: string | symbol, listener: (...args: any[]) => void): this;
}

@@ -10,0 +42,0 @@

2

package.json
{
"name": "stream-file-type",
"version": "0.3.1",
"version": "0.3.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": "LinusU/stream-file-type",

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