From 8f3d04b045bb95cd8e40e86893a3e47e00793bb8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 5 Mar 2022 12:01:31 +0100 Subject: [PATCH] Apply dependencies update MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .prettierignore | 1 + README.md | 2 +- package-lock.json | 14 +++++++------- package.json | 2 +- src/performance/storage/Storage.ts | 8 +++++--- 5 files changed, 15 insertions(+), 12 deletions(-) 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) { -- 2.34.1