MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getReader

Method getReader

out/cli.cjs:8772–8781  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

8770 return Vt(this) ? Ut(this) ? d6(new TypeError("Cannot cancel a stream that already has a reader")) : Gt(this, e3) : d6(Kt("cancel"));
8771 }
8772 getReader(e3) {
8773 if (!Vt(this)) throw Kt("getReader");
8774 return void 0 === function(e4, t2) {
8775 F4(e4, t2);
8776 const r3 = null == e4 ? void 0 : e4.mode;
8777 return { mode: void 0 === r3 ? void 0 : Nt(r3, `${t2} has member 'mode' that`) };
8778 }(e3, "First parameter").mode ? new ReadableStreamDefaultReader(this) : function(e4) {
8779 return new ReadableStreamBYOBReader(e4);
8780 }(this);
8781 }
8782 pipeThrough(e3, t2 = {}) {
8783 if (!H5(this)) throw Kt("pipeThrough");
8784 $5(e3, 1, "pipeThrough");

Callers 15

ktFunction · 0.45
OtFunction · 0.45
g5Function · 0.45
w7Function · 0.45
valuesMethod · 0.45
ReadableStreamFromFunction · 0.45
startFunction · 0.45
discardResponseBodyFunction · 0.45
fullyReadBodyFunction · 0.45
bodyMethod · 0.45

Calls 4

VtFunction · 0.85
KtFunction · 0.85
F4Function · 0.85
NtFunction · 0.85

Tested by

no test coverage detected