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

Function debug5

out/cli.cjs:14888–14921  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

14886 let namespacesCache;
14887 let enabledCache;
14888 function debug5(...args) {
14889 if (!debug5.enabled) {
14890 return;
14891 }
14892 const self2 = debug5;
14893 const curr = Number(/* @__PURE__ */ new Date());
14894 const ms = curr - (prevTime || curr);
14895 self2.diff = ms;
14896 self2.prev = prevTime;
14897 self2.curr = curr;
14898 prevTime = curr;
14899 args[0] = createDebug3.coerce(args[0]);
14900 if (typeof args[0] !== "string") {
14901 args.unshift("%O");
14902 }
14903 let index = 0;
14904 args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
14905 if (match === "%%") {
14906 return "%";
14907 }
14908 index++;
14909 const formatter = createDebug3.formatters[format];
14910 if (typeof formatter === "function") {
14911 const val = args[index];
14912 match = formatter.call(self2, val);
14913 args.splice(index, 1);
14914 index--;
14915 }
14916 return match;
14917 });
14918 createDebug3.formatArgs.call(self2, args);
14919 const logFn = self2.log || createDebug3.log;
14920 logFn.apply(self2, args);
14921 }
14922 debug5.namespace = namespace;
14923 debug5.useColors = createDebug3.useColors();
14924 debug5.color = createDebug3.selectColor(namespace);

Callers 15

keepSocketAliveMethod · 0.85
reuseSocketMethod · 0.85
installListenersFunction · 0.85
onFreeFunction · 0.85
onCloseFunction · 0.85
onTimeoutFunction · 0.85
onErrorFunction · 0.85
onRemoveFunction · 0.85
request3Function · 0.85
onendFunction · 0.85
onerrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…