[v2] Мonorepo, sdk-client, sdk-server, sdk-core package split (#1279)
This commit is contained in:
parent
384311b9b8
commit
71ae3acee0
1 changed files with 12067 additions and 4817 deletions
|
|
@ -1,8 +0,0 @@
|
|||
import { webcrypto } from 'node:crypto';
|
||||
|
||||
// Polyfill globalThis.crypto for environments (e.g. Node 18) where it is not defined.
|
||||
// This is necessary for the tests to run in Node 18, specifically for the jose library, which relies on the globalThis.crypto object.
|
||||
if (typeof globalThis.crypto === 'undefined') {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(globalThis as any).crypto = webcrypto as unknown as Crypto;
|
||||
}
|
||||
Loading…
Reference in a new issue