]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: use utility helpers consistently across codebase
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 13:41:36 +0000 (15:41 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 13:41:36 +0000 (15:41 +0200)
commit750d33db1ff249b866c8319aa3170a2fe59d5b9f
tree2152fdf2e18d4c9433b9a0fa76d8fea5ff2003a3
parent30d99fa7d7f8430d1df337814e91e19466edce71
refactor: use utility helpers consistently across codebase

Replace manual * 1000 with secondsToMilliseconds() in auth
cache, remote strategy, and OCPP20 incoming request. Replace
manual / 1000 with millisecondsToSeconds() in auth helpers,
auth service, and cert signing retry. Replace 'in' operator
with has() in auth service. Replace configurationKey find
with getConfigurationKey() in OCPP20RequestService. Use
formatDurationMilliSeconds for reconnect delay log. Keep
ms precision in auth service logs (sub-second durations).
src/charging-station/ChargingStation.ts
src/charging-station/ocpp/2.0/OCPP20CertSigningRetryManager.ts
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20RequestService.ts
src/charging-station/ocpp/auth/cache/InMemoryAuthCache.ts
src/charging-station/ocpp/auth/services/OCPPAuthServiceImpl.ts
src/charging-station/ocpp/auth/strategies/RemoteAuthStrategy.ts
src/charging-station/ocpp/auth/utils/AuthHelpers.ts