Merge pull request #2351 from github/dependabot/npm_and_yarn/npm-6791eaa26c
Bump the npm group with 2 updates
This commit is contained in:
commit
9b7c22c3b3
95 changed files with 200527 additions and 418208 deletions
28
lib/actions-util.js
generated
28
lib/actions-util.js
generated
|
|
@ -23,7 +23,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isSelfHostedRunner = exports.getFileType = exports.FileCmdNotFoundError = exports.getWorkflowRunAttempt = exports.getWorkflowRunID = exports.getUploadValue = exports.printDebugLogs = exports.isAnalyzingDefaultBranch = exports.getWorkflowEvent = exports.getRelativeScriptPath = exports.isRunningLocalAction = exports.getWorkflowEventName = exports.getActionVersion = exports.getRef = exports.determineMergeBaseCommitOid = exports.getCommitOid = exports.getTemporaryDirectory = exports.getOptionalInput = exports.getRequiredInput = void 0;
|
||||
exports.getFileType = exports.FileCmdNotFoundError = exports.determineMergeBaseCommitOid = exports.getCommitOid = exports.getOptionalInput = exports.getRequiredInput = void 0;
|
||||
exports.getTemporaryDirectory = getTemporaryDirectory;
|
||||
exports.getRef = getRef;
|
||||
exports.getActionVersion = getActionVersion;
|
||||
exports.getWorkflowEventName = getWorkflowEventName;
|
||||
exports.isRunningLocalAction = isRunningLocalAction;
|
||||
exports.getRelativeScriptPath = getRelativeScriptPath;
|
||||
exports.getWorkflowEvent = getWorkflowEvent;
|
||||
exports.isAnalyzingDefaultBranch = isAnalyzingDefaultBranch;
|
||||
exports.printDebugLogs = printDebugLogs;
|
||||
exports.getUploadValue = getUploadValue;
|
||||
exports.getWorkflowRunID = getWorkflowRunID;
|
||||
exports.getWorkflowRunAttempt = getWorkflowRunAttempt;
|
||||
exports.isSelfHostedRunner = isSelfHostedRunner;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const core = __importStar(require("@actions/core"));
|
||||
|
|
@ -63,7 +76,6 @@ function getTemporaryDirectory() {
|
|||
? value
|
||||
: (0, util_1.getRequiredEnvParam)("RUNNER_TEMP");
|
||||
}
|
||||
exports.getTemporaryDirectory = getTemporaryDirectory;
|
||||
/**
|
||||
* Gets the SHA of the commit that is currently checked out.
|
||||
*/
|
||||
|
|
@ -211,7 +223,6 @@ async function getRef() {
|
|||
return ref;
|
||||
}
|
||||
}
|
||||
exports.getRef = getRef;
|
||||
function getRefFromEnv() {
|
||||
// To workaround a limitation of Actions dynamic workflows not setting
|
||||
// the GITHUB_REF in some cases, we accept also the ref within the
|
||||
|
|
@ -235,7 +246,6 @@ function getRefFromEnv() {
|
|||
function getActionVersion() {
|
||||
return pkg.version;
|
||||
}
|
||||
exports.getActionVersion = getActionVersion;
|
||||
/**
|
||||
* Returns the name of the event that triggered this workflow.
|
||||
*
|
||||
|
|
@ -244,7 +254,6 @@ exports.getActionVersion = getActionVersion;
|
|||
function getWorkflowEventName() {
|
||||
return (0, util_1.getRequiredEnvParam)("GITHUB_EVENT_NAME");
|
||||
}
|
||||
exports.getWorkflowEventName = getWorkflowEventName;
|
||||
/**
|
||||
* Returns whether the current workflow is executing a local copy of the Action, e.g. we're running
|
||||
* a workflow on the codeql-action repo itself.
|
||||
|
|
@ -253,7 +262,6 @@ function isRunningLocalAction() {
|
|||
const relativeScriptPath = getRelativeScriptPath();
|
||||
return (relativeScriptPath.startsWith("..") || path.isAbsolute(relativeScriptPath));
|
||||
}
|
||||
exports.isRunningLocalAction = isRunningLocalAction;
|
||||
/**
|
||||
* Get the location where the Action is running from.
|
||||
*
|
||||
|
|
@ -264,7 +272,6 @@ function getRelativeScriptPath() {
|
|||
const actionsDirectory = path.join(path.dirname(runnerTemp), "_actions");
|
||||
return path.relative(actionsDirectory, __filename);
|
||||
}
|
||||
exports.getRelativeScriptPath = getRelativeScriptPath;
|
||||
/** Returns the contents of `GITHUB_EVENT_PATH` as a JSON object. */
|
||||
function getWorkflowEvent() {
|
||||
const eventJsonFile = (0, util_1.getRequiredEnvParam)("GITHUB_EVENT_PATH");
|
||||
|
|
@ -275,7 +282,6 @@ function getWorkflowEvent() {
|
|||
throw new Error(`Unable to read workflow event JSON from ${eventJsonFile}: ${e}`);
|
||||
}
|
||||
}
|
||||
exports.getWorkflowEvent = getWorkflowEvent;
|
||||
function removeRefsHeadsPrefix(ref) {
|
||||
return ref.startsWith("refs/heads/") ? ref.slice("refs/heads/".length) : ref;
|
||||
}
|
||||
|
|
@ -300,7 +306,6 @@ async function isAnalyzingDefaultBranch() {
|
|||
}
|
||||
return currentRef === defaultBranch;
|
||||
}
|
||||
exports.isAnalyzingDefaultBranch = isAnalyzingDefaultBranch;
|
||||
async function printDebugLogs(config) {
|
||||
for (const language of config.languages) {
|
||||
const databaseDirectory = (0, util_1.getCodeQLDatabasePath)(config, language);
|
||||
|
|
@ -329,7 +334,6 @@ async function printDebugLogs(config) {
|
|||
walkLogFiles(logsDirectory);
|
||||
}
|
||||
}
|
||||
exports.printDebugLogs = printDebugLogs;
|
||||
/**
|
||||
* Parses the `upload` input into an `UploadKind`, converting unspecified and deprecated upload
|
||||
* inputs appropriately.
|
||||
|
|
@ -350,7 +354,6 @@ function getUploadValue(input) {
|
|||
return "always";
|
||||
}
|
||||
}
|
||||
exports.getUploadValue = getUploadValue;
|
||||
/**
|
||||
* Get the workflow run ID.
|
||||
*/
|
||||
|
|
@ -365,7 +368,6 @@ function getWorkflowRunID() {
|
|||
}
|
||||
return workflowRunID;
|
||||
}
|
||||
exports.getWorkflowRunID = getWorkflowRunID;
|
||||
/**
|
||||
* Get the workflow run attempt number.
|
||||
*/
|
||||
|
|
@ -380,7 +382,6 @@ function getWorkflowRunAttempt() {
|
|||
}
|
||||
return workflowRunAttempt;
|
||||
}
|
||||
exports.getWorkflowRunAttempt = getWorkflowRunAttempt;
|
||||
class FileCmdNotFoundError extends Error {
|
||||
constructor(msg) {
|
||||
super(msg);
|
||||
|
|
@ -428,5 +429,4 @@ exports.getFileType = getFileType;
|
|||
function isSelfHostedRunner() {
|
||||
return process.env.RUNNER_ENVIRONMENT === "self-hosted";
|
||||
}
|
||||
exports.isSelfHostedRunner = isSelfHostedRunner;
|
||||
//# sourceMappingURL=actions-util.js.map
|
||||
File diff suppressed because one or more lines are too long
3
lib/analyze-action-post-helper.js
generated
3
lib/analyze-action-post-helper.js
generated
|
|
@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.run = void 0;
|
||||
exports.run = run;
|
||||
const core = __importStar(require("@actions/core"));
|
||||
const actionsUtil = __importStar(require("./actions-util"));
|
||||
const config_utils_1 = require("./config-utils");
|
||||
|
|
@ -41,5 +41,4 @@ async function run(uploadSarifDebugArtifact) {
|
|||
await uploadSarifDebugArtifact(config, outputDir);
|
||||
}
|
||||
}
|
||||
exports.run = run;
|
||||
//# sourceMappingURL=analyze-action-post-helper.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"analyze-action-post-helper.js","sourceRoot":"","sources":["../src/analyze-action-post-helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AAEtC,4DAA8C;AAC9C,iDAAmD;AACnD,uCAA6C;AAEtC,KAAK,UAAU,GAAG,CACvB,wBAGkB;IAElB,MAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAElC,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAS,EAAC,WAAW,CAAC,qBAAqB,EAAE,EAAE,MAAM,CAAC,CAAC;IAC5E,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CACb,2FAA2F,CAC5F,CAAC;IACJ,CAAC;IAED,+CAA+C;IAC/C,IAAI,MAAM,EAAE,SAAS,EAAE,CAAC;QACtB,IAAI,CAAC,IAAI,CACP,oFAAoF,CACrF,CAAC;QACF,MAAM,SAAS,GAAG,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACzD,MAAM,wBAAwB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACpD,CAAC;AACH,CAAC;AAvBD,kBAuBC"}
|
||||
{"version":3,"file":"analyze-action-post-helper.js","sourceRoot":"","sources":["../src/analyze-action-post-helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAMA,kBAuBC;AA7BD,oDAAsC;AAEtC,4DAA8C;AAC9C,iDAAmD;AACnD,uCAA6C;AAEtC,KAAK,UAAU,GAAG,CACvB,wBAGkB;IAElB,MAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAElC,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAS,EAAC,WAAW,CAAC,qBAAqB,EAAE,EAAE,MAAM,CAAC,CAAC;IAC5E,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CACb,2FAA2F,CAC5F,CAAC;IACJ,CAAC;IAED,+CAA+C;IAC/C,IAAI,MAAM,EAAE,SAAS,EAAE,CAAC;QACtB,IAAI,CAAC,IAAI,CACP,oFAAoF,CACrF,CAAC;QACF,MAAM,SAAS,GAAG,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACzD,MAAM,wBAAwB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACpD,CAAC;AACH,CAAC"}
|
||||
14
lib/analyze.js
generated
14
lib/analyze.js
generated
|
|
@ -26,7 +26,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.runCleanup = exports.warnIfGoInstalledAfterInit = exports.runFinalize = exports.runQueries = exports.dbIsFinalized = exports.runExtraction = exports.CodeQLAnalysisError = void 0;
|
||||
exports.CodeQLAnalysisError = void 0;
|
||||
exports.runExtraction = runExtraction;
|
||||
exports.dbIsFinalized = dbIsFinalized;
|
||||
exports.runQueries = runQueries;
|
||||
exports.runFinalize = runFinalize;
|
||||
exports.warnIfGoInstalledAfterInit = warnIfGoInstalledAfterInit;
|
||||
exports.runCleanup = runCleanup;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const perf_hooks_1 = require("perf_hooks");
|
||||
|
|
@ -88,7 +94,6 @@ async function runExtraction(codeql, config, logger) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.runExtraction = runExtraction;
|
||||
function shouldExtractLanguage(config, language) {
|
||||
return (config.buildMode === util_1.BuildMode.None ||
|
||||
(config.buildMode === util_1.BuildMode.Autobuild &&
|
||||
|
|
@ -106,7 +111,6 @@ function dbIsFinalized(config, language, logger) {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
exports.dbIsFinalized = dbIsFinalized;
|
||||
async function finalizeDatabaseCreation(codeql, config, threadsFlag, memoryFlag, logger) {
|
||||
const extractionStart = perf_hooks_1.performance.now();
|
||||
await runExtraction(codeql, config, logger);
|
||||
|
|
@ -213,7 +217,6 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag,
|
|||
return await codeql.databasePrintBaseline(databasePath);
|
||||
}
|
||||
}
|
||||
exports.runQueries = runQueries;
|
||||
async function runFinalize(outputDir, threadsFlag, memoryFlag, codeql, config, features, logger) {
|
||||
try {
|
||||
await (0, del_1.default)(outputDir, { force: true });
|
||||
|
|
@ -231,7 +234,6 @@ async function runFinalize(outputDir, threadsFlag, memoryFlag, codeql, config, f
|
|||
}
|
||||
return timings;
|
||||
}
|
||||
exports.runFinalize = runFinalize;
|
||||
async function warnIfGoInstalledAfterInit(config, logger) {
|
||||
// Check that `which go` still points at the same path it did when the `init` Action ran to ensure that no steps
|
||||
// in-between performed any setup. We encourage users to perform all setup tasks before initializing CodeQL so that
|
||||
|
|
@ -257,7 +259,6 @@ async function warnIfGoInstalledAfterInit(config, logger) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.warnIfGoInstalledAfterInit = warnIfGoInstalledAfterInit;
|
||||
async function runCleanup(config, cleanupLevel, logger) {
|
||||
logger.startGroup("Cleaning up databases");
|
||||
for (const language of config.languages) {
|
||||
|
|
@ -267,5 +268,4 @@ async function runCleanup(config, cleanupLevel, logger) {
|
|||
}
|
||||
logger.endGroup();
|
||||
}
|
||||
exports.runCleanup = runCleanup;
|
||||
//# sourceMappingURL=analyze.js.map
|
||||
File diff suppressed because one or more lines are too long
26
lib/api-client.js
generated
26
lib/api-client.js
generated
|
|
@ -26,7 +26,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.wrapApiConfigurationError = exports.deleteActionsCache = exports.listActionsCaches = exports.computeAutomationID = exports.getAutomationID = exports.getAnalysisKey = exports.getWorkflowRelativePath = exports.getGitHubVersion = exports.getGitHubVersionFromApi = exports.getApiClientWithExternalAuth = exports.getApiClient = exports.getApiDetails = exports.DisallowedAPIVersionReason = void 0;
|
||||
exports.DisallowedAPIVersionReason = void 0;
|
||||
exports.getApiDetails = getApiDetails;
|
||||
exports.getApiClient = getApiClient;
|
||||
exports.getApiClientWithExternalAuth = getApiClientWithExternalAuth;
|
||||
exports.getGitHubVersionFromApi = getGitHubVersionFromApi;
|
||||
exports.getGitHubVersion = getGitHubVersion;
|
||||
exports.getWorkflowRelativePath = getWorkflowRelativePath;
|
||||
exports.getAnalysisKey = getAnalysisKey;
|
||||
exports.getAutomationID = getAutomationID;
|
||||
exports.computeAutomationID = computeAutomationID;
|
||||
exports.listActionsCaches = listActionsCaches;
|
||||
exports.deleteActionsCache = deleteActionsCache;
|
||||
exports.wrapApiConfigurationError = wrapApiConfigurationError;
|
||||
const core = __importStar(require("@actions/core"));
|
||||
const githubUtils = __importStar(require("@actions/github/lib/utils"));
|
||||
const retry = __importStar(require("@octokit/plugin-retry"));
|
||||
|
|
@ -56,15 +68,12 @@ function getApiDetails() {
|
|||
apiURL: (0, util_1.getRequiredEnvParam)("GITHUB_API_URL"),
|
||||
};
|
||||
}
|
||||
exports.getApiDetails = getApiDetails;
|
||||
function getApiClient() {
|
||||
return createApiClientWithDetails(getApiDetails());
|
||||
}
|
||||
exports.getApiClient = getApiClient;
|
||||
function getApiClientWithExternalAuth(apiDetails) {
|
||||
return createApiClientWithDetails(apiDetails, { allowExternal: true });
|
||||
}
|
||||
exports.getApiClientWithExternalAuth = getApiClientWithExternalAuth;
|
||||
let cachedGitHubVersion = undefined;
|
||||
async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
||||
// We can avoid making an API request in the standard dotcom case
|
||||
|
|
@ -86,7 +95,6 @@ async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
|||
const version = response.headers[GITHUB_ENTERPRISE_VERSION_HEADER];
|
||||
return { type: util_1.GitHubVariant.GHES, version };
|
||||
}
|
||||
exports.getGitHubVersionFromApi = getGitHubVersionFromApi;
|
||||
/**
|
||||
* Report the GitHub server version. This is a wrapper around
|
||||
* util.getGitHubVersion() that automatically supplies GitHub API details using
|
||||
|
|
@ -100,7 +108,6 @@ async function getGitHubVersion() {
|
|||
}
|
||||
return cachedGitHubVersion;
|
||||
}
|
||||
exports.getGitHubVersion = getGitHubVersion;
|
||||
/**
|
||||
* Get the path of the currently executing workflow relative to the repository root.
|
||||
*/
|
||||
|
|
@ -119,7 +126,6 @@ async function getWorkflowRelativePath() {
|
|||
const workflowResponse = await apiClient.request(`GET ${workflowUrl}`);
|
||||
return workflowResponse.data.path;
|
||||
}
|
||||
exports.getWorkflowRelativePath = getWorkflowRelativePath;
|
||||
/**
|
||||
* Get the analysis key parameter for the current job.
|
||||
*
|
||||
|
|
@ -139,13 +145,11 @@ async function getAnalysisKey() {
|
|||
core.exportVariable(analysisKeyEnvVar, analysisKey);
|
||||
return analysisKey;
|
||||
}
|
||||
exports.getAnalysisKey = getAnalysisKey;
|
||||
async function getAutomationID() {
|
||||
const analysis_key = await getAnalysisKey();
|
||||
const environment = (0, actions_util_1.getRequiredInput)("matrix");
|
||||
return computeAutomationID(analysis_key, environment);
|
||||
}
|
||||
exports.getAutomationID = getAutomationID;
|
||||
function computeAutomationID(analysis_key, environment) {
|
||||
let automationID = `${analysis_key}/`;
|
||||
const matrix = (0, util_1.parseMatrixInput)(environment);
|
||||
|
|
@ -164,7 +168,6 @@ function computeAutomationID(analysis_key, environment) {
|
|||
}
|
||||
return automationID;
|
||||
}
|
||||
exports.computeAutomationID = computeAutomationID;
|
||||
/** List all Actions cache entries matching the provided key and ref. */
|
||||
async function listActionsCaches(key, ref) {
|
||||
const repositoryNwo = (0, repository_1.parseRepositoryNwo)((0, util_1.getRequiredEnvParam)("GITHUB_REPOSITORY"));
|
||||
|
|
@ -175,7 +178,6 @@ async function listActionsCaches(key, ref) {
|
|||
ref,
|
||||
});
|
||||
}
|
||||
exports.listActionsCaches = listActionsCaches;
|
||||
/** Delete an Actions cache item by its ID. */
|
||||
async function deleteActionsCache(id) {
|
||||
const repositoryNwo = (0, repository_1.parseRepositoryNwo)((0, util_1.getRequiredEnvParam)("GITHUB_REPOSITORY"));
|
||||
|
|
@ -185,7 +187,6 @@ async function deleteActionsCache(id) {
|
|||
cache_id: id,
|
||||
});
|
||||
}
|
||||
exports.deleteActionsCache = deleteActionsCache;
|
||||
function wrapApiConfigurationError(e) {
|
||||
if ((0, util_1.isHTTPError)(e)) {
|
||||
if (e.message.includes("API rate limit exceeded for site ID installation") ||
|
||||
|
|
@ -196,5 +197,4 @@ function wrapApiConfigurationError(e) {
|
|||
}
|
||||
return e;
|
||||
}
|
||||
exports.wrapApiConfigurationError = wrapApiConfigurationError;
|
||||
//# sourceMappingURL=api-client.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"api-client.js","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AACtC,uEAAyD;AACzD,6DAA+C;AAC/C,0EAAgD;AAEhD,iDAAoE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Q,CAAC,kBAAkB,CAAC;YACtC,uCAAuC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EACvD,CAAC;YACD,OAAO,IAAI,yBAAkB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC"}
|
||||
7
lib/autobuild.js
generated
7
lib/autobuild.js
generated
|
|
@ -23,7 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.runAutobuild = exports.setupCppAutobuild = exports.determineAutobuildLanguages = void 0;
|
||||
exports.determineAutobuildLanguages = determineAutobuildLanguages;
|
||||
exports.setupCppAutobuild = setupCppAutobuild;
|
||||
exports.runAutobuild = runAutobuild;
|
||||
const core = __importStar(require("@actions/core"));
|
||||
const actions_util_1 = require("./actions-util");
|
||||
const api_client_1 = require("./api-client");
|
||||
|
|
@ -106,7 +108,6 @@ async function determineAutobuildLanguages(codeql, config, logger) {
|
|||
}
|
||||
return languages;
|
||||
}
|
||||
exports.determineAutobuildLanguages = determineAutobuildLanguages;
|
||||
async function setupCppAutobuild(codeql, logger) {
|
||||
const envVar = feature_flags_1.featureConfig[feature_flags_1.Feature.CppDependencyInstallation].envVar;
|
||||
const featureName = "C++ automatic installation of dependencies";
|
||||
|
|
@ -133,7 +134,6 @@ async function setupCppAutobuild(codeql, logger) {
|
|||
core.exportVariable(envVar, "false");
|
||||
}
|
||||
}
|
||||
exports.setupCppAutobuild = setupCppAutobuild;
|
||||
async function runAutobuild(config, language, features, logger) {
|
||||
logger.startGroup(`Attempting to automatically build ${language} code`);
|
||||
const codeQL = await (0, codeql_1.getCodeQL)(config.codeQLCmd);
|
||||
|
|
@ -152,5 +152,4 @@ async function runAutobuild(config, language, features, logger) {
|
|||
}
|
||||
logger.endGroup();
|
||||
}
|
||||
exports.runAutobuild = runAutobuild;
|
||||
//# sourceMapping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CAAC;SAAM,CAAC;QACN,MAAM,CAAC,IAAI,CAAC,aAAa,WAAW,GAAG,CAAC,CAAC;QACzC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,YAAY,CAChC,MAA0B,EAC1B,QAAkB,EAClB,QAA2B,EAC3B,MAAc;IAEd,MAAM,CAAC,UAAU,CAAC,qCAAqC,QAAQ,OAAO,CAAC,CAAC;IACxE,MAAM,MAAM,GAAG,MAAM,IAAA,kBAAS,EAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACjD,IAAI,QAAQ,KAAK,oBAAQ,CAAC,GAAG,EAAE,CAAC;QAC9B,MAAM,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;IACD,IACE,MAAM,CAAC,SAAS;QAChB,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,uBAAO,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC,EACjE,CAAC;QACD,MAAM,MAAM,CAAC,qBAAqB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACvD,CAAC;SAAM,CAAC;QACN,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,IAAI,QAAQ,KAAK,oBAAQ,CAAC,EAAE,EAAE,CAAC;QAC7B,IAAI,CAAC,cAAc,CAAC,oBAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IAC3D,CAAC;IACD,MAAM,CAAC,QAAQ,EAAE,CAAC;AACpB,CAAC"}
|
||||
6
lib/cli-errors.js
generated
6
lib/cli-errors.js
generated
|
|
@ -1,6 +1,8 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.wrapCliConfigurationError = exports.getCliConfigCategoryIfExists = exports.cliErrorsConfig = exports.CliConfigErrorCategory = exports.CommandInvocationError = void 0;
|
||||
exports.cliErrorsConfig = exports.CliConfigErrorCategory = exports.CommandInvocationError = void 0;
|
||||
exports.getCliConfigCategoryIfExists = getCliConfigCategoryIfExists;
|
||||
exports.wrapCliConfigurationError = wrapCliConfigurationError;
|
||||
const util_1 = require("./util");
|
||||
/**
|
||||
* A class of Error that we can classify as an error stemming from a CLI
|
||||
|
|
@ -256,7 +258,6 @@ function getCliConfigCategoryIfExists(cliError) {
|
|||
}
|
||||
return undefined;
|
||||
}
|
||||
exports.getCliConfigCategoryIfExists = getCliConfigCategoryIfExists;
|
||||
/**
|
||||
* Changes an error received from the CLI to a ConfigurationError with optionally an extra
|
||||
* error message appended, if it exists in a known set of configuration errors. Otherwise,
|
||||
|
|
@ -277,5 +278,4 @@ function wrapCliConfigurationError(cliError) {
|
|||
}
|
||||
return new util_1.ConfigurationError(errorMessageBuilder);
|
||||
}
|
||||
exports.wrapCliConfigurationError = wrapCliConfigurationError;
|
||||
//# sourceMappingURL=cli-errors.js.map
|
||||
File diff suppressed because one or more lines are too long
22
lib/codeql.js
generated
22
lib/codeql.js
generated
|
|
@ -23,7 +23,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getGeneratedCodeScanningConfigPath = exports.getTrapCachingExtractorConfigArgsForLang = exports.getTrapCachingExtractorConfigArgs = exports.getExtraOptions = exports.getCodeQLForCmd = exports.getCodeQLForTesting = exports.getCachedCodeQL = exports.setCodeQL = exports.getCodeQL = exports.setupCodeQL = exports.CODEQL_VERSION_SUBLANGUAGE_FILE_COVERAGE = exports.CODEQL_VERSION_ANALYSIS_SUMMARY_V2 = exports.CODEQL_VERSION_LANGUAGE_ALIASING = exports.CODEQL_VERSION_LANGUAGE_BASELINE_CONFIG = exports.CODEQL_VERSION_RESOLVE_ENVIRONMENT = exports.CODEQL_VERSION_DIAGNOSTICS_EXPORT_FIXED = void 0;
|
||||
exports.CODEQL_VERSION_SUBLANGUAGE_FILE_COVERAGE = exports.CODEQL_VERSION_ANALYSIS_SUMMARY_V2 = exports.CODEQL_VERSION_LANGUAGE_ALIASING = exports.CODEQL_VERSION_LANGUAGE_BASELINE_CONFIG = exports.CODEQL_VERSION_RESOLVE_ENVIRONMENT = exports.CODEQL_VERSION_DIAGNOSTICS_EXPORT_FIXED = void 0;
|
||||
exports.setupCodeQL = setupCodeQL;
|
||||
exports.getCodeQL = getCodeQL;
|
||||
exports.setCodeQL = setCodeQL;
|
||||
exports.getCachedCodeQL = getCachedCodeQL;
|
||||
exports.getCodeQLForTesting = getCodeQLForTesting;
|
||||
exports.getCodeQLForCmd = getCodeQLForCmd;
|
||||
exports.getExtraOptions = getExtraOptions;
|
||||
exports.getTrapCachingExtractorConfigArgs = getTrapCachingExtractorConfigArgs;
|
||||
exports.getTrapCachingExtractorConfigArgsForLang = getTrapCachingExtractorConfigArgsForLang;
|
||||
exports.getGeneratedCodeScanningConfigPath = getGeneratedCodeScanningConfigPath;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const core = __importStar(require("@actions/core"));
|
||||
|
|
@ -137,7 +147,6 @@ async function setupCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliV
|
|||
throw new Error(`Unable to download and extract CodeQL CLI: ${(0, util_1.wrapError)(e).message}`);
|
||||
}
|
||||
}
|
||||
exports.setupCodeQL = setupCodeQL;
|
||||
/**
|
||||
* Use the CodeQL executable located at the given path.
|
||||
*/
|
||||
|
|
@ -147,7 +156,6 @@ async function getCodeQL(cmd) {
|
|||
}
|
||||
return cachedCodeQL;
|
||||
}
|
||||
exports.getCodeQL = getCodeQL;
|
||||
function resolveFunction(partialCodeql, methodName, defaultImplementation) {
|
||||
if (typeof partialCodeql[methodName] !== "function") {
|
||||
if (defaultImplementation !== undefined) {
|
||||
|
|
@ -197,7 +205,6 @@ function setCodeQL(partialCodeql) {
|
|||
};
|
||||
return cachedCodeQL;
|
||||
}
|
||||
exports.setCodeQL = setCodeQL;
|
||||
/**
|
||||
* Get the cached CodeQL object. Should only be used from tests.
|
||||
*
|
||||
|
|
@ -211,7 +218,6 @@ function getCachedCodeQL() {
|
|||
}
|
||||
return cachedCodeQL;
|
||||
}
|
||||
exports.getCachedCodeQL = getCachedCodeQL;
|
||||
/**
|
||||
* Get a real, newly created CodeQL instance for testing. The instance refers to
|
||||
* a non-existent placeholder codeql command, so tests that use this function
|
||||
|
|
@ -220,7 +226,6 @@ exports.getCachedCodeQL = getCachedCodeQL;
|
|||
async function getCodeQLForTesting(cmd = "codeql-for-testing") {
|
||||
return getCodeQLForCmd(cmd, false);
|
||||
}
|
||||
exports.getCodeQLForTesting = getCodeQLForTesting;
|
||||
/**
|
||||
* Return a CodeQL object for CodeQL CLI access.
|
||||
*
|
||||
|
|
@ -708,7 +713,6 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||
}
|
||||
return codeql;
|
||||
}
|
||||
exports.getCodeQLForCmd = getCodeQLForCmd;
|
||||
/**
|
||||
* Gets the options for `path` of `options` as an array of extra option strings.
|
||||
*
|
||||
|
|
@ -756,7 +760,6 @@ function getExtraOptions(options, paths, pathInfo) {
|
|||
: getExtraOptions(options?.[paths[0]], paths?.slice(1), pathInfo.concat(paths[0]));
|
||||
return all.concat(specific);
|
||||
}
|
||||
exports.getExtraOptions = getExtraOptions;
|
||||
/*
|
||||
* A constant defining the maximum number of characters we will keep from
|
||||
* the programs stderr for logging. This serves two purposes:
|
||||
|
|
@ -865,7 +868,6 @@ async function getTrapCachingExtractorConfigArgs(config) {
|
|||
result.push(await getTrapCachingExtractorConfigArgsForLang(config, language));
|
||||
return result.flat();
|
||||
}
|
||||
exports.getTrapCachingExtractorConfigArgs = getTrapCachingExtractorConfigArgs;
|
||||
async function getTrapCachingExtractorConfigArgsForLang(config, language) {
|
||||
const cacheDir = config.trapCaches[language];
|
||||
if (cacheDir === undefined)
|
||||
|
|
@ -877,7 +879,6 @@ async function getTrapCachingExtractorConfigArgsForLang(config, language) {
|
|||
`-O=${language}.trap.cache.write=${write}`,
|
||||
];
|
||||
}
|
||||
exports.getTrapCachingExtractorConfigArgsForLang = getTrapCachingExtractorConfigArgsForLang;
|
||||
/**
|
||||
* Get the path to the code scanning configuration generated by the CLI.
|
||||
*
|
||||
|
|
@ -886,7 +887,6 @@ exports.getTrapCachingExtractorConfigArgsForLang = getTrapCachingExtractorConfig
|
|||
function getGeneratedCodeScanningConfigPath(config) {
|
||||
return path.resolve(config.tempDir, "user-config.yaml");
|
||||
}
|
||||
exports.getGeneratedCodeScanningConfigPath = getGeneratedCodeScanningConfigPath;
|
||||
async function isDiagnosticsExportInvalidSarifFixed(codeql) {
|
||||
return await util.codeQlVersionAtLeast(codeql, exports.CODEQL_VERSION_DIAGNOSTICS_EXPORT_FIXED);
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
3
lib/codeql.test.js
generated
3
lib/codeql.test.js
generated
|
|
@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.stubToolRunnerConstructor = void 0;
|
||||
exports.stubToolRunnerConstructor = stubToolRunnerConstructor;
|
||||
const fs = __importStar(require("fs"));
|
||||
const toolrunner = __importStar(require("@actions/exec/lib/toolrunner"));
|
||||
const toolcache = __importStar(require("@actions/tool-cache"));
|
||||
|
|
@ -648,5 +648,4 @@ function stubToolRunnerConstructor(exitCode = 0, stderr) {
|
|||
});
|
||||
return runnerConstructorStub;
|
||||
}
|
||||
exports.stubToolRunnerConstructor = stubToolRunnerConstructor;
|
||||
//# sourceMappingURL=codeql.test.js.map
|
||||
File diff suppressed because one or more lines are too long
48
lib/config-utils.js
generated
48
lib/config-utils.js
generated
|
|
@ -23,7 +23,30 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseBuildModeInput = exports.wrapEnvironment = exports.generateRegistries = exports.getConfig = exports.getPathToParsedConfigFile = exports.initConfig = exports.validatePackSpecification = exports.parsePacksSpecification = exports.parsePacksFromInput = exports.calculateAugmentation = exports.getDefaultConfig = exports.getRawLanguages = exports.getLanguageAliases = exports.getLanguages = exports.getLanguagesInRepo = exports.getUnknownLanguagesError = exports.getNoLanguagesError = exports.getConfigFileDirectoryGivenMessage = exports.getConfigFileFormatInvalidMessage = exports.getConfigFileRepoFormatInvalidMessage = exports.getConfigFileDoesNotExistErrorMessage = exports.getConfigFileOutsideWorkspaceErrorMessage = exports.getPacksStrInvalid = exports.defaultAugmentationProperties = void 0;
|
||||
exports.defaultAugmentationProperties = void 0;
|
||||
exports.getPacksStrInvalid = getPacksStrInvalid;
|
||||
exports.getConfigFileOutsideWorkspaceErrorMessage = getConfigFileOutsideWorkspaceErrorMessage;
|
||||
exports.getConfigFileDoesNotExistErrorMessage = getConfigFileDoesNotExistErrorMessage;
|
||||
exports.getConfigFileRepoFormatInvalidMessage = getConfigFileRepoFormatInvalidMessage;
|
||||
exports.getConfigFileFormatInvalidMessage = getConfigFileFormatInvalidMessage;
|
||||
exports.getConfigFileDirectoryGivenMessage = getConfigFileDirectoryGivenMessage;
|
||||
exports.getNoLanguagesError = getNoLanguagesError;
|
||||
exports.getUnknownLanguagesError = getUnknownLanguagesError;
|
||||
exports.getLanguagesInRepo = getLanguagesInRepo;
|
||||
exports.getLanguages = getLanguages;
|
||||
exports.getLanguageAliases = getLanguageAliases;
|
||||
exports.getRawLanguages = getRawLanguages;
|
||||
exports.getDefaultConfig = getDefaultConfig;
|
||||
exports.calculateAugmentation = calculateAugmentation;
|
||||
exports.parsePacksFromInput = parsePacksFromInput;
|
||||
exports.parsePacksSpecification = parsePacksSpecification;
|
||||
exports.validatePackSpecification = validatePackSpecification;
|
||||
exports.initConfig = initConfig;
|
||||
exports.getPathToParsedConfigFile = getPathToParsedConfigFile;
|
||||
exports.getConfig = getConfig;
|
||||
exports.generateRegistries = generateRegistries;
|
||||
exports.wrapEnvironment = wrapEnvironment;
|
||||
exports.parseBuildModeInput = parseBuildModeInput;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const perf_hooks_1 = require("perf_hooks");
|
||||
|
|
@ -52,29 +75,23 @@ function getPacksStrInvalid(packStr, configFile) {
|
|||
? getConfigFilePropertyError(configFile, PACKS_PROPERTY, `"${packStr}" is not a valid pack`)
|
||||
: `"${packStr}" is not a valid pack`;
|
||||
}
|
||||
exports.getPacksStrInvalid = getPacksStrInvalid;
|
||||
function getConfigFileOutsideWorkspaceErrorMessage(configFile) {
|
||||
return `The configuration file "${configFile}" is outside of the workspace`;
|
||||
}
|
||||
exports.getConfigFileOutsideWorkspaceErrorMessage = getConfigFileOutsideWorkspaceErrorMessage;
|
||||
function getConfigFileDoesNotExistErrorMessage(configFile) {
|
||||
return `The configuration file "${configFile}" does not exist`;
|
||||
}
|
||||
exports.getConfigFileDoesNotExistErrorMessage = getConfigFileDoesNotExistErrorMessage;
|
||||
function getConfigFileRepoFormatInvalidMessage(configFile) {
|
||||
let error = `The configuration file "${configFile}" is not a supported remote file reference.`;
|
||||
error += " Expected format <owner>/<repository>/<file-path>@<ref>";
|
||||
return error;
|
||||
}
|
||||
exports.getConfigFileRepoFormatInvalidMessage = getConfigFileRepoFormatInvalidMessage;
|
||||
function getConfigFileFormatInvalidMessage(configFile) {
|
||||
return `The configuration file "${configFile}" could not be read`;
|
||||
}
|
||||
exports.getConfigFileFormatInvalidMessage = getConfigFileFormatInvalidMessage;
|
||||
function getConfigFileDirectoryGivenMessage(configFile) {
|
||||
return `The configuration file "${configFile}" looks like a directory, not a file`;
|
||||
}
|
||||
exports.getConfigFileDirectoryGivenMessage = getConfigFileDirectoryGivenMessage;
|
||||
function getConfigFilePropertyError(configFile, property, error) {
|
||||
if (configFile === undefined) {
|
||||
return `The workflow property "${property}" is invalid: ${error}`;
|
||||
|
|
@ -87,11 +104,9 @@ function getNoLanguagesError() {
|
|||
return ("Did not detect any languages to analyze. " +
|
||||
"Please update input in workflow or check that GitHub detects the correct languages in your repository.");
|
||||
}
|
||||
exports.getNoLanguagesError = getNoLanguagesError;
|
||||
function getUnknownLanguagesError(languages) {
|
||||
return `Did not recognize the following languages: ${languages.join(", ")}`;
|
||||
}
|
||||
exports.getUnknownLanguagesError = getUnknownLanguagesError;
|
||||
/**
|
||||
* Gets the set of languages in the current repository that are
|
||||
* scannable by CodeQL.
|
||||
|
|
@ -116,7 +131,6 @@ async function getLanguagesInRepo(repository, logger) {
|
|||
}
|
||||
return [...languages];
|
||||
}
|
||||
exports.getLanguagesInRepo = getLanguagesInRepo;
|
||||
/**
|
||||
* Get the languages to analyse.
|
||||
*
|
||||
|
|
@ -170,7 +184,6 @@ async function getLanguages(codeQL, languagesInput, repository, logger) {
|
|||
}
|
||||
return parsedLanguages;
|
||||
}
|
||||
exports.getLanguages = getLanguages;
|
||||
/**
|
||||
* Gets the set of languages supported by CodeQL, along with their aliases if supported by the
|
||||
* version of the CLI.
|
||||
|
|
@ -181,7 +194,6 @@ async function getLanguageAliases(codeql) {
|
|||
}
|
||||
return undefined;
|
||||
}
|
||||
exports.getLanguageAliases = getLanguageAliases;
|
||||
/**
|
||||
* Gets the set of languages in the current repository without checking to
|
||||
* see if these languages are actually supported by CodeQL.
|
||||
|
|
@ -209,7 +221,6 @@ async function getRawLanguages(languagesInput, repository, logger) {
|
|||
}
|
||||
return { rawLanguages, autodetected };
|
||||
}
|
||||
exports.getRawLanguages = getRawLanguages;
|
||||
/**
|
||||
* Get the default config for when the user has not supplied one.
|
||||
*/
|
||||
|
|
@ -234,7 +245,6 @@ async function getDefaultConfig({ languagesInput, queriesInput, packsInput, buil
|
|||
trapCacheDownloadTime,
|
||||
};
|
||||
}
|
||||
exports.getDefaultConfig = getDefaultConfig;
|
||||
async function downloadCacheWithTime(trapCachingEnabled, codeQL, languages, logger) {
|
||||
let trapCaches = {};
|
||||
let trapCacheDownloadTime = 0;
|
||||
|
|
@ -315,7 +325,6 @@ function calculateAugmentation(rawPacksInput, rawQueriesInput, languages) {
|
|||
queriesInputCombines,
|
||||
};
|
||||
}
|
||||
exports.calculateAugmentation = calculateAugmentation;
|
||||
function parseQueriesFromInput(rawQueriesInput, queriesInputCombines) {
|
||||
if (!rawQueriesInput) {
|
||||
return undefined;
|
||||
|
|
@ -363,7 +372,6 @@ function parsePacksFromInput(rawPacksInput, languages, packsInputCombines) {
|
|||
}, []),
|
||||
};
|
||||
}
|
||||
exports.parsePacksFromInput = parsePacksFromInput;
|
||||
/**
|
||||
* Validates that this package specification is syntactically correct.
|
||||
* It may not point to any real package, but after this function returns
|
||||
|
|
@ -436,11 +444,9 @@ function parsePacksSpecification(packStr) {
|
|||
path: packPath,
|
||||
};
|
||||
}
|
||||
exports.parsePacksSpecification = parsePacksSpecification;
|
||||
function validatePackSpecification(pack) {
|
||||
return (0, util_1.prettyPrintPack)(parsePacksSpecification(pack));
|
||||
}
|
||||
exports.validatePackSpecification = validatePackSpecification;
|
||||
/**
|
||||
* The convention in this action is that an input value that is prefixed with a '+' will
|
||||
* be combined with the corresponding value in the config file.
|
||||
|
|
@ -491,7 +497,6 @@ async function initConfig(inputs) {
|
|||
await saveConfig(config, logger);
|
||||
return config;
|
||||
}
|
||||
exports.initConfig = initConfig;
|
||||
function parseRegistries(registriesInput) {
|
||||
try {
|
||||
return registriesInput
|
||||
|
|
@ -550,7 +555,6 @@ async function getRemoteConfig(configFile, apiDetails) {
|
|||
function getPathToParsedConfigFile(tempDir) {
|
||||
return path.join(tempDir, "config");
|
||||
}
|
||||
exports.getPathToParsedConfigFile = getPathToParsedConfigFile;
|
||||
/**
|
||||
* Store the given config to the path returned from getPathToParsedConfigFile.
|
||||
*/
|
||||
|
|
@ -576,7 +580,6 @@ async function getConfig(tempDir, logger) {
|
|||
logger.debug(configString);
|
||||
return JSON.parse(configString);
|
||||
}
|
||||
exports.getConfig = getConfig;
|
||||
/**
|
||||
* Generate a `qlconfig.yml` file from the `registries` input.
|
||||
* This file is used by the CodeQL CLI to list the registries to use for each
|
||||
|
|
@ -615,7 +618,6 @@ async function generateRegistries(registriesInput, tempDir, logger) {
|
|||
qlconfigFile,
|
||||
};
|
||||
}
|
||||
exports.generateRegistries = generateRegistries;
|
||||
function createRegistriesBlock(registries) {
|
||||
if (!Array.isArray(registries) ||
|
||||
registries.some((r) => !r.url || !r.packages)) {
|
||||
|
|
@ -665,7 +667,6 @@ async function wrapEnvironment(env, operation) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.wrapEnvironment = wrapEnvironment;
|
||||
// Exported for testing
|
||||
async function parseBuildModeInput(input, languages, features, logger) {
|
||||
if (input === undefined) {
|
||||
|
|
@ -686,5 +687,4 @@ async function parseBuildModeInput(input, languages, features, logger) {
|
|||
}
|
||||
return input;
|
||||
}
|
||||
exports.parseBuildModeInput = parseBuildModeInput;
|
||||
//# sourceMappingURL=config-utils.js.map
|
||||
File diff suppressed because one or more lines are too long
3
lib/database-upload.js
generated
3
lib/database-upload.js
generated
|
|
@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.uploadDatabases = void 0;
|
||||
exports.uploadDatabases = uploadDatabases;
|
||||
const fs = __importStar(require("fs"));
|
||||
const actionsUtil = __importStar(require("./actions-util"));
|
||||
const api_client_1 = require("./api-client");
|
||||
|
|
@ -97,5 +97,4 @@ async function uploadDatabases(repositoryNwo, config, apiDetails, logger) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.uploadDatabases = uploadDatabases;
|
||||
//# sourceMappingURL=database-upload.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"database-upload.js","sourceRoot":"","sources":["../src/database-upload.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,4DAA8C;AAC9C,6CAA8D;AAC9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IAAI,EAAE;wBACzC,cAAc,EAAE,iBAAiB;wBACjC,gBAAgB,EAAE,aAAa;qBAChC;iBACF,CACF,CAAC;gBACF,MAAM,CAAC,KAAK,CAAC,sCAAsC,QAAQ,EAAE,CAAC,CAAC;YACjE,CAAC;oBAAS,CAAC;gBACT,mBAAmB,CAAC,KAAK,EAAE,CAAC;YAC9B,CAAC;QACH,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,4CAA4C;YAC5C,MAAM,CAAC,OAAO,CAAC,iCAAiC,QAAQ,KAAK,CAAC,EAAE,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;AACH,CAAC"}
|
||||
11
lib/debug-artifacts.js
generated
11
lib/debug-artifacts.js
generated
|
|
@ -26,7 +26,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.uploadDatabaseBundleDebugArtifact = exports.uploadLogsDebugArtifact = exports.uploadSarifDebugArtifact = exports.uploadDebugArtifacts = exports.sanitizeArifactName = void 0;
|
||||
exports.sanitizeArifactName = sanitizeArifactName;
|
||||
exports.uploadDebugArtifacts = uploadDebugArtifacts;
|
||||
exports.uploadSarifDebugArtifact = uploadSarifDebugArtifact;
|
||||
exports.uploadLogsDebugArtifact = uploadLogsDebugArtifact;
|
||||
exports.uploadDatabaseBundleDebugArtifact = uploadDatabaseBundleDebugArtifact;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const artifact = __importStar(require("@actions/artifact"));
|
||||
|
|
@ -40,7 +44,6 @@ const util_1 = require("./util");
|
|||
function sanitizeArifactName(name) {
|
||||
return name.replace(/[^a-zA-Z0-9_\\-]+/g, "");
|
||||
}
|
||||
exports.sanitizeArifactName = sanitizeArifactName;
|
||||
async function uploadDebugArtifacts(toUpload, rootDir, artifactName) {
|
||||
if (toUpload.length === 0) {
|
||||
return;
|
||||
|
|
@ -68,7 +71,6 @@ async function uploadDebugArtifacts(toUpload, rootDir, artifactName) {
|
|||
core.warning(`Failed to upload debug artifacts: ${e}`);
|
||||
}
|
||||
}
|
||||
exports.uploadDebugArtifacts = uploadDebugArtifacts;
|
||||
async function uploadSarifDebugArtifact(config, outputDir) {
|
||||
if (!(0, util_1.doesDirectoryExist)(outputDir)) {
|
||||
return;
|
||||
|
|
@ -82,7 +84,6 @@ async function uploadSarifDebugArtifact(config, outputDir) {
|
|||
}
|
||||
await uploadDebugArtifacts(toUpload, outputDir, config.debugArtifactName);
|
||||
}
|
||||
exports.uploadSarifDebugArtifact = uploadSarifDebugArtifact;
|
||||
async function uploadLogsDebugArtifact(config) {
|
||||
let toUpload = [];
|
||||
for (const language of config.languages) {
|
||||
|
|
@ -99,7 +100,6 @@ async function uploadLogsDebugArtifact(config) {
|
|||
}
|
||||
await uploadDebugArtifacts(toUpload, config.dbLocation, config.debugArtifactName);
|
||||
}
|
||||
exports.uploadLogsDebugArtifact = uploadLogsDebugArtifact;
|
||||
/**
|
||||
* If a database has not been finalized, we cannot run the `codeql database bundle`
|
||||
* command in the CLI because it will return an error. Instead we directly zip
|
||||
|
|
@ -143,5 +143,4 @@ async function uploadDatabaseBundleDebugArtifact(config, logger) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.uploadDatabaseBundleDebugArtifact = uploadDatabaseBundleDebugArtifact;
|
||||
//# sourceMappingURL=debug-artifacts.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"debug-artifacts.js","sourceRoot":"","sources":["../src/debug-artifacts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,oDAAsC;AACtC,sDAA6B;AAC7B,8CAAsB;AAEtB,iDAAkD;AAClD,uCAA0C;AAC1C,qCAAqC;AAIrC,iCAKgB;AAEhB,SAAgB,mBAAmB,CAAC,IAAY;IAC9C,OA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GAAG,MAAM,2BAA2B,CACpD,MAAM,EACN,QAAQ,CACT,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,kBAAkB,GAAG,MAAM,uBAAuB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YACvE,CAAC;YACD,MAAM,oBAAoB,CACxB,CAAC,kBAAkB,CAAC,EACpB,MAAM,CAAC,UAAU,EACjB,MAAM,CAAC,iBAAiB,CACzB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,IAAI,CACP,8CAA8C,MAAM,CAAC,iBAAiB,IAAI,QAAQ,KAAK,KAAK,EAAE,CAC/F,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"}
|
||||
9
lib/diagnostics.js
generated
9
lib/diagnostics.js
generated
|
|
@ -3,7 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.flushDiagnostics = exports.logUnwrittenDiagnostics = exports.addDiagnostic = exports.makeDiagnostic = void 0;
|
||||
exports.makeDiagnostic = makeDiagnostic;
|
||||
exports.addDiagnostic = addDiagnostic;
|
||||
exports.logUnwrittenDiagnostics = logUnwrittenDiagnostics;
|
||||
exports.flushDiagnostics = flushDiagnostics;
|
||||
const fs_1 = require("fs");
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const logging_1 = require("./logging");
|
||||
|
|
@ -25,7 +28,6 @@ function makeDiagnostic(id, name, data = undefined) {
|
|||
source: { ...data?.source, id, name },
|
||||
};
|
||||
}
|
||||
exports.makeDiagnostic = makeDiagnostic;
|
||||
/**
|
||||
* Adds the given diagnostic to the database. If the database does not yet exist,
|
||||
* the diagnostic will be written to it once it has been created.
|
||||
|
|
@ -47,7 +49,6 @@ function addDiagnostic(config, language, diagnostic) {
|
|||
unwrittenDiagnostics.push({ diagnostic, language });
|
||||
}
|
||||
}
|
||||
exports.addDiagnostic = addDiagnostic;
|
||||
/**
|
||||
* Writes the given diagnostic to the database.
|
||||
*
|
||||
|
|
@ -80,7 +81,6 @@ function logUnwrittenDiagnostics() {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.logUnwrittenDiagnostics = logUnwrittenDiagnostics;
|
||||
/** Writes all unwritten diagnostics to disk. */
|
||||
function flushDiagnostics(config) {
|
||||
const logger = (0, logging_1.getActionsLogger)();
|
||||
|
|
@ -91,5 +91,4 @@ function flushDiagnostics(config) {
|
|||
// Reset the unwritten diagnostics array.
|
||||
unwrittenDiagnostics = [];
|
||||
}
|
||||
exports.flushDiagnostics = flushDiagnostics;
|
||||
//# sourceMappingURL=diagnostics.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../src/diagnostics.ts"],"names":[],"mappings":";;;;;;AAAA,2BAA0D;AAC1D,gDAAwB;AAIxB,uCAA6C;AAC7C,iCAA+C;AA2D/C,qEAAqE;AACrE,IAAI,oBAAoB,GAA0B,EAAE,CAAC;AAErD;;;;;;;GAOG;AACH,SAAgB,cAAc,CAC5B,EAAU,EACV,IAAY,EACZ,OAA+C,SAAS;IAExD,OAAO;QACL,GAAG,IAAI;QACP,SAAS,EAAE,IAAI,EAAE,SAAS,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACtD,MAAM,EAAE,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE;KACtC,CAAC;AACJ,CAAC;AAVD,wCAUC;AAED;;;;;;;GAOG;AACH,SAAgB,aAAa,CAC3B,MAAc,EACd,QAAkB,EAClB,UAA6B;IAE7B,MAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAClC,MAAM,YAAY,GAAG,IAAA,4BAAqB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAE7D,2FAA2F;IAC3F,qDAAqD;IACrD,IAAI,IAAA,eAAU,EAAC,YA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C,UAAU,CAAC,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC;AAED,2EAA2E;AAC3E,SAAgB,uBAAuB;IACrC,MAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAClC,MAAM,GAAG,GAAG,oBAAoB,CAAC,MAAM,CAAC;IACxC,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;QACZ,MAAM,CAAC,OAAO,CACZ,GAAG,GAAG,kGAAkG,CACzG,CAAC;QAEF,KAAK,MAAM,SAAS,IAAI,oBAAoB,EAAE,CAAC;YAC7C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;AACH,CAAC;AAED,gDAAgD;AAChD,SAAgB,gBAAgB,CAAC,MAAc;IAC7C,MAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAClC,MAAM,CAAC,KAAK,CACV,WAAW,oBAAoB,CAAC,MAAM,6BAA6B,CACpE,CAAC;IAEF,KAAK,MAAM,SAAS,IAAI,oBAAoB,EAAE,CAAC;QAC7C,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACpE,CAAC;IAED,yCAAyC;IACzC,oBAAoB,GAAG,EAAE,CAAC;AAC5B,CAAC"}
|
||||
7
lib/fingerprints.js
generated
7
lib/fingerprints.js
generated
|
|
@ -26,7 +26,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.addFingerprints = exports.resolveUriToFile = exports.hash = void 0;
|
||||
exports.hash = hash;
|
||||
exports.resolveUriToFile = resolveUriToFile;
|
||||
exports.addFingerprints = addFingerprints;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const long_1 = __importDefault(require("long"));
|
||||
|
|
@ -143,7 +145,6 @@ async function hash(callback, filepath) {
|
|||
updateHash(0);
|
||||
}
|
||||
}
|
||||
exports.hash = hash;
|
||||
// Generate a hash callback function that updates the given result in-place
|
||||
// when it receives a hash for the correct line number. Ignores hashes for other lines.
|
||||
function locationUpdateCallback(result, location, logger) {
|
||||
|
|
@ -234,7 +235,6 @@ function resolveUriToFile(location, artifacts, sourceRoot, logger) {
|
|||
}
|
||||
return uri;
|
||||
}
|
||||
exports.resolveUriToFile = resolveUriToFile;
|
||||
// Compute fingerprints for results in the given sarif file
|
||||
// and return an updated sarif file contents.
|
||||
async function addFingerprints(sarif, sourceRoot, logger) {
|
||||
|
|
@ -278,5 +278,4 @@ async function addFingerprints(sarif, sourceRoot, logger) {
|
|||
}
|
||||
return sarif;
|
||||
}
|
||||
exports.addFingerprints = addFingerprints;
|
||||
//# sourceMappingURL=fingerprints.js.map
|
||||
File diff suppressed because one or more lines are too long
7
lib/init-action-post-helper.js
generated
7
lib/init-action-post-helper.js
generated
|
|
@ -23,7 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getFinalJobStatus = exports.run = exports.tryUploadSarifIfRunFailed = void 0;
|
||||
exports.tryUploadSarifIfRunFailed = tryUploadSarifIfRunFailed;
|
||||
exports.run = run;
|
||||
exports.getFinalJobStatus = getFinalJobStatus;
|
||||
const fs = __importStar(require("fs"));
|
||||
const core = __importStar(require("@actions/core"));
|
||||
const github = __importStar(require("@actions/github"));
|
||||
|
|
@ -104,7 +106,6 @@ async function tryUploadSarifIfRunFailed(config, repositoryNwo, features, logger
|
|||
};
|
||||
}
|
||||
}
|
||||
exports.tryUploadSarifIfRunFailed = tryUploadSarifIfRunFailed;
|
||||
async function run(uploadDatabaseBundleDebugArtifact, uploadLogsDebugArtifact, printDebugLogs, config, repositoryNwo, features, logger) {
|
||||
const uploadFailedSarifResult = await tryUploadSarifIfRunFailed(config, repositoryNwo, features, logger);
|
||||
if (uploadFailedSarifResult.upload_failed_run_skipped_because) {
|
||||
|
|
@ -154,7 +155,6 @@ async function run(uploadDatabaseBundleDebugArtifact, uploadLogsDebugArtifact, p
|
|||
}
|
||||
return uploadFailedSarifResult;
|
||||
}
|
||||
exports.run = run;
|
||||
async function removeUploadedSarif(uploadFailedSarifResult, logger) {
|
||||
const sarifID = uploadFailedSarifResult.sarifID;
|
||||
if (sarifID) {
|
||||
|
|
@ -220,5 +220,4 @@ function getFinalJobStatus() {
|
|||
}
|
||||
return jobStatusFromEnvironment;
|
||||
}
|
||||
exports.getFinalJobStatus = getFinalJobStatus;
|
||||
//# sourceMappingURL=init-action-post-helper.js.map
|
||||
File diff suppressed because one or more lines are too long
15
lib/init.js
generated
15
lib/init.js
generated
|
|
@ -23,7 +23,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.cleanupDatabaseClusterDirectory = exports.isSipEnabled = exports.checkInstallPython311 = exports.printPathFiltersWarning = exports.runInit = exports.initConfig = exports.initCodeQL = void 0;
|
||||
exports.initCodeQL = initCodeQL;
|
||||
exports.initConfig = initConfig;
|
||||
exports.runInit = runInit;
|
||||
exports.printPathFiltersWarning = printPathFiltersWarning;
|
||||
exports.checkInstallPython311 = checkInstallPython311;
|
||||
exports.isSipEnabled = isSipEnabled;
|
||||
exports.cleanupDatabaseClusterDirectory = cleanupDatabaseClusterDirectory;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const exec = __importStar(require("@actions/exec/lib/exec"));
|
||||
|
|
@ -43,7 +49,6 @@ async function initCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVe
|
|||
logger.endGroup();
|
||||
return { codeql, toolsDownloadDurationMs, toolsSource, toolsVersion };
|
||||
}
|
||||
exports.initCodeQL = initCodeQL;
|
||||
async function initConfig(inputs, codeql) {
|
||||
const logger = inputs.logger;
|
||||
logger.startGroup("Load language configuration");
|
||||
|
|
@ -54,7 +59,6 @@ async function initConfig(inputs, codeql) {
|
|||
logger.endGroup();
|
||||
return config;
|
||||
}
|
||||
exports.initConfig = initConfig;
|
||||
async function runInit(codeql, config, sourceRoot, processName, registriesInput, apiDetails, features, logger) {
|
||||
fs.mkdirSync(config.dbLocation, { recursive: true });
|
||||
const { registriesAuthTokens, qlconfigFile } = await configUtils.generateRegistries(registriesInput, config.tempDir, logger);
|
||||
|
|
@ -66,7 +70,6 @@ async function runInit(codeql, config, sourceRoot, processName, registriesInput,
|
|||
async () => await codeql.databaseInitCluster(config, sourceRoot, processName, qlconfigFile, features, logger));
|
||||
return await (0, tracer_config_1.getCombinedTracerConfig)(codeql, config, features);
|
||||
}
|
||||
exports.runInit = runInit;
|
||||
function printPathFiltersWarning(config, logger) {
|
||||
// Index include/exclude/filters only work in javascript/python/ruby.
|
||||
// If any other languages are detected/configured then show a warning.
|
||||
|
|
@ -76,7 +79,6 @@ function printPathFiltersWarning(config, logger) {
|
|||
logger.warning('The "paths"/"paths-ignore" fields of the config only have effect for JavaScript, Python, and Ruby');
|
||||
}
|
||||
}
|
||||
exports.printPathFiltersWarning = printPathFiltersWarning;
|
||||
/**
|
||||
* If we are running python 3.12+ on windows, we need to switch to python 3.11.
|
||||
* This check happens in a powershell script.
|
||||
|
|
@ -91,7 +93,6 @@ async function checkInstallPython311(languages, codeql) {
|
|||
]).exec();
|
||||
}
|
||||
}
|
||||
exports.checkInstallPython311 = checkInstallPython311;
|
||||
// For MacOS runners: runs `csrutil status` to determine whether System
|
||||
// Integrity Protection is enabled.
|
||||
async function isSipEnabled(logger) {
|
||||
|
|
@ -112,7 +113,6 @@ async function isSipEnabled(logger) {
|
|||
return undefined;
|
||||
}
|
||||
}
|
||||
exports.isSipEnabled = isSipEnabled;
|
||||
function cleanupDatabaseClusterDirectory(config, logger,
|
||||
// We can't stub the fs module in tests, so we allow the caller to override the rmSync function
|
||||
// for testing.
|
||||
|
|
@ -147,5 +147,4 @@ rmSync = fs.rmSync) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.cleanupDatabaseClusterDirectory = cleanupDatabaseClusterDirectory;
|
||||
//# sourceMappingURL=init.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,6DAA+C;AAC/C,yEAA2D;AAC3D,kEAAoD;AAEpD,iDAAsE;AAEtE,qCAA+C;AAC/C,4DAA8C;AAE9C,2CAA0D;AAG1D,qDAAgD;AAChD,mDAAwE;AACxE,6CAA+B;AAExB,KAAK,UAAU,UAAU,CAC9B,UAA8B,EAC9B,UAA4B,EAC5B,OAAe,EACf,OAA2B,EAC3B,iBAA2C,EAC3C,MAAc;IAOd,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;IACxC,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE,WAAW,EAAE,YAAY,EAAE,GAClE,MAAM,IAAA,oBAAW,EACf,UAAU,EACV,UAAU,EACV,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,MAAM,EACN,IAAI,CACL,CAAC;IACJ,MAAM,MAAM,CAAC,YAAY,EAAE,CAAC;IAC5B,MAAM,CAAC,QAAQ,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,uBAAuB,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;AACxE,CAAC;AA3BD,gCA2BC;AAEM,KAAK,UAAU,UAAU,CAC9B,MAAoC,EACpC,MAAc;IAEd,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7B,MAAM,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC;IACjD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACpD,IACE,CAAC,CAAC,M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
8
lib/languages.js
generated
|
|
@ -1,6 +1,9 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isScannedLanguage = exports.isTracedLanguage = exports.parseLanguage = exports.LANGUAGE_ALIASES = exports.Language = void 0;
|
||||
exports.LANGUAGE_ALIASES = exports.Language = void 0;
|
||||
exports.parseLanguage = parseLanguage;
|
||||
exports.isTracedLanguage = isTracedLanguage;
|
||||
exports.isScannedLanguage = isScannedLanguage;
|
||||
// All the languages supported by CodeQL
|
||||
var Language;
|
||||
(function (Language) {
|
||||
|
|
@ -44,7 +47,6 @@ function parseLanguage(language) {
|
|||
}
|
||||
return undefined;
|
||||
}
|
||||
exports.parseLanguage = parseLanguage;
|
||||
function isTracedLanguage(language) {
|
||||
return [
|
||||
Language.cpp,
|
||||
|
|
@ -54,9 +56,7 @@ function isTracedLanguage(language) {
|
|||
Language.swift,
|
||||
].includes(language);
|
||||
}
|
||||
exports.isTracedLanguage = isTracedLanguage;
|
||||
function isScannedLanguage(language) {
|
||||
return !isTracedLanguage(language);
|
||||
}
|
||||
exports.isScannedLanguage = isScannedLanguage;
|
||||
//# sourceMappingURL=languages.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"languages.js","sourceRoot":"","sources":["../src/languages.ts"],"names":[],"mappings":";;;AAAA,wCAAwC;AACxC,IAAY,QASX;AATD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,uBAAW,CAAA;IACX,qBAAS,CAAA;IACT,yBAAa,CAAA;IACb,qCAAyB,CAAA;IACzB,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,2BAAe,CAAA;AACjB,CAAC,EATW,QAAQ,wBAAR,QAAQ,QASnB;AAED,iCAAiC;AACpB,QAAA,gBAAgB,GAAiC;IAC5D,CAAC,EAAE,QAAQ,CAAC,GAAG;IACf,KAAK,EAAE,QAAQ,CAAC,GAAG;IACnB,IAAI,EAAE,QAAQ,CAAC,MAAM;IACrB,MAAM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AAiC;IAC5D,CAAC,EAAE,QAAQ,CAAC,GAAG;IACf,KAAK,EAAE,QAAQ,CAAC,GAAG;IACnB,IAAI,EAAE,QAAQ,CAAC,MAAM;IACrB,MAAM,EAAE,QAAQ,CAAC,IAAI;IACrB,UAAU,EAAE,QAAQ,CAAC,UAAU;CAChC,CAAC;AAEF;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAAC,QAAgB;IAC5C,0BAA0B;IAC1B,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAEzC,6BAA6B;IAC7B,IAAI,QAAQ,IAAI,QAAQ,EAAE,CAAC;QACzB,OAAO,QAAoB,CAAC;IAC9B,CAAC;IAED,iEAAiE;IACjE,oCAAoC;IACpC,IAAI,QAAQ,IAAI,wBAAgB,EAAE,CAAC;QACjC,OAAO,wBAAgB,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAgB,gBAAgB,CAAC,QAAkB;IACjD,OAAO;QACL,QAAQ,CAAC,GAAG;QACZ,QAAQ,CAAC,MAAM;QACf,QAAQ,CAAC,EAAE;QACX,QAAQ,CAAC,IAAI;QACb,QAAQ,CAAC,KAAK;KACf,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACvB,CAAC;AAED,SAAgB,iBAAiB,CAAC,QAAkB;IAClD,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AACrC,CAAC"}
|
||||
5
lib/logging.js
generated
5
lib/logging.js
generated
|
|
@ -23,12 +23,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getRunnerLogger = exports.getActionsLogger = void 0;
|
||||
exports.getActionsLogger = getActionsLogger;
|
||||
exports.getRunnerLogger = getRunnerLogger;
|
||||
const core = __importStar(require("@actions/core"));
|
||||
function getActionsLogger() {
|
||||
return core;
|
||||
}
|
||||
exports.getActionsLogger = getActionsLogger;
|
||||
function getRunnerLogger(debugMode) {
|
||||
return {
|
||||
// eslint-disable-next-line no-console
|
||||
|
|
@ -44,5 +44,4 @@ function getRunnerLogger(debugMode) {
|
|||
endGroup: () => undefined,
|
||||
};
|
||||
}
|
||||
exports.getRunnerLogger = getRunnerLogger;
|
||||
//# sourceMappingURL=logging.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../src/logging.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AActC,SAAgB,gBAAgB;IAC9B,OAAO,IAAI,CAAC;AACd,CAAC;AAFD,4CAEC;AAED,SAAgB,eAAe,CAAC,SAAkB;IAChD,OAAO;QACL,sCAAsC;QACtC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,SAAS;QAClD,sCAAsC;QACtC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,sCAAsC;QACtC,OAAO,EAAE,OAAO,CAAC,IAAI;QACrB,sCAAsC;QACtC,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;QACxB,UAAU,EAAE,GAAG,EAAE,CAAC,SAAS;QAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS;KAC1B,CAAC;AACJ,CAAC;AAdD,0CAcC"}
|
||||
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../src/logging.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAcA,4CAEC;AAED,0CAcC;AAhCD,oDAAsC;AActC,SAAgB,gBAAgB;IAC9B,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,eAAe,CAAC,SAAkB;IAChD,OAAO;QACL,sCAAsC;QACtC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,SAAS;QAClD,sCAAsC;QACtC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,sCAAsC;QACtC,OAAO,EAAE,OAAO,CAAC,IAAI;QACrB,sCAAsC;QACtC,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;QACxB,UAAU,EAAE,GAAG,EAAE,CAAC,SAAS;QAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS;KAC1B,CAAC;AACJ,CAAC"}
|
||||
3
lib/repository.js
generated
3
lib/repository.js
generated
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseRepositoryNwo = void 0;
|
||||
exports.parseRepositoryNwo = parseRepositoryNwo;
|
||||
const util_1 = require("./util");
|
||||
function parseRepositoryNwo(input) {
|
||||
const parts = input.split("/");
|
||||
|
|
@ -12,5 +12,4 @@ function parseRepositoryNwo(input) {
|
|||
repo: parts[1],
|
||||
};
|
||||
}
|
||||
exports.parseRepositoryNwo = parseRepositoryNwo;
|
||||
//# sourceMappingURL=repository.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../src/repository.ts"],"names":[],"mappings":";;;AAAA,iCAA4C;AAQ5C,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,yBAAkB,CAAC,IAAI,KAAK,kCAAkC,CAAC,CAAC;IAC5E,CAAC;IACD,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QACf,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;KACf,CAAC;AACJ,CAAC;AATD,gDASC"}
|
||||
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../src/repository.ts"],"names":[],"mappings":";;AAQA,gDASC;AAjBD,iCAA4C;AAQ5C,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,yBAAkB,CAAC,IAAI,KAAK,kCAAkC,CAAC,CAAC;IAC5E,CAAC;IACD,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QACf,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;KACf,CAAC;AACJ,CAAC"}
|
||||
3
lib/resolve-environment.js
generated
3
lib/resolve-environment.js
generated
|
|
@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.runResolveBuildEnvironment = void 0;
|
||||
exports.runResolveBuildEnvironment = runResolveBuildEnvironment;
|
||||
const codeql_1 = require("./codeql");
|
||||
const languages_1 = require("./languages");
|
||||
const util = __importStar(require("./util"));
|
||||
|
|
@ -56,5 +56,4 @@ async function runResolveBuildEnvironment(cmd, logger, workingDir, languageInput
|
|||
logger.endGroup();
|
||||
return result;
|
||||
}
|
||||
exports.runResolveBuildEnvironment = runResolveBuildEnvironment;
|
||||
//# sourceMappingURL=resolve-environment.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"resolve-environment.js","sourceRoot":"","sources":["../src/resolve-environment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAIkB;AAClB,2CAA4C;AAE5C,6CAA+B;AAExB,KAAK,UAAU,0BAA0B,CAC9C,GAAW,EACX,MAAc,EACd,UAA8B,EAC9B,aAAqB;IAErB,MAAM,CAAC,UAAU,CACf,+CAA+C,aAAa,EAAE,CAC/D,CAAC;IAEF,MAAM,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AW,EACX,MAAc,EACd,UAA8B,EAC9B,aAAqB;IAErB,MAAM,CAAC,UAAU,CACf,+CAA+C,aAAa,EAAE,CAC/D,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,IAAA,kBAAS,EAAC,GAAG,CAAC,CAAC;IAEpC,IAAI,QAAQ,GAAG,aAAa,CAAC;IAC7B,6FAA6F;IAC7F,mFAAmF;IACnF,IACE,CAAC,CAAC,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,yCAAgC,CAAC,CAAC,EAC5E,CAAC;QACD,MAAM,cAAc,GAAG,IAAA,yBAAa,EAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC;QAChE,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,IAAI,CAAC,kBAAkB,CAC/B,mCAAmC,aAAa,IAAI,CACrD,CAAC;QACJ,CAAC;QACD,QAAQ,GAAG,cAAc,CAAC;IAC5B,CAAC;IAED,IAAI,MAAM,GAAG,EAAE,CAAC;IAEhB,gFAAgF;IAChF,yEAAyE;IACzE,IACE,CAAC,CAAC,MAAM,IAAI,CAAC,oBAAoB,CAC/B,MAAM,EACN,2CAAkC,CACnC,CAAC,EACF,CAAC;QACD,MAAM,CAAC,OAAO,CACZ,0EAA0E;YACxE,mCAAmC,CACtC,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,SAAS,UAAU,4BAA4B,CAAC,CAAC;QAC/D,CAAC;QAED,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,CAAC,QAAQ,EAAE,CAAC;IAClB,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
||||
18
lib/setup-codeql.js
generated
18
lib/setup-codeql.js
generated
|
|
@ -26,7 +26,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.setupCodeQLBundle = exports.getCodeQLURLVersion = exports.downloadCodeQL = exports.tryGetFallbackToolcacheVersion = exports.getCodeQLSource = exports.convertToSemVer = exports.tryGetBundleVersionFromUrl = exports.tryFindCliVersionDotcomOnly = exports.getCodeQLActionRepository = exports.CODEQL_DEFAULT_ACTION_REPOSITORY = exports.ToolsSource = void 0;
|
||||
exports.downloadCodeQL = exports.CODEQL_DEFAULT_ACTION_REPOSITORY = exports.ToolsSource = void 0;
|
||||
exports.getCodeQLActionRepository = getCodeQLActionRepository;
|
||||
exports.tryFindCliVersionDotcomOnly = tryFindCliVersionDotcomOnly;
|
||||
exports.tryGetBundleVersionFromUrl = tryGetBundleVersionFromUrl;
|
||||
exports.convertToSemVer = convertToSemVer;
|
||||
exports.getCodeQLSource = getCodeQLSource;
|
||||
exports.tryGetFallbackToolcacheVersion = tryGetFallbackToolcacheVersion;
|
||||
exports.getCodeQLURLVersion = getCodeQLURLVersion;
|
||||
exports.setupCodeQLBundle = setupCodeQLBundle;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const perf_hooks_1 = require("perf_hooks");
|
||||
|
|
@ -79,7 +87,6 @@ function getCodeQLActionRepository(logger) {
|
|||
}
|
||||
return util.getRequiredEnvParam("GITHUB_ACTION_REPOSITORY");
|
||||
}
|
||||
exports.getCodeQLActionRepository = getCodeQLActionRepository;
|
||||
function tryGetCodeQLCliVersionForRelease(release, logger) {
|
||||
const cliVersionsFromMarkerFiles = release.assets
|
||||
.map((asset) => asset.name.match(/cli-version-(.*)\.txt/)?.[1])
|
||||
|
|
@ -112,7 +119,6 @@ async function tryFindCliVersionDotcomOnly(tagName, logger) {
|
|||
return undefined;
|
||||
}
|
||||
}
|
||||
exports.tryFindCliVersionDotcomOnly = tryFindCliVersionDotcomOnly;
|
||||
async function getCodeQLBundleDownloadURL(tagName, apiDetails, logger) {
|
||||
const codeQLActionRepository = getCodeQLActionRepository(logger);
|
||||
const potentialDownloadSources = [
|
||||
|
|
@ -179,7 +185,6 @@ function tryGetBundleVersionFromUrl(url, logger) {
|
|||
}
|
||||
return tryGetBundleVersionFromTagName(tagName, logger);
|
||||
}
|
||||
exports.tryGetBundleVersionFromUrl = tryGetBundleVersionFromUrl;
|
||||
function convertToSemVer(version, logger) {
|
||||
if (!semver.valid(version)) {
|
||||
logger.debug(`Bundle version ${version} is not in SemVer format. Will treat it as pre-release 0.0.0-${version}.`);
|
||||
|
|
@ -191,7 +196,6 @@ function convertToSemVer(version, logger) {
|
|||
}
|
||||
return s;
|
||||
}
|
||||
exports.convertToSemVer = convertToSemVer;
|
||||
/**
|
||||
* Look for a version of the CodeQL tools in the cache which could override the requested CLI version.
|
||||
*/
|
||||
|
|
@ -380,7 +384,6 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian
|
|||
toolsVersion: cliVersion ?? humanReadableVersion,
|
||||
};
|
||||
}
|
||||
exports.getCodeQLSource = getCodeQLSource;
|
||||
/**
|
||||
* Gets a fallback version number to use when looking for CodeQL in the toolcache if we didn't find
|
||||
* the `x.y.z` version. This is to support old versions of the toolcache.
|
||||
|
|
@ -395,7 +398,6 @@ async function tryGetFallbackToolcacheVersion(cliVersion, tagName, logger) {
|
|||
`${cliVersion ?? tagName}.`);
|
||||
return fallbackVersion;
|
||||
}
|
||||
exports.tryGetFallbackToolcacheVersion = tryGetFallbackToolcacheVersion;
|
||||
// Exported using `export const` for testing purposes. Specifically, we want to
|
||||
// be able to stub this function and have other functions in this file use that stub.
|
||||
const downloadCodeQL = async function (codeqlURL, maybeBundleVersion, maybeCliVersion, apiDetails, variant, tempDir, logger) {
|
||||
|
|
@ -470,7 +472,6 @@ function getCodeQLURLVersion(url) {
|
|||
}
|
||||
return match[1];
|
||||
}
|
||||
exports.getCodeQLURLVersion = getCodeQLURLVersion;
|
||||
/**
|
||||
* Returns the toolcache version number to use to store the bundle with the associated CLI version
|
||||
* and bundle version.
|
||||
|
|
@ -540,7 +541,6 @@ async function setupCodeQLBundle(toolsInput, apiDetails, tempDir, variant, defau
|
|||
}
|
||||
return { codeqlFolder, toolsDownloadDurationMs, toolsSource, toolsVersion };
|
||||
}
|
||||
exports.setupCodeQLBundle = setupCodeQLBundle;
|
||||
async function cleanUpGlob(glob, name, logger) {
|
||||
logger.debug(`Cleaning up ${name}.`);
|
||||
try {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
12
lib/status-report.js
generated
12
lib/status-report.js
generated
|
|
@ -23,7 +23,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.sendStatusReport = exports.createStatusReportBase = exports.getJobStatusDisplayName = exports.getActionsStatus = exports.JobStatus = exports.isFirstPartyAnalysis = exports.ActionName = void 0;
|
||||
exports.JobStatus = exports.ActionName = void 0;
|
||||
exports.isFirstPartyAnalysis = isFirstPartyAnalysis;
|
||||
exports.getActionsStatus = getActionsStatus;
|
||||
exports.getJobStatusDisplayName = getJobStatusDisplayName;
|
||||
exports.createStatusReportBase = createStatusReportBase;
|
||||
exports.sendStatusReport = sendStatusReport;
|
||||
const os = __importStar(require("os"));
|
||||
const core = __importStar(require("@actions/core"));
|
||||
const actions_util_1 = require("./actions-util");
|
||||
|
|
@ -53,7 +58,6 @@ function isFirstPartyAnalysis(actionName) {
|
|||
}
|
||||
return process.env[environment_1.EnvVar.INIT_ACTION_HAS_RUN] === "true";
|
||||
}
|
||||
exports.isFirstPartyAnalysis = isFirstPartyAnalysis;
|
||||
/** Overall status of the entire job. String values match the Hydro schema. */
|
||||
var JobStatus;
|
||||
(function (JobStatus) {
|
||||
|
|
@ -70,7 +74,6 @@ function getActionsStatus(error, otherFailureCause) {
|
|||
return "success";
|
||||
}
|
||||
}
|
||||
exports.getActionsStatus = getActionsStatus;
|
||||
function getJobStatusDisplayName(status) {
|
||||
switch (status) {
|
||||
case JobStatus.SuccessStatus:
|
||||
|
|
@ -85,7 +88,6 @@ function getJobStatusDisplayName(status) {
|
|||
(0, util_1.assertNever)(status);
|
||||
}
|
||||
}
|
||||
exports.getJobStatusDisplayName = getJobStatusDisplayName;
|
||||
/**
|
||||
* Sets the overall job status environment variable to configuration error
|
||||
* or failure, unless it's already been set to one of these values in a
|
||||
|
|
@ -209,7 +211,6 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
|||
return undefined;
|
||||
}
|
||||
}
|
||||
exports.createStatusReportBase = createStatusReportBase;
|
||||
const OUT_OF_DATE_MSG = "CodeQL Action is out-of-date. Please upgrade to the latest version of codeql-action.";
|
||||
const INCOMPATIBLE_MSG = "CodeQL Action version is incompatible with the code scanning endpoint. Please update to a compatible version of codeql-action.";
|
||||
/**
|
||||
|
|
@ -279,5 +280,4 @@ async function sendStatusReport(statusReport) {
|
|||
core.warning(`An unexpected error occurred when sending code scanning status report: ${(0, util_1.wrapError)(e).message}`);
|
||||
}
|
||||
}
|
||||
exports.sendStatusReport = sendStatusReport;
|
||||
//# sourceMappingURL=status-report.js.map
|
||||
File diff suppressed because one or more lines are too long
20
lib/testing-utils.js
generated
20
lib/testing-utils.js
generated
|
|
@ -26,7 +26,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createTestConfig = exports.mockBundleDownloadApi = exports.createFeatures = exports.mockCodeQLVersion = exports.makeVersionInfo = exports.mockLanguagesInRepo = exports.mockFeatureFlagApiEndpoint = exports.getRecordingLogger = exports.setupActionsVars = exports.setupTests = exports.LINKED_CLI_VERSION = exports.SAMPLE_DEFAULT_CLI_VERSION = exports.SAMPLE_DOTCOM_API_DETAILS = void 0;
|
||||
exports.makeVersionInfo = exports.LINKED_CLI_VERSION = exports.SAMPLE_DEFAULT_CLI_VERSION = exports.SAMPLE_DOTCOM_API_DETAILS = void 0;
|
||||
exports.setupTests = setupTests;
|
||||
exports.setupActionsVars = setupActionsVars;
|
||||
exports.getRecordingLogger = getRecordingLogger;
|
||||
exports.mockFeatureFlagApiEndpoint = mockFeatureFlagApiEndpoint;
|
||||
exports.mockLanguagesInRepo = mockLanguagesInRepo;
|
||||
exports.mockCodeQLVersion = mockCodeQLVersion;
|
||||
exports.createFeatures = createFeatures;
|
||||
exports.mockBundleDownloadApi = mockBundleDownloadApi;
|
||||
exports.createTestConfig = createTestConfig;
|
||||
const node_util_1 = require("node:util");
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const github = __importStar(require("@actions/github"));
|
||||
|
|
@ -117,7 +126,6 @@ function setupTests(test) {
|
|||
process.env = t.context.env;
|
||||
});
|
||||
}
|
||||
exports.setupTests = setupTests;
|
||||
// Sets environment variables that make using some libraries designed for
|
||||
// use only on actions safe to use outside of actions.
|
||||
function setupActionsVars(tempDir, toolsDir) {
|
||||
|
|
@ -125,7 +133,6 @@ function setupActionsVars(tempDir, toolsDir) {
|
|||
process.env["RUNNER_TOOL_CACHE"] = toolsDir;
|
||||
process.env["GITHUB_WORKSPACE"] = tempDir;
|
||||
}
|
||||
exports.setupActionsVars = setupActionsVars;
|
||||
function getRecordingLogger(messages) {
|
||||
return {
|
||||
debug: (message) => {
|
||||
|
|
@ -153,7 +160,6 @@ function getRecordingLogger(messages) {
|
|||
endGroup: () => undefined,
|
||||
};
|
||||
}
|
||||
exports.getRecordingLogger = getRecordingLogger;
|
||||
/** Mock the HTTP request to the feature flags enablement API endpoint. */
|
||||
function mockFeatureFlagApiEndpoint(responseStatusCode, response) {
|
||||
// Passing an auth token is required, so we just use a dummy value
|
||||
|
|
@ -173,7 +179,6 @@ function mockFeatureFlagApiEndpoint(responseStatusCode, response) {
|
|||
}
|
||||
sinon.stub(apiClient, "getApiClient").value(() => client);
|
||||
}
|
||||
exports.mockFeatureFlagApiEndpoint = mockFeatureFlagApiEndpoint;
|
||||
function mockLanguagesInRepo(languages) {
|
||||
const mockClient = sinon.stub(apiClient, "getApiClient");
|
||||
const listLanguages = sinon.stub().resolves({
|
||||
|
|
@ -195,7 +200,6 @@ function mockLanguagesInRepo(languages) {
|
|||
});
|
||||
return listLanguages;
|
||||
}
|
||||
exports.mockLanguagesInRepo = mockLanguagesInRepo;
|
||||
/**
|
||||
* Constructs a `VersionInfo` object for testing purposes only.
|
||||
*/
|
||||
|
|
@ -211,7 +215,6 @@ function mockCodeQLVersion(version, features) {
|
|||
},
|
||||
});
|
||||
}
|
||||
exports.mockCodeQLVersion = mockCodeQLVersion;
|
||||
/**
|
||||
* Create a feature enablement instance with the specified set of enabled features.
|
||||
*
|
||||
|
|
@ -227,7 +230,6 @@ function createFeatures(enabledFeatures) {
|
|||
},
|
||||
};
|
||||
}
|
||||
exports.createFeatures = createFeatures;
|
||||
/**
|
||||
* Mocks the API for downloading the bundle tagged `tagName`.
|
||||
*
|
||||
|
|
@ -249,7 +251,6 @@ function mockBundleDownloadApi({ apiDetails = exports.SAMPLE_DOTCOM_API_DETAILS,
|
|||
.replyWithFile(200, path_1.default.join(__dirname, `/../src/testdata/codeql-bundle${isPinned ? "-pinned" : ""}.tar.gz`));
|
||||
return `${baseUrl}${relativeUrl}`;
|
||||
}
|
||||
exports.mockBundleDownloadApi = mockBundleDownloadApi;
|
||||
function createTestConfig(overrides) {
|
||||
return Object.assign({}, {
|
||||
languages: [],
|
||||
|
|
@ -272,5 +273,4 @@ function createTestConfig(overrides) {
|
|||
trapCacheDownloadTime: 0,
|
||||
}, overrides);
|
||||
}
|
||||
exports.createTestConfig = createTestConfig;
|
||||
//# sourceMappingURL=testing-utils.js.map
|
||||
File diff suppressed because one or more lines are too long
4
lib/tools-features.js
generated
4
lib/tools-features.js
generated
|
|
@ -1,6 +1,7 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isSupportedToolsFeature = exports.ToolsFeature = void 0;
|
||||
exports.ToolsFeature = void 0;
|
||||
exports.isSupportedToolsFeature = isSupportedToolsFeature;
|
||||
var ToolsFeature;
|
||||
(function (ToolsFeature) {
|
||||
ToolsFeature["AnalysisSummaryV2IsDefault"] = "analysisSummaryV2Default";
|
||||
|
|
@ -22,5 +23,4 @@ var ToolsFeature;
|
|||
function isSupportedToolsFeature(versionInfo, feature) {
|
||||
return !!versionInfo.features && versionInfo.features[feature];
|
||||
}
|
||||
exports.isSupportedToolsFeature = isSupportedToolsFeature;
|
||||
//# sourceMappingURL=tools-features.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"tools-features.js","sourceRoot":"","sources":["../src/tools-features.ts"],"names":[],"mappings":";;;AAEA,IAAY,YASX;AATD,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,mDAAmC,CAAA;IACnC,+FAA+E,CAAA;IAC/E,yFAAyE,CAAA;IACzE,iEAAiD,CAAA;IACjD,qEAAqD,CAAA;IACrD,mFAAmE,CAAA;IACnE,iDAAiC,CAAA;AACnC,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAED;;;;;;GAMG;AACH,SAAgB,uBAAuB,CACrC,WAAwB,EACxB,OAAqB;IAErB,OAAO,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACjE,CAAC;AALD,0DAKC"}
|
||||
{"version":3,"file":"tools-features.js","sourceRoot":"","sources":["../src/tools-features.ts"],"names":[],"mappings":";;;AAoBA,0DAKC;AAvBD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,mDAAmC,CAAA;IACnC,+FAA+E,CAAA;IAC/E,yFAAyE,CAAA;IACzE,iEAAiD,CAAA;IACjD,qEAAqD,CAAA;IACrD,mFAAmE,CAAA;IACnE,iDAAiC,CAAA;AACnC,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAED;;;;;;GAMG;AACH,SAAgB,uBAAuB,CACrC,WAAwB,EACxB,OAAqB;IAErB,OAAO,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACjE,CAAC"}
|
||||
9
lib/tracer-config.js
generated
9
lib/tracer-config.js
generated
|
|
@ -23,7 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getCombinedTracerConfig = exports.getTracerConfigForCluster = exports.endTracingForCluster = exports.shouldEnableIndirectTracing = void 0;
|
||||
exports.shouldEnableIndirectTracing = shouldEnableIndirectTracing;
|
||||
exports.endTracingForCluster = endTracingForCluster;
|
||||
exports.getTracerConfigForCluster = getTracerConfigForCluster;
|
||||
exports.getCombinedTracerConfig = getCombinedTracerConfig;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const feature_flags_1 = require("./feature-flags");
|
||||
|
|
@ -36,7 +39,6 @@ async function shouldEnableIndirectTracing(codeql, config, features) {
|
|||
!(await features.getValue(feature_flags_1.Feature.AutobuildDirectTracing, codeql))) &&
|
||||
config.languages.some((l) => (0, languages_1.isTracedLanguage)(l)));
|
||||
}
|
||||
exports.shouldEnableIndirectTracing = shouldEnableIndirectTracing;
|
||||
/**
|
||||
* Delete variables as specified by the end-tracing script
|
||||
*
|
||||
|
|
@ -69,14 +71,12 @@ async function endTracingForCluster(codeql, config, logger, features) {
|
|||
throw new Error(`Failed to parse file containing end tracing environment variables: ${e}`);
|
||||
}
|
||||
}
|
||||
exports.endTracingForCluster = endTracingForCluster;
|
||||
async function getTracerConfigForCluster(config) {
|
||||
const tracingEnvVariables = JSON.parse(fs.readFileSync(path.resolve(config.dbLocation, "temp/tracingEnvironment/start-tracing.json"), "utf8"));
|
||||
return {
|
||||
env: tracingEnvVariables,
|
||||
};
|
||||
}
|
||||
exports.getTracerConfigForCluster = getTracerConfigForCluster;
|
||||
async function getCombinedTracerConfig(codeql, config, features) {
|
||||
if (!(await shouldEnableIndirectTracing(codeql, config, features)))
|
||||
return undefined;
|
||||
|
|
@ -94,5 +94,4 @@ async function getCombinedTracerConfig(codeql, config, features) {
|
|||
}
|
||||
return mainTracerConfig;
|
||||
}
|
||||
exports.getCombinedTracerConfig = getCombinedTracerConfig;
|
||||
//# sourceMappingURL=tracer-config.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"tracer-config.js","sourceRoot":"","sources":["../src/tracer-config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAI7B,mDAA6D;AAC7D,2CAA+C;AAE/C,qDAAgD;AAChD,iCAAmC;AAM5B,KAAK,UAAU,2BAA2B,CAC/C,MAAc,EACd,MAAc,EACd,QAA2B;IAE3B,OAAO,CACL,CAAC,CAAC,MAAM,CAAC,SAAS;QAChB,MAAM,CAAC,SAAS,KAAK,gBAAS,CAAC,MAAM;QACrC,CAAC,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,uBAAO,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC,CAAC;QACrE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,4BAAgB,EAAC,CAAC,CAAC,CAAC,CAClD,CAAC;AACJ,CAAC;AAXD,kEAWC;AAED;;;;;;;;GAQG;AACI,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,MAAc,EACd,MAAc,EACd,QAA2B;IAE3B,IAAI,CAAC,CAAC,MAAM,2BAA2B,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAAE,OAAO;IAE3E,MAAM,CAAC,IAAI,CACT,iGAAiG,CAClG,CAAC;IAEF,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,CACnC,MAAM,CAAC,UAAU,EACjB,0CAA0C,CAC3C,CAAC;IACF,IAAI,CAAC,EAAE,CAAC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O;QACL,GAAG,EAAE,mBAAmB;KACzB,CAAC;AACJ,CAAC;AAEM,KAAK,UAAU,uBAAuB,CAC3C,MAAc,EACd,MAAc,EACd,QAA2B;IAE3B,IAAI,CAAC,CAAC,MAAM,2BAA2B,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAChE,OAAO,SAAS,CAAC;IAEnB,MAAM,gBAAgB,GAAG,MAAM,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAEjE,mFAAmF;IACnF,4DAA4D;IAC5D,IAAI,CAAC,CAAC,MAAM,MAAM,CAAC,eAAe,CAAC,6BAAY,CAAC,sBAAsB,CAAC,CAAC,EAAE,CAAC;QACzE,iFAAiF;QACjF,kFAAkF;QAClF,sDAAsD;QACtD,iFAAiF;QACjF,gCAAgC;QAChC,MAAM,aAAa,GACjB,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC;QACzD,gBAAgB,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,IAAI,CAC/C,gBAAgB,CAAC,GAAG,CAAC,aAAa,CAAC,EACnC,OAAO,EACP,gBAAgB,CAAC,GAAG,CAAC,iBAAiB,CAAC,EACvC,aAAa,CACd,CAAC;IACJ,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
|
||||
11
lib/trap-caching.js
generated
11
lib/trap-caching.js
generated
|
|
@ -23,7 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getTotalCacheSize = exports.getLanguagesSupportingCaching = exports.cleanupTrapCaches = exports.uploadTrapCaches = exports.downloadTrapCaches = void 0;
|
||||
exports.downloadTrapCaches = downloadTrapCaches;
|
||||
exports.uploadTrapCaches = uploadTrapCaches;
|
||||
exports.cleanupTrapCaches = cleanupTrapCaches;
|
||||
exports.getLanguagesSupportingCaching = getLanguagesSupportingCaching;
|
||||
exports.getTotalCacheSize = getTotalCacheSize;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const actionsCache = __importStar(require("@actions/cache"));
|
||||
|
|
@ -100,7 +104,6 @@ async function downloadTrapCaches(codeql, languages, logger) {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
exports.downloadTrapCaches = downloadTrapCaches;
|
||||
/**
|
||||
* Possibly upload TRAP caches to the Actions cache.
|
||||
* @param codeql The CodeQL instance to use.
|
||||
|
|
@ -132,7 +135,6 @@ async function uploadTrapCaches(codeql, config, logger) {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
exports.uploadTrapCaches = uploadTrapCaches;
|
||||
async function cleanupTrapCaches(config, features, logger) {
|
||||
if (!(await features.getValue(feature_flags_1.Feature.CleanupTrapCaches))) {
|
||||
return {
|
||||
|
|
@ -183,7 +185,6 @@ async function cleanupTrapCaches(config, features, logger) {
|
|||
return { trap_cache_cleanup_error: (0, util_1.wrapError)(e).message };
|
||||
}
|
||||
}
|
||||
exports.cleanupTrapCaches = cleanupTrapCaches;
|
||||
async function getTrapCachesForLanguage(allCaches, language, logger) {
|
||||
logger.debug(`Listing TRAP caches for ${language}`);
|
||||
for (const cache of allCaches) {
|
||||
|
|
@ -225,12 +226,10 @@ async function getLanguagesSupportingCaching(codeql, languages, logger) {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
exports.getLanguagesSupportingCaching = getLanguagesSupportingCaching;
|
||||
async function getTotalCacheSize(trapCaches, logger) {
|
||||
const sizes = await Promise.all(Object.values(trapCaches).map((cacheDir) => (0, util_1.tryGetFolderBytes)(cacheDir, logger)));
|
||||
return sizes.map((a) => a || 0).reduce((a, b) => a + b, 0);
|
||||
}
|
||||
exports.getTotalCacheSize = getTotalCacheSize;
|
||||
async function cacheKey(codeql, language, baseSha) {
|
||||
return `${await cachePrefix(codeql, language)}${baseSha}`;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
18
lib/upload-lib.js
generated
18
lib/upload-lib.js
generated
|
|
@ -26,7 +26,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.InvalidSarifUploadError = exports.validateUniqueCategory = exports.waitForProcessing = exports.buildPayload = exports.validateSarifFileSchema = exports.uploadFromActions = exports.findSarifFilesInDir = exports.populateRunAutomationDetails = exports.shouldShowCombineSarifFilesDeprecationWarning = void 0;
|
||||
exports.InvalidSarifUploadError = void 0;
|
||||
exports.shouldShowCombineSarifFilesDeprecationWarning = shouldShowCombineSarifFilesDeprecationWarning;
|
||||
exports.populateRunAutomationDetails = populateRunAutomationDetails;
|
||||
exports.findSarifFilesInDir = findSarifFilesInDir;
|
||||
exports.uploadFromActions = uploadFromActions;
|
||||
exports.validateSarifFileSchema = validateSarifFileSchema;
|
||||
exports.buildPayload = buildPayload;
|
||||
exports.waitForProcessing = waitForProcessing;
|
||||
exports.validateUniqueCategory = validateUniqueCategory;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const zlib_1 = __importDefault(require("zlib"));
|
||||
|
|
@ -122,7 +130,6 @@ async function shouldShowCombineSarifFilesDeprecationWarning(sarifObjects, githu
|
|||
return (!areAllRunsUnique(sarifObjects) &&
|
||||
!process.env.CODEQL_MERGE_SARIF_DEPRECATION_WARNING);
|
||||
}
|
||||
exports.shouldShowCombineSarifFilesDeprecationWarning = shouldShowCombineSarifFilesDeprecationWarning;
|
||||
// Takes a list of paths to sarif files and combines them together using the
|
||||
// CLI `github merge-results` command when all SARIF files are produced by
|
||||
// CodeQL. Otherwise, it will fall back to combining the files in the action.
|
||||
|
|
@ -203,7 +210,6 @@ function populateRunAutomationDetails(sarif, category, analysis_key, environment
|
|||
}
|
||||
return sarif;
|
||||
}
|
||||
exports.populateRunAutomationDetails = populateRunAutomationDetails;
|
||||
function getAutomationID(category, analysis_key, environment) {
|
||||
if (category !== undefined) {
|
||||
let automationID = category;
|
||||
|
|
@ -272,7 +278,6 @@ function findSarifFilesInDir(sarifPath) {
|
|||
walkSarifFiles(sarifPath);
|
||||
return sarifFiles;
|
||||
}
|
||||
exports.findSarifFilesInDir = findSarifFilesInDir;
|
||||
/**
|
||||
* Uploads a single SARIF file or a directory of SARIF files depending on what `sarifPath` refers
|
||||
* to.
|
||||
|
|
@ -280,7 +285,6 @@ exports.findSarifFilesInDir = findSarifFilesInDir;
|
|||
async function uploadFromActions(sarifPath, checkoutPath, category, logger) {
|
||||
return await uploadFiles(getSarifFilePaths(sarifPath), (0, repository_1.parseRepositoryNwo)(util.getRequiredEnvParam("GITHUB_REPOSITORY")), await actionsUtil.getCommitOid(checkoutPath), await actionsUtil.getRef(), await api.getAnalysisKey(), category, util.getRequiredEnvParam("GITHUB_WORKFLOW"), actionsUtil.getWorkflowRunID(), actionsUtil.getWorkflowRunAttempt(), checkoutPath, actionsUtil.getRequiredInput("matrix"), logger);
|
||||
}
|
||||
exports.uploadFromActions = uploadFromActions;
|
||||
function getSarifFilePaths(sarifPath) {
|
||||
if (!fs.existsSync(sarifPath)) {
|
||||
// This is always a configuration error, even for first-party runs.
|
||||
|
|
@ -347,7 +351,6 @@ function validateSarifFileSchema(sarifFilePath, logger) {
|
|||
throw new InvalidSarifUploadError(`Unable to upload "${sarifFilePath}" as it is not valid SARIF:\n${sarifErrors.join("\n")}`);
|
||||
}
|
||||
}
|
||||
exports.validateSarifFileSchema = validateSarifFileSchema;
|
||||
// buildPayload constructs a map ready to be uploaded to the API from the given
|
||||
// parameters, respecting the current mode and target GitHub instance version.
|
||||
function buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, workflowRunID, workflowRunAttempt, checkoutURI, environment, toolNames, mergeBaseCommitOid) {
|
||||
|
|
@ -386,7 +389,6 @@ function buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, wo
|
|||
}
|
||||
return payloadObj;
|
||||
}
|
||||
exports.buildPayload = buildPayload;
|
||||
// Uploads the given set of sarif files.
|
||||
// Returns true iff the upload occurred and succeeded
|
||||
async function uploadFiles(sarifFiles, repositoryNwo, commitOid, ref, analysisKey, category, analysisName, workflowRunID, workflowRunAttempt, sourceRoot, environment, logger) {
|
||||
|
|
@ -503,7 +505,6 @@ async function waitForProcessing(repositoryNwo, sarifID, logger, options = {
|
|||
logger.endGroup();
|
||||
}
|
||||
}
|
||||
exports.waitForProcessing = waitForProcessing;
|
||||
/**
|
||||
* Returns whether the provided processing errors are a configuration error.
|
||||
*/
|
||||
|
|
@ -572,7 +573,6 @@ function validateUniqueCategory(sarif) {
|
|||
core.exportVariable(sentinelEnvVar, sentinelEnvVar);
|
||||
}
|
||||
}
|
||||
exports.validateUniqueCategory = validateUniqueCategory;
|
||||
/**
|
||||
* Sanitizes a string to be used as an environment variable name.
|
||||
* This will replace all non-alphanumeric characters with underscores.
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
3
lib/upload-sarif-action-post-helper.js
generated
3
lib/upload-sarif-action-post-helper.js
generated
|
|
@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.uploadArtifacts = void 0;
|
||||
exports.uploadArtifacts = uploadArtifacts;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const core = __importStar(require("@actions/core"));
|
||||
|
|
@ -51,5 +51,4 @@ async function uploadArtifacts(uploadDebugArtifacts) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.uploadArtifacts = uploadArtifacts;
|
||||
//# sourceMappingURL=upload-sarif-action-post-helper.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"upload-sarif-action-post-helper.js","sourceRoot":"","sources":["../src/upload-sarif-action-post-helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uC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lib/util.js
generated
|
|
@ -26,7 +26,46 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.BuildMode = exports.checkActionVersion = exports.checkDiskUsage = exports.prettyPrintPack = exports.getErrorMessage = exports.wrapError = exports.fixInvalidNotificationsInFile = exports.fixInvalidNotifications = exports.parseMatrixInput = exports.isHostedRunner = exports.checkForTimeout = exports.withTimeout = exports.tryGetFolderBytes = exports.listFolder = exports.doesDirectoryExist = exports.isInTestMode = exports.isGoodVersion = exports.delay = exports.bundleDb = exports.codeQlVersionAtLeast = exports.getCachedCodeQlVersion = exports.cacheCodeQlVersion = exports.isHTTPError = exports.ConfigurationError = exports.HTTPError = exports.getRequiredEnvParam = exports.initializeEnvironment = exports.assertNever = exports.apiVersionInRange = exports.DisallowedAPIVersionReason = exports.checkGitHubVersionInRange = exports.GitHubVariant = exports.parseGitHubUrl = exports.getCodeQLDatabasePath = exports.getThreadsFlag = exports.getCgroupCpuCountFromCpus = exports.getThreadsFlagValue = exports.getAddSnippetsFlag = exports.getMemoryFlag = exports.getMemoryFlagValue = exports.getMemoryFlagValueForPlatform = exports.withTmpDir = exports.getToolNames = exports.getExtraOptionsEnvParam = exports.DEFAULT_DEBUG_DATABASE_NAME = exports.DEFAULT_DEBUG_ARTIFACT_NAME = exports.GITHUB_DOTCOM_URL = void 0;
|
||||
exports.BuildMode = exports.ConfigurationError = exports.HTTPError = exports.DisallowedAPIVersionReason = exports.GitHubVariant = exports.DEFAULT_DEBUG_DATABASE_NAME = exports.DEFAULT_DEBUG_ARTIFACT_NAME = exports.GITHUB_DOTCOM_URL = void 0;
|
||||
exports.getExtraOptionsEnvParam = getExtraOptionsEnvParam;
|
||||
exports.getToolNames = getToolNames;
|
||||
exports.withTmpDir = withTmpDir;
|
||||
exports.getMemoryFlagValueForPlatform = getMemoryFlagValueForPlatform;
|
||||
exports.getMemoryFlagValue = getMemoryFlagValue;
|
||||
exports.getMemoryFlag = getMemoryFlag;
|
||||
exports.getAddSnippetsFlag = getAddSnippetsFlag;
|
||||
exports.getThreadsFlagValue = getThreadsFlagValue;
|
||||
exports.getCgroupCpuCountFromCpus = getCgroupCpuCountFromCpus;
|
||||
exports.getThreadsFlag = getThreadsFlag;
|
||||
exports.getCodeQLDatabasePath = getCodeQLDatabasePath;
|
||||
exports.parseGitHubUrl = parseGitHubUrl;
|
||||
exports.checkGitHubVersionInRange = checkGitHubVersionInRange;
|
||||
exports.apiVersionInRange = apiVersionInRange;
|
||||
exports.assertNever = assertNever;
|
||||
exports.initializeEnvironment = initializeEnvironment;
|
||||
exports.getRequiredEnvParam = getRequiredEnvParam;
|
||||
exports.isHTTPError = isHTTPError;
|
||||
exports.cacheCodeQlVersion = cacheCodeQlVersion;
|
||||
exports.getCachedCodeQlVersion = getCachedCodeQlVersion;
|
||||
exports.codeQlVersionAtLeast = codeQlVersionAtLeast;
|
||||
exports.bundleDb = bundleDb;
|
||||
exports.delay = delay;
|
||||
exports.isGoodVersion = isGoodVersion;
|
||||
exports.isInTestMode = isInTestMode;
|
||||
exports.doesDirectoryExist = doesDirectoryExist;
|
||||
exports.listFolder = listFolder;
|
||||
exports.tryGetFolderBytes = tryGetFolderBytes;
|
||||
exports.withTimeout = withTimeout;
|
||||
exports.checkForTimeout = checkForTimeout;
|
||||
exports.isHostedRunner = isHostedRunner;
|
||||
exports.parseMatrixInput = parseMatrixInput;
|
||||
exports.fixInvalidNotifications = fixInvalidNotifications;
|
||||
exports.fixInvalidNotificationsInFile = fixInvalidNotificationsInFile;
|
||||
exports.wrapError = wrapError;
|
||||
exports.getErrorMessage = getErrorMessage;
|
||||
exports.prettyPrintPack = prettyPrintPack;
|
||||
exports.checkDiskUsage = checkDiskUsage;
|
||||
exports.checkActionVersion = checkActionVersion;
|
||||
const fs = __importStar(require("fs"));
|
||||
const os = __importStar(require("os"));
|
||||
const path = __importStar(require("path"));
|
||||
|
|
@ -81,7 +120,6 @@ function getExtraOptionsEnvParam() {
|
|||
throw new ConfigurationError(`${varName} environment variable is set, but does not contain valid JSON: ${error.message}`);
|
||||
}
|
||||
}
|
||||
exports.getExtraOptionsEnvParam = getExtraOptionsEnvParam;
|
||||
/**
|
||||
* Get the array of all the tool names contained in the given sarif contents.
|
||||
*
|
||||
|
|
@ -98,7 +136,6 @@ function getToolNames(sarif) {
|
|||
}
|
||||
return Object.keys(toolNames);
|
||||
}
|
||||
exports.getToolNames = getToolNames;
|
||||
// Creates a random temporary directory, runs the given body, and then deletes the directory.
|
||||
// Mostly intended for use within tests.
|
||||
async function withTmpDir(body) {
|
||||
|
|
@ -107,7 +144,6 @@ async function withTmpDir(body) {
|
|||
await (0, del_1.default)(tmpDir, { force: true });
|
||||
return result;
|
||||
}
|
||||
exports.withTmpDir = withTmpDir;
|
||||
/**
|
||||
* Gets an OS-specific amount of memory (in MB) to reserve for OS processes
|
||||
* when the user doesn't explicitly specify a memory setting.
|
||||
|
|
@ -152,7 +188,6 @@ function getMemoryFlagValueForPlatform(userInput, totalMemoryBytes, platform) {
|
|||
}
|
||||
return Math.floor(memoryToUseMegaBytes);
|
||||
}
|
||||
exports.getMemoryFlagValueForPlatform = getMemoryFlagValueForPlatform;
|
||||
/**
|
||||
* Get the total amount of memory available to the Action, taking into account constraints imposed
|
||||
* by cgroups on Linux.
|
||||
|
|
@ -211,7 +246,6 @@ function getCgroupMemoryLimitBytes(limitFile, logger) {
|
|||
function getMemoryFlagValue(userInput, logger) {
|
||||
return getMemoryFlagValueForPlatform(userInput, getTotalMemoryBytes(logger), process.platform);
|
||||
}
|
||||
exports.getMemoryFlagValue = getMemoryFlagValue;
|
||||
/**
|
||||
* Get the codeql `--ram` flag as configured by the `ram` input. If no value was
|
||||
* specified, the total available memory will be used minus a threshold
|
||||
|
|
@ -223,7 +257,6 @@ function getMemoryFlag(userInput, logger) {
|
|||
const megabytes = getMemoryFlagValue(userInput, logger);
|
||||
return `--ram=${megabytes}`;
|
||||
}
|
||||
exports.getMemoryFlag = getMemoryFlag;
|
||||
/**
|
||||
* Get the codeql flag to specify whether to add code snippets to the sarif file.
|
||||
*
|
||||
|
|
@ -236,7 +269,6 @@ function getAddSnippetsFlag(userInput) {
|
|||
}
|
||||
return userInput ? "--sarif-add-snippets" : "--no-sarif-add-snippets";
|
||||
}
|
||||
exports.getAddSnippetsFlag = getAddSnippetsFlag;
|
||||
/**
|
||||
* Get the value of the codeql `--threads` flag specified for the `threads`
|
||||
* input. If no value was specified, all available threads will be used.
|
||||
|
|
@ -280,7 +312,6 @@ function getThreadsFlagValue(userInput, logger) {
|
|||
}
|
||||
return numThreads;
|
||||
}
|
||||
exports.getThreadsFlagValue = getThreadsFlagValue;
|
||||
/**
|
||||
* Gets the number of available cores specified by the cgroup cpu.max file at the given path.
|
||||
* Format of file: two values, the limit and the duration (period). If the limit is "max" then
|
||||
|
|
@ -334,7 +365,6 @@ function getCgroupCpuCountFromCpus(cpusFile, logger) {
|
|||
logger.info(`While resolving threads, found a cgroup CPUs file with ${cpuCount} CPUs in ${cpusFile}.`);
|
||||
return cpuCount;
|
||||
}
|
||||
exports.getCgroupCpuCountFromCpus = getCgroupCpuCountFromCpus;
|
||||
/**
|
||||
* Get the codeql `--threads` flag specified for the `threads` input.
|
||||
* If no value was specified, all available threads will be used.
|
||||
|
|
@ -346,14 +376,12 @@ exports.getCgroupCpuCountFromCpus = getCgroupCpuCountFromCpus;
|
|||
function getThreadsFlag(userInput, logger) {
|
||||
return `--threads=${getThreadsFlagValue(userInput, logger)}`;
|
||||
}
|
||||
exports.getThreadsFlag = getThreadsFlag;
|
||||
/**
|
||||
* Get the path where the CodeQL database for the given language lives.
|
||||
*/
|
||||
function getCodeQLDatabasePath(config, language) {
|
||||
return path.resolve(config.dbLocation, language);
|
||||
}
|
||||
exports.getCodeQLDatabasePath = getCodeQLDatabasePath;
|
||||
/**
|
||||
* Parses user input of a github.com or GHES URL to a canonical form.
|
||||
* Removes any API prefix or suffix if one is present.
|
||||
|
|
@ -392,7 +420,6 @@ function parseGitHubUrl(inputUrl) {
|
|||
}
|
||||
return url.toString();
|
||||
}
|
||||
exports.parseGitHubUrl = parseGitHubUrl;
|
||||
const CODEQL_ACTION_WARNED_ABOUT_VERSION_ENV_VAR = "CODEQL_ACTION_WARNED_ABOUT_VERSION";
|
||||
let hasBeenWarnedAboutVersion = false;
|
||||
var GitHubVariant;
|
||||
|
|
@ -415,7 +442,6 @@ function checkGitHubVersionInRange(version, logger) {
|
|||
hasBeenWarnedAboutVersion = true;
|
||||
core.exportVariable(CODEQL_ACTION_WARNED_ABOUT_VERSION_ENV_VAR, true);
|
||||
}
|
||||
exports.checkGitHubVersionInRange = checkGitHubVersionInRange;
|
||||
var DisallowedAPIVersionReason;
|
||||
(function (DisallowedAPIVersionReason) {
|
||||
DisallowedAPIVersionReason[DisallowedAPIVersionReason["ACTION_TOO_OLD"] = 0] = "ACTION_TOO_OLD";
|
||||
|
|
@ -430,7 +456,6 @@ function apiVersionInRange(version, minimumVersion, maximumVersion) {
|
|||
}
|
||||
return undefined;
|
||||
}
|
||||
exports.apiVersionInRange = apiVersionInRange;
|
||||
/**
|
||||
* This error is used to indicate a runtime failure of an exhaustivity check enforced at compile time.
|
||||
*/
|
||||
|
|
@ -447,7 +472,6 @@ class ExhaustivityCheckingError extends Error {
|
|||
function assertNever(value) {
|
||||
throw new ExhaustivityCheckingError(value);
|
||||
}
|
||||
exports.assertNever = assertNever;
|
||||
/**
|
||||
* Set some initial environment variables that we can set even without
|
||||
* knowing what version of CodeQL we're running.
|
||||
|
|
@ -459,7 +483,6 @@ function initializeEnvironment(version) {
|
|||
core.exportVariable(String(environment_1.EnvVar.FEATURE_WILL_UPLOAD), "true");
|
||||
core.exportVariable(String(environment_1.EnvVar.VERSION), version);
|
||||
}
|
||||
exports.initializeEnvironment = initializeEnvironment;
|
||||
/**
|
||||
* Get an environment parameter, but throw an error if it is not set.
|
||||
*/
|
||||
|
|
@ -470,7 +493,6 @@ function getRequiredEnvParam(paramName) {
|
|||
}
|
||||
return value;
|
||||
}
|
||||
exports.getRequiredEnvParam = getRequiredEnvParam;
|
||||
class HTTPError extends Error {
|
||||
constructor(message, status) {
|
||||
super(message);
|
||||
|
|
@ -491,7 +513,6 @@ exports.ConfigurationError = ConfigurationError;
|
|||
function isHTTPError(arg) {
|
||||
return arg?.status !== undefined && Number.isInteger(arg.status);
|
||||
}
|
||||
exports.isHTTPError = isHTTPError;
|
||||
let cachedCodeQlVersion = undefined;
|
||||
function cacheCodeQlVersion(version) {
|
||||
if (cachedCodeQlVersion !== undefined) {
|
||||
|
|
@ -499,15 +520,12 @@ function cacheCodeQlVersion(version) {
|
|||
}
|
||||
cachedCodeQlVersion = version;
|
||||
}
|
||||
exports.cacheCodeQlVersion = cacheCodeQlVersion;
|
||||
function getCachedCodeQlVersion() {
|
||||
return cachedCodeQlVersion;
|
||||
}
|
||||
exports.getCachedCodeQlVersion = getCachedCodeQlVersion;
|
||||
async function codeQlVersionAtLeast(codeql, requiredVersion) {
|
||||
return semver.gte((await codeql.getVersion()).version, requiredVersion);
|
||||
}
|
||||
exports.codeQlVersionAtLeast = codeQlVersionAtLeast;
|
||||
// Create a bundle for the given DB, if it doesn't already exist
|
||||
async function bundleDb(config, language, codeql, dbName) {
|
||||
const databasePath = getCodeQLDatabasePath(config, language);
|
||||
|
|
@ -523,7 +541,6 @@ async function bundleDb(config, language, codeql, dbName) {
|
|||
await codeql.databaseBundle(databasePath, databaseBundlePath, dbName);
|
||||
return databaseBundlePath;
|
||||
}
|
||||
exports.bundleDb = bundleDb;
|
||||
/**
|
||||
* @param milliseconds time to delay
|
||||
* @param opts options
|
||||
|
|
@ -540,11 +557,9 @@ async function delay(milliseconds, opts) {
|
|||
}
|
||||
});
|
||||
}
|
||||
exports.delay = delay;
|
||||
function isGoodVersion(versionSpec) {
|
||||
return !BROKEN_VERSIONS.includes(versionSpec);
|
||||
}
|
||||
exports.isGoodVersion = isGoodVersion;
|
||||
/*
|
||||
* Returns whether we are in test mode.
|
||||
*
|
||||
|
|
@ -553,7 +568,6 @@ exports.isGoodVersion = isGoodVersion;
|
|||
function isInTestMode() {
|
||||
return process.env[environment_1.EnvVar.TEST_MODE] === "true";
|
||||
}
|
||||
exports.isInTestMode = isInTestMode;
|
||||
/*
|
||||
* Returns whether the path in the argument represents an existing directory.
|
||||
*/
|
||||
|
|
@ -566,7 +580,6 @@ function doesDirectoryExist(dirPath) {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
exports.doesDirectoryExist = doesDirectoryExist;
|
||||
/**
|
||||
* Returns a recursive list of files in a given directory.
|
||||
*/
|
||||
|
|
@ -586,7 +599,6 @@ function listFolder(dir) {
|
|||
}
|
||||
return files;
|
||||
}
|
||||
exports.listFolder = listFolder;
|
||||
/**
|
||||
* Get the size a folder in bytes. This will log any filesystem errors
|
||||
* as a warning and then return undefined.
|
||||
|
|
@ -604,7 +616,6 @@ async function tryGetFolderBytes(cacheDir, logger) {
|
|||
return undefined;
|
||||
}
|
||||
}
|
||||
exports.tryGetFolderBytes = tryGetFolderBytes;
|
||||
let hadTimeout = false;
|
||||
/**
|
||||
* Run a promise for a given amount of time, and if it doesn't resolve within
|
||||
|
|
@ -647,7 +658,6 @@ async function withTimeout(timeoutMs, promise, onTimeout) {
|
|||
};
|
||||
return await Promise.race([mainTask(), timeoutTask()]);
|
||||
}
|
||||
exports.withTimeout = withTimeout;
|
||||
/**
|
||||
* Check if the global hadTimeout variable has been set, and if so then
|
||||
* exit the process to ensure any background tasks that are still running
|
||||
|
|
@ -661,7 +671,6 @@ async function checkForTimeout() {
|
|||
process.exit();
|
||||
}
|
||||
}
|
||||
exports.checkForTimeout = checkForTimeout;
|
||||
/**
|
||||
* This function implements a heuristic to determine whether the
|
||||
* runner we are on is hosted by GitHub. It does this by checking
|
||||
|
|
@ -681,14 +690,12 @@ function isHostedRunner() {
|
|||
// Segment of the path to the tool cache on all hosted runners
|
||||
process.env["RUNNER_TOOL_CACHE"]?.includes("hostedtoolcache"));
|
||||
}
|
||||
exports.isHostedRunner = isHostedRunner;
|
||||
function parseMatrixInput(matrixInput) {
|
||||
if (matrixInput === undefined || matrixInput === "null") {
|
||||
return undefined;
|
||||
}
|
||||
return JSON.parse(matrixInput);
|
||||
}
|
||||
exports.parseMatrixInput = parseMatrixInput;
|
||||
function removeDuplicateLocations(locations) {
|
||||
const newJsonLocations = new Set();
|
||||
return locations.filter((location) => {
|
||||
|
|
@ -749,7 +756,6 @@ function fixInvalidNotifications(sarif, logger) {
|
|||
}
|
||||
return newSarif;
|
||||
}
|
||||
exports.fixInvalidNotifications = fixInvalidNotifications;
|
||||
/**
|
||||
* Removes duplicates from the sarif file.
|
||||
*
|
||||
|
|
@ -772,19 +778,15 @@ function fixInvalidNotificationsInFile(inputPath, outputPath, logger) {
|
|||
fs.writeFileSync(outputPath, JSON.stringify(sarif));
|
||||
}
|
||||
}
|
||||
exports.fixInvalidNotificationsInFile = fixInvalidNotificationsInFile;
|
||||
function wrapError(error) {
|
||||
return error instanceof Error ? error : new Error(String(error));
|
||||
}
|
||||
exports.wrapError = wrapError;
|
||||
function getErrorMessage(error) {
|
||||
return error instanceof Error ? error.toString() : String(error);
|
||||
}
|
||||
exports.getErrorMessage = getErrorMessage;
|
||||
function prettyPrintPack(pack) {
|
||||
return `${pack.name}${pack.version ? `@${pack.version}` : ""}${pack.path ? `:${pack.path}` : ""}`;
|
||||
}
|
||||
exports.prettyPrintPack = prettyPrintPack;
|
||||
async function checkDiskUsage(logger) {
|
||||
try {
|
||||
const diskUsage = await (0, check_disk_space_1.default)(getRequiredEnvParam("GITHUB_WORKSPACE"));
|
||||
|
|
@ -812,7 +814,6 @@ async function checkDiskUsage(logger) {
|
|||
return undefined;
|
||||
}
|
||||
}
|
||||
exports.checkDiskUsage = checkDiskUsage;
|
||||
/**
|
||||
* Prompt the customer to upgrade to CodeQL Action v3, if appropriate.
|
||||
*
|
||||
|
|
@ -842,7 +843,6 @@ function checkActionVersion(version, githubVersion) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.checkActionVersion = checkActionVersion;
|
||||
/**
|
||||
* Supported build modes.
|
||||
*
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
18
lib/workflow.js
generated
18
lib/workflow.js
generated
|
|
@ -26,7 +26,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getCheckoutPathInputOrThrow = exports.getUploadInputOrThrow = exports.getCategoryInputOrThrow = exports.getWorkflow = exports.formatWorkflowCause = exports.formatWorkflowErrors = exports.validateWorkflow = exports.getWorkflowErrors = exports.WorkflowErrors = void 0;
|
||||
exports.WorkflowErrors = void 0;
|
||||
exports.getWorkflowErrors = getWorkflowErrors;
|
||||
exports.validateWorkflow = validateWorkflow;
|
||||
exports.formatWorkflowErrors = formatWorkflowErrors;
|
||||
exports.formatWorkflowCause = formatWorkflowCause;
|
||||
exports.getWorkflow = getWorkflow;
|
||||
exports.getCategoryInputOrThrow = getCategoryInputOrThrow;
|
||||
exports.getUploadInputOrThrow = getUploadInputOrThrow;
|
||||
exports.getCheckoutPathInputOrThrow = getCheckoutPathInputOrThrow;
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
const zlib_1 = __importDefault(require("zlib"));
|
||||
|
|
@ -125,7 +133,6 @@ async function getWorkflowErrors(doc, codeql) {
|
|||
}
|
||||
return errors;
|
||||
}
|
||||
exports.getWorkflowErrors = getWorkflowErrors;
|
||||
function hasWorkflowTrigger(triggerName, doc) {
|
||||
if (!doc.on) {
|
||||
return false;
|
||||
|
|
@ -165,20 +172,17 @@ async function validateWorkflow(codeql, logger) {
|
|||
}
|
||||
return formatWorkflowCause(workflowErrors);
|
||||
}
|
||||
exports.validateWorkflow = validateWorkflow;
|
||||
function formatWorkflowErrors(errors) {
|
||||
const issuesWere = errors.length === 1 ? "issue was" : "issues were";
|
||||
const errorsList = errors.map((e) => e.message).join(" ");
|
||||
return `${errors.length} ${issuesWere} detected with this workflow: ${errorsList}`;
|
||||
}
|
||||
exports.formatWorkflowErrors = formatWorkflowErrors;
|
||||
function formatWorkflowCause(errors) {
|
||||
if (errors.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
return errors.map((e) => e.code).join(",");
|
||||
}
|
||||
exports.formatWorkflowCause = formatWorkflowCause;
|
||||
async function getWorkflow(logger) {
|
||||
// In default setup, the currently executing workflow is not checked into the repository.
|
||||
// Instead, a gzipped then base64 encoded version of the workflow file is provided via the
|
||||
|
|
@ -191,7 +195,6 @@ async function getWorkflow(logger) {
|
|||
const workflowPath = await getWorkflowAbsolutePath(logger);
|
||||
return yaml.load(fs.readFileSync(workflowPath, "utf-8"));
|
||||
}
|
||||
exports.getWorkflow = getWorkflow;
|
||||
/**
|
||||
* Get the absolute path of the currently executing workflow.
|
||||
*/
|
||||
|
|
@ -281,7 +284,6 @@ function getAnalyzeActionName() {
|
|||
function getCategoryInputOrThrow(workflow, jobName, matrixVars) {
|
||||
return getInputOrThrow(workflow, jobName, getAnalyzeActionName(), "category", matrixVars);
|
||||
}
|
||||
exports.getCategoryInputOrThrow = getCategoryInputOrThrow;
|
||||
/**
|
||||
* Makes a best effort attempt to retrieve the upload input for the particular job,
|
||||
* given a set of matrix variables.
|
||||
|
|
@ -294,7 +296,6 @@ exports.getCategoryInputOrThrow = getCategoryInputOrThrow;
|
|||
function getUploadInputOrThrow(workflow, jobName, matrixVars) {
|
||||
return getInputOrThrow(workflow, jobName, getAnalyzeActionName(), "upload", matrixVars);
|
||||
}
|
||||
exports.getUploadInputOrThrow = getUploadInputOrThrow;
|
||||
/**
|
||||
* Makes a best effort attempt to retrieve the checkout_path input for the
|
||||
* particular job, given a set of matrix variables.
|
||||
|
|
@ -308,5 +309,4 @@ function getCheckoutPathInputOrThrow(workflow, jobName, matrixVars) {
|
|||
return (getInputOrThrow(workflow, jobName, getAnalyzeActionName(), "checkout_path", matrixVars) || (0, util_1.getRequiredEnvParam)("GITHUB_WORKSPACE") // if unspecified, checkout_path defaults to ${{ github.workspace }}
|
||||
);
|
||||
}
|
||||
exports.getCheckoutPathInputOrThrow = getCheckoutPathInputOrThrow;
|
||||
//# sourceMappingURL=workflow.js.map
|
||||
File diff suppressed because one or more lines are too long
12
node_modules/.package-lock.json
generated
vendored
12
node_modules/.package-lock.json
generated
vendored
|
|
@ -955,9 +955,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@types/uuid": {
|
||||
"version": "9.0.8",
|
||||
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz",
|
||||
"integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA=="
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz",
|
||||
"integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ=="
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||
"version": "7.13.1",
|
||||
|
|
@ -6011,9 +6011,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.4.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
|
||||
"integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
|
||||
"version": "5.5.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.2.tgz",
|
||||
"integrity": "sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
|
|
|
|||
2
node_modules/@types/uuid/README.md
generated
vendored
2
node_modules/@types/uuid/README.md
generated
vendored
|
|
@ -8,7 +8,7 @@ This package contains type definitions for uuid (https://github.com/uuidjs/uuid)
|
|||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Thu, 25 Jan 2024 23:07:19 GMT
|
||||
* Last updated: Thu, 20 Jun 2024 21:07:25 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
|
|
|
|||
7
node_modules/@types/uuid/index.d.mts
generated
vendored
7
node_modules/@types/uuid/index.d.mts
generated
vendored
|
|
@ -1,12 +1,19 @@
|
|||
import uuid from "./index.js";
|
||||
export import v1 = uuid.v1;
|
||||
export import v1ToV6 = uuid.v1ToV6;
|
||||
export import v3 = uuid.v3;
|
||||
export import v4 = uuid.v4;
|
||||
export import v5 = uuid.v5;
|
||||
export import v6 = uuid.v6;
|
||||
export import v6ToV1 = uuid.v6ToV1;
|
||||
export import v7 = uuid.v7;
|
||||
export import NIL = uuid.NIL;
|
||||
export import MAX = uuid.MAX;
|
||||
export import version = uuid.version;
|
||||
export import validate = uuid.validate;
|
||||
export import stringify = uuid.stringify;
|
||||
export import parse = uuid.parse;
|
||||
export import V1Options = uuid.V1Options;
|
||||
export import V4Options = uuid.V4Options;
|
||||
export import V6Options = uuid.V6Options;
|
||||
export import V7Options = uuid.V7Options;
|
||||
|
|
|
|||
27
node_modules/@types/uuid/index.d.ts
generated
vendored
27
node_modules/@types/uuid/index.d.ts
generated
vendored
|
|
@ -29,11 +29,22 @@ interface V1RngOptions extends V1BaseOptions, RngOptions {}
|
|||
|
||||
export type V1Options = V1RandomOptions | V1RngOptions;
|
||||
export type V4Options = RandomOptions | RngOptions;
|
||||
export type V6Options = V1Options;
|
||||
|
||||
interface V7BaseOptions {
|
||||
msecs?: number | Date | undefined;
|
||||
seq?: number;
|
||||
}
|
||||
export type V7Options = (RandomOptions | RngOptions) & V7BaseOptions;
|
||||
|
||||
type VToV = ((uuid: string) => string) & ((uuid: OutputBuffer) => Uint8Array);
|
||||
|
||||
type v1String = (options?: V1Options) => string;
|
||||
type v1Buffer = <T extends OutputBuffer>(options: V1Options | null | undefined, buffer: T, offset?: number) => T;
|
||||
type v1 = v1Buffer & v1String;
|
||||
|
||||
type v1ToV6 = VToV;
|
||||
|
||||
type v4String = (options?: V4Options) => string;
|
||||
type v4Buffer = <T extends OutputBuffer>(options: V4Options | null | undefined, buffer: T, offset?: number) => T;
|
||||
type v4 = v4Buffer & v4String;
|
||||
|
|
@ -68,7 +79,18 @@ interface v5Static {
|
|||
}
|
||||
type v5 = v5Buffer & v5String & v5Static;
|
||||
|
||||
type v6String = (options?: V6Options) => string;
|
||||
type v6Buffer = <T extends OutputBuffer>(options: V6Options | null | undefined, buffer: T, offset?: number) => T;
|
||||
type v6 = v6Buffer & v6String;
|
||||
|
||||
type v6ToV1 = VToV;
|
||||
|
||||
type v7String = (options?: V7Options) => string;
|
||||
type v7Buffer = <T extends OutputBuffer>(options: V7Options | null | undefined, buffer: T, offset?: number) => T;
|
||||
type v7 = v7Buffer & v7String;
|
||||
|
||||
type NIL = string;
|
||||
type MAX = string;
|
||||
|
||||
type parse = (uuid: string) => Uint8Array;
|
||||
type stringify = (buffer: InputBuffer, offset?: number) => string;
|
||||
|
|
@ -76,11 +98,16 @@ type validate = (uuid: string) => boolean;
|
|||
type version = (uuid: string) => number;
|
||||
|
||||
export const NIL: NIL;
|
||||
export const MAX: MAX;
|
||||
export const parse: parse;
|
||||
export const stringify: stringify;
|
||||
export const v1: v1;
|
||||
export const v1ToV6: v1ToV6;
|
||||
export const v3: v3;
|
||||
export const v4: v4;
|
||||
export const v5: v5;
|
||||
export const v6: v6;
|
||||
export const v6ToV1: v6ToV1;
|
||||
export const v7: v7;
|
||||
export const validate: validate;
|
||||
export const version: version;
|
||||
|
|
|
|||
6
node_modules/@types/uuid/package.json
generated
vendored
6
node_modules/@types/uuid/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@types/uuid",
|
||||
"version": "9.0.8",
|
||||
"version": "10.0.0",
|
||||
"description": "TypeScript definitions for uuid",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid",
|
||||
"license": "MIT",
|
||||
|
|
@ -49,6 +49,6 @@
|
|||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "ee6ba7ad17fbbead7a508faf213a9ad0f49c12929e8c6b0f05fb35129bc72d61",
|
||||
"typeScriptVersion": "4.6"
|
||||
"typesPublisherContentHash": "08fbc5ff7d23aaac1e81b5acf98181d2544ce6ffd5578e9879e2a75f0c087d54",
|
||||
"typeScriptVersion": "4.7"
|
||||
}
|
||||
2
node_modules/typescript/README.md
generated
vendored
2
node_modules/typescript/README.md
generated
vendored
|
|
@ -4,7 +4,7 @@
|
|||
[](https://github.com/microsoft/TypeScript/actions?query=workflow%3ACI)
|
||||
[](https://www.npmjs.com/package/typescript)
|
||||
[](https://www.npmjs.com/package/typescript)
|
||||
[](https://api.securityscorecards.dev/projects/github.com/microsoft/TypeScript)
|
||||
[](https://securityscorecards.dev/viewer/?uri=github.com/microsoft/TypeScript)
|
||||
|
||||
|
||||
[TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescript).
|
||||
|
|
|
|||
5
node_modules/typescript/lib/lib.dom.asynciterable.d.ts
generated
vendored
5
node_modules/typescript/lib/lib.dom.asynciterable.d.ts
generated
vendored
|
|
@ -26,3 +26,8 @@ interface FileSystemDirectoryHandle {
|
|||
keys(): AsyncIterableIterator<string>;
|
||||
values(): AsyncIterableIterator<FileSystemHandle>;
|
||||
}
|
||||
|
||||
interface ReadableStream<R = any> {
|
||||
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
|
||||
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
|
||||
}
|
||||
|
|
|
|||
244
node_modules/typescript/lib/lib.dom.d.ts
generated
vendored
244
node_modules/typescript/lib/lib.dom.d.ts
generated
vendored
|
|
@ -219,6 +219,9 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
|
|||
interface CheckVisibilityOptions {
|
||||
checkOpacity?: boolean;
|
||||
checkVisibilityCSS?: boolean;
|
||||
contentVisibilityAuto?: boolean;
|
||||
opacityProperty?: boolean;
|
||||
visibilityProperty?: boolean;
|
||||
}
|
||||
|
||||
interface ClientQueryOptions {
|
||||
|
|
@ -285,6 +288,10 @@ interface ConstrainULongRange extends ULongRange {
|
|||
ideal?: number;
|
||||
}
|
||||
|
||||
interface ContentVisibilityAutoStateChangeEventInit extends EventInit {
|
||||
skipped?: boolean;
|
||||
}
|
||||
|
||||
interface ConvolverOptions extends AudioNodeOptions {
|
||||
buffer?: AudioBuffer | null;
|
||||
disableNormalization?: boolean;
|
||||
|
|
@ -574,6 +581,8 @@ interface GainOptions extends AudioNodeOptions {
|
|||
|
||||
interface GamepadEffectParameters {
|
||||
duration?: number;
|
||||
leftTrigger?: number;
|
||||
rightTrigger?: number;
|
||||
startDelay?: number;
|
||||
strongMagnitude?: number;
|
||||
weakMagnitude?: number;
|
||||
|
|
@ -1376,8 +1385,8 @@ interface RTCIceCandidateInit {
|
|||
}
|
||||
|
||||
interface RTCIceCandidatePair {
|
||||
local?: RTCIceCandidate;
|
||||
remote?: RTCIceCandidate;
|
||||
local: RTCIceCandidate;
|
||||
remote: RTCIceCandidate;
|
||||
}
|
||||
|
||||
interface RTCIceCandidatePairStats extends RTCStats {
|
||||
|
|
@ -1637,6 +1646,17 @@ interface ReadableStreamGetReaderOptions {
|
|||
mode?: ReadableStreamReaderMode;
|
||||
}
|
||||
|
||||
interface ReadableStreamIteratorOptions {
|
||||
/**
|
||||
* Asynchronously iterates over the chunks in the stream's internal queue.
|
||||
*
|
||||
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
|
||||
*
|
||||
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
|
||||
*/
|
||||
preventCancel?: boolean;
|
||||
}
|
||||
|
||||
interface ReadableStreamReadDoneResult<T> {
|
||||
done: true;
|
||||
value?: T;
|
||||
|
|
@ -1768,21 +1788,22 @@ interface ScrollToOptions extends ScrollOptions {
|
|||
interface SecurityPolicyViolationEventInit extends EventInit {
|
||||
blockedURI?: string;
|
||||
columnNumber?: number;
|
||||
disposition: SecurityPolicyViolationEventDisposition;
|
||||
documentURI: string;
|
||||
effectiveDirective: string;
|
||||
disposition?: SecurityPolicyViolationEventDisposition;
|
||||
documentURI?: string;
|
||||
effectiveDirective?: string;
|
||||
lineNumber?: number;
|
||||
originalPolicy: string;
|
||||
originalPolicy?: string;
|
||||
referrer?: string;
|
||||
sample?: string;
|
||||
sourceFile?: string;
|
||||
statusCode: number;
|
||||
violatedDirective: string;
|
||||
statusCode?: number;
|
||||
violatedDirective?: string;
|
||||
}
|
||||
|
||||
interface ShadowRootInit {
|
||||
delegatesFocus?: boolean;
|
||||
mode: ShadowRootMode;
|
||||
serializable?: boolean;
|
||||
slotAssignment?: SlotAssignmentMode;
|
||||
}
|
||||
|
||||
|
|
@ -2207,6 +2228,8 @@ interface ARIAMixin {
|
|||
ariaAtomic: string | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
|
||||
ariaAutoComplete: string | null;
|
||||
ariaBrailleLabel: string | null;
|
||||
ariaBrailleRoleDescription: string | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
|
||||
ariaBusy: string | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
|
||||
|
|
@ -2339,6 +2362,8 @@ declare var AbortSignal: {
|
|||
new(): AbortSignal;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
|
||||
abort(reason?: any): AbortSignal;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
||||
any(signals: AbortSignal[]): AbortSignal;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
|
||||
timeout(milliseconds: number): AbortSignal;
|
||||
};
|
||||
|
|
@ -3788,6 +3813,16 @@ declare var CSSScale: {
|
|||
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
|
||||
};
|
||||
|
||||
interface CSSScopeRule extends CSSGroupingRule {
|
||||
readonly end: string | null;
|
||||
readonly start: string | null;
|
||||
}
|
||||
|
||||
declare var CSSScopeRule: {
|
||||
prototype: CSSScopeRule;
|
||||
new(): CSSScopeRule;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
|
||||
interface CSSSkew extends CSSTransformComponent {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
|
||||
|
|
@ -3823,6 +3858,15 @@ declare var CSSSkewY: {
|
|||
new(ay: CSSNumericValue): CSSSkewY;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */
|
||||
interface CSSStartingStyleRule extends CSSGroupingRule {
|
||||
}
|
||||
|
||||
declare var CSSStartingStyleRule: {
|
||||
prototype: CSSStartingStyleRule;
|
||||
new(): CSSStartingStyleRule;
|
||||
};
|
||||
|
||||
/**
|
||||
* An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
|
||||
*
|
||||
|
|
@ -4048,6 +4092,7 @@ interface CSSStyleDeclaration {
|
|||
clipRule: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
|
||||
color: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */
|
||||
colorInterpolation: string;
|
||||
colorInterpolationFilters: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
|
||||
|
|
@ -4092,6 +4137,8 @@ interface CSSStyleDeclaration {
|
|||
containerType: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */
|
||||
content: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */
|
||||
contentVisibility: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */
|
||||
counterIncrement: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */
|
||||
|
|
@ -4593,6 +4640,8 @@ interface CSSStyleDeclaration {
|
|||
textUnderlinePosition: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
|
||||
textWrap: string;
|
||||
textWrapMode: string;
|
||||
textWrapStyle: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
|
||||
top: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
|
||||
|
|
@ -4607,6 +4656,8 @@ interface CSSStyleDeclaration {
|
|||
transformStyle: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */
|
||||
transition: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */
|
||||
transitionBehavior: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */
|
||||
transitionDelay: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */
|
||||
|
|
@ -5028,6 +5079,8 @@ interface CSSStyleDeclaration {
|
|||
webkitUserSelect: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */
|
||||
whiteSpace: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */
|
||||
whiteSpaceCollapse: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */
|
||||
widows: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */
|
||||
|
|
@ -5046,6 +5099,8 @@ interface CSSStyleDeclaration {
|
|||
y: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
|
||||
zIndex: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */
|
||||
zoom: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */
|
||||
getPropertyPriority(property: string): string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */
|
||||
|
|
@ -5809,6 +5864,17 @@ declare var ConstantSourceNode: {
|
|||
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */
|
||||
interface ContentVisibilityAutoStateChangeEvent extends Event {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */
|
||||
readonly skipped: boolean;
|
||||
}
|
||||
|
||||
declare var ContentVisibilityAutoStateChangeEvent: {
|
||||
prototype: ContentVisibilityAutoStateChangeEvent;
|
||||
new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent;
|
||||
};
|
||||
|
||||
/**
|
||||
* An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.
|
||||
*
|
||||
|
|
@ -5970,6 +6036,16 @@ declare var CustomEvent: {
|
|||
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */
|
||||
interface CustomStateSet {
|
||||
forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void;
|
||||
}
|
||||
|
||||
declare var CustomStateSet: {
|
||||
prototype: CustomStateSet;
|
||||
new(): CustomStateSet;
|
||||
};
|
||||
|
||||
/**
|
||||
* An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
|
||||
*
|
||||
|
|
@ -7158,6 +7234,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|||
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
|
||||
createEvent(eventInterface: "CloseEvent"): CloseEvent;
|
||||
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
|
||||
createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
|
||||
createEvent(eventInterface: "CustomEvent"): CustomEvent;
|
||||
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
|
||||
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
|
||||
|
|
@ -7419,6 +7496,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|||
declare var Document: {
|
||||
prototype: Document;
|
||||
new(): Document;
|
||||
parseHTMLUnsafe(html: string): Document;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -7869,6 +7947,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
|
|||
setAttributeNode(attr: Attr): Attr | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */
|
||||
setAttributeNodeNS(attr: Attr): Attr | null;
|
||||
setHTMLUnsafe(html: string): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */
|
||||
setPointerCapture(pointerId: number): void;
|
||||
/**
|
||||
|
|
@ -7933,6 +8012,8 @@ interface ElementInternals extends ARIAMixin {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
|
||||
*/
|
||||
readonly shadowRoot: ShadowRoot | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */
|
||||
readonly states: CustomStateSet;
|
||||
/**
|
||||
* Returns the error message that would be shown to the user if internals's target element was to be checked for validity.
|
||||
*
|
||||
|
|
@ -8711,7 +8792,6 @@ declare var GainNode: {
|
|||
|
||||
/**
|
||||
* This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
|
||||
* Available only in secure contexts.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
|
||||
*/
|
||||
|
|
@ -8730,7 +8810,7 @@ interface Gamepad {
|
|||
readonly mapping: GamepadMappingType;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */
|
||||
readonly timestamp: DOMHighResTimeStamp;
|
||||
readonly vibrationActuator: GamepadHapticActuator | null;
|
||||
readonly vibrationActuator: GamepadHapticActuator;
|
||||
}
|
||||
|
||||
declare var Gamepad: {
|
||||
|
|
@ -8740,7 +8820,6 @@ declare var Gamepad: {
|
|||
|
||||
/**
|
||||
* An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
|
||||
* Available only in secure contexts.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
|
||||
*/
|
||||
|
|
@ -8760,7 +8839,6 @@ declare var GamepadButton: {
|
|||
|
||||
/**
|
||||
* This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
|
||||
* Available only in secure contexts.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
|
||||
*/
|
||||
|
|
@ -8780,8 +8858,6 @@ declare var GamepadEvent: {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)
|
||||
*/
|
||||
interface GamepadHapticActuator {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */
|
||||
readonly type: GamepadHapticActuatorType;
|
||||
playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
|
||||
reset(): Promise<GamepadHapticsResult>;
|
||||
}
|
||||
|
|
@ -9492,6 +9568,7 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)
|
||||
*/
|
||||
name: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */
|
||||
ping: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */
|
||||
referrerPolicy: string;
|
||||
|
|
@ -9569,6 +9646,7 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)
|
||||
*/
|
||||
noHref: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */
|
||||
ping: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */
|
||||
referrerPolicy: string;
|
||||
|
|
@ -10164,7 +10242,11 @@ declare var HTMLElement: {
|
|||
interface HTMLEmbedElement extends HTMLElement {
|
||||
/** @deprecated */
|
||||
align: string;
|
||||
/** Sets or retrieves the height of the object. */
|
||||
/**
|
||||
* Sets or retrieves the height of the object.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/height)
|
||||
*/
|
||||
height: string;
|
||||
/**
|
||||
* Sets or retrieves the name of the object.
|
||||
|
|
@ -10174,7 +10256,11 @@ interface HTMLEmbedElement extends HTMLElement {
|
|||
/** Sets or retrieves a URL to be loaded by the object. */
|
||||
src: string;
|
||||
type: string;
|
||||
/** Sets or retrieves the width of the object. */
|
||||
/**
|
||||
* Sets or retrieves the width of the object.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width)
|
||||
*/
|
||||
width: string;
|
||||
getSVGDocument(): Document | null;
|
||||
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
|
|
@ -10747,6 +10833,7 @@ interface HTMLIFrameElement extends HTMLElement {
|
|||
*/
|
||||
align: string;
|
||||
allow: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen) */
|
||||
allowFullscreen: boolean;
|
||||
/**
|
||||
* Retrieves the document object of the page or frame.
|
||||
|
|
@ -10773,6 +10860,7 @@ interface HTMLIFrameElement extends HTMLElement {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
|
||||
*/
|
||||
height: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */
|
||||
loading: string;
|
||||
/**
|
||||
* Sets or retrieves a URI to a long description of the object.
|
||||
|
|
@ -11012,7 +11100,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|||
checked: boolean;
|
||||
/** Sets or retrieves the state of the check box or radio button. */
|
||||
defaultChecked: boolean;
|
||||
/** Sets or retrieves the initial contents of the object. */
|
||||
/**
|
||||
* Sets or retrieves the initial contents of the object.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)
|
||||
*/
|
||||
defaultValue: string;
|
||||
dirName: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
|
||||
|
|
@ -11071,12 +11163,25 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
|
||||
*/
|
||||
readonly list: HTMLDataListElement | null;
|
||||
/** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
|
||||
/**
|
||||
* Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)
|
||||
*/
|
||||
max: string;
|
||||
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
|
||||
/**
|
||||
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
|
||||
*/
|
||||
maxLength: number;
|
||||
/** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
|
||||
/**
|
||||
* Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)
|
||||
*/
|
||||
min: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */
|
||||
minLength: number;
|
||||
/**
|
||||
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
||||
|
|
@ -11107,16 +11212,28 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|||
required: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
|
||||
selectionDirection: "forward" | "backward" | "none" | null;
|
||||
/** Gets or sets the end position or offset of a text selection. */
|
||||
/**
|
||||
* Gets or sets the end position or offset of a text selection.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd)
|
||||
*/
|
||||
selectionEnd: number | null;
|
||||
/** Gets or sets the starting position or offset of a text selection. */
|
||||
/**
|
||||
* Gets or sets the starting position or offset of a text selection.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart)
|
||||
*/
|
||||
selectionStart: number | null;
|
||||
size: number;
|
||||
/** The address or URL of the a media resource that is to be considered. */
|
||||
src: string;
|
||||
/** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
|
||||
step: string;
|
||||
/** Returns the content type of the object. */
|
||||
/**
|
||||
* Returns the content type of the object.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type)
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
||||
|
|
@ -11135,7 +11252,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
|
||||
*/
|
||||
readonly validity: ValidityState;
|
||||
/** Returns the value of the data at the cursor's current position. */
|
||||
/**
|
||||
* Returns the value of the data at the cursor's current position.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
|
||||
*/
|
||||
value: string;
|
||||
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
|
||||
valueAsDate: Date | null;
|
||||
|
|
@ -11695,16 +11816,31 @@ declare var HTMLMenuElement: {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)
|
||||
*/
|
||||
interface HTMLMetaElement extends HTMLElement {
|
||||
/** Gets or sets meta-information to associate with httpEquiv or name. */
|
||||
/**
|
||||
* Gets or sets meta-information to associate with httpEquiv or name.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/content)
|
||||
*/
|
||||
content: string;
|
||||
/** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
|
||||
/**
|
||||
* Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/httpEquiv)
|
||||
*/
|
||||
httpEquiv: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/media) */
|
||||
media: string;
|
||||
/** Sets or retrieves the value specified in the content attribute of the meta object. */
|
||||
/**
|
||||
* Sets or retrieves the value specified in the content attribute of the meta object.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/name)
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
|
||||
* @deprecated
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/scheme)
|
||||
*/
|
||||
scheme: string;
|
||||
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
|
|
@ -11916,6 +12052,7 @@ interface HTMLObjectElement extends HTMLElement {
|
|||
type: string;
|
||||
/**
|
||||
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
||||
* @deprecated
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
|
||||
*/
|
||||
|
|
@ -12470,7 +12607,7 @@ interface HTMLSelectElement extends HTMLElement {
|
|||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
|
||||
*/
|
||||
readonly type: string;
|
||||
readonly type: "select-one" | "select-multiple";
|
||||
/**
|
||||
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
||||
*
|
||||
|
|
@ -12582,6 +12719,7 @@ declare var HTMLSlotElement: {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)
|
||||
*/
|
||||
interface HTMLSourceElement extends HTMLElement {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height) */
|
||||
height: number;
|
||||
/**
|
||||
* Gets or sets the intended media type of the media source.
|
||||
|
|
@ -12605,6 +12743,7 @@ interface HTMLSourceElement extends HTMLElement {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
|
||||
*/
|
||||
type: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width) */
|
||||
width: number;
|
||||
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||
|
|
@ -13246,7 +13385,11 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|||
selectionStart: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
|
||||
readonly textLength: number;
|
||||
/** Retrieves the type of control. */
|
||||
/**
|
||||
* Retrieves the type of control.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type)
|
||||
*/
|
||||
readonly type: string;
|
||||
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
|
||||
readonly validationMessage: string;
|
||||
|
|
@ -13469,11 +13612,13 @@ interface HTMLVideoElement extends HTMLMediaElement {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)
|
||||
*/
|
||||
width: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback) */
|
||||
cancelVideoFrameCallback(handle: number): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */
|
||||
getVideoPlaybackQuality(): VideoPlaybackQuality;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */
|
||||
requestPictureInPicture(): Promise<PictureInPictureWindow>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback) */
|
||||
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
|
||||
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||
|
|
@ -14555,6 +14700,29 @@ declare var KeyframeEffect: {
|
|||
new(source: KeyframeEffect): KeyframeEffect;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint) */
|
||||
interface LargestContentfulPaint extends PerformanceEntry {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element) */
|
||||
readonly element: Element | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id) */
|
||||
readonly id: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime) */
|
||||
readonly loadTime: DOMHighResTimeStamp;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */
|
||||
readonly renderTime: DOMHighResTimeStamp;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size) */
|
||||
readonly size: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url) */
|
||||
readonly url: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */
|
||||
toJSON(): any;
|
||||
}
|
||||
|
||||
declare var LargestContentfulPaint: {
|
||||
prototype: LargestContentfulPaint;
|
||||
new(): LargestContentfulPaint;
|
||||
};
|
||||
|
||||
interface LinkStyle {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */
|
||||
readonly sheet: CSSStyleSheet | null;
|
||||
|
|
@ -21392,6 +21560,8 @@ interface ShadowRootEventMap {
|
|||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
|
||||
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */
|
||||
readonly clonable: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
|
||||
readonly delegatesFocus: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
|
||||
|
|
@ -21401,6 +21571,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
|||
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
|
||||
readonly slotAssignment: SlotAssignmentMode;
|
||||
setHTMLUnsafe(html: string): void;
|
||||
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
|
||||
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||
|
|
@ -25921,7 +26092,11 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|||
readonly window: Window & typeof globalThis;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
|
||||
alert(message?: any): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
|
||||
/**
|
||||
* @deprecated
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
|
||||
*/
|
||||
blur(): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
|
||||
cancelIdleCallback(handle: number): void;
|
||||
|
|
@ -27546,7 +27721,11 @@ declare var visualViewport: VisualViewport | null;
|
|||
declare var window: Window & typeof globalThis;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
|
||||
declare function alert(message?: any): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
|
||||
/**
|
||||
* @deprecated
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
|
||||
*/
|
||||
declare function blur(): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
|
||||
declare function cancelIdleCallback(handle: number): void;
|
||||
|
|
@ -28293,8 +28472,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|||
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
||||
type FontFaceSetLoadStatus = "loaded" | "loading";
|
||||
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
||||
type GamepadHapticActuatorType = "vibration";
|
||||
type GamepadHapticEffectType = "dual-rumble";
|
||||
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
||||
type GamepadHapticsResult = "complete" | "preempted";
|
||||
type GamepadMappingType = "" | "standard" | "xr-standard";
|
||||
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
||||
|
|
|
|||
8
node_modules/typescript/lib/lib.dom.iterable.d.ts
generated
vendored
8
node_modules/typescript/lib/lib.dom.iterable.d.ts
generated
vendored
|
|
@ -20,6 +20,11 @@ and limitations under the License.
|
|||
/// Window Iterable APIs
|
||||
/////////////////////////////
|
||||
|
||||
interface AbortSignal {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
||||
any(signals: Iterable<AbortSignal>): AbortSignal;
|
||||
}
|
||||
|
||||
interface AudioParam {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
|
||||
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
||||
|
|
@ -83,6 +88,9 @@ interface CanvasPathDrawingStyles {
|
|||
setLineDash(segments: Iterable<number>): void;
|
||||
}
|
||||
|
||||
interface CustomStateSet extends Set<string> {
|
||||
}
|
||||
|
||||
interface DOMRectList {
|
||||
[Symbol.iterator](): IterableIterator<DOMRect>;
|
||||
}
|
||||
|
|
|
|||
40
node_modules/typescript/lib/lib.es2015.core.d.ts
generated
vendored
40
node_modules/typescript/lib/lib.es2015.core.d.ts
generated
vendored
|
|
@ -60,6 +60,8 @@ interface Array<T> {
|
|||
* @param end If not specified, length of the this object is used as its default value.
|
||||
*/
|
||||
copyWithin(target: number, start: number, end?: number): this;
|
||||
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
||||
}
|
||||
|
||||
interface ArrayConstructor {
|
||||
|
|
@ -360,6 +362,8 @@ interface ReadonlyArray<T> {
|
|||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
|
||||
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
||||
}
|
||||
|
||||
interface RegExp {
|
||||
|
|
@ -555,3 +559,39 @@ interface StringConstructor {
|
|||
*/
|
||||
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
|
||||
}
|
||||
|
||||
interface Int8Array {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Uint8Array {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Uint8ClampedArray {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Int16Array {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Uint16Array {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Int32Array {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Uint32Array {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Float32Array {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Float64Array {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
|
|
|||
20
node_modules/typescript/lib/lib.es2018.intl.d.ts
generated
vendored
20
node_modules/typescript/lib/lib.es2018.intl.d.ts
generated
vendored
|
|
@ -55,10 +55,22 @@ declare namespace Intl {
|
|||
|
||||
const PluralRules: PluralRulesConstructor;
|
||||
|
||||
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
|
||||
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
|
||||
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
|
||||
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
|
||||
interface NumberFormatPartTypeRegistry {
|
||||
literal: never;
|
||||
nan: never;
|
||||
infinity: never;
|
||||
percent: never;
|
||||
integer: never;
|
||||
group: never;
|
||||
decimal: never;
|
||||
fraction: never;
|
||||
plusSign: never;
|
||||
minusSign: never;
|
||||
percentSign: never;
|
||||
currency: never;
|
||||
}
|
||||
|
||||
type NumberFormatPartTypes = keyof NumberFormatPartTypeRegistry;
|
||||
|
||||
interface NumberFormatPart {
|
||||
type: NumberFormatPartTypes;
|
||||
|
|
|
|||
2
node_modules/typescript/lib/lib.es2019.intl.d.ts
generated
vendored
2
node_modules/typescript/lib/lib.es2019.intl.d.ts
generated
vendored
|
|
@ -18,6 +18,6 @@ and limitations under the License.
|
|||
|
||||
declare namespace Intl {
|
||||
interface DateTimeFormatPartTypesRegistry {
|
||||
unknown: any;
|
||||
unknown: never;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
5
node_modules/typescript/lib/lib.es2020.bigint.d.ts
generated
vendored
5
node_modules/typescript/lib/lib.es2020.bigint.d.ts
generated
vendored
|
|
@ -369,7 +369,7 @@ interface BigInt64Array {
|
|||
subarray(begin?: number, end?: number): BigInt64Array;
|
||||
|
||||
/** Converts the array to a string by using the current locale. */
|
||||
toLocaleString(): string;
|
||||
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
|
||||
/** Returns a string representation of the array. */
|
||||
toString(): string;
|
||||
|
|
@ -641,7 +641,7 @@ interface BigUint64Array {
|
|||
subarray(begin?: number, end?: number): BigUint64Array;
|
||||
|
||||
/** Converts the array to a string by using the current locale. */
|
||||
toLocaleString(): string;
|
||||
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
|
||||
/** Returns a string representation of the array. */
|
||||
toString(): string;
|
||||
|
|
@ -723,6 +723,5 @@ interface DataView {
|
|||
declare namespace Intl {
|
||||
interface NumberFormat {
|
||||
format(value: number | bigint): string;
|
||||
resolvedOptions(): ResolvedNumberFormatOptions;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
39
node_modules/typescript/lib/lib.es2020.intl.d.ts
generated
vendored
39
node_modules/typescript/lib/lib.es2020.intl.d.ts
generated
vendored
|
|
@ -241,24 +241,49 @@ declare namespace Intl {
|
|||
): UnicodeBCP47LocaleIdentifier[];
|
||||
};
|
||||
|
||||
interface NumberFormatOptionsStyleRegistry {
|
||||
unit: never;
|
||||
}
|
||||
|
||||
interface NumberFormatOptionsCurrencyDisplayRegistry {
|
||||
narrowSymbol: never;
|
||||
}
|
||||
|
||||
interface NumberFormatOptionsSignDisplayRegistry {
|
||||
auto: never;
|
||||
never: never;
|
||||
always: never;
|
||||
exceptZero: never;
|
||||
}
|
||||
|
||||
type NumberFormatOptionsSignDisplay = keyof NumberFormatOptionsSignDisplayRegistry;
|
||||
|
||||
interface NumberFormatOptions {
|
||||
numberingSystem?: string | undefined;
|
||||
compactDisplay?: "short" | "long" | undefined;
|
||||
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
|
||||
signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
|
||||
signDisplay?: NumberFormatOptionsSignDisplay | undefined;
|
||||
unit?: string | undefined;
|
||||
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
||||
currencyDisplay?: string | undefined;
|
||||
currencySign?: string | undefined;
|
||||
currencySign?: "standard" | "accounting" | undefined;
|
||||
}
|
||||
|
||||
interface ResolvedNumberFormatOptions {
|
||||
compactDisplay?: "short" | "long";
|
||||
notation?: "standard" | "scientific" | "engineering" | "compact";
|
||||
signDisplay?: "auto" | "never" | "always" | "exceptZero";
|
||||
notation: "standard" | "scientific" | "engineering" | "compact";
|
||||
signDisplay: NumberFormatOptionsSignDisplay;
|
||||
unit?: string;
|
||||
unitDisplay?: "short" | "long" | "narrow";
|
||||
currencyDisplay?: string;
|
||||
currencySign?: string;
|
||||
currencySign?: "standard" | "accounting";
|
||||
}
|
||||
|
||||
interface NumberFormatPartTypeRegistry {
|
||||
compact: never;
|
||||
exponentInteger: never;
|
||||
exponentMinusSign: never;
|
||||
exponentSeparator: never;
|
||||
unit: never;
|
||||
unknown: never;
|
||||
}
|
||||
|
||||
interface DateTimeFormatOptions {
|
||||
|
|
|
|||
2
node_modules/typescript/lib/lib.es2021.weakref.d.ts
generated
vendored
2
node_modules/typescript/lib/lib.es2021.weakref.d.ts
generated
vendored
|
|
@ -60,7 +60,7 @@ interface FinalizationRegistry<T> {
|
|||
* @param unregisterToken The token that was used as the unregisterToken argument when calling
|
||||
* register to register the target value.
|
||||
*/
|
||||
unregister(unregisterToken: WeakKey): void;
|
||||
unregister(unregisterToken: WeakKey): boolean;
|
||||
}
|
||||
|
||||
interface FinalizationRegistryConstructor {
|
||||
|
|
|
|||
2
node_modules/typescript/lib/lib.es2022.regexp.d.ts
generated
vendored
2
node_modules/typescript/lib/lib.es2022.regexp.d.ts
generated
vendored
|
|
@ -32,7 +32,7 @@ interface RegExpIndicesArray extends Array<[number, number]> {
|
|||
|
||||
interface RegExp {
|
||||
/**
|
||||
* Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.
|
||||
* Returns a Boolean value indicating the state of the hasIndices flag (d) used with a regular expression.
|
||||
* Default is false. Read-only.
|
||||
*/
|
||||
readonly hasIndices: boolean;
|
||||
|
|
|
|||
1
node_modules/typescript/lib/lib.es2023.d.ts
generated
vendored
1
node_modules/typescript/lib/lib.es2023.d.ts
generated
vendored
|
|
@ -19,3 +19,4 @@ and limitations under the License.
|
|||
/// <reference lib="es2022" />
|
||||
/// <reference lib="es2023.array" />
|
||||
/// <reference lib="es2023.collection" />
|
||||
/// <reference lib="es2023.intl" />
|
||||
|
|
|
|||
56
node_modules/typescript/lib/lib.es2023.intl.d.ts
generated
vendored
Normal file
56
node_modules/typescript/lib/lib.es2023.intl.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
declare namespace Intl {
|
||||
interface NumberFormatOptionsUseGroupingRegistry {
|
||||
min2: never;
|
||||
auto: never;
|
||||
always: never;
|
||||
}
|
||||
|
||||
interface NumberFormatOptionsSignDisplayRegistry {
|
||||
negative: never;
|
||||
}
|
||||
|
||||
interface NumberFormatOptions {
|
||||
roundingPriority?: "auto" | "morePrecision" | "lessPrecision" | undefined;
|
||||
roundingIncrement?: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 | undefined;
|
||||
roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
||||
trailingZeroDisplay?: "auto" | "stripIfInteger" | undefined;
|
||||
}
|
||||
|
||||
interface ResolvedNumberFormatOptions {
|
||||
roundingPriority: "auto" | "morePrecision" | "lessPrecision";
|
||||
roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven";
|
||||
roundingIncrement: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000;
|
||||
trailingZeroDisplay: "auto" | "stripIfInteger";
|
||||
}
|
||||
|
||||
interface NumberRangeFormatPart extends NumberFormatPart {
|
||||
source: "startRange" | "endRange" | "shared";
|
||||
}
|
||||
|
||||
type StringNumericLiteral = `${number}` | "Infinity" | "-Infinity" | "+Infinity";
|
||||
|
||||
interface NumberFormat {
|
||||
format(value: number | bigint | StringNumericLiteral): string;
|
||||
formatToParts(value: number | bigint | StringNumericLiteral): NumberFormatPart[];
|
||||
formatRange(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): string;
|
||||
formatRangeToParts(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): NumberRangeFormatPart[];
|
||||
}
|
||||
}
|
||||
40
node_modules/typescript/lib/lib.es5.d.ts
generated
vendored
40
node_modules/typescript/lib/lib.es5.d.ts
generated
vendored
|
|
@ -818,7 +818,7 @@ interface Date {
|
|||
getMilliseconds(): number;
|
||||
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
|
||||
getUTCMilliseconds(): number;
|
||||
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
|
||||
/** Gets the difference in minutes between Universal Coordinated Time (UTC) and the time on the local computer. */
|
||||
getTimezoneOffset(): number;
|
||||
/**
|
||||
* Sets the date and time value in the Date object.
|
||||
|
|
@ -4433,12 +4433,33 @@ declare namespace Intl {
|
|||
|
||||
var Collator: CollatorConstructor;
|
||||
|
||||
interface NumberFormatOptionsStyleRegistry {
|
||||
decimal: never;
|
||||
percent: never;
|
||||
currency: never;
|
||||
}
|
||||
|
||||
type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry;
|
||||
|
||||
interface NumberFormatOptionsCurrencyDisplayRegistry {
|
||||
code: never;
|
||||
symbol: never;
|
||||
name: never;
|
||||
}
|
||||
|
||||
type NumberFormatOptionsCurrencyDisplay = keyof NumberFormatOptionsCurrencyDisplayRegistry;
|
||||
|
||||
interface NumberFormatOptionsUseGroupingRegistry {}
|
||||
|
||||
type NumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false" | boolean;
|
||||
type ResolvedNumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | false;
|
||||
|
||||
interface NumberFormatOptions {
|
||||
localeMatcher?: string | undefined;
|
||||
style?: string | undefined;
|
||||
localeMatcher?: "lookup" | "best fit" | undefined;
|
||||
style?: NumberFormatOptionsStyle | undefined;
|
||||
currency?: string | undefined;
|
||||
currencySign?: string | undefined;
|
||||
useGrouping?: boolean | undefined;
|
||||
currencyDisplay?: NumberFormatOptionsCurrencyDisplay | undefined;
|
||||
useGrouping?: NumberFormatOptionsUseGrouping | undefined;
|
||||
minimumIntegerDigits?: number | undefined;
|
||||
minimumFractionDigits?: number | undefined;
|
||||
maximumFractionDigits?: number | undefined;
|
||||
|
|
@ -4449,14 +4470,15 @@ declare namespace Intl {
|
|||
interface ResolvedNumberFormatOptions {
|
||||
locale: string;
|
||||
numberingSystem: string;
|
||||
style: string;
|
||||
style: NumberFormatOptionsStyle;
|
||||
currency?: string;
|
||||
currencyDisplay?: NumberFormatOptionsCurrencyDisplay;
|
||||
minimumIntegerDigits: number;
|
||||
minimumFractionDigits: number;
|
||||
maximumFractionDigits: number;
|
||||
minimumFractionDigits?: number;
|
||||
maximumFractionDigits?: number;
|
||||
minimumSignificantDigits?: number;
|
||||
maximumSignificantDigits?: number;
|
||||
useGrouping: boolean;
|
||||
useGrouping: ResolvedNumberFormatOptionsUseGrouping;
|
||||
}
|
||||
|
||||
interface NumberFormat {
|
||||
|
|
|
|||
35
node_modules/typescript/lib/lib.esnext.array.d.ts
generated
vendored
Normal file
35
node_modules/typescript/lib/lib.esnext.array.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
interface ArrayConstructor {
|
||||
/**
|
||||
* Creates an array from an async iterator or iterable object.
|
||||
* @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
|
||||
*/
|
||||
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
||||
|
||||
/**
|
||||
* Creates an array from an async iterator or iterable object.
|
||||
*
|
||||
* @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of itarableOrArrayLike.
|
||||
* Each return value is awaited before being added to result array.
|
||||
* @param thisArg Value of 'this' used when executing mapfn.
|
||||
*/
|
||||
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
||||
}
|
||||
77
node_modules/typescript/lib/lib.esnext.collection.d.ts
generated
vendored
77
node_modules/typescript/lib/lib.esnext.collection.d.ts
generated
vendored
|
|
@ -27,3 +27,80 @@ interface MapConstructor {
|
|||
keySelector: (item: T, index: number) => K,
|
||||
): Map<K, T[]>;
|
||||
}
|
||||
|
||||
interface ReadonlySetLike<T> {
|
||||
/**
|
||||
* Despite its name, returns an iterator of the values in the set-like.
|
||||
*/
|
||||
keys(): Iterator<T>;
|
||||
/**
|
||||
* @returns a boolean indicating whether an element with the specified value exists in the set-like or not.
|
||||
*/
|
||||
has(value: T): boolean;
|
||||
/**
|
||||
* @returns the number of (unique) elements in the set-like.
|
||||
*/
|
||||
readonly size: number;
|
||||
}
|
||||
|
||||
interface Set<T> {
|
||||
/**
|
||||
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
|
||||
*/
|
||||
union<U>(other: ReadonlySetLike<U>): Set<T | U>;
|
||||
/**
|
||||
* @returns a new Set containing all the elements which are both in this Set and in the argument.
|
||||
*/
|
||||
intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
|
||||
/**
|
||||
* @returns a new Set containing all the elements in this Set which are not also in the argument.
|
||||
*/
|
||||
difference<U>(other: ReadonlySetLike<U>): Set<T>;
|
||||
/**
|
||||
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
|
||||
*/
|
||||
symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
|
||||
/**
|
||||
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
|
||||
*/
|
||||
isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
|
||||
/**
|
||||
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
|
||||
*/
|
||||
isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
|
||||
/**
|
||||
* @returns a boolean indicating whether this Set has no elements in common with the argument.
|
||||
*/
|
||||
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
|
||||
}
|
||||
|
||||
interface ReadonlySet<T> {
|
||||
/**
|
||||
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
|
||||
*/
|
||||
union<U>(other: ReadonlySetLike<U>): Set<T | U>;
|
||||
/**
|
||||
* @returns a new Set containing all the elements which are both in this Set and in the argument.
|
||||
*/
|
||||
intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
|
||||
/**
|
||||
* @returns a new Set containing all the elements in this Set which are not also in the argument.
|
||||
*/
|
||||
difference<U>(other: ReadonlySetLike<U>): Set<T>;
|
||||
/**
|
||||
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
|
||||
*/
|
||||
symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
|
||||
/**
|
||||
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
|
||||
*/
|
||||
isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
|
||||
/**
|
||||
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
|
||||
*/
|
||||
isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
|
||||
/**
|
||||
* @returns a boolean indicating whether this Set has no elements in common with the argument.
|
||||
*/
|
||||
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
|
||||
}
|
||||
|
|
|
|||
3
node_modules/typescript/lib/lib.esnext.d.ts
generated
vendored
3
node_modules/typescript/lib/lib.esnext.d.ts
generated
vendored
|
|
@ -23,3 +23,6 @@ and limitations under the License.
|
|||
/// <reference lib="esnext.promise" />
|
||||
/// <reference lib="esnext.object" />
|
||||
/// <reference lib="esnext.collection" />
|
||||
/// <reference lib="esnext.array" />
|
||||
/// <reference lib="esnext.regexp" />
|
||||
/// <reference lib="esnext.string" />
|
||||
|
|
|
|||
9
node_modules/typescript/lib/lib.esnext.intl.d.ts
generated
vendored
9
node_modules/typescript/lib/lib.esnext.intl.d.ts
generated
vendored
|
|
@ -17,12 +17,5 @@ and limitations under the License.
|
|||
/// <reference no-default-lib="true"/>
|
||||
|
||||
declare namespace Intl {
|
||||
interface NumberRangeFormatPart extends NumberFormatPart {
|
||||
source: "startRange" | "endRange" | "shared";
|
||||
}
|
||||
|
||||
interface NumberFormat {
|
||||
formatRange(start: number | bigint, end: number | bigint): string;
|
||||
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
|
||||
}
|
||||
// Empty
|
||||
}
|
||||
|
|
|
|||
25
node_modules/typescript/lib/lib.esnext.regexp.d.ts
generated
vendored
Normal file
25
node_modules/typescript/lib/lib.esnext.regexp.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
interface RegExp {
|
||||
/**
|
||||
* Returns a Boolean value indicating the state of the unicodeSets flag (v) used with a regular expression.
|
||||
* Default is false. Read-only.
|
||||
*/
|
||||
readonly unicodeSets: boolean;
|
||||
}
|
||||
29
node_modules/typescript/lib/lib.esnext.string.d.ts
generated
vendored
Normal file
29
node_modules/typescript/lib/lib.esnext.string.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
interface String {
|
||||
/**
|
||||
* Returns true if all leading surrogates and trailing surrogates appear paired and in order.
|
||||
*/
|
||||
isWellFormed(): boolean;
|
||||
|
||||
/**
|
||||
* Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).
|
||||
*/
|
||||
toWellFormed(): string;
|
||||
}
|
||||
5
node_modules/typescript/lib/lib.webworker.asynciterable.d.ts
generated
vendored
5
node_modules/typescript/lib/lib.webworker.asynciterable.d.ts
generated
vendored
|
|
@ -26,3 +26,8 @@ interface FileSystemDirectoryHandle {
|
|||
keys(): AsyncIterableIterator<string>;
|
||||
values(): AsyncIterableIterator<FileSystemHandle>;
|
||||
}
|
||||
|
||||
interface ReadableStream<R = any> {
|
||||
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
|
||||
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
|
||||
}
|
||||
|
|
|
|||
26
node_modules/typescript/lib/lib.webworker.d.ts
generated
vendored
26
node_modules/typescript/lib/lib.webworker.d.ts
generated
vendored
|
|
@ -550,6 +550,17 @@ interface ReadableStreamGetReaderOptions {
|
|||
mode?: ReadableStreamReaderMode;
|
||||
}
|
||||
|
||||
interface ReadableStreamIteratorOptions {
|
||||
/**
|
||||
* Asynchronously iterates over the chunks in the stream's internal queue.
|
||||
*
|
||||
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
|
||||
*
|
||||
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
|
||||
*/
|
||||
preventCancel?: boolean;
|
||||
}
|
||||
|
||||
interface ReadableStreamReadDoneResult<T> {
|
||||
done: true;
|
||||
value?: T;
|
||||
|
|
@ -647,16 +658,16 @@ interface RsaPssParams extends Algorithm {
|
|||
interface SecurityPolicyViolationEventInit extends EventInit {
|
||||
blockedURI?: string;
|
||||
columnNumber?: number;
|
||||
disposition: SecurityPolicyViolationEventDisposition;
|
||||
documentURI: string;
|
||||
effectiveDirective: string;
|
||||
disposition?: SecurityPolicyViolationEventDisposition;
|
||||
documentURI?: string;
|
||||
effectiveDirective?: string;
|
||||
lineNumber?: number;
|
||||
originalPolicy: string;
|
||||
originalPolicy?: string;
|
||||
referrer?: string;
|
||||
sample?: string;
|
||||
sourceFile?: string;
|
||||
statusCode: number;
|
||||
violatedDirective: string;
|
||||
statusCode?: number;
|
||||
violatedDirective?: string;
|
||||
}
|
||||
|
||||
interface StorageEstimate {
|
||||
|
|
@ -971,6 +982,8 @@ declare var AbortSignal: {
|
|||
new(): AbortSignal;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
|
||||
abort(reason?: any): AbortSignal;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
||||
any(signals: AbortSignal[]): AbortSignal;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
|
||||
timeout(milliseconds: number): AbortSignal;
|
||||
};
|
||||
|
|
@ -5221,6 +5234,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|||
|
||||
/**
|
||||
* This ServiceWorker API interface represents the global execution context of a service worker.
|
||||
* Available only in secure contexts.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
|
||||
*/
|
||||
|
|
|
|||
5
node_modules/typescript/lib/lib.webworker.iterable.d.ts
generated
vendored
5
node_modules/typescript/lib/lib.webworker.iterable.d.ts
generated
vendored
|
|
@ -20,6 +20,11 @@ and limitations under the License.
|
|||
/// Worker Iterable APIs
|
||||
/////////////////////////////
|
||||
|
||||
interface AbortSignal {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
||||
any(signals: Iterable<AbortSignal>): AbortSignal;
|
||||
}
|
||||
|
||||
interface CSSNumericArray {
|
||||
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
|
||||
entries(): IterableIterator<[number, CSSNumericValue]>;
|
||||
|
|
|
|||
16607
node_modules/typescript/lib/tsc.js
generated
vendored
16607
node_modules/typescript/lib/tsc.js
generated
vendored
File diff suppressed because one or more lines are too long
191286
node_modules/typescript/lib/tsserver.js
generated
vendored
191286
node_modules/typescript/lib/tsserver.js
generated
vendored
File diff suppressed because one or more lines are too long
6156
node_modules/typescript/lib/typescript.d.ts
generated
vendored
6156
node_modules/typescript/lib/typescript.d.ts
generated
vendored
File diff suppressed because it is too large
Load diff
370937
node_modules/typescript/lib/typescript.js
generated
vendored
370937
node_modules/typescript/lib/typescript.js
generated
vendored
File diff suppressed because one or more lines are too long
32468
node_modules/typescript/lib/typingsInstaller.js
generated
vendored
32468
node_modules/typescript/lib/typingsInstaller.js
generated
vendored
File diff suppressed because one or more lines are too long
46
node_modules/typescript/package.json
generated
vendored
46
node_modules/typescript/package.json
generated
vendored
|
|
@ -2,7 +2,7 @@
|
|||
"name": "typescript",
|
||||
"author": "Microsoft Corp.",
|
||||
"homepage": "https://www.typescriptlang.org/",
|
||||
"version": "5.4.5",
|
||||
"version": "5.5.2",
|
||||
"license": "Apache-2.0",
|
||||
"description": "TypeScript is a language for application scale JavaScript development",
|
||||
"keywords": [
|
||||
|
|
@ -39,10 +39,11 @@
|
|||
"!**/.gitattributes"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@dprint/formatter": "^0.3.0",
|
||||
"@dprint/typescript": "0.91.0",
|
||||
"@esfx/canceltoken": "^1.0.0",
|
||||
"@octokit/rest": "^20.0.2",
|
||||
"@types/chai": "^4.3.11",
|
||||
"@types/glob": "^8.1.0",
|
||||
"@octokit/rest": "^20.1.1",
|
||||
"@types/chai": "^4.3.16",
|
||||
"@types/microsoft__typescript-etw": "^0.1.3",
|
||||
"@types/minimist": "^1.2.5",
|
||||
"@types/mocha": "^10.0.6",
|
||||
|
|
@ -50,35 +51,33 @@
|
|||
"@types/node": "latest",
|
||||
"@types/source-map-support": "^0.5.10",
|
||||
"@types/which": "^3.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
||||
"@typescript-eslint/parser": "^6.19.0",
|
||||
"@typescript-eslint/utils": "^6.19.0",
|
||||
"azure-devops-node-api": "^12.3.0",
|
||||
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
||||
"@typescript-eslint/parser": "^7.11.0",
|
||||
"@typescript-eslint/utils": "^7.11.0",
|
||||
"azure-devops-node-api": "^13.0.0",
|
||||
"c8": "^9.1.0",
|
||||
"chai": "^4.4.1",
|
||||
"chalk": "^4.1.2",
|
||||
"chokidar": "^3.5.3",
|
||||
"diff": "^5.1.0",
|
||||
"dprint": "^0.45.0",
|
||||
"esbuild": "^0.20.0",
|
||||
"eslint": "^8.56.0",
|
||||
"chokidar": "^3.6.0",
|
||||
"diff": "^5.2.0",
|
||||
"dprint": "^0.46.1",
|
||||
"esbuild": "^0.21.4",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-formatter-autolinkable-stylish": "^1.3.0",
|
||||
"eslint-plugin-local": "^3.1.0",
|
||||
"eslint-plugin-no-null": "^1.0.2",
|
||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||
"fast-xml-parser": "^4.3.3",
|
||||
"glob": "^10.3.10",
|
||||
"eslint-plugin-local": "^4.2.2",
|
||||
"fast-xml-parser": "^4.4.0",
|
||||
"glob": "^10.4.1",
|
||||
"hereby": "^1.8.9",
|
||||
"jsonc-parser": "^3.2.0",
|
||||
"jsonc-parser": "^3.2.1",
|
||||
"minimist": "^1.2.8",
|
||||
"mocha": "^10.2.0",
|
||||
"mocha": "^10.4.0",
|
||||
"mocha-fivemat-progress-reporter": "^0.1.0",
|
||||
"ms": "^2.1.3",
|
||||
"node-fetch": "^3.3.2",
|
||||
"playwright": "^1.41.0",
|
||||
"playwright": "^1.44.1",
|
||||
"source-map-support": "^0.5.21",
|
||||
"tslib": "^2.6.2",
|
||||
"typescript": "5.4.0-dev.20240119",
|
||||
"typescript": "^5.4.5",
|
||||
"which": "^3.0.1"
|
||||
},
|
||||
"overrides": {
|
||||
|
|
@ -112,5 +111,6 @@
|
|||
"volta": {
|
||||
"node": "20.1.0",
|
||||
"npm": "8.19.4"
|
||||
}
|
||||
},
|
||||
"gitHead": "ce2e60e4ea15a65992e54a9e8877d16be9d42abb"
|
||||
}
|
||||
|
|
|
|||
16
package-lock.json
generated
16
package-lock.json
generated
|
|
@ -20,7 +20,7 @@
|
|||
"@octokit/plugin-retry": "^5.0.2",
|
||||
"@octokit/types": "^13.5.0",
|
||||
"@schemastore/package": "0.0.10",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@types/uuid": "^10.0.0",
|
||||
"adm-zip": "^0.5.14",
|
||||
"check-disk-space": "^3.4.0",
|
||||
"console-log-level": "^1.4.1",
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
"nock": "^13.5.4",
|
||||
"removeNPMAbsolutePaths": "3.0.1",
|
||||
"sinon": "^18.0.0",
|
||||
"typescript": "^5.4.5"
|
||||
"typescript": "^5.5.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
|
|
@ -1013,9 +1013,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@types/uuid": {
|
||||
"version": "9.0.8",
|
||||
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz",
|
||||
"integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA=="
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz",
|
||||
"integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ=="
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||
"version": "7.13.1",
|
||||
|
|
@ -6069,9 +6069,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.4.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
|
||||
"integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
|
||||
"version": "5.5.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.2.tgz",
|
||||
"integrity": "sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
"@octokit/plugin-retry": "^5.0.2",
|
||||
"@octokit/types": "^13.5.0",
|
||||
"@schemastore/package": "0.0.10",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@types/uuid": "^10.0.0",
|
||||
"adm-zip": "^0.5.14",
|
||||
"check-disk-space": "^3.4.0",
|
||||
"console-log-level": "^1.4.1",
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
"nock": "^13.5.4",
|
||||
"removeNPMAbsolutePaths": "3.0.1",
|
||||
"sinon": "^18.0.0",
|
||||
"typescript": "^5.4.5"
|
||||
"typescript": "^5.5.2"
|
||||
},
|
||||
"overrides": {
|
||||
"@actions/tool-cache": {
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ function getTotalMemoryBytes(logger: Logger): number {
|
|||
]
|
||||
.map((file) => getCgroupMemoryLimitBytes(file, logger))
|
||||
.filter((limit) => limit !== undefined)
|
||||
.map((limit) => limit as number),
|
||||
.map((limit) => limit),
|
||||
);
|
||||
}
|
||||
const limit = Math.min(...limits);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue