"utf-8-validate": "^6.0.3"
},
"devDependencies": {
- "@commitlint/cli": "^18.4.0",
+ "@commitlint/cli": "^18.4.1",
"@commitlint/config-conventional": "^18.4.0",
"@mikro-orm/cli": "^5.9.3",
"@release-it/bumper": "^6.0.1",
devDependencies:
'@commitlint/cli':
- specifier: ^18.4.0
- version: 18.4.0(typescript@5.2.2)
+ specifier: ^18.4.1
+ version: 18.4.1(typescript@5.2.2)
'@commitlint/config-conventional':
specifier: ^18.4.0
version: 18.4.0
engines: {node: '>=0.1.90'}
dev: false
- /@commitlint/cli@18.4.0(typescript@5.2.2):
- resolution: {integrity: sha512-iz3KJtmsRRFm6OlyrORxRR6qcrznuoFDzcvMXTMpl6E/wj9Vr2crolDk6cG3bFpJCjWd9C7KidXerRha6hh1kQ==}
+ /@commitlint/cli@18.4.1(typescript@5.2.2):
+ resolution: {integrity: sha512-4+jljfd29Udw9RDDyigavLO9LvdbmB8O9xjDzVZ0R3lJuG7nCeyHgnKWIVpFaN590isZMV/cMeQK0gH7hRF40A==}
engines: {node: '>=v18'}
hasBin: true
dependencies:
'@commitlint/format': 18.4.0
'@commitlint/lint': 18.4.0
- '@commitlint/load': 18.4.0(typescript@5.2.2)
+ '@commitlint/load': 18.4.1(typescript@5.2.2)
'@commitlint/read': 18.4.0
'@commitlint/types': 18.4.0
execa: 5.1.1
'@commitlint/types': 18.4.0
dev: true
- /@commitlint/load@18.4.0(typescript@5.2.2):
- resolution: {integrity: sha512-7unGl1HGRNMgWrUPmj8OFkJyuNUMb6xA1i53/OAFKd9l+U3C4WTfoJe3t/TUz8vKZLCaDcWWR/b2cw5HveBBFg==}
+ /@commitlint/load@18.4.1(typescript@5.2.2):
+ resolution: {integrity: sha512-o/plBiPJQgbSq/4ipDpsq4HCmURjBAEjr1EO/p2falr3VhwV0WGXTvb8NlihgI8xtSyO6lHvtycrE535GMLQbA==}
engines: {node: '>=v18'}
dependencies:
'@commitlint/config-validator': 18.4.0
}
private async waitChargingStationServiceInitialization(connectorId: number): Promise<void> {
- if (!this.chargingStation?.ocppRequestService) {
- logger.info(
- `${this.logPrefix(
- connectorId,
- )} transaction loop waiting for charging station service to be initialized`,
- );
- do {
- await sleep(Constants.CHARGING_STATION_ATG_INITIALIZATION_TIME);
- } while (!this.chargingStation?.ocppRequestService);
+ let logged = false;
+ while (!this.chargingStation?.ocppRequestService) {
+ if (!logged) {
+ logger.info(
+ `${this.logPrefix(
+ connectorId,
+ )} transaction loop waiting for charging station service to be initialized`,
+ );
+ logged = true;
+ }
+ await sleep(Constants.CHARGING_STATION_ATG_INITIALIZATION_TIME);
}
}
private async waitChargingStationAvailable(connectorId: number): Promise<void> {
- if (!this.chargingStation.isChargingStationAvailable()) {
- logger.info(
- `${this.logPrefix(
- connectorId,
- )} transaction loop waiting for charging station to be available`,
- );
- do {
- await sleep(Constants.CHARGING_STATION_ATG_AVAILABILITY_TIME);
- } while (!this.chargingStation.isChargingStationAvailable());
+ let logged = false;
+ while (!this.chargingStation.isChargingStationAvailable()) {
+ if (!logged) {
+ logger.info(
+ `${this.logPrefix(
+ connectorId,
+ )} transaction loop waiting for charging station to be available`,
+ );
+ logged = true;
+ }
+ await sleep(Constants.CHARGING_STATION_ATG_AVAILABILITY_TIME);
}
}
private async waitConnectorAvailable(connectorId: number): Promise<void> {
- if (!this.chargingStation.isConnectorAvailable(connectorId)) {
- logger.info(
- `${this.logPrefix(
- connectorId,
- )} transaction loop waiting for connector ${connectorId} to be available`,
- );
- do {
- await sleep(Constants.CHARGING_STATION_ATG_AVAILABILITY_TIME);
- } while (!this.chargingStation.isConnectorAvailable(connectorId));
+ let logged = false;
+ while (!this.chargingStation.isConnectorAvailable(connectorId)) {
+ if (!logged) {
+ logger.info(
+ `${this.logPrefix(
+ connectorId,
+ )} transaction loop waiting for connector ${connectorId} to be available`,
+ );
+ logged = true;
+ }
+ await sleep(Constants.CHARGING_STATION_ATG_AVAILABILITY_TIME);
}
}