MSP-9065 fix audit vulnerabilities and verify browser compatibility

This commit is contained in:
Nikita Veselov committed 2026-11-24 14:41:46 +03:00
1 parent f2e498a1e6
commit c9bc217393
8 files changed
+578 -4343

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 })
}
+4 -2
View File
@@ -1,6 +1,8 @@
import './browser-polyfills'
import { loader } from '@monaco-editor/react'
import { setupListeners } from '@reduxjs/toolkit/query'
import dayjs from 'dayjs'
import { locale } from 'dayjs'
import 'dayjs/locale/ru'
import { AdminBase, baseSetupStore } from 'isp-admin-ui-kit'
import * as monaco from 'monaco-editor'
@@ -38,7 +40,7 @@ loader.config({ monaco })
loader.init().then()
dayjs.locale('ru')
locale('ru')
const store = baseSetupStore()
setupListeners(store.dispatch)
const root = createRoot(document.getElementById('root') as HTMLElement)