ResponseStatus,
type UIServerConfiguration
} from '../../types/index.js'
-import { Constants, generateUUID, isNotEmptyString, logPrefix, logger } from '../../utils/index.js'
+import {
+ Constants,
+ JSONStringifyWithMapSupport,
+ generateUUID,
+ isNotEmptyString,
+ logPrefix,
+ logger
+} from '../../utils/index.js'
const moduleName = 'UIHttpServer'
.writeHead(this.responseStatusToStatusCode(payload.status), {
'Content-Type': 'application/json'
})
- .end(JSON.stringify(payload))
+ .end(JSONStringifyWithMapSupport(payload))
} else {
logger.error(
`${this.logPrefix(moduleName, 'sendResponse')} Response for unknown request id: ${uuid}`