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

Function isStreamComplete

out/cli.cjs:76660–76666  ·  view source on GitHub ↗
(stream4)

Source from the content-addressed store, hash-verified

76658var http3 = __toESM(require("node:http"), 1);
76659var https2 = __toESM(require("node:https"), 1);
76660var zlib2 = __toESM(require("node:zlib"), 1);
76661var import_node_stream3 = require("node:stream");
76662var DEFAULT_TLS_SETTINGS = {};
76663function isReadableStream2(body) {
76664 return body && typeof body.pipe === "function";
76665}
76666function isStreamComplete(stream4) {
76667 return new Promise((resolve) => {
76668 stream4.on("close", resolve);
76669 stream4.on("end", resolve);

Callers 1

sendRequestMethod · 0.85

Calls 1

onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…