@soos-io/api-client
Advanced tools
Comparing version 1.1.0-pre.8 to 1.1.0-pre.9
@@ -84,3 +84,2 @@ "use strict"; | ||
const isGeneratedScanType = !(0, utilities_1.isNil)(scanType) && utilities_1.generatedScanTypes.includes(scanType); | ||
logging_1.soosLogger.info(`${scanType} is a generated scan type (${isGeneratedScanType})`); | ||
switch (format) { | ||
@@ -113,3 +112,5 @@ case enums_1.AttributionFormatEnum.CsafVex: | ||
ensureArgumentCombinationsAreValid(args) { | ||
if (!this.isValidExportArguments(this.scanType, args.format, args.fileType)) { | ||
const argumentsAreValid = this.isValidExportArguments(this.scanType, args.format, args.fileType); | ||
logging_1.soosLogger.info(`Arguments are valid (${argumentsAreValid})`); | ||
if (!argumentsAreValid) { | ||
throw new Error(`Invalid argument combination for ${this.scanType}. Change ${args.exportFormat} and ${args.exportFileType} to a supported combination (https://kb.soos.io/help/soos-reports-for-export).`); | ||
@@ -116,0 +117,0 @@ } |
{ | ||
"name": "@soos-io/api-client", | ||
"version": "1.1.0-pre.8", | ||
"version": "1.1.0-pre.9", | ||
"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", |
335223
3390