-import LRUCache from 'mnemonist/lru-map-with-delete.js';
+import { LRUMapWithDelete as LRUCache } from 'mnemonist';
import { Bootstrap } from './Bootstrap.js';
import type { ChargingStationConfiguration, ChargingStationTemplate } from '../types/index.js';
protected constructor(version: OCPPVersion) {
this.version = version;
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
this.ajv = new Ajv({
keywords: ['javaType'],
multipleOfPrecision: 2,
schema: JSONSchemaType<T>,
) {
if (this.jsonValidateFunctions.has(commandName) === false) {
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
this.jsonValidateFunctions.set(commandName, this.ajv.compile<T>(schema).bind(this));
}
return this.jsonValidateFunctions.get(commandName)!;
protected constructor(version: OCPPVersion, ocppResponseService: OCPPResponseService) {
this.version = version;
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
this.ajv = new Ajv({
keywords: ['javaType'],
multipleOfPrecision: 2,
if (this.jsonValidateFunctions.has(commandName) === false) {
this.jsonValidateFunctions.set(
commandName,
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
this.ajv.compile<T>(this.jsonSchemas.get(commandName)!).bind(this),
);
}
) {
this.ocppResponseService.jsonIncomingRequestResponseValidateFunctions.set(
commandName,
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call
this.ajv
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
.compile<T>(this.ocppResponseService.jsonIncomingRequestResponseSchemas.get(commandName)!)
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
.bind(this),
);
}
protected constructor(version: OCPPVersion) {
this.version = version;
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
this.ajv = new Ajv({
keywords: ['javaType'],
multipleOfPrecision: 2,
schema: JSONSchemaType<T>,
) {
if (this.jsonRequestValidateFunctions.has(commandName) === false) {
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
this.jsonRequestValidateFunctions.set(commandName, this.ajv.compile<T>(schema).bind(this));
}
return this.jsonRequestValidateFunctions.get(commandName)!;
// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
-import Queue from 'mnemonist/queue.js';
+import { Queue } from 'mnemonist';
import { Constants } from './Constants.js';
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
- caniuse-lite: 1.0.30001571
+ caniuse-lite: 1.0.30001572
electron-to-chromium: 1.4.616
node-releases: 2.0.14
update-browserslist-db: 1.0.13(browserslist@4.22.2)
engines: {node: '>=10'}
dev: true
- /caniuse-lite@1.0.30001571:
- resolution: {integrity: sha512-tYq/6MoXhdezDLFZuCO/TKboTzuQ/xR5cFdgXPfDtM7/kchBO3b4VWghE/OAi/DV7tTdhmLjZiZBZi1fA/GheQ==}
+ /caniuse-lite@1.0.30001572:
+ resolution: {integrity: sha512-1Pbh5FLmn5y4+QhNyJE9j3/7dK44dGB83/ZMjv/qJk86TvDbjk0LosiZo0i0WB0Vx607qMX9jYrn1VLHCkN4rw==}
dev: true
/chai@4.3.10: