Support features key in version JSON output

This commit is contained in:
Michael B. Gale 2023-10-04 11:28:28 +01:00
parent 3dd4ad872b
commit 74b46628c3
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
30 changed files with 182 additions and 73 deletions

2
lib/util.js generated
View file

@ -441,7 +441,7 @@ function getCachedCodeQlVersion() {
}
exports.getCachedCodeQlVersion = getCachedCodeQlVersion;
async function codeQlVersionAbove(codeql, requiredVersion) {
return semver.gte(await codeql.getVersion(), requiredVersion);
return semver.gte((await codeql.getVersion()).version, requiredVersion);
}
exports.codeQlVersionAbove = codeQlVersionAbove;
// Create a bundle for the given DB, if it doesn't already exist