mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Refactor OutputCache with json module
This commit is contained in:
12
lib/entry-points.js
generated
12
lib/entry-points.js
generated
@@ -146744,6 +146744,10 @@ var versionInfoBaseSchema = {
|
||||
};
|
||||
|
||||
// src/cli/output-cache.ts
|
||||
var outputCacheSchema = {
|
||||
cmd: string,
|
||||
entries: object({})
|
||||
};
|
||||
var COMMAND_CACHE_FILENAME = "codeql-action-command-cache.json";
|
||||
var cachedCodeQlVersion = void 0;
|
||||
function getCommandCacheFilePath(env) {
|
||||
@@ -146794,13 +146798,7 @@ function isVersionInfo(x) {
|
||||
return isObject(x) && validateSchema(versionInfoBaseSchema, x);
|
||||
}
|
||||
function isOutputCache(x) {
|
||||
return isObject(x) && validateSchema(
|
||||
{
|
||||
cmd: string,
|
||||
entries: object({})
|
||||
},
|
||||
x
|
||||
) && isObject(x.entries) && isVersionInfo(x.entries.version);
|
||||
return isObject(x) && validateSchema(outputCacheSchema, x) && isObject(x.entries) && isVersionInfo(x.entries.version);
|
||||
}
|
||||
|
||||
// src/config/pack-registries.ts
|
||||
|
||||
Reference in New Issue
Block a user