MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isInternalWarning

Function isInternalWarning

source code/utils/warningHandler.ts:45–48  ·  view source on GitHub ↗
(warning: Error)

Source from the content-addressed store, hash-verified

43]
44
45function isInternalWarning(warning: Error): boolean {
46 const warningStr = `${warning.name}: ${warning.message}`
47 return INTERNAL_WARNINGS.some(pattern => pattern.test(warningStr))
48}
49
50// Store reference to our warning handler so we can detect if it's already installed
51let warningHandler: ((warning: Error) => void) | null = null

Callers 1

initializeWarningHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected