MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / safeText

Function safeText

packages/cli/src/auth/client.ts:185–192  ·  view source on GitHub ↗
(res: Response)

Source from the content-addressed store, hash-verified

183}
184
185async function safeText(res: Response): Promise<string> {
186 try {
187 const body = (await res.text()).slice(0, 500);
188 return scrubCredentials(body);
189 } catch {
190 return "";
191 }
192}
193
194/**
195 * The backend wraps responses in `{code, message, data: {...}}` for some

Callers 1

fetchUserMethod · 0.70

Calls 1

scrubCredentialsFunction · 0.85

Tested by

no test coverage detected