MCPcopy
hub / github.com/bombshell-dev/clack / clearHooks

Function clearHooks

packages/prompts/src/spinner.ts:92–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 };
91
92 const clearHooks = () => {
93 process.removeListener('uncaughtExceptionMonitor', errorEventHandler);
94 process.removeListener('unhandledRejection', errorEventHandler);
95 process.removeListener('SIGINT', signalEventHandler);
96 process.removeListener('SIGTERM', signalEventHandler);
97 process.removeListener('exit', handleExit);
98
99 if (signal) {
100 signal.removeEventListener('abort', signalEventHandler);
101 }
102 };
103
104 const clearPrevMessage = () => {
105 if (_prevMessage === undefined) return;

Callers 1

_stopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected