mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
ci: Shim WebCrypto on node.js 18 for core tests (#12335)
This commit is contained in:
committed by
GitHub
parent
f924f2a6d7
commit
6c323e4e49
@@ -1 +1,6 @@
|
||||
import 'reflect-metadata';
|
||||
|
||||
// WebCrypto Polyfill for older versions of Node.js 18
|
||||
if (!globalThis.crypto?.getRandomValues) {
|
||||
globalThis.crypto = require('node:crypto').webcrypto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user