"cross-env": "^7.0.3",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
- "eslint-import-resolver-typescript": "^3.4.1",
+ "eslint-import-resolver-typescript": "^3.4.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^39.3.6",
"eslint-plugin-node": "^11.1.0",
}
},
"node_modules/eslint-import-resolver-typescript": {
- "version": "3.4.1",
- "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.4.1.tgz",
- "integrity": "sha512-rcD4V2nnxk76JF6nuLcclGpya18KLhr/lwpl5xFXrVWZtdRSepfCGHk/oFn9HNstWX317Nuo/E3Z1vymPyPhlQ==",
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.4.2.tgz",
+ "integrity": "sha512-8SuWlRIEO83X9PsJSK9VjgH0EDk1ZzNI36+r3C0xNYVJ+O1+TprOFtTwqqyPMHG+br/I9A5Q80RE7K3/eIr9XA==",
"dev": true,
"dependencies": {
"debug": "^4.3.4",
"globby": "^13.1.2",
"is-core-module": "^2.9.0",
"is-glob": "^4.0.3",
- "synckit": "^0.8.1"
+ "synckit": "^0.8.3"
},
"engines": {
"node": "^12.20.0 || ^14.18.0 || >=16.0.0"
}
},
"node_modules/synckit": {
- "version": "0.8.1",
- "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.1.tgz",
- "integrity": "sha512-rJEeygO5PNmcZICmrgnbOd2usi5zWE1ESc0Gn5tTmJlongoU8zCTwMFQtar2UgMSiR68vK9afPQ+uVs2lURSIA==",
+ "version": "0.8.3",
+ "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.3.tgz",
+ "integrity": "sha512-1goXnDYNJlKwCM37f5MTzRwo+8SqutgVtg2d37D6YnHHT4E3IhQMRfKiGdfTZU7LBlI6T8inCQUxnMBFHrbqWw==",
"dev": true,
"dependencies": {
"@pkgr/utils": "^2.3.0",
}
},
"eslint-import-resolver-typescript": {
- "version": "3.4.1",
- "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.4.1.tgz",
- "integrity": "sha512-rcD4V2nnxk76JF6nuLcclGpya18KLhr/lwpl5xFXrVWZtdRSepfCGHk/oFn9HNstWX317Nuo/E3Z1vymPyPhlQ==",
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.4.2.tgz",
+ "integrity": "sha512-8SuWlRIEO83X9PsJSK9VjgH0EDk1ZzNI36+r3C0xNYVJ+O1+TprOFtTwqqyPMHG+br/I9A5Q80RE7K3/eIr9XA==",
"dev": true,
"requires": {
"debug": "^4.3.4",
"globby": "^13.1.2",
"is-core-module": "^2.9.0",
"is-glob": "^4.0.3",
- "synckit": "^0.8.1"
+ "synckit": "^0.8.3"
},
"dependencies": {
"globby": {
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="
},
"synckit": {
- "version": "0.8.1",
- "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.1.tgz",
- "integrity": "sha512-rJEeygO5PNmcZICmrgnbOd2usi5zWE1ESc0Gn5tTmJlongoU8zCTwMFQtar2UgMSiR68vK9afPQ+uVs2lURSIA==",
+ "version": "0.8.3",
+ "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.3.tgz",
+ "integrity": "sha512-1goXnDYNJlKwCM37f5MTzRwo+8SqutgVtg2d37D6YnHHT4E3IhQMRfKiGdfTZU7LBlI6T8inCQUxnMBFHrbqWw==",
"dev": true,
"requires": {
"@pkgr/utils": "^2.3.0",
"cross-env": "^7.0.3",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
- "eslint-import-resolver-typescript": "^3.4.1",
+ "eslint-import-resolver-typescript": "^3.4.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^39.3.6",
"eslint-plugin-node": "^11.1.0",
case OCPP16RequestCommand.HEARTBEAT:
return {} as unknown as Request;
case OCPP16RequestCommand.METER_VALUES:
- // Sanity check
- if (!Array.isArray(commandParams?.meterValue)) {
- throw new OCPPError(
- ErrorType.TYPE_CONSTRAINT_VIOLATION,
- `${moduleName}.buildRequestPayload ${commandName}: Invalid array type for meterValue PDU field`,
- commandName,
- commandParams
- );
- }
return {
connectorId: commandParams?.connectorId,
transactionId: commandParams?.transactionId,