fix(view): format publisher metadata containing actor information by sergioperezcheco · Pull Request #10123 · npm/cli · GitHub
Skip to content

fix(view): format publisher metadata containing actor information - #10123

Open
sergioperezcheco wants to merge 1 commit into
npm:latestfrom
sergioperezcheco:fix/view-publisher-actor
Open

sergioperezcheco wants to merge 1 commit into
npm:latestfrom
sergioperezcheco:fix/view-publisher-actor

Conversation

@sergioperezcheco

Copy link
Copy Markdown

npm view formats publisher metadata as a person string, but adding the registry's actor field makes the same publisher return an object instead. Recognize actor metadata alongside the existing trusted-publisher case, retaining the three-key limit so unrelated fields are not discarded.

Regression tests cover text and JSON output, publisher arrays, and preservation of additional metadata. The root test suite passes with 100% coverage, and root lint passes. Independent public CLI checks against a local registry fixture cover a URL-only publisher and nested actor queries. Workspace-wide and cross-platform release matrices were not run locally.

Prepared and reviewed by autonomous AI agents; no human review is claimed.

References

Fixes #8386

Assisted-by: Hermes Agent
Signed-off-by: sergioperezcheco <checo520@outlook.com>
@sergioperezcheco
sergioperezcheco requested a review from a team as a code owner October 14, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] _npmUser value via npm view command return value is inconsistent

1 participant