From: Jérôme Benoit Date: Sat, 5 Mar 2022 11:01:31 +0000 (+0100) Subject: Apply dependencies update X-Git-Tag: v1.1.51~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8f3d04b045bb95cd8e40e86893a3e47e00793bb8;p=e-mobility-charging-stations-simulator.git Apply dependencies update Signed-off-by: Jérôme Benoit --- diff --git a/.prettierignore b/.prettierignore index 63253ddd..f4197d3b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,4 +5,5 @@ outputs tsconfig.json package-lock.json performanceRecords.json +*.clinic-* *-audit.json diff --git a/README.md b/README.md index fb393f9b..c30d44b9 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ choco install -y nodejs-lts - [Homebrew](https://brew.sh/): ```shell -brew install node@14 +brew install node@16 ``` ### GNU/Linux: diff --git a/package-lock.json b/package-lock.json index 172acea2..48353c2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -56,7 +56,7 @@ "prettier": "^2.5.1", "release-it": "^14.12.5", "robohydra": "^0.6.9", - "rollup": "^2.69.0", + "rollup": "^2.69.1", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-delete": "^2.0.0", @@ -15397,9 +15397,9 @@ } }, "node_modules/rollup": { - "version": "2.69.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.69.0.tgz", - "integrity": "sha512-kjER91tHyek8gAkuz7+558vSnTQ+pITEok1P0aNOS45ZXyngaqPsXJmSel4QPQnJo7EJMjXUU1/GErWkWiKORg==", + "version": "2.69.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.69.1.tgz", + "integrity": "sha512-xaQKTomUVZBopk38EIshM/kOoPFkKWisgBV7Emy80coP9MOSLUDrba1jKZhqH0iS5DoGcRbbcuyl/BzblV8w5w==", "dev": true, "bin": { "rollup": "dist/bin/rollup" @@ -31301,9 +31301,9 @@ } }, "rollup": { - "version": "2.69.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.69.0.tgz", - "integrity": "sha512-kjER91tHyek8gAkuz7+558vSnTQ+pITEok1P0aNOS45ZXyngaqPsXJmSel4QPQnJo7EJMjXUU1/GErWkWiKORg==", + "version": "2.69.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.69.1.tgz", + "integrity": "sha512-xaQKTomUVZBopk38EIshM/kOoPFkKWisgBV7Emy80coP9MOSLUDrba1jKZhqH0iS5DoGcRbbcuyl/BzblV8w5w==", "dev": true, "requires": { "fsevents": "~2.3.2" diff --git a/package.json b/package.json index 5fd483ae..e9847a31 100644 --- a/package.json +++ b/package.json @@ -119,7 +119,7 @@ "prettier": "^2.5.1", "release-it": "^14.12.5", "robohydra": "^0.6.9", - "rollup": "^2.69.0", + "rollup": "^2.69.1", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-delete": "^2.0.0", diff --git a/src/performance/storage/Storage.ts b/src/performance/storage/Storage.ts index 266d9341..4770fb75 100644 --- a/src/performance/storage/Storage.ts +++ b/src/performance/storage/Storage.ts @@ -25,10 +25,12 @@ export abstract class Storage { table?: string, params: HandleErrorParams = { throwError: false } ): void { + const inTableOrCollectionStr = + (!Utils.isNullOrUndefined(table) || !table) && ` in table or collection '${table}'`; logger.error( - `${this.logPrefix} ${this.getDBNameFromStorageType(type)} error '${error.message}'${ - (!Utils.isNullOrUndefined(table) || !table) && ` in table or collection '${table}'` - }: %j`, + `${this.logPrefix} ${this.getDBNameFromStorageType(type)} error '${ + error.message + }'${inTableOrCollectionStr}: %j`, error ); if (params?.throwError) {