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

Function makeNetworkError

out/cli.cjs:58987–58995  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

58985 timingInfo: null,
58986 cacheState: "",
58987 statusText: "",
58988 ...init,
58989 headersList: init.headersList ? new HeadersList(init.headersList) : new HeadersList(),
58990 urlList: init.urlList ? [...init.urlList] : []
58991 };
58992 }
58993 function makeNetworkError(reason) {
58994 const isError2 = isErrorLike(reason);
58995 return makeResponse({
58996 type: "error",
58997 status: 0,
58998 error: isError2 ? reason : new Error(reason ? String(reason) : reason),

Callers 9

errorMethod · 0.85
mainFetchFunction · 0.85
processBodyErrorFunction · 0.85
schemeFetchFunction · 0.85
httpFetchFunction · 0.85
httpRedirectFetchFunction · 0.85
httpNetworkOrCacheFetchFunction · 0.85
httpNetworkFetchFunction · 0.85

Calls 2

isErrorLikeFunction · 0.85
makeResponseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…