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

Prefer globalThis over global and window #60

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Conversation

FrederikBolding
Copy link
Member

Use globalThis over global and window, this makes usage of the package in Node.js easier as well as testing code dependent on this library with Jest.

Closes #40

Copy link
Member

@mikesposito mikesposito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@FrederikBolding FrederikBolding merged commit 57c0edb into main Apr 9, 2024
18 checks passed
@FrederikBolding FrederikBolding deleted the fb/use-globalthis branch April 9, 2024 08:58
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.

exportKey(key) uses window instead of global
2 participants