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

Function cloneResponse

out/cli.cjs:58958–58970  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

58956 configurable: true
58957 }
58958 });
58959 Object.defineProperties(Response6, {
58960 json: kEnumerableProperty,
58961 redirect: kEnumerableProperty,
58962 error: kEnumerableProperty
58963 });
58964 function cloneResponse(response) {
58965 if (response.internalResponse) {
58966 return filterResponse(
58967 cloneResponse(response.internalResponse),
58968 response.type
58969 );
58970 }
58971 const newResponse = makeResponse({ ...response, body: null });
58972 if (response.body != null) {
58973 newResponse.body = cloneBody(response.body);

Callers 2

cloneMethod · 0.85
putMethod · 0.85

Calls 3

filterResponseFunction · 0.85
makeResponseFunction · 0.85
cloneBodyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…