MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / toStringOutput

Function toStringOutput

scripts/validate-changesets.ts:474–479  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

472};
473
474const toStringOutput = (value: unknown): string =>
475 typeof value === 'string'
476 ? value
477 : value instanceof Uint8Array
478 ? new TextDecoder().decode(value)
479 : '';
480
481const extractUnpublishablePackages = (error: unknown): readonly string[] => {
482 const errorWithOutput = error as { readonly stdout?: unknown; readonly stderr?: unknown };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected