Skip to content

Commit

Permalink
refactor: remove dependency track spec downgrade (#642)
Browse files Browse the repository at this point in the history
refactor: remove dependency track spec downgrades now that v4.9.0 supports 1.5

Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy authored Oct 17, 2023
1 parent 38c1ef2 commit 9accbf6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions bin/cdxgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,6 @@ if (!args.projectName) {
}
}

// To help dependency track users, we downgrade the spec version to 1.4 automatically
if (args.serverUrl || args.apiKey) {
args.specVersion = 1.4;
}

// Support for obom aliases
if (process.argv[1].includes("obom") && !args.type) {
args.type = "os";
Expand Down
5 changes: 0 additions & 5 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ const parseQueryString = (q, body, options = {}) => {
}
}

// To help dependency track users, we downgrade the spec version to 1.4 automatically
if (options.serverUrl || options.apiKey) {
options.specVersion = 1.4;
}

options.projectType == options.type;
delete options.type;

Expand Down

0 comments on commit 9accbf6

Please sign in to comment.