MCPcopy
hub / github.com/sindresorhus/execa / getMethodName

Function getMethodName

lib/ipc/validation.js:96–98  ·  view source on GitHub ↗
(methodName, isSubprocess, parameters = '')

Source from the content-addressed store, hash-verified

94];
95
96const getMethodName = (methodName, isSubprocess, parameters = '') => methodName === 'cancelSignal'
97 ? '`cancelSignal`\'s `controller.abort()`'
98 : `${getNamespaceName(isSubprocess)}${methodName}(${parameters})`;
99
100const getNamespaceName = isSubprocess => isSubprocess ? '' : 'subprocess.';
101

Callers 9

validateIpcOptionFunction · 0.85
validateConnectionFunction · 0.85
throwOnEarlyDisconnectFunction · 0.85
getStrictResponseErrorFunction · 0.85
throwOnMissingStrictFunction · 0.85
throwOnStrictDisconnectFunction · 0.85
handleEpipeErrorFunction · 0.85
handleSerializationErrorFunction · 0.85

Calls 1

getNamespaceNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…