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: don't import global values from 'buffer' module #472

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

tinovyatkin
Copy link
Collaborator

Both atob and Buffer are available as globals in Node 16+. While they can be imported from node:buffer keeping them as import from just buffer is dangerous because there is NPM-published buffer module that is available in this project package-lock.json.

This PR switches to use globally exposed functions.

@temich temich merged commit 7e50193 into dev Jan 3, 2024
2 checks passed
@temich temich deleted the dont-use-buffer-module branch January 3, 2024 07:11
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