chore(deps-dev): apply updates
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 17 Oct 2024 14:23:00 +0000 (16:23 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 17 Oct 2024 14:23:00 +0000 (16:23 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
12 files changed:
package.json
pnpm-lock.yaml
src/charging-station/Helpers.ts
src/charging-station/ocpp/OCPPServiceUtils.ts
src/performance/storage/MikroOrmStorage.ts
src/utils/Configuration.ts
src/utils/ConfigurationUtils.ts
src/utils/ErrorUtils.ts
tests/ocpp-server/README.md
ui/web/package.json
ui/web/src/components/charging-stations/CSData.vue
ui/web/src/composables/UIClient.ts

index 1dd7ebdf437b33d9b03037ab72eb8f9c4de48f24..73a25a40c1e3609217b799d6843476917707a204 100644 (file)
@@ -7,7 +7,7 @@
     "pnpm": ">=9.0.0"
   },
   "volta": {
-    "node": "22.9.0",
+    "node": "22.10.0",
     "pnpm": "9.12.2"
   },
   "packageManager": "pnpm@9.12.2",
     "@commitlint/config-conventional": "^19.5.0",
     "@eslint/js": "^9.12.0",
     "@mikro-orm/cli": "^6.3.13",
-    "@types/node": "^22.7.5",
+    "@types/node": "^22.7.6",
     "@types/semver": "^7.5.8",
     "@types/ws": "^8.5.12",
     "c8": "^10.1.2",
     "esbuild-plugin-copy": "^2.1.1",
     "eslint": "^9.12.0",
     "eslint-define-config": "^2.1.0",
-    "eslint-plugin-jsdoc": "^50.4.1",
-    "eslint-plugin-perfectionist": "^3.9.0",
+    "eslint-plugin-jsdoc": "^50.4.3",
+    "eslint-plugin-perfectionist": "^3.9.1",
     "eslint-plugin-vue": "^9.29.0",
     "expect": "^29.7.0",
     "glob": "^11.0.0",
index 00f532dd0cab51b8d71ac551732c09dfb101fe51..fef685d58b49ca292ae6a56b6df043777b26f0d3 100644 (file)
@@ -84,7 +84,7 @@ importers:
     devDependencies:
       '@commitlint/cli':
         specifier: ^19.5.0
-        version: 19.5.0(@types/node@22.7.5)(typescript@5.6.3)
+        version: 19.5.0(@types/node@22.7.6)(typescript@5.6.3)
       '@commitlint/config-conventional':
         specifier: ^19.5.0
         version: 19.5.0
@@ -95,8 +95,8 @@ importers:
         specifier: ^6.3.13
         version: 6.3.13(mariadb@3.3.2)
       '@types/node':
-        specifier: ^22.7.5
-        version: 22.7.5
+        specifier: ^22.7.6
+        version: 22.7.6
       '@types/semver':
         specifier: ^7.5.8
         version: 7.5.8
@@ -128,11 +128,11 @@ importers:
         specifier: ^2.1.0
         version: 2.1.0
       eslint-plugin-jsdoc:
-        specifier: ^50.4.1
-        version: 50.4.1(eslint@9.12.0(jiti@1.21.6))
+        specifier: ^50.4.3
+        version: 50.4.3(eslint@9.12.0(jiti@1.21.6))
       eslint-plugin-perfectionist:
-        specifier: ^3.9.0
-        version: 3.9.0(eslint@9.12.0(jiti@1.21.6))(typescript@5.6.3)(vue-eslint-parser@9.4.3(eslint@9.12.0(jiti@1.21.6)))
+        specifier: ^3.9.1
+        version: 3.9.1(eslint@9.12.0(jiti@1.21.6))(typescript@5.6.3)(vue-eslint-parser@9.4.3(eslint@9.12.0(jiti@1.21.6)))
       eslint-plugin-vue:
         specifier: ^9.29.0
         version: 9.29.0(eslint@9.12.0(jiti@1.21.6))
@@ -162,7 +162,7 @@ importers:
         version: 7.6.3
       ts-node:
         specifier: ^10.9.2
-        version: 10.9.2(@types/node@22.7.5)(typescript@5.6.3)
+        version: 10.9.2(@types/node@22.7.6)(typescript@5.6.3)
       tsx:
         specifier: ^4.19.1
         version: 4.19.1
@@ -195,17 +195,17 @@ importers:
         specifier: ^21.1.7
         version: 21.1.7
       '@types/node':
-        specifier: ^22.7.5
-        version: 22.7.5
+        specifier: ^22.7.6
+        version: 22.7.6
       '@vitejs/plugin-vue':
         specifier: ^5.1.4
-        version: 5.1.4(vite@5.4.9(@types/node@22.7.5))(vue@3.5.12(typescript@5.6.3))
+        version: 5.1.4(vite@5.4.9(@types/node@22.7.6))(vue@3.5.12(typescript@5.6.3))
       '@vitejs/plugin-vue-jsx':
         specifier: ^4.0.1
-        version: 4.0.1(vite@5.4.9(@types/node@22.7.5))(vue@3.5.12(typescript@5.6.3))
+        version: 4.0.1(vite@5.4.9(@types/node@22.7.6))(vue@3.5.12(typescript@5.6.3))
       '@vitest/coverage-v8':
         specifier: ^2.1.3
-        version: 2.1.3(vitest@2.1.3(@types/node@22.7.5)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4)))
+        version: 2.1.3(vitest@2.1.3(@types/node@22.7.6)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4)))
       '@vue/test-utils':
         specifier: ^2.4.6
         version: 2.4.6
@@ -229,10 +229,10 @@ importers:
         version: 5.6.3
       vite:
         specifier: ^5.4.9
-        version: 5.4.9(@types/node@22.7.5)
+        version: 5.4.9(@types/node@22.7.6)
       vitest:
         specifier: ^2.1.3
-        version: 2.1.3(@types/node@22.7.5)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4))
+        version: 2.1.3(@types/node@22.7.6)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4))
 
 packages:
 
@@ -1253,8 +1253,8 @@ packages:
   '@types/long@4.0.2':
     resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==}
 
-  '@types/node@22.7.5':
-    resolution: {integrity: sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==}
+  '@types/node@22.7.6':
+    resolution: {integrity: sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw==}
 
   '@types/offscreencanvas@2019.3.0':
     resolution: {integrity: sha512-esIJx9bQg+QYF0ra8GnvfianIY8qWB0GBx54PK5Eps6m+xTj86KLavHv6qDhzKcu5UUOgNfJ2pWaIIV7TRUd9Q==}
@@ -2470,8 +2470,8 @@ packages:
   ee-first@1.1.1:
     resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
 
-  electron-to-chromium@1.5.39:
-    resolution: {integrity: sha512-4xkpSR6CjuiaNyvwiWDI85N9AxsvbPawB8xc7yzLPonYTuP19BVgYweKyUMFtHEZgIcHWMt1ks5Cqx2m+6/Grg==}
+  electron-to-chromium@1.5.40:
+    resolution: {integrity: sha512-LYm78o6if4zTasnYclgQzxEcgMoIcybWOhkATWepN95uwVVWV0/IW10v+2sIeHE+bIYWipLneTftVyQm45UY7g==}
 
   elliptic@6.5.7:
     resolution: {integrity: sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q==}
@@ -2659,8 +2659,8 @@ packages:
     peerDependencies:
       eslint: '>=8'
 
-  eslint-plugin-jsdoc@50.4.1:
-    resolution: {integrity: sha512-OXIq+JJQPCLAKL473/esioFOwbXyRE5MAQ4HbZjcp3e+K3zdxt2uDpGs3FR+WezUXNStzEtTfgx15T+JFrVwBA==}
+  eslint-plugin-jsdoc@50.4.3:
+    resolution: {integrity: sha512-uWtwFxGRv6B8sU63HZM5dAGDhgsatb+LONwmILZJhdRALLOkCX2HFZhdL/Kw2ls8SQMAVEfK+LmnEfxInRN8HA==}
     engines: {node: '>=18'}
     peerDependencies:
       eslint: ^7.0.0 || ^8.0.0 || ^9.0.0
@@ -2671,8 +2671,8 @@ packages:
     peerDependencies:
       eslint: '>=8.23.0'
 
-  eslint-plugin-perfectionist@3.9.0:
-    resolution: {integrity: sha512-qLsV6/94hokK+k77wUeLMEtB3tS/NtC9ke5OZCAaeCyK1VyVv7Ct0il16vkNNw/1IwNo8Fy60PKjQZSBcsVX5A==}
+  eslint-plugin-perfectionist@3.9.1:
+    resolution: {integrity: sha512-9WRzf6XaAxF4Oi5t/3TqKP5zUjERhasHmLFHin2Yw6ZAp/EP/EVA2dr3BhQrrHWCm5SzTMZf0FcjDnBkO2xFkA==}
     engines: {node: ^18.0.0 || >=20.0.0}
     peerDependencies:
       astro-eslint-parser: ^1.0.2
@@ -6281,11 +6281,11 @@ snapshots:
 
   '@colors/colors@1.6.0': {}
 
-  '@commitlint/cli@19.5.0(@types/node@22.7.5)(typescript@5.6.3)':
+  '@commitlint/cli@19.5.0(@types/node@22.7.6)(typescript@5.6.3)':
     dependencies:
       '@commitlint/format': 19.5.0
       '@commitlint/lint': 19.5.0
-      '@commitlint/load': 19.5.0(@types/node@22.7.5)(typescript@5.6.3)
+      '@commitlint/load': 19.5.0(@types/node@22.7.6)(typescript@5.6.3)
       '@commitlint/read': 19.5.0
       '@commitlint/types': 19.5.0
       tinyexec: 0.3.1
@@ -6332,7 +6332,7 @@ snapshots:
       '@commitlint/rules': 19.5.0
       '@commitlint/types': 19.5.0
 
-  '@commitlint/load@19.5.0(@types/node@22.7.5)(typescript@5.6.3)':
+  '@commitlint/load@19.5.0(@types/node@22.7.6)(typescript@5.6.3)':
     dependencies:
       '@commitlint/config-validator': 19.5.0
       '@commitlint/execute-rule': 19.5.0
@@ -6340,7 +6340,7 @@ snapshots:
       '@commitlint/types': 19.5.0
       chalk: 5.3.0
       cosmiconfig: 9.0.0(typescript@5.6.3)
-      cosmiconfig-typescript-loader: 5.0.0(@types/node@22.7.5)(cosmiconfig@9.0.0(typescript@5.6.3))(typescript@5.6.3)
+      cosmiconfig-typescript-loader: 5.0.0(@types/node@22.7.6)(cosmiconfig@9.0.0(typescript@5.6.3))(typescript@5.6.3)
       lodash.isplainobject: 4.0.6
       lodash.merge: 4.6.2
       lodash.uniq: 4.5.0
@@ -6709,7 +6709,7 @@ snapshots:
       '@jest/schemas': 29.6.3
       '@types/istanbul-lib-coverage': 2.0.6
       '@types/istanbul-reports': 3.0.4
-      '@types/node': 22.7.5
+      '@types/node': 22.7.6
       '@types/yargs': 17.0.33
       chalk: 4.1.2
 
@@ -6972,7 +6972,7 @@ snapshots:
 
   '@types/conventional-commits-parser@5.0.0':
     dependencies:
-      '@types/node': 22.7.5
+      '@types/node': 22.7.6
 
   '@types/estree@1.0.6': {}
 
@@ -6992,7 +6992,7 @@ snapshots:
 
   '@types/jsdom@21.1.7':
     dependencies:
-      '@types/node': 22.7.5
+      '@types/node': 22.7.6
       '@types/tough-cookie': 4.0.5
       parse5: 7.2.0
 
@@ -7000,7 +7000,7 @@ snapshots:
 
   '@types/long@4.0.2': {}
 
-  '@types/node@22.7.5':
+  '@types/node@22.7.6':
     dependencies:
       undici-types: 6.19.8
 
@@ -7026,7 +7026,7 @@ snapshots:
 
   '@types/ws@8.5.12':
     dependencies:
-      '@types/node': 22.7.5
+      '@types/node': 22.7.6
 
   '@types/yargs-parser@21.0.3': {}
 
@@ -7115,22 +7115,22 @@ snapshots:
       '@typescript-eslint/types': 8.9.0
       eslint-visitor-keys: 3.4.3
 
-  '@vitejs/plugin-vue-jsx@4.0.1(vite@5.4.9(@types/node@22.7.5))(vue@3.5.12(typescript@5.6.3))':
+  '@vitejs/plugin-vue-jsx@4.0.1(vite@5.4.9(@types/node@22.7.6))(vue@3.5.12(typescript@5.6.3))':
     dependencies:
       '@babel/core': 7.25.8
       '@babel/plugin-transform-typescript': 7.25.7(@babel/core@7.25.8)
       '@vue/babel-plugin-jsx': 1.2.5(@babel/core@7.25.8)
-      vite: 5.4.9(@types/node@22.7.5)
+      vite: 5.4.9(@types/node@22.7.6)
       vue: 3.5.12(typescript@5.6.3)
     transitivePeerDependencies:
       - supports-color
 
-  '@vitejs/plugin-vue@5.1.4(vite@5.4.9(@types/node@22.7.5))(vue@3.5.12(typescript@5.6.3))':
+  '@vitejs/plugin-vue@5.1.4(vite@5.4.9(@types/node@22.7.6))(vue@3.5.12(typescript@5.6.3))':
     dependencies:
-      vite: 5.4.9(@types/node@22.7.5)
+      vite: 5.4.9(@types/node@22.7.6)
       vue: 3.5.12(typescript@5.6.3)
 
-  '@vitest/coverage-v8@2.1.3(vitest@2.1.3(@types/node@22.7.5)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4)))':
+  '@vitest/coverage-v8@2.1.3(vitest@2.1.3(@types/node@22.7.6)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4)))':
     dependencies:
       '@ampproject/remapping': 2.3.0
       '@bcoe/v8-coverage': 0.2.3
@@ -7144,7 +7144,7 @@ snapshots:
       std-env: 3.7.0
       test-exclude: 7.0.1
       tinyrainbow: 1.2.0
-      vitest: 2.1.3(@types/node@22.7.5)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4))
+      vitest: 2.1.3(@types/node@22.7.6)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4))
     transitivePeerDependencies:
       - supports-color
 
@@ -7155,13 +7155,13 @@ snapshots:
       chai: 5.1.1
       tinyrainbow: 1.2.0
 
-  '@vitest/mocker@2.1.3(@vitest/spy@2.1.3)(vite@5.4.9(@types/node@22.7.5))':
+  '@vitest/mocker@2.1.3(@vitest/spy@2.1.3)(vite@5.4.9(@types/node@22.7.6))':
     dependencies:
       '@vitest/spy': 2.1.3
       estree-walker: 3.0.3
       magic-string: 0.30.12
     optionalDependencies:
-      vite: 5.4.9(@types/node@22.7.5)
+      vite: 5.4.9(@types/node@22.7.6)
 
   '@vitest/pretty-format@2.1.3':
     dependencies:
@@ -7726,7 +7726,7 @@ snapshots:
   browserslist@4.24.0:
     dependencies:
       caniuse-lite: 1.0.30001669
-      electron-to-chromium: 1.5.39
+      electron-to-chromium: 1.5.40
       node-releases: 2.0.18
       update-browserslist-db: 1.1.1(browserslist@4.24.0)
 
@@ -8119,9 +8119,9 @@ snapshots:
 
   core-util-is@1.0.3: {}
 
-  cosmiconfig-typescript-loader@5.0.0(@types/node@22.7.5)(cosmiconfig@9.0.0(typescript@5.6.3))(typescript@5.6.3):
+  cosmiconfig-typescript-loader@5.0.0(@types/node@22.7.6)(cosmiconfig@9.0.0(typescript@5.6.3))(typescript@5.6.3):
     dependencies:
-      '@types/node': 22.7.5
+      '@types/node': 22.7.6
       cosmiconfig: 9.0.0(typescript@5.6.3)
       jiti: 1.21.6
       typescript: 5.6.3
@@ -8484,7 +8484,7 @@ snapshots:
 
   ee-first@1.1.1: {}
 
-  electron-to-chromium@1.5.39: {}
+  electron-to-chromium@1.5.40: {}
 
   elliptic@6.5.7:
     dependencies:
@@ -8810,7 +8810,7 @@ snapshots:
       eslint: 9.12.0(jiti@1.21.6)
       eslint-compat-utils: 0.5.1(eslint@9.12.0(jiti@1.21.6))
 
-  eslint-plugin-jsdoc@50.4.1(eslint@9.12.0(jiti@1.21.6)):
+  eslint-plugin-jsdoc@50.4.3(eslint@9.12.0(jiti@1.21.6)):
     dependencies:
       '@es-joy/jsdoccomment': 0.49.0
       are-docs-informative: 0.0.2
@@ -8839,7 +8839,7 @@ snapshots:
       minimatch: 9.0.5
       semver: 7.6.3
 
-  eslint-plugin-perfectionist@3.9.0(eslint@9.12.0(jiti@1.21.6))(typescript@5.6.3)(vue-eslint-parser@9.4.3(eslint@9.12.0(jiti@1.21.6))):
+  eslint-plugin-perfectionist@3.9.1(eslint@9.12.0(jiti@1.21.6))(typescript@5.6.3)(vue-eslint-parser@9.4.3(eslint@9.12.0(jiti@1.21.6))):
     dependencies:
       '@typescript-eslint/types': 8.9.0
       '@typescript-eslint/utils': 8.9.0(eslint@9.12.0(jiti@1.21.6))(typescript@5.6.3)
@@ -9912,7 +9912,7 @@ snapshots:
   jest-util@29.7.0:
     dependencies:
       '@jest/types': 29.6.3
-      '@types/node': 22.7.5
+      '@types/node': 22.7.6
       chalk: 4.1.2
       ci-info: 3.9.0
       graceful-fs: 4.2.11
@@ -10243,7 +10243,7 @@ snapshots:
   mariadb@3.3.2:
     dependencies:
       '@types/geojson': 7946.0.14
-      '@types/node': 22.7.5
+      '@types/node': 22.7.6
       denque: 2.1.0
       iconv-lite: 0.6.3
       lru-cache: 10.4.3
@@ -11886,14 +11886,14 @@ snapshots:
       '@ts-morph/common': 0.24.0
       code-block-writer: 13.0.3
 
-  ts-node@10.9.2(@types/node@22.7.5)(typescript@5.6.3):
+  ts-node@10.9.2(@types/node@22.7.6)(typescript@5.6.3):
     dependencies:
       '@cspotcode/source-map-support': 0.8.1
       '@tsconfig/node10': 1.0.11
       '@tsconfig/node12': 1.0.11
       '@tsconfig/node14': 1.0.3
       '@tsconfig/node16': 1.0.4
-      '@types/node': 22.7.5
+      '@types/node': 22.7.6
       acorn: 8.13.0
       acorn-walk: 8.3.4
       arg: 4.1.3
@@ -12133,12 +12133,12 @@ snapshots:
       core-util-is: 1.0.2
       extsprintf: 1.3.0
 
-  vite-node@2.1.3(@types/node@22.7.5):
+  vite-node@2.1.3(@types/node@22.7.6):
     dependencies:
       cac: 6.7.14
       debug: 4.3.7
       pathe: 1.1.2
-      vite: 5.4.9(@types/node@22.7.5)
+      vite: 5.4.9(@types/node@22.7.6)
     transitivePeerDependencies:
       - '@types/node'
       - less
@@ -12150,19 +12150,19 @@ snapshots:
       - supports-color
       - terser
 
-  vite@5.4.9(@types/node@22.7.5):
+  vite@5.4.9(@types/node@22.7.6):
     dependencies:
       esbuild: 0.21.5
       postcss: 8.4.47
       rollup: 4.24.0
     optionalDependencies:
-      '@types/node': 22.7.5
+      '@types/node': 22.7.6
       fsevents: 2.3.3
 
-  vitest@2.1.3(@types/node@22.7.5)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4)):
+  vitest@2.1.3(@types/node@22.7.6)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4)):
     dependencies:
       '@vitest/expect': 2.1.3
-      '@vitest/mocker': 2.1.3(@vitest/spy@2.1.3)(vite@5.4.9(@types/node@22.7.5))
+      '@vitest/mocker': 2.1.3(@vitest/spy@2.1.3)(vite@5.4.9(@types/node@22.7.6))
       '@vitest/pretty-format': 2.1.3
       '@vitest/runner': 2.1.3
       '@vitest/snapshot': 2.1.3
@@ -12177,11 +12177,11 @@ snapshots:
       tinyexec: 0.3.1
       tinypool: 1.0.1
       tinyrainbow: 1.2.0
-      vite: 5.4.9(@types/node@22.7.5)
-      vite-node: 2.1.3(@types/node@22.7.5)
+      vite: 5.4.9(@types/node@22.7.6)
+      vite-node: 2.1.3(@types/node@22.7.6)
       why-is-node-running: 2.3.0
     optionalDependencies:
-      '@types/node': 22.7.5
+      '@types/node': 22.7.6
       jsdom: 25.0.1(bufferutil@4.0.8)(utf-8-validate@6.0.4)
     transitivePeerDependencies:
       - less
index 112fb904159c95210b49fa532445fdfc97d70578..98e9ab7a0cc36f7a29eb0d075e9576833a7a5bad 100644 (file)
@@ -677,12 +677,12 @@ export const hasFeatureProfile = (
 export const getAmperageLimitationUnitDivider = (stationInfo: ChargingStationInfo): number => {
   let unitDivider = 1
   switch (stationInfo.amperageLimitationUnit) {
-    case AmpereUnits.DECI_AMPERE:
-      unitDivider = 10
-      break
     case AmpereUnits.CENTI_AMPERE:
       unitDivider = 100
       break
+    case AmpereUnits.DECI_AMPERE:
+      unitDivider = 10
+      break
     case AmpereUnits.MILLI_AMPERE:
       unitDivider = 1000
       break
index d62b81f98f2f0349a4c208d1c840d854dbb61a10..14d5120bebe1dc5d210abbbea0308b9f9caddceb 100644 (file)
@@ -270,14 +270,14 @@ export const ajvErrorsToErrorType = (errors: ErrorObject[] | null | undefined):
   if (isNotEmptyArray(errors)) {
     for (const error of errors) {
       switch (error.keyword) {
-        case 'type':
-          return ErrorType.TYPE_CONSTRAINT_VIOLATION
         case 'dependencies':
         case 'required':
           return ErrorType.OCCURRENCE_CONSTRAINT_VIOLATION
-        case 'pattern':
         case 'format':
+        case 'pattern':
           return ErrorType.PROPERTY_CONSTRAINT_VIOLATION
+        case 'type':
+          return ErrorType.TYPE_CONSTRAINT_VIOLATION
       }
     }
   }
index 970ac57ce28ca16fc711a58ca012c7cc66394a5d..2eb8644cd680cf57690dbcb9a1a21249f5a0b731 100644 (file)
@@ -19,9 +19,9 @@ export class MikroOrmStorage extends Storage {
 
   private getClientUrl (): string | undefined {
     switch (this.storageType) {
-      case StorageType.SQLITE:
       case StorageType.MARIA_DB:
       case StorageType.MYSQL:
+      case StorageType.SQLITE:
         return this.storageUri.toString()
     }
   }
@@ -58,13 +58,13 @@ export class MikroOrmStorage extends Storage {
     try {
       if (this.orm == null) {
         switch (this.storageType) {
-          case StorageType.SQLITE:
-            this.orm = await SqliteORM.init(this.getOptions() as SqliteOptions)
-            break
           case StorageType.MARIA_DB:
           case StorageType.MYSQL:
             this.orm = await MariaDbORM.init(this.getOptions() as MariaDbOptions)
             break
+          case StorageType.SQLITE:
+            this.orm = await SqliteORM.init(this.getOptions() as SqliteOptions)
+            break
         }
       }
     } catch (error) {
index c02bd2a78fbc27659f1b8c00e6d382f7ec72e067..d9b19b8723362c4da24dcaab875d7820585d9731 100644 (file)
@@ -182,18 +182,18 @@ export class Configuration {
   private static buildPerformanceStorageSection (): StorageConfiguration {
     let storageConfiguration: StorageConfiguration
     switch (Configuration.getConfigurationData()?.performanceStorage?.type) {
-      case StorageType.SQLITE:
+      case StorageType.JSON_FILE:
         storageConfiguration = {
           enabled: false,
-          type: StorageType.SQLITE,
-          uri: getDefaultPerformanceStorageUri(StorageType.SQLITE),
+          type: StorageType.JSON_FILE,
+          uri: getDefaultPerformanceStorageUri(StorageType.JSON_FILE),
         }
         break
-      case StorageType.JSON_FILE:
+      case StorageType.SQLITE:
         storageConfiguration = {
           enabled: false,
-          type: StorageType.JSON_FILE,
-          uri: getDefaultPerformanceStorageUri(StorageType.JSON_FILE),
+          type: StorageType.SQLITE,
+          uri: getDefaultPerformanceStorageUri(StorageType.SQLITE),
         }
         break
       case StorageType.NONE:
index 4de762bbc2ece85a84f9ff9620550b7722d53dc0..e76aa18c9b842ff78fec13e94f2bcddb8c2453ba 100644 (file)
@@ -39,14 +39,14 @@ export const handleFileException = (
   const prefix = isNotEmptyString(logPfx) ? `${logPfx} ` : ''
   let logMsg: string
   switch (error.code) {
-    case 'ENOENT':
-      logMsg = `${fileType} file ${file} not found: `
+    case 'EACCES':
+      logMsg = `${fileType} file ${file} access denied: `
       break
     case 'EEXIST':
       logMsg = `${fileType} file ${file} already exists: `
       break
-    case 'EACCES':
-      logMsg = `${fileType} file ${file} access denied: `
+    case 'ENOENT':
+      logMsg = `${fileType} file ${file} not found: `
       break
     case 'EPERM':
       logMsg = `${fileType} file ${file} permission denied: `
index 019ea70cede07f5024fd7ed140d56c28b74df698..808c2b5390cb1bcd81d358d1fb6f78bf63ab5186 100644 (file)
@@ -47,14 +47,14 @@ export const handleFileException = (
   const prefix = isNotEmptyString(logPrefix) ? `${logPrefix} ` : ''
   let logMsg: string
   switch (error.code) {
-    case 'ENOENT':
-      logMsg = `${fileType} file ${file} not found:`
+    case 'EACCES':
+      logMsg = `${fileType} file ${file} access denied:`
       break
     case 'EEXIST':
       logMsg = `${fileType} file ${file} already exists:`
       break
-    case 'EACCES':
-      logMsg = `${fileType} file ${file} access denied:`
+    case 'ENOENT':
+      logMsg = `${fileType} file ${file} not found:`
       break
     case 'EPERM':
       logMsg = `${fileType} file ${file} permission denied:`
index 32e136196b9fb2eba197b78001ed235897d95656..815cd86e9bbd420556886b9c1e08b37dc3614046 100644 (file)
@@ -7,7 +7,7 @@ This project includes an Open Charge Point Protocol (OCPP) version 2.0.1 mock se
 This project requires Python 3.7+ and [poetry](https://python-poetry.org/) to install the required packages:
 
 ```shell
-poetry install
+poetry install --no-root
 ```
 
 ## Running the Server
index 08f0a02f3cb50c6bd5aefe4a216911fb53b84d8e..59afc30ebb09226f9950526e7239cf99177c83ca 100644 (file)
@@ -8,7 +8,7 @@
     "pnpm": ">=9.0.0"
   },
   "volta": {
-    "node": "22.9.0",
+    "node": "22.10.0",
     "pnpm": "9.12.2"
   },
   "packageManager": "pnpm@9.12.2",
@@ -36,7 +36,7 @@
   "devDependencies": {
     "@tsconfig/node22": "^22.0.0",
     "@types/jsdom": "^21.1.7",
-    "@types/node": "^22.7.5",
+    "@types/node": "^22.7.6",
     "@vitejs/plugin-vue": "^5.1.4",
     "@vitejs/plugin-vue-jsx": "^4.0.1",
     "@vitest/coverage-v8": "^2.1.3",
index 12dc7f051c6349a3acb30558700263fc079cce3e..c01302b9e102ab7809776b266bd1b8c8219a1ea8 100644 (file)
@@ -164,14 +164,14 @@ const getSupervisionUrl = (): string => {
 }
 const getWSState = (): string => {
   switch (props.chargingStation?.wsState) {
+    case WebSocket.CLOSED:
+      return 'Closed'
+    case WebSocket.CLOSING:
+      return 'Closing'
     case WebSocket.CONNECTING:
       return 'Connecting'
     case WebSocket.OPEN:
       return 'Open'
-    case WebSocket.CLOSING:
-      return 'Closing'
-    case WebSocket.CLOSED:
-      return 'Closed'
     default:
       return 'Ø'
   }
index d105b605c26055327d7de55a493b76e16e321ac3..398edd8182d13bac325ee397c5cab8163f6b023a 100644 (file)
@@ -115,12 +115,12 @@ export class UIClient {
       // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
       const { procedureName, reject, resolve } = this.responseHandlers.get(uuid)!
       switch (responsePayload.status) {
-        case ResponseStatus.SUCCESS:
-          resolve(responsePayload)
-          break
         case ResponseStatus.FAILURE:
           reject(responsePayload)
           break
+        case ResponseStatus.SUCCESS:
+          resolve(responsePayload)
+          break
         default:
           reject(
             new Error(