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

Drop __proto__ keys #35

Merged
merged 5 commits into from
Apr 7, 2021
Merged

Conversation

ninevra
Copy link
Contributor

@ninevra ninevra commented Apr 6, 2021

Fixes #33 by dropping '__proto__' keys output by the mapper.

This shouldn't be a breaking change. It only affects behavior in cases that were previously buggy.

It's simple enough to instead throw errors on '__proto__' keys if that's what's desired.

@sindresorhus sindresorhus merged commit ddca73d into sindresorhus:main Apr 7, 2021
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.

__proto__ keys assign to the prototype
2 participants