mirror of
https://github.com/github/codeql-action.git
synced 2026-01-05 14:10:11 +08:00
Compare commits
1 Commits
navntoft/t
...
criemen/de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a92229a995 |
60
.github/workflows/__debug-artifacts.yml
generated
vendored
60
.github/workflows/__debug-artifacts.yml
generated
vendored
@@ -13,6 +13,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
- releases/v1
|
- releases/v1
|
||||||
- releases/v2
|
- releases/v2
|
||||||
|
- criemen/debug-action
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
@@ -25,30 +26,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
|
||||||
version: stable-20210308
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20210308
|
|
||||||
- os: ubuntu-latest
|
|
||||||
version: stable-20210319
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20210319
|
|
||||||
- os: ubuntu-latest
|
|
||||||
version: stable-20210809
|
|
||||||
- os: macos-latest
|
|
||||||
version: stable-20210809
|
|
||||||
- os: ubuntu-latest
|
|
||||||
version: cached
|
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: cached
|
version: cached
|
||||||
- os: ubuntu-latest
|
|
||||||
version: latest
|
|
||||||
- os: macos-latest
|
|
||||||
version: latest
|
|
||||||
- os: ubuntu-latest
|
|
||||||
version: nightly-latest
|
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
name: Debug artifact upload
|
name: Debug artifact upload
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@@ -63,34 +42,21 @@ jobs:
|
|||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
debug: true
|
languages: csharp, go
|
||||||
debug-artifact-name: my-debug-artifacts
|
|
||||||
debug-database-name: my-db
|
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
|
env:
|
||||||
|
SEMMLE_DEBUG_TRACER: 10000
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
id: analysis
|
id: analysis
|
||||||
- uses: actions/download-artifact@v3
|
timeout-minutes: 1
|
||||||
with:
|
|
||||||
name: my-debug-artifacts-${{ matrix.os }}-${{ matrix.version }}
|
|
||||||
- shell: bash
|
|
||||||
run: |
|
|
||||||
LANGUAGES="cpp csharp go java javascript python"
|
|
||||||
for language in $LANGUAGES; do
|
|
||||||
echo "Checking $language"
|
|
||||||
if [[ ! -f "$language.sarif" ]] ; then
|
|
||||||
echo "Missing a SARIF file for $language"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [[ ! -f "my-db-$language.zip" ]] ; then
|
|
||||||
echo "Missing a database bundle for $language"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [[ ! -d "$language/log" ]] ; then
|
|
||||||
echo "Missing logs for $language"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
env:
|
env:
|
||||||
INTERNAL_CODEQL_ACTION_DEBUG_LOC: true
|
SEMMLE_DEBUG_TRACER: 10000
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: debug-artifact-log
|
||||||
|
path: |
|
||||||
|
/Users/runner/work/_temp/codeql_databases/
|
||||||
|
!/Users/runner/work/_temp/codeql_databases/working/copy-root
|
||||||
|
|||||||
20
lib/analyze.js
generated
20
lib/analyze.js
generated
@@ -239,15 +239,6 @@ function createQuerySuiteContents(queries) {
|
|||||||
return queries.map((q) => `- query: ${q}`).join("\n");
|
return queries.map((q) => `- query: ${q}`).join("\n");
|
||||||
}
|
}
|
||||||
async function runFinalize(outputDir, threadsFlag, memoryFlag, config, logger, featureFlags) {
|
async function runFinalize(outputDir, threadsFlag, memoryFlag, config, logger, featureFlags) {
|
||||||
const codeql = await (0, codeql_1.getCodeQL)(config.codeQLCmd);
|
|
||||||
if (await util.codeQlVersionAbove(codeql, codeql_1.CODEQL_VERSION_NEW_TRACING)) {
|
|
||||||
// Delete variables as specified by the end-tracing script
|
|
||||||
await (0, tracer_config_1.endTracingForCluster)(config);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// Delete the tracer config env var to avoid tracing ourselves
|
|
||||||
delete process.env[sharedEnv.ODASA_TRACER_CONFIGURATION];
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
await (0, del_1.default)(outputDir, { force: true });
|
await (0, del_1.default)(outputDir, { force: true });
|
||||||
}
|
}
|
||||||
@@ -258,6 +249,17 @@ async function runFinalize(outputDir, threadsFlag, memoryFlag, config, logger, f
|
|||||||
}
|
}
|
||||||
await fs.promises.mkdir(outputDir, { recursive: true });
|
await fs.promises.mkdir(outputDir, { recursive: true });
|
||||||
await finalizeDatabaseCreation(config, threadsFlag, memoryFlag, logger, featureFlags);
|
await finalizeDatabaseCreation(config, threadsFlag, memoryFlag, logger, featureFlags);
|
||||||
|
const codeql = await (0, codeql_1.getCodeQL)(config.codeQLCmd);
|
||||||
|
if (await util.codeQlVersionAbove(codeql, codeql_1.CODEQL_VERSION_NEW_TRACING)) {
|
||||||
|
// Delete variables as specified by the end-tracing script
|
||||||
|
await (0, codeql_1.runTool)("bash", ["-c", "export"]);
|
||||||
|
await (0, tracer_config_1.endTracingForCluster)(config);
|
||||||
|
await (0, codeql_1.runTool)("bash", ["-c", "export"]);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Delete the tracer config env var to avoid tracing ourselves
|
||||||
|
delete process.env[sharedEnv.ODASA_TRACER_CONFIGURATION];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exports.runFinalize = runFinalize;
|
exports.runFinalize = runFinalize;
|
||||||
async function runCleanup(config, cleanupLevel, logger) {
|
async function runCleanup(config, cleanupLevel, logger) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
13
lib/codeql.js
generated
13
lib/codeql.js
generated
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.getExtraOptions = exports.getCodeQLForTesting = exports.getCachedCodeQL = exports.setCodeQL = exports.getCodeQL = exports.convertToSemVer = exports.getCodeQLURLVersion = exports.setupCodeQL = exports.getCodeQLActionRepository = exports.CODEQL_VERSION_ML_POWERED_QUERIES_WINDOWS = exports.CODEQL_VERSION_NEW_TRACING = exports.CODEQL_VERSION_ML_POWERED_QUERIES = exports.CODEQL_VERSION_COUNTS_LINES = exports.CommandInvocationError = void 0;
|
exports.runTool = exports.getExtraOptions = exports.getCodeQLForTesting = exports.getCachedCodeQL = exports.setCodeQL = exports.getCodeQL = exports.convertToSemVer = exports.getCodeQLURLVersion = exports.setupCodeQL = exports.getCodeQLActionRepository = exports.CODEQL_VERSION_ML_POWERED_QUERIES_WINDOWS = exports.CODEQL_VERSION_NEW_TRACING = exports.CODEQL_VERSION_ML_POWERED_QUERIES = exports.CODEQL_VERSION_COUNTS_LINES = exports.CommandInvocationError = void 0;
|
||||||
const fs = __importStar(require("fs"));
|
const fs = __importStar(require("fs"));
|
||||||
const path = __importStar(require("path"));
|
const path = __importStar(require("path"));
|
||||||
const toolrunner = __importStar(require("@actions/exec/lib/toolrunner"));
|
const toolrunner = __importStar(require("@actions/exec/lib/toolrunner"));
|
||||||
@@ -477,12 +477,13 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||||||
// because that always passes in a process name.
|
// because that always passes in a process name.
|
||||||
extraArgs.push(`--trace-process-level=${processLevel || 3}`);
|
extraArgs.push(`--trace-process-level=${processLevel || 3}`);
|
||||||
}
|
}
|
||||||
|
extraArgs.push("--internal-use-lua-tracing");
|
||||||
if (await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACER_CONFIG)) {
|
if (await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACER_CONFIG)) {
|
||||||
if (await featureFlags.getValue(feature_flags_1.FeatureFlag.LuaTracerConfigEnabled)) {
|
if (await featureFlags.getValue(feature_flags_1.FeatureFlag.LuaTracerConfigEnabled)) {
|
||||||
extraArgs.push("--internal-use-lua-tracing");
|
//
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
extraArgs.push("--no-internal-use-lua-tracing");
|
// extraArgs.push("--no-internal-use-lua-tracing");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -537,11 +538,12 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||||||
const traceCommand = path.resolve(JSON.parse(extractorPath), "tools", `autobuild${ext}`);
|
const traceCommand = path.resolve(JSON.parse(extractorPath), "tools", `autobuild${ext}`);
|
||||||
const extraArgs = [];
|
const extraArgs = [];
|
||||||
if (await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACER_CONFIG)) {
|
if (await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACER_CONFIG)) {
|
||||||
if (await featureFlags.getValue(feature_flags_1.FeatureFlag.LuaTracerConfigEnabled)) {
|
|
||||||
extraArgs.push("--internal-use-lua-tracing");
|
extraArgs.push("--internal-use-lua-tracing");
|
||||||
|
if (await featureFlags.getValue(feature_flags_1.FeatureFlag.LuaTracerConfigEnabled)) {
|
||||||
|
// extraArgs.push("--internal-use-lua-tracing");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
extraArgs.push("--no-internal-use-lua-tracing");
|
// extraArgs.push("--no-internal-use-lua-tracing");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Run trace command
|
// Run trace command
|
||||||
@@ -802,4 +804,5 @@ async function runTool(cmd, args = []) {
|
|||||||
throw new CommandInvocationError(cmd, args, exitCode, error);
|
throw new CommandInvocationError(cmd, args, exitCode, error);
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
exports.runTool = runTool;
|
||||||
//# sourceMappingURL=codeql.js.map
|
//# sourceMappingURL=codeql.js.map
|
||||||
File diff suppressed because one or more lines are too long
286
lib/toolcache.js
generated
Normal file
286
lib/toolcache.js
generated
Normal file
@@ -0,0 +1,286 @@
|
|||||||
|
"use strict";
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||||
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||||
|
}) : function(o, v) {
|
||||||
|
o["default"] = v;
|
||||||
|
});
|
||||||
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.downloadTool = exports.findAllVersions = exports.find = exports.cacheDir = exports.extractTar = void 0;
|
||||||
|
const fs = __importStar(require("fs"));
|
||||||
|
const os = __importStar(require("os"));
|
||||||
|
const path = __importStar(require("path"));
|
||||||
|
const toolrunner = __importStar(require("@actions/exec/lib/toolrunner"));
|
||||||
|
const io = __importStar(require("@actions/io"));
|
||||||
|
const actionsToolcache = __importStar(require("@actions/tool-cache"));
|
||||||
|
const safeWhich = __importStar(require("@chrisgavin/safe-which"));
|
||||||
|
const del_1 = __importDefault(require("del"));
|
||||||
|
const semver = __importStar(require("semver"));
|
||||||
|
const uuid_1 = require("uuid");
|
||||||
|
const util_1 = require("./util");
|
||||||
|
/*
|
||||||
|
* This file acts as an interface to the functionality of the actions toolcache.
|
||||||
|
* That library is not safe to use outside of actions as it makes assumptions about
|
||||||
|
* the state of the filesystem and available environment variables.
|
||||||
|
*
|
||||||
|
* On actions we can just delegate to the toolcache library, however outside of
|
||||||
|
* actions we provide our own implementation.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Extract a compressed tar archive.
|
||||||
|
*
|
||||||
|
* See extractTar function from node_modules/@actions/tool-cache/lib/tool-cache.d.ts
|
||||||
|
*
|
||||||
|
* @param file path to the tar
|
||||||
|
* @param mode should run the actions or runner implementation
|
||||||
|
* @param tempDir path to the temporary directory
|
||||||
|
* @param logger logger to use
|
||||||
|
* @returns path to the destination directory
|
||||||
|
*/
|
||||||
|
async function extractTar(file, tempDir, logger) {
|
||||||
|
if ((0, util_1.isActions)()) {
|
||||||
|
return await actionsToolcache.extractTar(file);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Initial implementation copied from node_modules/@actions/tool-cache/lib/tool-cache.js
|
||||||
|
if (!file) {
|
||||||
|
throw new Error("parameter 'file' is required");
|
||||||
|
}
|
||||||
|
// Create dest
|
||||||
|
const dest = createExtractFolder(tempDir);
|
||||||
|
// Determine whether GNU tar
|
||||||
|
logger.debug("Checking tar --version");
|
||||||
|
let versionOutput = "";
|
||||||
|
await new toolrunner.ToolRunner(await safeWhich.safeWhich("tar"), ["--version"], {
|
||||||
|
ignoreReturnCode: true,
|
||||||
|
silent: true,
|
||||||
|
listeners: {
|
||||||
|
stdout: (data) => (versionOutput += data.toString()),
|
||||||
|
stderr: (data) => (versionOutput += data.toString()),
|
||||||
|
},
|
||||||
|
}).exec();
|
||||||
|
logger.debug(versionOutput.trim());
|
||||||
|
const isGnuTar = versionOutput.toUpperCase().includes("GNU TAR");
|
||||||
|
// Initialize args
|
||||||
|
const args = ["xz"];
|
||||||
|
if (logger.isDebug()) {
|
||||||
|
args.push("-v");
|
||||||
|
}
|
||||||
|
let destArg = dest;
|
||||||
|
let fileArg = file;
|
||||||
|
if (process.platform === "win32" && isGnuTar) {
|
||||||
|
args.push("--force-local");
|
||||||
|
destArg = dest.replace(/\\/g, "/");
|
||||||
|
// Technically only the dest needs to have `/` but for aesthetic consistency
|
||||||
|
// convert slashes in the file arg too.
|
||||||
|
fileArg = file.replace(/\\/g, "/");
|
||||||
|
}
|
||||||
|
if (isGnuTar) {
|
||||||
|
// Suppress warnings when using GNU tar to extract archives created by BSD tar
|
||||||
|
args.push("--warning=no-unknown-keyword");
|
||||||
|
}
|
||||||
|
args.push("-C", destArg, "-f", fileArg);
|
||||||
|
await new toolrunner.ToolRunner(`tar`, args).exec();
|
||||||
|
return dest;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.extractTar = extractTar;
|
||||||
|
/**
|
||||||
|
* Caches a directory and installs it into the tool cacheDir.
|
||||||
|
*
|
||||||
|
* Also see cacheDir function from node_modules/@actions/tool-cache/lib/tool-cache.d.ts
|
||||||
|
*
|
||||||
|
* @param sourceDir the directory to cache into tools
|
||||||
|
* @param tool tool name
|
||||||
|
* @param version version of the tool. semver format
|
||||||
|
* @param mode should run the actions or runner implementation
|
||||||
|
* @param toolCacheDir path to the tool cache directory
|
||||||
|
* @param logger logger to use
|
||||||
|
*/
|
||||||
|
async function cacheDir(sourceDir, tool, version, toolCacheDir, logger) {
|
||||||
|
if ((0, util_1.isActions)()) {
|
||||||
|
return await actionsToolcache.cacheDir(sourceDir, tool, version);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Initial implementation copied from node_modules/@actions/tool-cache/lib/tool-cache.js
|
||||||
|
version = semver.clean(version) || version;
|
||||||
|
const arch = os.arch();
|
||||||
|
logger.debug(`Caching tool ${tool} ${version} ${arch}`);
|
||||||
|
logger.debug(`source dir: ${sourceDir}`);
|
||||||
|
if (!fs.statSync(sourceDir).isDirectory()) {
|
||||||
|
throw new Error("sourceDir is not a directory");
|
||||||
|
}
|
||||||
|
// Create the tool dir
|
||||||
|
const destPath = await createToolPath(tool, version, arch, toolCacheDir, logger);
|
||||||
|
// copy each child item. do not move. move can fail on Windows
|
||||||
|
// due to anti-virus software having an open handle on a file.
|
||||||
|
for (const itemName of fs.readdirSync(sourceDir)) {
|
||||||
|
const s = path.join(sourceDir, itemName);
|
||||||
|
await io.cp(s, destPath, { recursive: true });
|
||||||
|
}
|
||||||
|
// write .complete
|
||||||
|
completeToolPath(tool, version, arch, toolCacheDir, logger);
|
||||||
|
return destPath;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.cacheDir = cacheDir;
|
||||||
|
/**
|
||||||
|
* Finds the path to a tool version in the local installed tool cache.
|
||||||
|
*
|
||||||
|
* Also see find function from node_modules/@actions/tool-cache/lib/tool-cache.d.ts
|
||||||
|
*
|
||||||
|
* @param toolName name of the tool
|
||||||
|
* @param versionSpec version of the tool
|
||||||
|
* @param mode should run the actions or runner implementation
|
||||||
|
* @param toolCacheDir path to the tool cache directory
|
||||||
|
* @param logger logger to use
|
||||||
|
*/
|
||||||
|
function find(toolName, versionSpec, toolCacheDir, logger) {
|
||||||
|
if ((0, util_1.isActions)()) {
|
||||||
|
return actionsToolcache.find(toolName, versionSpec);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Initial implementation copied from node_modules/@actions/tool-cache/lib/tool-cache.js
|
||||||
|
if (!toolName) {
|
||||||
|
throw new Error("toolName parameter is required");
|
||||||
|
}
|
||||||
|
if (!versionSpec) {
|
||||||
|
throw new Error("versionSpec parameter is required");
|
||||||
|
}
|
||||||
|
const arch = os.arch();
|
||||||
|
// attempt to resolve an explicit version
|
||||||
|
if (!isExplicitVersion(versionSpec, logger)) {
|
||||||
|
const localVersions = findAllVersions(toolName, toolCacheDir, logger);
|
||||||
|
const match = evaluateVersions(localVersions, versionSpec, logger);
|
||||||
|
versionSpec = match;
|
||||||
|
}
|
||||||
|
// check for the explicit version in the cache
|
||||||
|
let toolPath = "";
|
||||||
|
if (versionSpec) {
|
||||||
|
versionSpec = semver.clean(versionSpec) || "";
|
||||||
|
const cachePath = path.join(toolCacheDir, toolName, versionSpec, arch);
|
||||||
|
logger.debug(`checking cache: ${cachePath}`);
|
||||||
|
if (fs.existsSync(cachePath) && fs.existsSync(`${cachePath}.complete`)) {
|
||||||
|
logger.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);
|
||||||
|
toolPath = cachePath;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
logger.debug("not found");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return toolPath;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.find = find;
|
||||||
|
/**
|
||||||
|
* Finds the paths to all versions of a tool that are installed in the local tool cache.
|
||||||
|
*
|
||||||
|
* Also see findAllVersions function from node_modules/@actions/tool-cache/lib/tool-cache.d.ts
|
||||||
|
*
|
||||||
|
* @param toolName name of the tool
|
||||||
|
* @param toolCacheDir path to the tool cache directory
|
||||||
|
* @param logger logger to use
|
||||||
|
*/
|
||||||
|
function findAllVersions(toolName, toolCacheDir, logger) {
|
||||||
|
if ((0, util_1.isActions)()) {
|
||||||
|
return actionsToolcache.findAllVersions(toolName);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Initial implementation copied from node_modules/@actions/tool-cache/lib/tool-cache.js
|
||||||
|
const versions = [];
|
||||||
|
const arch = os.arch();
|
||||||
|
const toolPath = path.join(toolCacheDir, toolName);
|
||||||
|
if (fs.existsSync(toolPath)) {
|
||||||
|
const children = fs.readdirSync(toolPath);
|
||||||
|
for (const child of children) {
|
||||||
|
if (isExplicitVersion(child, logger)) {
|
||||||
|
const fullPath = path.join(toolPath, child, arch || "");
|
||||||
|
if (fs.existsSync(fullPath) &&
|
||||||
|
fs.existsSync(`${fullPath}.complete`)) {
|
||||||
|
versions.push(child);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return versions;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.findAllVersions = findAllVersions;
|
||||||
|
async function downloadTool(url, tempDir, headers) {
|
||||||
|
const dest = path.join(tempDir, (0, uuid_1.v4)());
|
||||||
|
const finalHeaders = Object.assign({ "User-Agent": "CodeQL Action" }, headers);
|
||||||
|
return await actionsToolcache.downloadTool(url, dest, undefined, finalHeaders);
|
||||||
|
}
|
||||||
|
exports.downloadTool = downloadTool;
|
||||||
|
function createExtractFolder(tempDir) {
|
||||||
|
// create a temp dir
|
||||||
|
const dest = path.join(tempDir, "toolcache-temp");
|
||||||
|
if (!fs.existsSync(dest)) {
|
||||||
|
fs.mkdirSync(dest);
|
||||||
|
}
|
||||||
|
return dest;
|
||||||
|
}
|
||||||
|
async function createToolPath(tool, version, arch, toolCacheDir, logger) {
|
||||||
|
const folderPath = path.join(toolCacheDir, tool, semver.clean(version) || version, arch || "");
|
||||||
|
logger.debug(`destination ${folderPath}`);
|
||||||
|
const markerPath = `${folderPath}.complete`;
|
||||||
|
await (0, del_1.default)(folderPath, { force: true });
|
||||||
|
await (0, del_1.default)(markerPath, { force: true });
|
||||||
|
fs.mkdirSync(folderPath, { recursive: true });
|
||||||
|
return folderPath;
|
||||||
|
}
|
||||||
|
function completeToolPath(tool, version, arch, toolCacheDir, logger) {
|
||||||
|
const folderPath = path.join(toolCacheDir, tool, semver.clean(version) || version, arch || "");
|
||||||
|
const markerPath = `${folderPath}.complete`;
|
||||||
|
fs.writeFileSync(markerPath, "");
|
||||||
|
logger.debug("finished caching tool");
|
||||||
|
}
|
||||||
|
function isExplicitVersion(versionSpec, logger) {
|
||||||
|
const c = semver.clean(versionSpec) || "";
|
||||||
|
logger.debug(`isExplicit: ${c}`);
|
||||||
|
const valid = semver.valid(c) != null;
|
||||||
|
logger.debug(`explicit? ${valid}`);
|
||||||
|
return valid;
|
||||||
|
}
|
||||||
|
function evaluateVersions(versions, versionSpec, logger) {
|
||||||
|
let version = "";
|
||||||
|
logger.debug(`evaluating ${versions.length} versions`);
|
||||||
|
versions = versions.sort((a, b) => {
|
||||||
|
if (semver.gt(a, b)) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
});
|
||||||
|
for (let i = versions.length - 1; i >= 0; i--) {
|
||||||
|
const potential = versions[i];
|
||||||
|
const satisfied = semver.satisfies(potential, versionSpec);
|
||||||
|
if (satisfied) {
|
||||||
|
version = potential;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (version) {
|
||||||
|
logger.debug(`matched: ${version}`);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
logger.debug("match not found");
|
||||||
|
}
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=toolcache.js.map
|
||||||
14
node_modules/.package-lock.json
generated
vendored
14
node_modules/.package-lock.json
generated
vendored
@@ -2744,20 +2744,6 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
||||||
},
|
},
|
||||||
"node_modules/fsevents": {
|
|
||||||
"version": "2.3.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
|
|
||||||
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
|
||||||
"dev": true,
|
|
||||||
"hasInstallScript": true,
|
|
||||||
"optional": true,
|
|
||||||
"os": [
|
|
||||||
"darwin"
|
|
||||||
],
|
|
||||||
"engines": {
|
|
||||||
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/function-bind": {
|
"node_modules/function-bind": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
||||||
|
|||||||
4
node_modules/acorn-walk/package.json
generated
vendored
4
node_modules/acorn-walk/package.json
generated
vendored
@@ -17,9 +17,7 @@
|
|||||||
"./package.json": "./package.json"
|
"./package.json": "./package.json"
|
||||||
},
|
},
|
||||||
"version": "8.2.0",
|
"version": "8.2.0",
|
||||||
"engines": {
|
"engines": {"node": ">=0.4.0"},
|
||||||
"node": ">=0.4.0"
|
|
||||||
},
|
|
||||||
"maintainers": [
|
"maintainers": [
|
||||||
{
|
{
|
||||||
"name": "Marijn Haverbeke",
|
"name": "Marijn Haverbeke",
|
||||||
|
|||||||
8
node_modules/acorn/package.json
generated
vendored
8
node_modules/acorn/package.json
generated
vendored
@@ -6,9 +6,7 @@
|
|||||||
"types": "dist/acorn.d.ts",
|
"types": "dist/acorn.d.ts",
|
||||||
"module": "dist/acorn.mjs",
|
"module": "dist/acorn.mjs",
|
||||||
"version": "7.4.1",
|
"version": "7.4.1",
|
||||||
"engines": {
|
"engines": {"node": ">=0.4.0"},
|
||||||
"node": ">=0.4.0"
|
|
||||||
},
|
|
||||||
"maintainers": [
|
"maintainers": [
|
||||||
{
|
{
|
||||||
"name": "Marijn Haverbeke",
|
"name": "Marijn Haverbeke",
|
||||||
@@ -33,7 +31,5 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "cd ..; npm run build:main && npm run build:bin"
|
"prepare": "cd ..; npm run build:main && npm run build:bin"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {"acorn": "./bin/acorn"}
|
||||||
"acorn": "./bin/acorn"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
8
node_modules/ava/node_modules/acorn/package.json
generated
vendored
8
node_modules/ava/node_modules/acorn/package.json
generated
vendored
@@ -17,9 +17,7 @@
|
|||||||
"./package.json": "./package.json"
|
"./package.json": "./package.json"
|
||||||
},
|
},
|
||||||
"version": "8.7.0",
|
"version": "8.7.0",
|
||||||
"engines": {
|
"engines": {"node": ">=0.4.0"},
|
||||||
"node": ">=0.4.0"
|
|
||||||
},
|
|
||||||
"maintainers": [
|
"maintainers": [
|
||||||
{
|
{
|
||||||
"name": "Marijn Haverbeke",
|
"name": "Marijn Haverbeke",
|
||||||
@@ -44,7 +42,5 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "cd ..; npm run build:main"
|
"prepare": "cd ..; npm run build:main"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {"acorn": "./bin/acorn"}
|
||||||
"acorn": "./bin/acorn"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
26
node_modules/concat-map/package.json
generated
vendored
26
node_modules/concat-map/package.json
generated
vendored
@@ -33,27 +33,11 @@
|
|||||||
"testling" : {
|
"testling" : {
|
||||||
"files" : "test/*.js",
|
"files" : "test/*.js",
|
||||||
"browsers" : {
|
"browsers" : {
|
||||||
"ie": [
|
"ie" : [ 6, 7, 8, 9 ],
|
||||||
6,
|
"ff" : [ 3.5, 10, 15.0 ],
|
||||||
7,
|
"chrome" : [ 10, 22 ],
|
||||||
8,
|
"safari" : [ 5.1 ],
|
||||||
9
|
"opera" : [ 12 ]
|
||||||
],
|
|
||||||
"ff": [
|
|
||||||
3.5,
|
|
||||||
10,
|
|
||||||
15
|
|
||||||
],
|
|
||||||
"chrome": [
|
|
||||||
10,
|
|
||||||
22
|
|
||||||
],
|
|
||||||
"safari": [
|
|
||||||
5.1
|
|
||||||
],
|
|
||||||
"opera": [
|
|
||||||
12
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
6
node_modules/eslint-config-prettier/package.json
generated
vendored
6
node_modules/eslint-config-prettier/package.json
generated
vendored
@@ -6,11 +6,7 @@
|
|||||||
"description": "Turns off all rules that are unnecessary or might conflict with Prettier.",
|
"description": "Turns off all rules that are unnecessary or might conflict with Prettier.",
|
||||||
"repository": "prettier/eslint-config-prettier",
|
"repository": "prettier/eslint-config-prettier",
|
||||||
"bin": "bin/cli.js",
|
"bin": "bin/cli.js",
|
||||||
"keywords": [
|
"keywords": ["eslint", "eslintconfig", "prettier"],
|
||||||
"eslint",
|
|
||||||
"eslintconfig",
|
|
||||||
"prettier"
|
|
||||||
],
|
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": ">=7.0.0"
|
"eslint": ">=7.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/flatted/cjs/package.json
generated
vendored
4
node_modules/flatted/cjs/package.json
generated
vendored
@@ -1,3 +1 @@
|
|||||||
{
|
{"type":"commonjs"}
|
||||||
"type": "commonjs"
|
|
||||||
}
|
|
||||||
22
node_modules/fsevents/LICENSE
generated
vendored
22
node_modules/fsevents/LICENSE
generated
vendored
@@ -1,22 +0,0 @@
|
|||||||
MIT License
|
|
||||||
-----------
|
|
||||||
|
|
||||||
Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
83
node_modules/fsevents/README.md
generated
vendored
83
node_modules/fsevents/README.md
generated
vendored
@@ -1,83 +0,0 @@
|
|||||||
# fsevents [](https://nodei.co/npm/fsevents/)
|
|
||||||
|
|
||||||
Native access to MacOS FSEvents in [Node.js](https://nodejs.org/)
|
|
||||||
|
|
||||||
The FSEvents API in MacOS allows applications to register for notifications of
|
|
||||||
changes to a given directory tree. It is a very fast and lightweight alternative
|
|
||||||
to kqueue.
|
|
||||||
|
|
||||||
This is a low-level library. For a cross-platform file watching module that
|
|
||||||
uses fsevents, check out [Chokidar](https://github.com/paulmillr/chokidar).
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Supports only **Node.js v8.16 and higher**.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install fsevents
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
```js
|
|
||||||
const fsevents = require('fsevents');
|
|
||||||
const stop = fsevents.watch(__dirname, (path, flags, id) => {
|
|
||||||
const info = fsevents.getInfo(path, flags, id);
|
|
||||||
}); // To start observation
|
|
||||||
stop(); // To end observation
|
|
||||||
```
|
|
||||||
|
|
||||||
The callback passed as the second parameter to `.watch` get's called whenever the operating system detects a
|
|
||||||
a change in the file system. It takes three arguments:
|
|
||||||
|
|
||||||
###### `fsevents.watch(dirname: string, (path: string, flags: number, id: string) => void): () => Promise<undefined>`
|
|
||||||
|
|
||||||
* `path: string` - the item in the filesystem that have been changed
|
|
||||||
* `flags: number` - a numeric value describing what the change was
|
|
||||||
* `id: string` - an unique-id identifying this specific event
|
|
||||||
|
|
||||||
Returns closer callback which when called returns a Promise resolving when the watcher process has been shut down.
|
|
||||||
|
|
||||||
###### `fsevents.getInfo(path: string, flags: number, id: string): FsEventInfo`
|
|
||||||
|
|
||||||
The `getInfo` function takes the `path`, `flags` and `id` arguments and converts those parameters into a structure
|
|
||||||
that is easier to digest to determine what the change was.
|
|
||||||
|
|
||||||
The `FsEventsInfo` has the following shape:
|
|
||||||
|
|
||||||
```js
|
|
||||||
/**
|
|
||||||
* @typedef {'created'|'modified'|'deleted'|'moved'|'root-changed'|'cloned'|'unknown'} FsEventsEvent
|
|
||||||
* @typedef {'file'|'directory'|'symlink'} FsEventsType
|
|
||||||
*/
|
|
||||||
{
|
|
||||||
"event": "created", // {FsEventsEvent}
|
|
||||||
"path": "file.txt",
|
|
||||||
"type": "file", // {FsEventsType}
|
|
||||||
"changes": {
|
|
||||||
"inode": true, // Had iNode Meta-Information changed
|
|
||||||
"finder": false, // Had Finder Meta-Data changed
|
|
||||||
"access": false, // Had access permissions changed
|
|
||||||
"xattrs": false // Had xAttributes changed
|
|
||||||
},
|
|
||||||
"flags": 0x100000000
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Changelog
|
|
||||||
|
|
||||||
- v2.3 supports Apple Silicon ARM CPUs
|
|
||||||
- v2 supports node 8.16+ and reduces package size massively
|
|
||||||
- v1.2.8 supports node 6+
|
|
||||||
- v1.2.7 supports node 4+
|
|
||||||
|
|
||||||
## Troubleshooting
|
|
||||||
|
|
||||||
- I'm getting `EBADPLATFORM` `Unsupported platform for fsevents` error.
|
|
||||||
- It's fine, nothing is broken. fsevents is macos-only. Other platforms are skipped. If you want to hide this warning, report a bug to NPM bugtracker asking them to hide ebadplatform warnings by default.
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
The MIT License Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller — see LICENSE file.
|
|
||||||
|
|
||||||
Visit our [GitHub page](https://github.com/fsevents/fsevents) and [NPM Page](https://npmjs.org/package/fsevents)
|
|
||||||
46
node_modules/fsevents/fsevents.d.ts
generated
vendored
46
node_modules/fsevents/fsevents.d.ts
generated
vendored
@@ -1,46 +0,0 @@
|
|||||||
declare type Event = "created" | "cloned" | "modified" | "deleted" | "moved" | "root-changed" | "unknown";
|
|
||||||
declare type Type = "file" | "directory" | "symlink";
|
|
||||||
declare type FileChanges = {
|
|
||||||
inode: boolean;
|
|
||||||
finder: boolean;
|
|
||||||
access: boolean;
|
|
||||||
xattrs: boolean;
|
|
||||||
};
|
|
||||||
declare type Info = {
|
|
||||||
event: Event;
|
|
||||||
path: string;
|
|
||||||
type: Type;
|
|
||||||
changes: FileChanges;
|
|
||||||
flags: number;
|
|
||||||
};
|
|
||||||
declare type WatchHandler = (path: string, flags: number, id: string) => void;
|
|
||||||
export declare function watch(path: string, handler: WatchHandler): () => Promise<void>;
|
|
||||||
export declare function watch(path: string, since: number, handler: WatchHandler): () => Promise<void>;
|
|
||||||
export declare function getInfo(path: string, flags: number): Info;
|
|
||||||
export declare const constants: {
|
|
||||||
None: 0x00000000;
|
|
||||||
MustScanSubDirs: 0x00000001;
|
|
||||||
UserDropped: 0x00000002;
|
|
||||||
KernelDropped: 0x00000004;
|
|
||||||
EventIdsWrapped: 0x00000008;
|
|
||||||
HistoryDone: 0x00000010;
|
|
||||||
RootChanged: 0x00000020;
|
|
||||||
Mount: 0x00000040;
|
|
||||||
Unmount: 0x00000080;
|
|
||||||
ItemCreated: 0x00000100;
|
|
||||||
ItemRemoved: 0x00000200;
|
|
||||||
ItemInodeMetaMod: 0x00000400;
|
|
||||||
ItemRenamed: 0x00000800;
|
|
||||||
ItemModified: 0x00001000;
|
|
||||||
ItemFinderInfoMod: 0x00002000;
|
|
||||||
ItemChangeOwner: 0x00004000;
|
|
||||||
ItemXattrMod: 0x00008000;
|
|
||||||
ItemIsFile: 0x00010000;
|
|
||||||
ItemIsDir: 0x00020000;
|
|
||||||
ItemIsSymlink: 0x00040000;
|
|
||||||
ItemIsHardlink: 0x00100000;
|
|
||||||
ItemIsLastHardlink: 0x00200000;
|
|
||||||
OwnEvent: 0x00080000;
|
|
||||||
ItemCloned: 0x00400000;
|
|
||||||
};
|
|
||||||
export {};
|
|
||||||
82
node_modules/fsevents/fsevents.js
generated
vendored
82
node_modules/fsevents/fsevents.js
generated
vendored
@@ -1,82 +0,0 @@
|
|||||||
/*
|
|
||||||
** © 2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
|
|
||||||
** Licensed under MIT License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* jshint node:true */
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
if (process.platform !== "darwin") {
|
|
||||||
throw new Error(`Module 'fsevents' is not compatible with platform '${process.platform}'`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const Native = require("./fsevents.node");
|
|
||||||
const events = Native.constants;
|
|
||||||
|
|
||||||
function watch(path, since, handler) {
|
|
||||||
if (typeof path !== "string") {
|
|
||||||
throw new TypeError(`fsevents argument 1 must be a string and not a ${typeof path}`);
|
|
||||||
}
|
|
||||||
if ("function" === typeof since && "undefined" === typeof handler) {
|
|
||||||
handler = since;
|
|
||||||
since = Native.flags.SinceNow;
|
|
||||||
}
|
|
||||||
if (typeof since !== "number") {
|
|
||||||
throw new TypeError(`fsevents argument 2 must be a number and not a ${typeof since}`);
|
|
||||||
}
|
|
||||||
if (typeof handler !== "function") {
|
|
||||||
throw new TypeError(`fsevents argument 3 must be a function and not a ${typeof handler}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
let instance = Native.start(Native.global, path, since, handler);
|
|
||||||
if (!instance) throw new Error(`could not watch: ${path}`);
|
|
||||||
return () => {
|
|
||||||
const result = instance ? Promise.resolve(instance).then(Native.stop) : Promise.resolve(undefined);
|
|
||||||
instance = undefined;
|
|
||||||
return result;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function getInfo(path, flags) {
|
|
||||||
return {
|
|
||||||
path,
|
|
||||||
flags,
|
|
||||||
event: getEventType(flags),
|
|
||||||
type: getFileType(flags),
|
|
||||||
changes: getFileChanges(flags),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function getFileType(flags) {
|
|
||||||
if (events.ItemIsFile & flags) return "file";
|
|
||||||
if (events.ItemIsDir & flags) return "directory";
|
|
||||||
if (events.ItemIsSymlink & flags) return "symlink";
|
|
||||||
}
|
|
||||||
function anyIsTrue(obj) {
|
|
||||||
for (let key in obj) {
|
|
||||||
if (obj[key]) return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
function getEventType(flags) {
|
|
||||||
if (events.ItemRemoved & flags) return "deleted";
|
|
||||||
if (events.ItemRenamed & flags) return "moved";
|
|
||||||
if (events.ItemCreated & flags) return "created";
|
|
||||||
if (events.ItemModified & flags) return "modified";
|
|
||||||
if (events.RootChanged & flags) return "root-changed";
|
|
||||||
if (events.ItemCloned & flags) return "cloned";
|
|
||||||
if (anyIsTrue(flags)) return "modified";
|
|
||||||
return "unknown";
|
|
||||||
}
|
|
||||||
function getFileChanges(flags) {
|
|
||||||
return {
|
|
||||||
inode: !!(events.ItemInodeMetaMod & flags),
|
|
||||||
finder: !!(events.ItemFinderInfoMod & flags),
|
|
||||||
access: !!(events.ItemChangeOwner & flags),
|
|
||||||
xattrs: !!(events.ItemXattrMod & flags),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.watch = watch;
|
|
||||||
exports.getInfo = getInfo;
|
|
||||||
exports.constants = events;
|
|
||||||
BIN
node_modules/fsevents/fsevents.node
generated
vendored
BIN
node_modules/fsevents/fsevents.node
generated
vendored
Binary file not shown.
62
node_modules/fsevents/package.json
generated
vendored
62
node_modules/fsevents/package.json
generated
vendored
@@ -1,62 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "fsevents",
|
|
||||||
"version": "2.3.2",
|
|
||||||
"description": "Native Access to MacOS FSEvents",
|
|
||||||
"main": "fsevents.js",
|
|
||||||
"types": "fsevents.d.ts",
|
|
||||||
"os": [
|
|
||||||
"darwin"
|
|
||||||
],
|
|
||||||
"files": [
|
|
||||||
"fsevents.d.ts",
|
|
||||||
"fsevents.js",
|
|
||||||
"fsevents.node"
|
|
||||||
],
|
|
||||||
"engines": {
|
|
||||||
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"clean": "node-gyp clean && rm -f fsevents.node",
|
|
||||||
"build": "node-gyp clean && rm -f fsevents.node && node-gyp rebuild && node-gyp clean",
|
|
||||||
"test": "/bin/bash ./test.sh 2>/dev/null",
|
|
||||||
"prepublishOnly": "npm run build"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/fsevents/fsevents.git"
|
|
||||||
},
|
|
||||||
"keywords": [
|
|
||||||
"fsevents",
|
|
||||||
"mac"
|
|
||||||
],
|
|
||||||
"contributors": [
|
|
||||||
{
|
|
||||||
"name": "Philipp Dunkel",
|
|
||||||
"email": "pip@pipobscure.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Ben Noordhuis",
|
|
||||||
"email": "info@bnoordhuis.nl"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Elan Shankar",
|
|
||||||
"email": "elan.shanker@gmail.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Miroslav Bajtoš",
|
|
||||||
"email": "mbajtoss@gmail.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Paul Miller",
|
|
||||||
"url": "https://paulmillr.com"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/fsevents/fsevents/issues"
|
|
||||||
},
|
|
||||||
"homepage": "https://github.com/fsevents/fsevents",
|
|
||||||
"devDependencies": {
|
|
||||||
"node-gyp": "^6.1.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
6
node_modules/imurmurhash/package.json
generated
vendored
6
node_modules/imurmurhash/package.json
generated
vendored
@@ -30,8 +30,10 @@
|
|||||||
"url": "https://github.com/homebrewing"
|
"url": "https://github.com/homebrewing"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {},
|
"dependencies": {
|
||||||
"devDependencies": {},
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.8.19"
|
"node": ">=0.8.19"
|
||||||
}
|
}
|
||||||
|
|||||||
3
node_modules/is-error/package.json
generated
vendored
3
node_modules/is-error/package.json
generated
vendored
@@ -1,5 +1,4 @@
|
|||||||
{
|
{ "name": "is-error",
|
||||||
"name": "is-error",
|
|
||||||
"version": "2.2.2",
|
"version": "2.2.2",
|
||||||
"description": "Detect whether a value is an error",
|
"description": "Detect whether a value is an error",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|||||||
6
node_modules/isarray/package.json
generated
vendored
6
node_modules/isarray/package.json
generated
vendored
@@ -15,11 +15,7 @@
|
|||||||
"devDependencies" : {
|
"devDependencies" : {
|
||||||
"tap" : "*"
|
"tap" : "*"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": ["browser","isarray","array"],
|
||||||
"browser",
|
|
||||||
"isarray",
|
|
||||||
"array"
|
|
||||||
],
|
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Julian Gruber",
|
"name": "Julian Gruber",
|
||||||
"email": "mail@juliangruber.com",
|
"email": "mail@juliangruber.com",
|
||||||
|
|||||||
9
node_modules/json-stable-stringify-without-jsonify/package.json
generated
vendored
9
node_modules/json-stable-stringify-without-jsonify/package.json
generated
vendored
@@ -3,7 +3,8 @@
|
|||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies",
|
"description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {},
|
"dependencies": {
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tape": "~1.0.4"
|
"tape": "~1.0.4"
|
||||||
},
|
},
|
||||||
@@ -14,10 +15,8 @@
|
|||||||
"files": "test/*.js",
|
"files": "test/*.js",
|
||||||
"browsers": [
|
"browsers": [
|
||||||
"ie/8..latest",
|
"ie/8..latest",
|
||||||
"ff/5",
|
"ff/5", "ff/latest",
|
||||||
"ff/latest",
|
"chrome/15", "chrome/latest",
|
||||||
"chrome/15",
|
|
||||||
"chrome/latest",
|
|
||||||
"safari/latest",
|
"safari/latest",
|
||||||
"opera/latest"
|
"opera/latest"
|
||||||
]
|
]
|
||||||
|
|||||||
4
node_modules/lodash.camelcase/package.json
generated
vendored
4
node_modules/lodash.camelcase/package.json
generated
vendored
@@ -13,7 +13,5 @@
|
|||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
||||||
],
|
],
|
||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": {
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
||||||
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/lodash.clonedeep/package.json
generated
vendored
4
node_modules/lodash.clonedeep/package.json
generated
vendored
@@ -13,7 +13,5 @@
|
|||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
||||||
],
|
],
|
||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": {
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
||||||
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/lodash.get/package.json
generated
vendored
4
node_modules/lodash.get/package.json
generated
vendored
@@ -13,7 +13,5 @@
|
|||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
||||||
],
|
],
|
||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": {
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
||||||
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/lodash.kebabcase/package.json
generated
vendored
4
node_modules/lodash.kebabcase/package.json
generated
vendored
@@ -13,7 +13,5 @@
|
|||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
||||||
],
|
],
|
||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": {
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
||||||
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/lodash.merge/package.json
generated
vendored
4
node_modules/lodash.merge/package.json
generated
vendored
@@ -12,7 +12,5 @@
|
|||||||
"Mathias Bynens <mathias@qiwi.be>"
|
"Mathias Bynens <mathias@qiwi.be>"
|
||||||
],
|
],
|
||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": {
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
||||||
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/lodash.set/package.json
generated
vendored
4
node_modules/lodash.set/package.json
generated
vendored
@@ -13,7 +13,5 @@
|
|||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
||||||
],
|
],
|
||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": {
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
||||||
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/lodash.snakecase/package.json
generated
vendored
4
node_modules/lodash.snakecase/package.json
generated
vendored
@@ -13,7 +13,5 @@
|
|||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
||||||
],
|
],
|
||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": {
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
||||||
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/lodash.truncate/package.json
generated
vendored
4
node_modules/lodash.truncate/package.json
generated
vendored
@@ -13,7 +13,5 @@
|
|||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
||||||
],
|
],
|
||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": {
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
||||||
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/lodash.upperfirst/package.json
generated
vendored
4
node_modules/lodash.upperfirst/package.json
generated
vendored
@@ -13,7 +13,5 @@
|
|||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
||||||
],
|
],
|
||||||
"repository": "lodash/lodash",
|
"repository": "lodash/lodash",
|
||||||
"scripts": {
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
||||||
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
4
node_modules/lodash/package.json
generated
vendored
4
node_modules/lodash/package.json
generated
vendored
@@ -13,7 +13,5 @@
|
|||||||
"John-David Dalton <john.david.dalton@gmail.com>",
|
"John-David Dalton <john.david.dalton@gmail.com>",
|
||||||
"Mathias Bynens <mathias@qiwi.be>"
|
"Mathias Bynens <mathias@qiwi.be>"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash-archive/lodash-cli for testing details.\"" }
|
||||||
"test": "echo \"See https://travis-ci.org/lodash-archive/lodash-cli for testing details.\""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
8
node_modules/requireindex/package.json
generated
vendored
8
node_modules/requireindex/package.json
generated
vendored
@@ -4,31 +4,39 @@
|
|||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"license" : "MIT",
|
"license" : "MIT",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/stephenhandley/requireindex.git"
|
"url": "git://github.com/stephenhandley/requireindex.git"
|
||||||
},
|
},
|
||||||
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node test/test.js"
|
"test": "node test/test.js"
|
||||||
},
|
},
|
||||||
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"require",
|
"require",
|
||||||
"index",
|
"index",
|
||||||
"index.js"
|
"index.js"
|
||||||
],
|
],
|
||||||
|
|
||||||
"directories" : {
|
"directories" : {
|
||||||
"lib" : ".",
|
"lib" : ".",
|
||||||
"test" : "test"
|
"test" : "test"
|
||||||
},
|
},
|
||||||
|
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url" : "http://github.com/stephenhandley/requireindex/issues"
|
"url" : "http://github.com/stephenhandley/requireindex/issues"
|
||||||
},
|
},
|
||||||
|
|
||||||
"engines" : {
|
"engines" : {
|
||||||
"node" : ">=0.10.5"
|
"node" : ">=0.10.5"
|
||||||
},
|
},
|
||||||
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"asserts": "4.0.x"
|
"asserts": "4.0.x"
|
||||||
},
|
},
|
||||||
|
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Stephen Handley",
|
"name": "Stephen Handley",
|
||||||
"email": "stephen.handley@gmail.com",
|
"email": "stephen.handley@gmail.com",
|
||||||
|
|||||||
3
node_modules/text-table/package.json
generated
vendored
3
node_modules/text-table/package.json
generated
vendored
@@ -19,8 +19,7 @@
|
|||||||
"firefox/10..latest",
|
"firefox/10..latest",
|
||||||
"safari/latest",
|
"safari/latest",
|
||||||
"opera/11.0..latest",
|
"opera/11.0..latest",
|
||||||
"iphone/6",
|
"iphone/6", "ipad/6"
|
||||||
"ipad/6"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
103
node_modules/type-detect/package.json
generated
vendored
103
node_modules/type-detect/package.json
generated
vendored
@@ -1,102 +1 @@
|
|||||||
{
|
{"name":"type-detect","description":"Improved typeof detection for node.js and the browser.","keywords":["type","typeof","types"],"license":"MIT","author":"Jake Luer <jake@alogicalparadox.com> (http://alogicalparadox.com)","contributors":["Keith Cirkel (https://github.com/keithamus)","David Losert (https://github.com/davelosert)","Aleksey Shvayka (https://github.com/shvaikalesh)","Lucas Fernandes da Costa (https://github.com/lucasfcosta)","Grant Snodgrass (https://github.com/meeber)","Jeremy Tice (https://github.com/jetpacmonkey)","Edward Betts (https://github.com/EdwardBetts)","dvlsg (https://github.com/dvlsg)","Amila Welihinda (https://github.com/amilajack)","Jake Champion (https://github.com/JakeChampion)","Miroslav Bajtoš (https://github.com/bajtos)"],"files":["index.js","type-detect.js"],"main":"./type-detect.js","repository":{"type":"git","url":"git+ssh://git@github.com/chaijs/type-detect.git"},"scripts":{"bench":"node bench","build":"rollup -c rollup.conf.js","commit-msg":"commitlint -x angular","lint":"eslint --ignore-path .gitignore .","prepare":"cross-env NODE_ENV=production npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post","pretest:node":"cross-env NODE_ENV=test npm run build","pretest:browser":"cross-env NODE_ENV=test npm run build","test":"npm run test:node && npm run test:browser","test:browser":"karma start --singleRun=true","test:node":"nyc mocha type-detect.test.js","posttest:node":"nyc report --report-dir \"coverage/node-$(node --version)\" --reporter=lcovonly && npm run upload-coverage","posttest:browser":"npm run upload-coverage","upload-coverage":"codecov"},"eslintConfig":{"env":{"es6":true},"extends":["strict/es6"],"globals":{"HTMLElement":false},"rules":{"complexity":0,"max-statements":0,"prefer-rest-params":0}},"devDependencies":{"@commitlint/cli":"^4.2.2","benchmark":"^2.1.0","buble":"^0.16.0","codecov":"^3.0.0","commitlint-config-angular":"^4.2.1","cross-env":"^5.1.1","eslint":"^4.10.0","eslint-config-strict":"^14.0.0","eslint-plugin-filenames":"^1.2.0","husky":"^0.14.3","karma":"^1.7.1","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-detect-browsers":"^2.2.5","karma-edge-launcher":"^0.4.2","karma-firefox-launcher":"^1.0.1","karma-ie-launcher":"^1.0.0","karma-mocha":"^1.3.0","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-safaritechpreview-launcher":"0.0.6","karma-sauce-launcher":"^1.2.0","mocha":"^4.0.1","nyc":"^11.3.0","rollup":"^0.50.0","rollup-plugin-buble":"^0.16.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-istanbul":"^1.1.0","rollup-plugin-node-resolve":"^3.0.0","semantic-release":"^8.2.0","simple-assert":"^1.0.0"},"engines":{"node":">=4"},"version":"4.0.8"}
|
||||||
"name": "type-detect",
|
|
||||||
"description": "Improved typeof detection for node.js and the browser.",
|
|
||||||
"keywords": [
|
|
||||||
"type",
|
|
||||||
"typeof",
|
|
||||||
"types"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "Jake Luer <jake@alogicalparadox.com> (http://alogicalparadox.com)",
|
|
||||||
"contributors": [
|
|
||||||
"Keith Cirkel (https://github.com/keithamus)",
|
|
||||||
"David Losert (https://github.com/davelosert)",
|
|
||||||
"Aleksey Shvayka (https://github.com/shvaikalesh)",
|
|
||||||
"Lucas Fernandes da Costa (https://github.com/lucasfcosta)",
|
|
||||||
"Grant Snodgrass (https://github.com/meeber)",
|
|
||||||
"Jeremy Tice (https://github.com/jetpacmonkey)",
|
|
||||||
"Edward Betts (https://github.com/EdwardBetts)",
|
|
||||||
"dvlsg (https://github.com/dvlsg)",
|
|
||||||
"Amila Welihinda (https://github.com/amilajack)",
|
|
||||||
"Jake Champion (https://github.com/JakeChampion)",
|
|
||||||
"Miroslav Bajtoš (https://github.com/bajtos)"
|
|
||||||
],
|
|
||||||
"files": [
|
|
||||||
"index.js",
|
|
||||||
"type-detect.js"
|
|
||||||
],
|
|
||||||
"main": "./type-detect.js",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+ssh://git@github.com/chaijs/type-detect.git"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"bench": "node bench",
|
|
||||||
"build": "rollup -c rollup.conf.js",
|
|
||||||
"commit-msg": "commitlint -x angular",
|
|
||||||
"lint": "eslint --ignore-path .gitignore .",
|
|
||||||
"prepare": "cross-env NODE_ENV=production npm run build",
|
|
||||||
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
|
|
||||||
"pretest:node": "cross-env NODE_ENV=test npm run build",
|
|
||||||
"pretest:browser": "cross-env NODE_ENV=test npm run build",
|
|
||||||
"test": "npm run test:node && npm run test:browser",
|
|
||||||
"test:browser": "karma start --singleRun=true",
|
|
||||||
"test:node": "nyc mocha type-detect.test.js",
|
|
||||||
"posttest:node": "nyc report --report-dir \"coverage/node-$(node --version)\" --reporter=lcovonly && npm run upload-coverage",
|
|
||||||
"posttest:browser": "npm run upload-coverage",
|
|
||||||
"upload-coverage": "codecov"
|
|
||||||
},
|
|
||||||
"eslintConfig": {
|
|
||||||
"env": {
|
|
||||||
"es6": true
|
|
||||||
},
|
|
||||||
"extends": [
|
|
||||||
"strict/es6"
|
|
||||||
],
|
|
||||||
"globals": {
|
|
||||||
"HTMLElement": false
|
|
||||||
},
|
|
||||||
"rules": {
|
|
||||||
"complexity": 0,
|
|
||||||
"max-statements": 0,
|
|
||||||
"prefer-rest-params": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@commitlint/cli": "^4.2.2",
|
|
||||||
"benchmark": "^2.1.0",
|
|
||||||
"buble": "^0.16.0",
|
|
||||||
"codecov": "^3.0.0",
|
|
||||||
"commitlint-config-angular": "^4.2.1",
|
|
||||||
"cross-env": "^5.1.1",
|
|
||||||
"eslint": "^4.10.0",
|
|
||||||
"eslint-config-strict": "^14.0.0",
|
|
||||||
"eslint-plugin-filenames": "^1.2.0",
|
|
||||||
"husky": "^0.14.3",
|
|
||||||
"karma": "^1.7.1",
|
|
||||||
"karma-chrome-launcher": "^2.2.0",
|
|
||||||
"karma-coverage": "^1.1.1",
|
|
||||||
"karma-detect-browsers": "^2.2.5",
|
|
||||||
"karma-edge-launcher": "^0.4.2",
|
|
||||||
"karma-firefox-launcher": "^1.0.1",
|
|
||||||
"karma-ie-launcher": "^1.0.0",
|
|
||||||
"karma-mocha": "^1.3.0",
|
|
||||||
"karma-opera-launcher": "^1.0.0",
|
|
||||||
"karma-safari-launcher": "^1.0.0",
|
|
||||||
"karma-safaritechpreview-launcher": "0.0.6",
|
|
||||||
"karma-sauce-launcher": "^1.2.0",
|
|
||||||
"mocha": "^4.0.1",
|
|
||||||
"nyc": "^11.3.0",
|
|
||||||
"rollup": "^0.50.0",
|
|
||||||
"rollup-plugin-buble": "^0.16.0",
|
|
||||||
"rollup-plugin-commonjs": "^8.2.6",
|
|
||||||
"rollup-plugin-istanbul": "^1.1.0",
|
|
||||||
"rollup-plugin-node-resolve": "^3.0.0",
|
|
||||||
"semantic-release": "^8.2.0",
|
|
||||||
"simple-assert": "^1.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
},
|
|
||||||
"version": "4.0.8"
|
|
||||||
}
|
|
||||||
|
|||||||
4
node_modules/zlib/package.json
generated
vendored
4
node_modules/zlib/package.json
generated
vendored
@@ -12,9 +12,7 @@
|
|||||||
"node": ">=0.2.0"
|
"node": ">=0.2.0"
|
||||||
},
|
},
|
||||||
"licenses": [
|
"licenses": [
|
||||||
{
|
{ "type": "BSD" }
|
||||||
"type": "BSD"
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"main": "./lib/zlib"
|
"main": "./lib/zlib"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import {
|
|||||||
CODEQL_VERSION_COUNTS_LINES,
|
CODEQL_VERSION_COUNTS_LINES,
|
||||||
CODEQL_VERSION_NEW_TRACING,
|
CODEQL_VERSION_NEW_TRACING,
|
||||||
getCodeQL,
|
getCodeQL,
|
||||||
|
runTool,
|
||||||
} from "./codeql";
|
} from "./codeql";
|
||||||
import * as configUtils from "./config-utils";
|
import * as configUtils from "./config-utils";
|
||||||
import { countLoc } from "./count-loc";
|
import { countLoc } from "./count-loc";
|
||||||
@@ -433,15 +434,6 @@ export async function runFinalize(
|
|||||||
logger: Logger,
|
logger: Logger,
|
||||||
featureFlags: FeatureFlags
|
featureFlags: FeatureFlags
|
||||||
) {
|
) {
|
||||||
const codeql = await getCodeQL(config.codeQLCmd);
|
|
||||||
if (await util.codeQlVersionAbove(codeql, CODEQL_VERSION_NEW_TRACING)) {
|
|
||||||
// Delete variables as specified by the end-tracing script
|
|
||||||
await endTracingForCluster(config);
|
|
||||||
} else {
|
|
||||||
// Delete the tracer config env var to avoid tracing ourselves
|
|
||||||
delete process.env[sharedEnv.ODASA_TRACER_CONFIGURATION];
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await del(outputDir, { force: true });
|
await del(outputDir, { force: true });
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
@@ -458,6 +450,17 @@ export async function runFinalize(
|
|||||||
logger,
|
logger,
|
||||||
featureFlags
|
featureFlags
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const codeql = await getCodeQL(config.codeQLCmd);
|
||||||
|
if (await util.codeQlVersionAbove(codeql, CODEQL_VERSION_NEW_TRACING)) {
|
||||||
|
// Delete variables as specified by the end-tracing script
|
||||||
|
await runTool("bash", ["-c", "export"]);
|
||||||
|
await endTracingForCluster(config);
|
||||||
|
await runTool("bash", ["-c", "export"]);
|
||||||
|
} else {
|
||||||
|
// Delete the tracer config env var to avoid tracing ourselves
|
||||||
|
delete process.env[sharedEnv.ODASA_TRACER_CONFIGURATION];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function runCleanup(
|
export async function runCleanup(
|
||||||
|
|||||||
@@ -737,13 +737,14 @@ async function getCodeQLForCmd(
|
|||||||
// because that always passes in a process name.
|
// because that always passes in a process name.
|
||||||
extraArgs.push(`--trace-process-level=${processLevel || 3}`);
|
extraArgs.push(`--trace-process-level=${processLevel || 3}`);
|
||||||
}
|
}
|
||||||
|
extraArgs.push("--internal-use-lua-tracing");
|
||||||
if (
|
if (
|
||||||
await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACER_CONFIG)
|
await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACER_CONFIG)
|
||||||
) {
|
) {
|
||||||
if (await featureFlags.getValue(FeatureFlag.LuaTracerConfigEnabled)) {
|
if (await featureFlags.getValue(FeatureFlag.LuaTracerConfigEnabled)) {
|
||||||
extraArgs.push("--internal-use-lua-tracing");
|
//
|
||||||
} else {
|
} else {
|
||||||
extraArgs.push("--no-internal-use-lua-tracing");
|
// extraArgs.push("--no-internal-use-lua-tracing");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -821,10 +822,11 @@ async function getCodeQLForCmd(
|
|||||||
if (
|
if (
|
||||||
await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACER_CONFIG)
|
await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACER_CONFIG)
|
||||||
) {
|
) {
|
||||||
if (await featureFlags.getValue(FeatureFlag.LuaTracerConfigEnabled)) {
|
|
||||||
extraArgs.push("--internal-use-lua-tracing");
|
extraArgs.push("--internal-use-lua-tracing");
|
||||||
|
if (await featureFlags.getValue(FeatureFlag.LuaTracerConfigEnabled)) {
|
||||||
|
// extraArgs.push("--internal-use-lua-tracing");
|
||||||
} else {
|
} else {
|
||||||
extraArgs.push("--no-internal-use-lua-tracing");
|
// extraArgs.push("--no-internal-use-lua-tracing");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1128,7 +1130,7 @@ export function getExtraOptions(
|
|||||||
*/
|
*/
|
||||||
const maxErrorSize = 20_000;
|
const maxErrorSize = 20_000;
|
||||||
|
|
||||||
async function runTool(cmd: string, args: string[] = []) {
|
export async function runTool(cmd: string, args: string[] = []) {
|
||||||
let output = "";
|
let output = "";
|
||||||
let error = "";
|
let error = "";
|
||||||
const exitCode = await new toolrunner.ToolRunner(cmd, args, {
|
const exitCode = await new toolrunner.ToolRunner(cmd, args, {
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
gcc -o main main.c
|
gcc -o main main.c
|
||||||
|
export
|
||||||
dotnet build -p:UseSharedCompilation=false
|
dotnet build -p:UseSharedCompilation=false
|
||||||
|
|
||||||
javac Main.java
|
javac Main.java
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user