Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/eight-forks-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"windpipe": patch
---

fix: export for WindpipeConsumptionError
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ export type {
// Re-export useful utility types
export type { MaybePromise, Truthy, CallbackOrStream, NodeCallback } from "./util";

export { WindpipeConsumptionError } from "./stream";

export default Stream;
4 changes: 3 additions & 1 deletion src/stream/base.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { normalise, type Atom, type MaybeAtom, error, exception } from "../atom";
import { Stream } from ".";
import { Stream, WindpipeConsumptionError } from ".";
import { Readable, Writable } from "stream";
import { createNodeCallback, newSignal, type NodeCallback } from "../util";

Expand All @@ -18,6 +18,8 @@ export class StreamBase {
*/
static StreamEnd = Symbol.for("STREAM_END");

static WindpipeConsumptionError = WindpipeConsumptionError;

constructor(stream: Readable) {
this.stream = stream;
}
Expand Down