From 85c603dabe1b0415dfa956baec73f34267093cf0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 18 Aug 2022 21:48:11 +0200 Subject: [PATCH] Apply dependencies update MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- package-lock.json | 30 +++++++++---------- package.json | 2 +- .../ocpp/1.6/OCPP16RequestService.ts | 9 ------ 3 files changed, 16 insertions(+), 25 deletions(-) diff --git a/package-lock.json b/package-lock.json index 432c5d90..126167d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,7 +51,7 @@ "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", @@ -5901,9 +5901,9 @@ } }, "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", @@ -5912,7 +5912,7 @@ "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" @@ -16140,9 +16140,9 @@ } }, "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", @@ -22580,9 +22580,9 @@ } }, "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", @@ -22591,7 +22591,7 @@ "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": { @@ -30324,9 +30324,9 @@ "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", diff --git a/package.json b/package.json index 4b2b0514..50f0e59c 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,7 @@ "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", diff --git a/src/charging-station/ocpp/1.6/OCPP16RequestService.ts b/src/charging-station/ocpp/1.6/OCPP16RequestService.ts index 29ea6f39..3ff3bdcb 100644 --- a/src/charging-station/ocpp/1.6/OCPP16RequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16RequestService.ts @@ -225,15 +225,6 @@ export default class OCPP16RequestService extends OCPPRequestService { 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, -- 2.34.1