]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor: use Number.isNaN() instead of global isNaN()
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Mar 2026 19:13:36 +0000 (20:13 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 27 Mar 2026 19:13:36 +0000 (20:13 +0100)
commit6a360bac7a0685ea4a59597488a8d46a8de40e67
tree9d5824fc559eec73238ba06ba1b395b9618964eb
parente5f8aeda400d3b4ada694517733ad4dd625dab50
refactor: use Number.isNaN() instead of global isNaN()

Replace global isNaN() with Number.isNaN() for stricter type checking.
Global isNaN() coerces the argument to a number first, which can produce
unexpected results for non-numeric strings.
src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts
src/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.ts
tests/ocpp2-e2e-test-plan.md [new file with mode: 0644]