mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-02 09:47:00 +02:00
6 lines
304 B
TypeScript
6 lines
304 B
TypeScript
// WebCrypto Polyfill for older versions of Node.js 18
|
|
if (!globalThis.crypto?.getRandomValues) {
|
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-member-access
|
|
globalThis.crypto = require('node:crypto').webcrypto;
|
|
}
|