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

Function checkNetConnect

out/cli.cjs:57379–57387  ·  view source on GitHub ↗
(netConnect, origin2)

Source from the content-addressed store, hash-verified

57377 throw error;
57378 }
57379 }
57380 } else {
57381 originalDispatch.call(this, opts, handler);
57382 }
57383 };
57384 }
57385 function checkNetConnect(netConnect, origin2) {
57386 const url2 = new URL(origin2);
57387 if (netConnect === true) {
57388 return true;
57389 } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url2.host))) {
57390 return true;

Callers 1

buildMockDispatchFunction · 0.85

Calls 1

matchValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…