Files
pnpm/pnpr
Zoltan Kochan de32f83a67 fix(pnpr): parse /v1/resolve NDJSON stream in the TypeScript client (#12246)
* fix(pnpr): parse /v1/resolve NDJSON stream in the TypeScript client

The pnpr server streams the /v1/resolve response as application/x-ndjson
(one package frame per resolved tarball, then a terminal done/error/
violations frame), but the TypeScript client still parsed the whole body
as a single JSON object, failing with "Unexpected non-whitespace
character after JSON". Parse the NDJSON frames and act on the terminal
frame instead.

Closes #12234 follow-up.

* fix(pnpr): reject unknown /v1/resolve frame types in the client

Fail fast with a protocol error when the NDJSON stream carries a frame
whose type is neither package nor a known terminal frame, instead of
returning it and surfacing a confusing lockfile error downstream.
2026-06-06 19:55:06 +02:00
..