Skip to content

Commit 3b0c552

Browse files
authored
fix: bun support (only export subtle from node:crypto) (#114)
Be more specific when exporting node:crypto only exports the actually called function. Enables bun support.
1 parent 21cec53 commit 3b0c552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/crypto-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// this can be removed once we only support Node 20+
2-
export * from "node:crypto";
2+
export { subtle } from "node:crypto";
33
import { createPrivateKey } from "node:crypto";
44

55
import { isPkcs1 } from "./utils.js";

0 commit comments

Comments
 (0)