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
build: rollup -> esbuild
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ocpp
/
OCPPRequestService.ts
diff --git
a/src/charging-station/ocpp/OCPPRequestService.ts
b/src/charging-station/ocpp/OCPPRequestService.ts
index ccab6468353d32e58eaf5a2317d63848ca18aee0..18aa5ffdb3cdbeee1b033521128cfc7f161d4aab 100644
(file)
--- a/
src/charging-station/ocpp/OCPPRequestService.ts
+++ b/
src/charging-station/ocpp/OCPPRequestService.ts
@@
-225,7
+225,7
@@
export abstract class OCPPRequestService {
OCPPServiceUtils.ajvErrorsToErrorType(validate.errors!),
'Request PDU is invalid',
commandName,
OCPPServiceUtils.ajvErrorsToErrorType(validate.errors!),
'Request PDU is invalid',
commandName,
- JSON.stringify(validate.errors,
null
, 2),
+ JSON.stringify(validate.errors,
undefined
, 2),
);
}
);
}
@@
-266,7
+266,7
@@
export abstract class OCPPRequestService {
OCPPServiceUtils.ajvErrorsToErrorType(validate.errors!),
'Response PDU is invalid',
commandName,
OCPPServiceUtils.ajvErrorsToErrorType(validate.errors!),
'Response PDU is invalid',
commandName,
- JSON.stringify(validate.errors,
null
, 2),
+ JSON.stringify(validate.errors,
undefined
, 2),
);
}
);
}
@@
-397,7
+397,7
@@
export abstract class OCPPRequestService {
ErrorType.GENERIC_ERROR,
`WebSocket closed or errored for buffered message id '${messageId}' with content '${messageToSend}'`,
commandName,
ErrorType.GENERIC_ERROR,
`WebSocket closed or errored for buffered message id '${messageId}' with content '${messageToSend}'`,
commandName,
- (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FR
EEZED
_OBJECT,
+ (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FR
OZEN
_OBJECT,
),
);
} else if (wsClosedOrErrored) {
),
);
} else if (wsClosedOrErrored) {
@@
-405,7
+405,7
@@
export abstract class OCPPRequestService {
ErrorType.GENERIC_ERROR,
`WebSocket closed or errored for non buffered message id '${messageId}' with content '${messageToSend}'`,
commandName,
ErrorType.GENERIC_ERROR,
`WebSocket closed or errored for non buffered message id '${messageId}' with content '${messageToSend}'`,
commandName,
- (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FR
EEZED
_OBJECT,
+ (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FR
OZEN
_OBJECT,
);
// Reject response
if (messageType !== MessageType.CALL_MESSAGE) {
);
// Reject response
if (messageType !== MessageType.CALL_MESSAGE) {
@@
-424,7
+424,7
@@
export abstract class OCPPRequestService {
ErrorType.GENERIC_ERROR,
`Timeout for message id '${messageId}'`,
commandName,
ErrorType.GENERIC_ERROR,
`Timeout for message id '${messageId}'`,
commandName,
- (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FR
EEZED
_OBJECT,
+ (messagePayload as JsonObject)?.details ?? Constants.EMPTY_FR
OZEN
_OBJECT,
),
() => {
messageType === MessageType.CALL_MESSAGE && chargingStation.requests.delete(messageId);
),
() => {
messageType === MessageType.CALL_MESSAGE && chargingStation.requests.delete(messageId);