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

Function pickNonEmptyString

packages/cli/src/auth/store.ts:368–371  ·  view source on GitHub ↗
(obj: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

366}
367
368function pickNonEmptyString(obj: Record<string, unknown>, key: string): string | undefined {
369 const v = obj[key];
370 return typeof v === "string" && v.length > 0 ? v : undefined;
371}
372
373/** Like `pickNonEmptyString` but rejects values containing control chars. */
374function pickHeaderSafeString(obj: Record<string, unknown>, key: string): string | undefined {

Callers 1

pickHeaderSafeStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected