Skip to content

Commit

Permalink
chore: upgrade Exhort Javascript API version (#228)
Browse files Browse the repository at this point in the history
Signed-off-by: Ilona Shishov <[email protected]>
  • Loading branch information
IlonaShishov authored Nov 30, 2023
1 parent a1dca8b commit 2e32d12
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/componentAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/diagnosticsHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 2e32d12

Please sign in to comment.