MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / decodeBase64Body

Function decodeBase64Body

packages/plugins/openapi/src/sdk/invoke.ts:467–470  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

465};
466
467const decodeBase64Body = (value: string): DecodedBase64Body => {
468 const bytes = base64ToUint8Array(value);
469 return bytes ? { ok: true, bytes } : { ok: false };
470};
471
472const toUint8Array = (value: unknown): Uint8Array | null => {
473 if (value instanceof Uint8Array) return value;

Callers 1

invoke.tsFile · 0.85

Calls 1

base64ToUint8ArrayFunction · 0.85

Tested by

no test coverage detected