]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: audit-driven improvements — use BaseError, fix barrel bypass, remove redund... main
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Mar 2026 14:51:21 +0000 (15:51 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Mar 2026 14:51:21 +0000 (15:51 +0100)
commitd9a55687b99f4ae7f2a66e9b2fb95e748658aae3
tree144fdc338a6351312ed5e5568cc325225c74355e
parent901296a93b8f4b195acd355bf4846e2ac08fdc14
refactor: audit-driven improvements — use BaseError, fix barrel bypass, remove redundant console

- Replace throw new Error with BaseError in OCPP20CertificateManager and
  OCPP20VariableManager (3 occurrences)
- Move getMessageTypeString from OCPPServiceUtils to Helpers, resolving
  the barrel bypass in ErrorUtils — consumers import via charging-station
  barrel, tests moved to Helpers.test.ts
- Remove redundant console.warn in Helpers (logger.warn already called)
- Remove unused chalk import from Helpers
src/charging-station/ChargingStation.ts
src/charging-station/Helpers.ts
src/charging-station/index.ts
src/charging-station/ocpp/2.0/OCPP20CertificateManager.ts
src/charging-station/ocpp/2.0/OCPP20VariableManager.ts
src/charging-station/ocpp/OCPPRequestService.ts
src/charging-station/ocpp/OCPPServiceUtils.ts
src/charging-station/ocpp/index.ts
src/utils/ErrorUtils.ts
tests/charging-station/Helpers.test.ts
tests/charging-station/ocpp/OCPPServiceUtils-pure.test.ts