fix: nodejs patch

This commit is contained in:
leeeon233 2023-09-12 15:57:06 +08:00
parent 331dc6c994
commit 5c0d8b74f4

View file

@ -1,2 +1,5 @@
const { webcrypto } = require("crypto");
globalThis.crypto = webcrypto;
Object.defineProperty(globalThis, 'crypto', {
value: webcrypto,
writable: true
});