@soos-io/api-client
Advanced tools
Comparing version 0.2.5-pre.1 to 0.2.5-pre.2
@@ -54,3 +54,3 @@ import SOOSAnalysisApiClient, { ICreateScanRequestContributingDeveloperAudit, ICreateScanResponse } from "../api/SOOSAnalysisApiClient"; | ||
message: string; | ||
scanStatusUrl: string; | ||
scanStatusUrl?: string; | ||
} | ||
@@ -57,0 +57,0 @@ declare const GeneratedScanTypes: ScanType[]; |
@@ -180,7 +180,9 @@ "use strict"; | ||
async updateScanStatus({ clientId, projectHash, branchHash, scanType, analysisId, status, message, scanStatusUrl, }) { | ||
const scanStatus = await this.analysisApiClient.getScanStatus({ | ||
scanStatusUrl: scanStatusUrl, | ||
}); | ||
if (scanStatus.isComplete) | ||
return; | ||
if (!(0, utilities_1.isNil)(scanStatusUrl)) { | ||
const scanStatus = await this.analysisApiClient.getScanStatus({ | ||
scanStatusUrl: scanStatusUrl, | ||
}); | ||
if (scanStatus.isComplete) | ||
return; | ||
} | ||
await this.analysisApiClient.updateScanStatus({ | ||
@@ -187,0 +189,0 @@ clientId: clientId, |
{ | ||
"name": "@soos-io/api-client", | ||
"version": "0.2.5-pre.1", | ||
"version": "0.2.5-pre.2", | ||
"description": "This is the SOOS API Client for registered clients leveraging the various integrations to the SOOS platform.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
65573
1475