MSP-9065 fix audit vulnerabilities and verify browser compatibility
This commit is contained in:
1 parent
f2e498a1e6
commit
b6b192abd0
8 files changed
+582
-4326
No files matched your search
@@ -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 })
|
||||
}
|
||||
Reference in new issue
Block a user