]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix: use exception barrel instead of direct module imports
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 19 Mar 2026 14:58:59 +0000 (15:58 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 19 Mar 2026 14:58:59 +0000 (15:58 +0100)
Redirect OCPPError imports from exception/OCPPError.js to the barrel
exception/index.js in auth services and OCPP20 test utils.

src/charging-station/ocpp/auth/factories/AuthComponentFactory.ts
src/charging-station/ocpp/auth/services/OCPPAuthServiceFactory.ts
src/charging-station/ocpp/auth/services/OCPPAuthServiceImpl.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts

index 026bca555b597b4cc9b4bf5f9da45ff2783f1955..d70d3685f7e979c5fb3cc0a7e69bd43cdde5c657 100644 (file)
@@ -8,7 +8,7 @@ import type {
 } from '../interfaces/OCPPAuthService.js'
 import type { AuthConfiguration } from '../types/AuthTypes.js'
 
-import { OCPPError } from '../../../../exception/OCPPError.js'
+import { OCPPError } from '../../../../exception/index.js'
 import { ErrorType, OCPPVersion } from '../../../../types/index.js'
 import { InMemoryAuthCache } from '../cache/InMemoryAuthCache.js'
 import { AuthConfigValidator } from '../utils/ConfigValidator.js'
index 8f4414dfe67bc960802a62bd42d82b3b37a74334..f3a9272f3fae93260e2fc2d616614a89659beaec 100644 (file)
@@ -1,7 +1,7 @@
 import type { ChargingStation } from '../../../ChargingStation.js'
 import type { OCPPAuthService } from '../interfaces/OCPPAuthService.js'
 
-import { OCPPError } from '../../../../exception/OCPPError.js'
+import { OCPPError } from '../../../../exception/index.js'
 import { ErrorType } from '../../../../types/index.js'
 import { logger } from '../../../../utils/index.js'
 import { OCPPAuthServiceImpl } from './OCPPAuthServiceImpl.js'
index 04abcc97bb9a42a1e9b90f2084b866a9ffdc022c..ac08d8bd73212b6c6273eac357d35997e3d80f04 100644 (file)
@@ -3,7 +3,7 @@ import type { OCPP16AuthAdapter } from '../adapters/OCPP16AuthAdapter.js'
 import type { OCPP20AuthAdapter } from '../adapters/OCPP20AuthAdapter.js'
 import type { LocalAuthStrategy } from '../strategies/LocalAuthStrategy.js'
 
-import { OCPPError } from '../../../../exception/OCPPError.js'
+import { OCPPError } from '../../../../exception/index.js'
 import { ErrorType, OCPPVersion } from '../../../../types/index.js'
 import {
   convertToDate,
index 24f4f97bb39ac1d1246a462150c3eafdc15ee682..e54e8f94a621d3009ed15b12a381bfe52e73e0aa 100644 (file)
@@ -21,7 +21,7 @@ import {
   OCPP20ServiceUtils,
 } from '../../../../src/charging-station/ocpp/2.0/OCPP20ServiceUtils.js'
 import { OCPP20VariableManager } from '../../../../src/charging-station/ocpp/2.0/OCPP20VariableManager.js'
-import { OCPPError } from '../../../../src/exception/OCPPError.js'
+import { OCPPError } from '../../../../src/exception/index.js'
 import {
   AttributeEnumType,
   ConnectorStatusEnum,