From 9312c9d319ab997598eb1fe198f0615f12e766f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 29 Mar 2024 23:05:32 +0100 Subject: [PATCH] build(deps-dev): apply updates MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .npmrc | 1 + pnpm-lock.yaml | 32 ++++++++++++------------- src/charging-station/ChargingStation.ts | 2 +- tsconfig.json | 4 ---- ui/web/src/composables/UIClient.ts | 2 +- 5 files changed, 19 insertions(+), 22 deletions(-) diff --git a/.npmrc b/.npmrc index 22144e56..9b852ce8 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ +ignore-workspace-root-check=true auto-install-peers=true legacy-peer-deps=true diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index de869fcf..3900236f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2930,7 +2930,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 es-object-atoms: 1.0.0 get-intrinsic: 1.2.4 is-string: 1.0.7 @@ -2946,7 +2946,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 es-errors: 1.3.0 es-object-atoms: 1.0.0 es-shim-unscopables: 1.0.2 @@ -2958,7 +2958,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 es-shim-unscopables: 1.0.2 dev: true @@ -2968,7 +2968,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 es-shim-unscopables: 1.0.2 dev: true @@ -2978,7 +2978,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 es-array-method-boxes-properly: 1.0.0 es-object-atoms: 1.0.0 is-string: 1.0.7 @@ -2991,7 +2991,7 @@ packages: array-buffer-byte-length: 1.0.1 call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 es-errors: 1.3.0 get-intrinsic: 1.2.4 is-array-buffer: 3.0.4 @@ -3379,7 +3379,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001600 - electron-to-chromium: 1.4.721 + electron-to-chromium: 1.4.722 node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.23.0) dev: true @@ -4701,8 +4701,8 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false - /electron-to-chromium@1.4.721: - resolution: {integrity: sha512-k1x2r6foI8iJOp+1qTxbbrrWMsOiHkzGBYwYigaq+apO1FSqtn44KTo3Sy69qt7CRr7149zTcsDvH7MUKsOuIQ==} + /electron-to-chromium@1.4.722: + resolution: {integrity: sha512-5nLE0TWFFpZ80Crhtp4pIp8LXCztjYX41yUcV6b+bKR2PqzjskTMOOlBi1VjBHlvHwS+4gar7kNKOrsbsewEZQ==} dev: true /elliptic@6.5.5: @@ -4791,8 +4791,8 @@ packages: is-arrayish: 0.2.1 dev: true - /es-abstract@1.23.2: - resolution: {integrity: sha512-60s3Xv2T2p1ICykc7c+DNDPLDMm9t4QxCOUU0K9JxiLjM3C1zB9YVdN7tjxrFd4+AkZ8CdX1ovUga4P2+1e+/w==} + /es-abstract@1.23.3: + resolution: {integrity: sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==} engines: {node: '>= 0.4'} dependencies: array-buffer-byte-length: 1.0.1 @@ -5895,7 +5895,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 functions-have-names: 1.2.3 dev: true @@ -8516,7 +8516,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 es-object-atoms: 1.0.0 dev: true @@ -8526,7 +8526,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 dev: true /object.values@1.2.0: @@ -9138,7 +9138,7 @@ packages: array.prototype.map: 1.0.7 call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 get-intrinsic: 1.2.4 iterate-value: 1.0.2 dev: true @@ -10268,7 +10268,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.2 + es-abstract: 1.23.3 es-object-atoms: 1.0.0 dev: true diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 272abc8c..926915fb 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -286,7 +286,7 @@ export class ChargingStation extends EventEmitter { readFileSync(this.templateFile, 'utf8') ) as ChargingStationTemplate } catch { - stationTemplate = undefined + // Ignore } return logPrefix(` ${getChargingStationId(this.index, stationTemplate)} |`) } diff --git a/tsconfig.json b/tsconfig.json index 0bc569f3..fc7955a3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,17 +5,13 @@ "module": "NodeNext", "lib": ["ESNext"], "removeComments": true, - "strict": true, - "moduleResolution": "NodeNext", "resolveJsonModule": true, "allowSyntheticDefaultImports": true, "verbatimModuleSyntax": true, - "experimentalDecorators": true, "emitDecoratorMetadata": true, - "forceConsistentCasingInFileNames": true }, "exclude": ["ui/web/**/*.ts"] diff --git a/ui/web/src/composables/UIClient.ts b/ui/web/src/composables/UIClient.ts index 571d6d5b..9522c592 100644 --- a/ui/web/src/composables/UIClient.ts +++ b/ui/web/src/composables/UIClient.ts @@ -238,7 +238,7 @@ export class UIClient { private responseHandler(messageEvent: MessageEvent): void { let response: ProtocolResponse try { - response = JSON.parse(messageEvent.data) as ProtocolResponse + response = JSON.parse(messageEvent.data) } catch (error) { useToast().error('Invalid response JSON format') console.error('Invalid response JSON format', error) -- 2.34.1