MCPcopy
hub / github.com/di-sukharev/opencommit / pipeTo

Method pipeTo

out/cli.cjs:8790–8801  ·  view source on GitHub ↗
(e3, t2 = {})

Source from the content-addressed store, hash-verified

8788 return m4(kt(this, r3.writable, o3.preventClose, o3.preventAbort, o3.preventCancel, o3.signal)), r3.readable;
8789 }
8790 pipeTo(e3, t2 = {}) {
8791 if (!H5(this)) return d6(Kt("pipeTo"));
8792 if (void 0 === e3) return d6("Parameter 1 is required in 'pipeTo'.");
8793 if (!x4(e3)) return d6(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
8794 let r3;
8795 try {
8796 r3 = Ht(t2, "Second parameter");
8797 } catch (e4) {
8798 return d6(e4);
8799 }
8800 return this.locked ? d6(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : e3.locked ? d6(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : kt(this, e3, r3.preventClose, r3.preventAbort, r3.preventCancel, r3.signal);
8801 }
8802 tee() {
8803 if (!H5(this)) throw Kt("tee");
8804 if (this.locked) throw new TypeError("Cannot tee a stream that already has a reader");

Callers

nothing calls this directly

Calls 6

H5Function · 0.85
d6Function · 0.85
KtFunction · 0.85
x4Function · 0.85
HtFunction · 0.85
ktFunction · 0.85

Tested by

no test coverage detected