Skip to content

fix(pkg): handle null values in property queries - #10229

Open
wozhenbang2004 wants to merge 2 commits into
npm:latestfrom
wozhenbang2004:fix/pkg-get-null-paths
Open

wozhenbang2004 wants to merge 2 commits into
npm:latestfrom
wozhenbang2004:fix/pkg-get-null-paths

Conversation

@wozhenbang2004

Copy link
Copy Markdown

npm pkg get can throw when a dotted lookup reaches a null value or a property projection encounters a null array entry.

Treat lookups below null as missing and keep the original array indices when projecting the remaining entries. Explicit null values are still returned when queried directly.

The two new command-level regressions fail on the unmodified implementation. The pkg, view, and Queryable suites pass, with full coverage for the changed Queryable module. ESLint passes on both changed files.

@wozhenbang2004
wozhenbang2004 requested a review from a team as a code owner November 5, 2026 03:34
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.

1 participant