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

v4 property override error #619

Open
kriskowal opened this issue Nov 4, 2023 · 0 comments
Open

v4 property override error #619

kriskowal opened this issue Nov 4, 2023 · 0 comments

Comments

@kriskowal
Copy link

In applications that mitigate prototype pollution by freezing Object.prototype and Function.prototype, Chalk v4 throws an error when attempting to assign template.constructor. Please consider back-porting a fix for the ^4 release range. Submitted here as a diff against the latest tag (Github does not let me base a PR on the tag).

https://github.com/chalk/chalk/compare/v4.1.2...kriskowal:chalk:kriskowal-mitigate-override?expand=1

We discovered this override through our transitive dependency through Babel.

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

No branches or pull requests

1 participant