}
},
"rollup": {
- "version": "2.57.0",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.57.0.tgz",
- "integrity": "sha512-bKQIh1rWKofRee6mv8SrF2HdP6pea5QkwBZSMImJysFj39gQuiV8MEPBjXOCpzk3wSYp63M2v2wkWBmFC8O/rg==",
+ "version": "2.58.0",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.58.0.tgz",
+ "integrity": "sha512-NOXpusKnaRpbS7ZVSzcEXqxcLDOagN6iFS8p45RkoiMqPHDLwJm758UF05KlMoCRbLBTZsPOIa887gZJ1AiXvw==",
"dev": true,
"requires": {
"fsevents": "~2.3.2"
"nyc": "^15.1.0",
"release-it": "^14.11.6",
"robohydra": "^0.6.9",
- "rollup": "^2.57.0",
+ "rollup": "^2.58.0",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-delete": "^2.0.0",
export default class AutomaticTransactionGenerator {
public started: boolean;
- private chargingStation: ChargingStation;
- private connectorsStatus: Map<number, Status>;
+ private readonly chargingStation: ChargingStation;
+ private readonly connectorsStatus: Map<number, Status>;
constructor(chargingStation: ChargingStation) {
this.chargingStation = chargingStation;
private static workerImplementation: WorkerAbstract | null = null;
private static storage: Storage;
private static numberOfChargingStations: number;
- private version: string = version;
+ private readonly version: string = version;
private started: boolean;
- private workerScript: string;
+ private readonly workerScript: string;
private constructor() {
this.started = false;
import path from 'path';
export default class ChargingStation {
- public stationTemplateFile: string;
+ public readonly stationTemplateFile: string;
public authorizedTags: string[];
public stationInfo!: ChargingStationInfo;
- public connectors: Map<number, ConnectorStatus>;
+ public readonly connectors: Map<number, ConnectorStatus>;
public configuration!: ChargingStationConfiguration;
public wsConnection!: WebSocket;
- public requests: Map<string, CachedRequest>;
+ public readonly requests: Map<string, CachedRequest>;
public performanceStatistics!: PerformanceStatistics;
public heartbeatSetInterval!: NodeJS.Timeout;
public ocppRequestService!: OCPPRequestService;
- private index: number;
+ private readonly index: number;
private bootNotificationRequest!: BootNotificationRequest;
private bootNotificationResponse!: BootNotificationResponse | null;
private connectorsConfigurationHash!: string;
private ocppIncomingRequestService!: OCPPIncomingRequestService;
- private messageQueue: string[];
+ private readonly messageQueue: string[];
private wsConnectionUrl!: URL;
private wsConnectionRestarted: boolean;
private stopped: boolean;
import { parentPort } from 'worker_threads';
export default class PerformanceStatistics {
- private objId: string;
+ private readonly objId: string;
private performanceObserver: PerformanceObserver;
- private statistics: Statistics;
+ private readonly statistics: Statistics;
private displayInterval: NodeJS.Timeout;
public constructor(objId: string, URI: URL) {
import { StorageType } from '../../types/Storage';
export class MongoDBStorage extends Storage {
- private client: MongoClient | null;
+ private readonly client: MongoClient | null;
private connected: boolean;
constructor(storageURI: string, logPrefix: string) {