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

Method write

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

Source from the content-addressed store, hash-verified

8609 }(this);
8610 }
8611 write(e3) {
8612 return at(this) ? void 0 === this._ownerWritableStream ? d6(yt("write to")) : function(e4, t2) {
8613 const r3 = e4._ownerWritableStream, o3 = r3._writableStreamController, n2 = function(e5, t3) {
8614 try {
8615 return e5._strategySizeAlgorithm(t3);
8616 } catch (t4) {
8617 return ft(e5, t4), 1;
8618 }
8619 }(o3, t2);
8620 if (r3 !== e4._ownerWritableStream) return d6(yt("write to"));
8621 const a4 = r3._state;
8622 if ("errored" === a4) return d6(r3._storedError);
8623 if (rt(r3) || "closed" === a4) return d6(new TypeError("The stream is closing or closed and cannot be written to"));
8624 if ("erroring" === a4) return d6(r3._storedError);
8625 const i3 = function(e5) {
8626 return u2((t3, r4) => {
8627 const o4 = { _resolve: t3, _reject: r4 };
8628 e5._writeRequests.push(o4);
8629 });
8630 }(r3);
8631 return function(e5, t3, r4) {
8632 try {
8633 ue2(e5, t3, r4);
8634 } catch (t4) {
8635 return void ft(e5, t4);
8636 }
8637 const o4 = e5._controlledWritableStream;
8638 if (!rt(o4) && "writable" === o4._state) {
8639 nt(o4, bt(e5));
8640 }
8641 dt(e5);
8642 }(o3, t2, n2), i3;
8643 }(this, e3) : d6(mt("write"));
8644 }
8645 };
8646 Object.defineProperties(WritableStreamDefaultWriter.prototype, { abort: { enumerable: true }, close: { enumerable: true }, releaseLock: { enumerable: true }, write: { enumerable: true }, closed: { enumerable: true }, desiredSize: { enumerable: true }, ready: { enumerable: true } }), n(WritableStreamDefaultWriter.prototype.abort, "abort"), n(WritableStreamDefaultWriter.prototype.close, "close"), n(WritableStreamDefaultWriter.prototype.releaseLock, "releaseLock"), n(WritableStreamDefaultWriter.prototype.write, "write"), "symbol" == typeof e2.toStringTag && Object.defineProperty(WritableStreamDefaultWriter.prototype, e2.toStringTag, { value: "WritableStreamDefaultWriter", configurable: true });
8647 lt = {};

Callers 15

WDFunction · 0.45
promptMethod · 0.45
onKeypressMethod · 0.45
closeMethod · 0.45
restoreCursorMethod · 0.45
renderMethod · 0.45
constructorMethod · 0.45
startFunction · 0.45
stopFunction · 0.45
writeToStreamFunction · 0.45
O5Function · 0.45

Calls 15

atFunction · 0.85
d6Function · 0.85
ytFunction · 0.85
ftFunction · 0.85
rtFunction · 0.85
u2Function · 0.85
ue2Function · 0.85
ntFunction · 0.85
btFunction · 0.85
dtFunction · 0.85
mtFunction · 0.85
refreshMethod · 0.80

Tested by

no test coverage detected