]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: use getErrorMessage helper and extract auth cache constant
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 15:42:38 +0000 (17:42 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 15:42:38 +0000 (17:42 +0200)
commitb1b03bf7a9ad234e00822950a791b1befd82ec0b
treec472a7d549ef60c01209da836176582805a08a0b
parent5c9daef058ccdccd97db9d1ab7ebb38f7be0165b
refactor: use getErrorMessage helper and extract auth cache constant

Replace 7 instanceof Error ternary patterns with getErrorMessage()
for consistent error message extraction. Extract hardcoded
maxEntries 1000 to Constants.DEFAULT_AUTH_CACHE_MAX_ENTRIES
across InMemoryAuthCache, AuthComponentFactory, and
OCPPAuthServiceImpl.
src/charging-station/ocpp/2.0/OCPP20CertificateManager.ts
src/charging-station/ocpp/2.0/OCPP20RequestService.ts
src/charging-station/ocpp/auth/adapters/OCPP16AuthAdapter.ts
src/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.ts
src/charging-station/ocpp/auth/cache/InMemoryAuthCache.ts
src/charging-station/ocpp/auth/factories/AuthComponentFactory.ts
src/charging-station/ocpp/auth/services/OCPPAuthServiceImpl.ts
src/charging-station/ui-server/UIMCPServer.ts
src/performance/PerformanceStatistics.ts
src/utils/Constants.ts