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

Support crypto #1050

Closed
Ayc0 opened this issue Sep 11, 2023 · 2 comments · Fixed by #1061
Closed

Support crypto #1050

Ayc0 opened this issue Sep 11, 2023 · 2 comments · Fixed by #1061
Labels
easy fix enhancement New feature or request good first issue Good for newcomers

Comments

@Ayc0
Copy link
Contributor

Ayc0 commented Sep 11, 2023

In the DOM, there is window.crypto:

image

Should it be built within HappyDOM?
Note: it can be built using the native node's cypto's webcrypto:

import { webcrypto } from 'node:crypto';
@Ayc0 Ayc0 added the enhancement New feature or request label Sep 11, 2023
@capricorn86
Copy link
Owner

Yes it should be part of Window, but it has not been added yet. Using 'node:crypto' sounds like a good idea.

@Ayc0
Copy link
Contributor Author

Ayc0 commented Sep 13, 2023

I opened #1061 to fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy fix enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants