p-transform
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -7,10 +7,16 @@ /// <reference types="node" resolution-mode="require"/> | ||
export { pipeline }; | ||
export declare const transform: <ChunkType = any>(transform: TransformMethod<ChunkType>, end?: () => void | Promise<void>) => DuplexWithDebug; | ||
export declare const transform: <ChunkType = any>(transform: TransformMethod<ChunkType>, end?: ((this: { | ||
push: (ChunkType: any) => void; | ||
}) => void | Promise<void>) | undefined) => DuplexWithDebug; | ||
/** | ||
* Shortcut to create a passthrough with spy. | ||
*/ | ||
export declare const passthrough: <ChunkType = any>(spy?: ((chunk: ChunkType) => Promise<void> | void) | undefined, end?: () => void | Promise<void>) => DuplexWithDebug; | ||
export declare const passthrough: <ChunkType = any>(spy?: ((chunk: ChunkType) => Promise<void> | void) | undefined, end?: ((this: { | ||
push: (ChunkType: any) => void; | ||
}) => void | Promise<void>) | undefined) => DuplexWithDebug; | ||
/** | ||
* Create a filter stream. | ||
*/ | ||
export declare const filter: <ChunkType = any>(filter: (chunk: ChunkType) => boolean | Promise<boolean>, end?: () => void) => DuplexWithDebug; | ||
export declare const filter: <ChunkType = any>(filter: (chunk: ChunkType) => boolean | Promise<boolean>, end?: ((this: { | ||
push: (ChunkType: any) => void; | ||
}) => void) | undefined) => DuplexWithDebug; |
@@ -19,3 +19,5 @@ /// <reference types="node" resolution-mode="require"/> | ||
push(chunk: ChunkType): void; | ||
duplex(end?: () => void | Promise<void>): DuplexWithDebug; | ||
duplex(end?: (this: { | ||
push: (ChunkType: any) => void; | ||
}) => void | Promise<void>): DuplexWithDebug; | ||
/** | ||
@@ -22,0 +24,0 @@ * Queue chunk to be emitted. |
{ | ||
"name": "p-transform", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"bugs": "https://github.com/mshima/p-transform/issues", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
23464
199