MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / parseReproBundleJson

Function parseReproBundleJson

packages/core/src/repro/schema.ts:1021–1030  ·  view source on GitHub ↗
(json: string)

Source from the content-addressed store, hash-verified

1019
1020/** Parse and validate a repro bundle from JSON text. */
1021export function parseReproBundleJson(json: string): ReproParseResult<ReproBundle> {
1022 let parsed: unknown;
1023 try {
1024 parsed = JSON.parse(json);
1025 } catch (error) {
1026 const detail = error instanceof Error ? error.message : "invalid JSON";
1027 return fail("ZR_REPRO_INVALID_JSON", "$", detail);
1028 }
1029 return validateReproBundle(parsed);
1030}
1031
1032/** Parse and validate a repro bundle from UTF-8 JSON bytes. */
1033export function parseReproBundleBytes(bytes: Uint8Array): ReproParseResult<ReproBundle> {

Callers 2

parseReproBundleBytesFunction · 0.85

Calls 3

validateReproBundleFunction · 0.85
parseMethod · 0.80
failFunction · 0.70

Tested by

no test coverage detected