Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clean up npm object #7416

Merged
merged 1 commit into from
Apr 25, 2024
Merged

fix: clean up npm object #7416

merged 1 commit into from
Apr 25, 2024

Conversation

wraithgar
Copy link
Member

@wraithgar wraithgar commented Apr 25, 2024

Removed all the setters, they were dangerous and not the right way to
set those values.

Tweaked this.#init so it always returns an object so the coerce in
this.load didn't need to happen.

@wraithgar
Copy link
Member Author

Draft till CI passes.

lib/npm.js Outdated Show resolved Hide resolved
test/lib/arborist-cmd.js Outdated Show resolved Hide resolved
@wraithgar wraithgar force-pushed the gar/npm-cleanup branch 4 times, most recently from c6c001e to aba868d Compare April 25, 2024 15:59
Removed all the setters, they were dangerous and not the right way to
set those values.

Tweaked `this.#init` so it always returns an object so the coerce in
`this.load` didn't need to happen.
@wraithgar wraithgar marked this pull request as ready for review April 25, 2024 16:20
@wraithgar wraithgar requested a review from a team as a code owner April 25, 2024 16:20
@wraithgar wraithgar merged commit 0e74ee4 into latest Apr 25, 2024
20 checks passed
@wraithgar wraithgar deleted the gar/npm-cleanup branch April 25, 2024 16:25
@github-actions github-actions bot mentioned this pull request Apr 25, 2024
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.

2 participants