From 2e32d127def709ed766d347a54632a704ae78cac Mon Sep 17 00:00:00 2001 From: Ilona Shishov Date: Thu, 30 Nov 2023 10:14:32 +0200 Subject: [PATCH] chore: upgrade Exhort Javascript API version (#228) Signed-off-by: Ilona Shishov --- package-lock.json | 8 ++++---- package.json | 2 +- src/componentAnalysis.ts | 2 +- src/diagnosticsHandler.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1f411c63..ef26e15f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.8.1-ea.0", "license": "Apache-2.0", "dependencies": { - "@RHEcosystemAppEng/exhort-javascript-api": "^0.1.1-ea.0", + "@RHEcosystemAppEng/exhort-javascript-api": "^0.1.1-ea.2", "@xml-tools/ast": "^5.0.5", "@xml-tools/parser": "^1.0.11", "json-to-ast": "^2.1.0", @@ -837,9 +837,9 @@ } }, "node_modules/@RHEcosystemAppEng/exhort-javascript-api": { - "version": "0.1.1-ea.0", - "resolved": "https://npm.pkg.github.com/download/@RHEcosystemAppEng/exhort-javascript-api/0.1.1-ea.0/4a88e1a897e5698b84b44d5abedd9721b557385e", - "integrity": "sha512-g1UOcBKZDQWTjb2ad+nyealJj2jryVCh6DpQoq+j03tWjlUAbR7OsEVunYDjlASXeVH9UOHENqAnCod+xUCSwA==", + "version": "0.1.1-ea.2", + "resolved": "https://npm.pkg.github.com/download/@RHEcosystemAppEng/exhort-javascript-api/0.1.1-ea.2/f98795b7c1e45eaccf013d4019627ff133d01d19", + "integrity": "sha512-nom7XFXqeNtMcHoUZDJbgFxJOI8ZNjRJZCwCHtBiP2Yt/QtCqf67aes5vfPUX9va/wiaDNcNcLJcvaRcgCGJvA==", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.23.2", diff --git a/package.json b/package.json index a42e6880..09c37f2c 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "dist" ], "dependencies": { - "@RHEcosystemAppEng/exhort-javascript-api": "^0.1.1-ea.0", + "@RHEcosystemAppEng/exhort-javascript-api": "^0.1.1-ea.2", "@xml-tools/ast": "^5.0.5", "@xml-tools/parser": "^1.0.11", "json-to-ast": "^2.1.0", diff --git a/src/componentAnalysis.ts b/src/componentAnalysis.ts index b806a40f..74f3389f 100644 --- a/src/componentAnalysis.ts +++ b/src/componentAnalysis.ts @@ -82,7 +82,7 @@ class AnalysisResponse implements IAnalysisResponse { const errMsg = `The component analysis couldn't fetch data from the following providers: [${failedProviders.join(', ')}]`; connection.console.warn(`Component Analysis Error: ${errMsg}`); connection.sendNotification('caError', { - error: errMsg, + errorMessage: errMsg, uri: diagnosticFilePath, }); } diff --git a/src/diagnosticsHandler.ts b/src/diagnosticsHandler.ts index 046016a9..c38a749a 100644 --- a/src/diagnosticsHandler.ts +++ b/src/diagnosticsHandler.ts @@ -101,7 +101,7 @@ async function performDiagnostics(diagnosticFilePath: string, contents: string, .catch(error => { connection.console.warn(`Component Analysis Error: ${error}`); connection.sendNotification('caError', { - error: error, + errorMessage: error.message, uri: diagnosticFilePath, }); return; @@ -119,7 +119,7 @@ async function performDiagnostics(diagnosticFilePath: string, contents: string, .catch(error => { connection.console.warn(`Component Analysis Error: ${error}`); connection.sendNotification('caError', { - error: error, + errorMessage: error.message, uri: diagnosticFilePath, }); return;