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

Function safelyExtractBody

out/cli.cjs:52245–52254  ·  view source on GitHub ↗
(object, keepalive = false)

Source from the content-addressed store, hash-verified

52243 await iterator2.return();
52244 },
52245 type: void 0
52246 });
52247 }
52248 const body = { stream: stream4, source, length };
52249 return [body, type2];
52250 }
52251 function safelyExtractBody(object, keepalive = false) {
52252 if (!ReadableStream7) {
52253 ReadableStream7 = require("stream/web").ReadableStream;
52254 }
52255 if (object instanceof ReadableStream7) {
52256 assert2(!util4.isDisturbed(object), "The body has already been consumed.");
52257 assert2(!object.locked, "The stream is locked.");

Callers 3

processBodyFunction · 0.85
schemeFetchFunction · 0.85
httpRedirectFetchFunction · 0.85

Calls 1

extractBodyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…