Comparing version 3.3.2 to 3.3.3
@@ -5,3 +5,3 @@ /// <reference types="node" /> | ||
type Encoding = BufferEncoding | 'buffer' | null | ||
export type Encoding = BufferEncoding | 'buffer' | null | ||
@@ -22,3 +22,3 @@ interface Writable extends EventEmitter { | ||
dest: Writable | ||
opts: Minipass.PipeOptions | ||
opts: PipeOptions | ||
} | ||
@@ -81,4 +81,4 @@ | ||
...args: RType extends Buffer | ||
? [options?: Minipass.Options<RType>] | ||
: [options: Minipass.Options<RType>] | ||
? [options?: Options<RType>] | ||
: [options: Options<RType>] | ||
) | ||
@@ -99,3 +99,3 @@ | ||
destroy(er?: any): void | ||
pipe<W extends Writable>(dest: W, opts?: Minipass.PipeOptions): W | ||
pipe<W extends Writable>(dest: W, opts?: PipeOptions): W | ||
unpipe<W extends Writable>(dest: W): void | ||
@@ -144,13 +144,11 @@ | ||
declare namespace Minipass { | ||
interface PipeOptions { | ||
end?: boolean | ||
proxyErrors?: boolean | ||
} | ||
export declare interface PipeOptions { | ||
end?: boolean | ||
proxyErrors?: boolean | ||
} | ||
type Options<T> = T extends string | ||
? StringOptions | ||
: T extends Buffer | ||
? BufferOptions | ||
: ObjectModeOptions | ||
} | ||
export declare type Options<T> = T extends string | ||
? StringOptions | ||
: T extends Buffer | ||
? BufferOptions | ||
: ObjectModeOptions |
{ | ||
"name": "minipass", | ||
"version": "3.3.2", | ||
"version": "3.3.3", | ||
"description": "minimal implementation of a PassThrough stream", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
47855
685