repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/types/tar-6.1.12 into combined-prs-branch
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ui-server
/
UIHttpServer.ts
diff --git
a/src/charging-station/ui-server/UIHttpServer.ts
b/src/charging-station/ui-server/UIHttpServer.ts
index b5c30b31375c825c318a65350a3c204164a8613d..5bcae7beff6ed84fc6d0e202437361bc7f1c3725 100644
(file)
--- a/
src/charging-station/ui-server/UIHttpServer.ts
+++ b/
src/charging-station/ui-server/UIHttpServer.ts
@@
-5,6
+5,7
@@
import { StatusCodes } from 'http-status-codes'
import { BaseError } from '../../exception/index.js'
import {
ApplicationProtocolVersion,
import { BaseError } from '../../exception/index.js'
import {
ApplicationProtocolVersion,
+ MapStringifyFormat,
type ProcedureName,
type Protocol,
type ProtocolRequest,
type ProcedureName,
type Protocol,
type ProtocolRequest,
@@
-18,7
+19,7
@@
import {
Constants,
generateUUID,
isNotEmptyString,
Constants,
generateUUID,
isNotEmptyString,
- JSONStringify
WithMapSupport
,
+ JSONStringify,
logger,
logPrefix
} from '../../utils/index.js'
logger,
logPrefix
} from '../../utils/index.js'
@@
-61,7
+62,7
@@
export class UIHttpServer extends AbstractUIServer {
.writeHead(this.responseStatusToStatusCode(payload.status), {
'Content-Type': 'application/json'
})
.writeHead(this.responseStatusToStatusCode(payload.status), {
'Content-Type': 'application/json'
})
- .end(JSONStringify
WithMapSupport(payload
))
+ .end(JSONStringify
(payload, undefined, MapStringifyFormat.object
))
} else {
logger.error(
`${this.logPrefix(moduleName, 'sendResponse')} Response for unknown request id: ${uuid}`
} else {
logger.error(
`${this.logPrefix(moduleName, 'sendResponse')} Response for unknown request id: ${uuid}`