We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe9444 commit c8a3e88Copy full SHA for c8a3e88
packages/utilities/src/hmac.ts
@@ -50,7 +50,7 @@ async function ensureSubtleCryptoExists() {
50
}
51
52
try {
53
- subtleCrypto = (await import('node:crypto')).webcrypto.subtle as SubtleCrypto;
+ subtleCrypto = (await import('node:crypto'))?.webcrypto?.subtle as SubtleCrypto;
54
} catch {
55
// Ignore import error
56
0 commit comments