From 7436ee0df05bb41f3ce8a553adf5d9ed8da78903 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 8 May 2023 18:20:04 +0200 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 --- package.json | 2 +- pnpm-lock.yaml | 14 +++++++------- src/charging-station/Bootstrap.ts | 4 ++-- src/utils/Configuration.ts | 18 ++++++++++-------- 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 2ef9196c..87d862b0 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "eslint-config-prettier": "^8.8.0", "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-import": "^2.27.5", - "eslint-plugin-jsdoc": "^43.2.0", + "eslint-plugin-jsdoc": "^44.0.0", "eslint-plugin-n": "^15.7.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-tsdoc": "^0.2.17", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f2642864..3ee1e12f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -147,8 +147,8 @@ devDependencies: specifier: ^2.27.5 version: 2.27.5(@typescript-eslint/parser@5.59.2)(eslint-import-resolver-typescript@3.5.5)(eslint@8.40.0) eslint-plugin-jsdoc: - specifier: ^43.2.0 - version: 43.2.0(eslint@8.40.0) + specifier: ^44.0.0 + version: 44.0.0(eslint@8.40.0) eslint-plugin-n: specifier: ^15.7.0 version: 15.7.0(eslint@8.40.0) @@ -1265,7 +1265,7 @@ packages: rollup: 3.21.5 serialize-javascript: 6.0.1 smob: 0.0.6 - terser: 5.17.1 + terser: 5.17.2 dev: true /@rollup/plugin-typescript@11.1.0(rollup@3.21.5)(tslib@2.5.0)(typescript@5.0.4): @@ -4049,8 +4049,8 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@43.2.0(eslint@8.40.0): - resolution: {integrity: sha512-Hst7XUfqh28UmPD52oTXmjaRN3d0KrmOZdgtp4h9/VHUJD3Evoo82ZGXi1TtRDWgWhvqDIRI63O49H0eH7NrZQ==} + /eslint-plugin-jsdoc@44.0.0(eslint@8.40.0): + resolution: {integrity: sha512-UZ07io4GFaD4awLJPuo0b1Q96ll5kJjwo74SYo9pprUww4BVeVn7EVslU5G6FcfGIfV+kgDLfYQQFODZgicWfQ==} engines: {node: '>=16'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -9262,8 +9262,8 @@ packages: source-map-support: 0.5.21 dev: true - /terser@5.17.1: - resolution: {integrity: sha512-hVl35zClmpisy6oaoKALOpS0rDYLxRFLHhRuDlEGTKey9qHjS1w9GMORjuwIMt70Wan4lwsLYyWDVnWgF+KUEw==} + /terser@5.17.2: + resolution: {integrity: sha512-1D1aGbOF1Mnayq5PvfMc0amAR1y5Z1nrZaGCvI5xsdEfZEVte8okonk02OiaK5fw5hG1GWuuVsakOnpZW8y25A==} engines: {node: '>=10'} hasBin: true dependencies: diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 00a7df7d..653a8ddb 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -236,9 +236,9 @@ export class Bootstrap { const stationTemplateUrls = Configuration.getStationTemplateUrls(); if (Utils.isNotEmptyArray(stationTemplateUrls)) { this.numberOfChargingStationTemplates = stationTemplateUrls.length; - stationTemplateUrls.forEach((stationTemplateUrl) => { + for (const stationTemplateUrl of stationTemplateUrls) { this.numberOfChargingStations += stationTemplateUrl.numberOfStations ?? 0; - }); + } } else { console.warn( chalk.yellow("'stationTemplateUrls' not defined or empty in configuration, exiting") diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 8c3d15cc..90e84603 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -129,15 +129,17 @@ export class Configuration { (Configuration.getConfig().stationTemplateUrls = Configuration.getConfig()[ 'stationTemplateURLs' ] as StationTemplateUrl[]); - Configuration.getConfig().stationTemplateUrls.forEach((stationUrl: StationTemplateUrl) => { - if (!Utils.isUndefined(stationUrl['numberOfStation'])) { - console.error( - chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key 'numberOfStation' usage for template file '${ - stationUrl.file - }' in 'stationTemplateUrls'. Use 'numberOfStations' instead}` - ); + Configuration.getConfig().stationTemplateUrls.forEach( + (stationTemplateUrl: StationTemplateUrl) => { + if (!Utils.isUndefined(stationTemplateUrl['numberOfStation'])) { + console.error( + chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key 'numberOfStation' usage for template file '${ + stationTemplateUrl.file + }' in 'stationTemplateUrls'. Use 'numberOfStations' instead}` + ); + } } - }); + ); // Read conf return Configuration.getConfig()?.stationTemplateUrls; } -- 2.34.1