Skip to content

Commit

Permalink
remove deprecated params verbose/requestCookies
Browse files Browse the repository at this point in the history
  • Loading branch information
SOOS-GSteen committed Oct 7, 2024
1 parent ef971c4 commit a26ec07
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 30 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "soos-dast",
"version": "3.0.4",
"version": "3.0.5",
"description": "SOOS DAST - The affordable no limit web vulnerability scanner",
"main": "index.js",
"scripts": {
Expand All @@ -19,7 +19,7 @@
"patch-api-client": "npm run patch && npm run setup:clean && npm install @soos-io/api-client@latest --save-exact && npm install && npm run check"
},
"dependencies": {
"@soos-io/api-client": "1.0.5",
"@soos-io/api-client": "1.0.6",
"@types/node": "^20.16.6",
"argparse": "^2.0.1",
"axios": "^1.7.7",
Expand Down
16 changes: 0 additions & 16 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ export interface SOOSDASTAnalysisArgs extends IBaseScanArguments {
oauthTokenUrl: string;
otherOptions: string;
outputFormat: OutputFormat;
/**
* @deprecated Only here for backwards compatibility, do not reference.
*/
requestCookies: string;
requestHeaders: string;
scanMode: ScanMode;
targetURL: string;
Expand Down Expand Up @@ -217,12 +213,6 @@ class SOOSDASTAnalysis {
},
);

analysisArgumentParser.argumentParser.add_argument("--requestCookies", {
help: "DEPRECATED. This parameter has no effect.",
nargs: "*",
required: false,
});

analysisArgumentParser.argumentParser.add_argument("--requestHeaders", {
help: "Set extra headers for the requests to the target URL",
nargs: "*",
Expand Down Expand Up @@ -252,12 +242,6 @@ class SOOSDASTAnalysis {
const scanType = ScanType.DAST;
const soosAnalysisService = AnalysisService.create(this.args.apiKey, this.args.apiURL);

if (this.args.requestCookies && this.args.requestCookies.length > 0) {
soosLogger.warn(
"requestCookies is deprecated and will be removed. The parameter has no effect.",
);
}

let projectHash: string | undefined;
let branchHash: string | undefined;
let analysisId: string | undefined;
Expand Down

0 comments on commit a26ec07

Please sign in to comment.