New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@soos-io/api-client

Package Overview
Dependencies
Maintainers
0
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@soos-io/api-client - npm Package Compare versions

Comparing version 1.1.0-pre.11 to 1.1.0-pre.12

11

dist/services/ArgumentParserBase.js

@@ -8,3 +8,2 @@ "use strict";

const utilities_1 = require("../utilities");
const logging_1 = require("../logging");
const getIntegrateUrl = (scanType) => `${constants_1.SOOS_CONSTANTS.Urls.App.Home}integrate/${scanType == enums_2.ScanType.CSA ? "containers" : (scanType ?? enums_2.ScanType.SCA).toLowerCase()}`;

@@ -89,6 +88,4 @@ class ArgumentParserBase {

case enums_1.AttributionFormatEnum.CycloneDx:
const isValid = isGeneratedScanType &&
(fileType === enums_1.AttributionFileTypeEnum.Json || fileType === enums_1.AttributionFileTypeEnum.Xml);
logging_1.soosLogger.info(`Valid: (${isValid}) (${fileType === enums_1.AttributionFileTypeEnum.Json})`);
return isValid;
return (isGeneratedScanType &&
(fileType === enums_1.AttributionFileTypeEnum.Json || fileType === enums_1.AttributionFileTypeEnum.Xml));
case enums_1.AttributionFormatEnum.Sarif:

@@ -107,3 +104,2 @@ return fileType === enums_1.AttributionFileTypeEnum.Json;

default:
logging_1.soosLogger.warn(`No match for (${format})`);
return false;

@@ -117,4 +113,3 @@ }

ensureArgumentCombinationsAreValid(args) {
const argumentsAreValid = this.isValidExportArguments(this.scanType, args.format, args.fileType);
logging_1.soosLogger.info(`Arguments are valid (${argumentsAreValid})`);
const argumentsAreValid = this.isValidExportArguments(this.scanType, args.exportFormat, args.exportFileType);
if (!argumentsAreValid) {

@@ -121,0 +116,0 @@ 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).`);

{
"name": "@soos-io/api-client",
"version": "1.1.0-pre.11",
"version": "1.1.0-pre.12",
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc