MSP-9065 fix audit vulnerabilities and verify browser compatibility

This commit is contained in:
Nikita Veselov committed 2026-11-24 13:25:41 +03:00
1 parent f2e498a1e6
commit b6b192abd0
8 files changed
+582 -4326

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { Buffer } from 'buffer'
import process from 'process'
// OpenAPI/JSON Schema browser builds still use these Node globals.
// Load only the required shims, without Node's crypto modules.
if (typeof globalThis.Buffer === 'undefined') {
Object.assign(globalThis, { Buffer })
}
if (typeof globalThis.process === 'undefined') {
Object.assign(globalThis, { process })
}