Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Errors running tests from repo #1

Open
csuwildcat opened this issue Mar 20, 2023 · 2 comments
Open

Errors running tests from repo #1

csuwildcat opened this issue Mar 20, 2023 · 2 comments

Comments

@csuwildcat
Copy link

I was having trouble using the lib on my own, so I figured I would fork the repo and run the included tests, but the repo's tests produce the same error: TypeError: Cannot read properties of undefined (reading 'subtle')

Any idea what might be causing this?

@cmdruid
Copy link
Owner

cmdruid commented Mar 22, 2023

Hello. Sorry for the late reply, I have been working through a backlog.

Subtle is part of the webcrypto library. I'm using globalThis.crypto to access the crypto.subtle object, which should be compatible across all browsers and platforms.

If you are running into issues accessing subtle, I'd like to know more. Are you using node, deno, or a particular browser?

@cmdruid
Copy link
Owner

cmdruid commented Mar 22, 2023

It's been a while since I pushed an update. Just updated everything and push a new version of the package (1.3). Let me know if you have any issues with the latest version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants