Apply dependencies update
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 18 Aug 2022 19:48:11 +0000 (21:48 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 18 Aug 2022 19:48:11 +0000 (21:48 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
package-lock.json
package.json
src/charging-station/ocpp/1.6/OCPP16RequestService.ts

index 432c5d90bec722e104525b0ce7a6f2d61e5c1b41..126167d9610a0c193a796ca9828d3e9ef9d928e6 100644 (file)
@@ -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",
       }
     },
     "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",
index 4b2b0514d1d92c2e817d704cbe0fa2d080efb8f9..50f0e59c24d78a3dd4cef7e997d25d096f54b5af 100644 (file)
     "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",
index 29ea6f393288efd0afaf539b2b8d4351340da56a..3ff3bdcbddd6758b4020633663928747ba95004a 100644 (file)
@@ -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,