diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb46c39..62bcb1e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,7 +58,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' cache: 'npm' - name: Install dependencies diff --git a/src/utils/crypto-adapter.ts b/src/utils/crypto-adapter.ts index 47c0b96..1a17f81 100644 --- a/src/utils/crypto-adapter.ts +++ b/src/utils/crypto-adapter.ts @@ -15,7 +15,7 @@ function getCrypto(): Crypto { return window.crypto; } - // Node.js/Electron environment - globalThis.crypto available in modern runtimes + // Node.js/Electron environment - globalThis.crypto available in Node 20+ if (typeof globalThis !== 'undefined' && globalThis.crypto) { return globalThis.crypto; }