mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-14 17:07:22 +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;
|
|
}
|