@coana-tech/cli 14.12.126 → 14.12.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.mjs +22 -37
- package/package.json +1 -1
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
- package/repos/coana-tech/javap-service/javap-service.jar +0 -0
package/cli.mjs
CHANGED
|
@@ -73599,9 +73599,9 @@ var require_lockfile = __commonJS({
|
|
|
73599
73599
|
/* 85 */
|
|
73600
73600
|
/***/
|
|
73601
73601
|
function(module3, exports3) {
|
|
73602
|
-
module3.exports = function(
|
|
73602
|
+
module3.exports = function(exec4) {
|
|
73603
73603
|
try {
|
|
73604
|
-
return !!
|
|
73604
|
+
return !!exec4();
|
|
73605
73605
|
} catch (e) {
|
|
73606
73606
|
return true;
|
|
73607
73607
|
}
|
|
@@ -73733,9 +73733,9 @@ var require_lockfile = __commonJS({
|
|
|
73733
73733
|
/* 104 */
|
|
73734
73734
|
/***/
|
|
73735
73735
|
function(module3, exports3) {
|
|
73736
|
-
module3.exports = function(
|
|
73736
|
+
module3.exports = function(exec4) {
|
|
73737
73737
|
try {
|
|
73738
|
-
return { e: false, v:
|
|
73738
|
+
return { e: false, v: exec4() };
|
|
73739
73739
|
} catch (e) {
|
|
73740
73740
|
return { e: true, v: e };
|
|
73741
73741
|
}
|
|
@@ -75208,7 +75208,7 @@ ${indent3}`);
|
|
|
75208
75208
|
});
|
|
75209
75209
|
} catch (e) {
|
|
75210
75210
|
}
|
|
75211
|
-
module3.exports = function(
|
|
75211
|
+
module3.exports = function(exec4, skipClosing) {
|
|
75212
75212
|
if (!skipClosing && !SAFE_CLOSING) return false;
|
|
75213
75213
|
var safe = false;
|
|
75214
75214
|
try {
|
|
@@ -75220,7 +75220,7 @@ ${indent3}`);
|
|
|
75220
75220
|
arr[ITERATOR] = function() {
|
|
75221
75221
|
return iter;
|
|
75222
75222
|
};
|
|
75223
|
-
|
|
75223
|
+
exec4(arr);
|
|
75224
75224
|
} catch (e) {
|
|
75225
75225
|
}
|
|
75226
75226
|
return safe;
|
|
@@ -75543,8 +75543,8 @@ ${indent3}`);
|
|
|
75543
75543
|
var USE_NATIVE = !!function() {
|
|
75544
75544
|
try {
|
|
75545
75545
|
var promise = $Promise.resolve(1);
|
|
75546
|
-
var FakePromise = (promise.constructor = {})[__webpack_require__(13)("species")] = function(
|
|
75547
|
-
|
|
75546
|
+
var FakePromise = (promise.constructor = {})[__webpack_require__(13)("species")] = function(exec4) {
|
|
75547
|
+
exec4(empty2, empty2);
|
|
75548
75548
|
};
|
|
75549
75549
|
return (isNode2 || typeof PromiseRejectionEvent == "function") && promise.then(empty2) instanceof FakePromise && v8.indexOf("6.6") !== 0 && userAgent.indexOf("Chrome/66") === -1;
|
|
75550
75550
|
} catch (e) {
|
|
@@ -206687,13 +206687,6 @@ async function execNeverFail(cmd, dir, options) {
|
|
|
206687
206687
|
childProcess.stdin?.end();
|
|
206688
206688
|
});
|
|
206689
206689
|
}
|
|
206690
|
-
async function exec(cmd, dir, options) {
|
|
206691
|
-
const { error, stdout, stderr } = await execNeverFail(cmd, dir, options);
|
|
206692
|
-
if (!error) return { stdout, stderr };
|
|
206693
|
-
error.stdout = stdout;
|
|
206694
|
-
error.stderr = stderr;
|
|
206695
|
-
throw error;
|
|
206696
|
-
}
|
|
206697
206690
|
async function runCommandResolveStdOut(cmd, dir, options) {
|
|
206698
206691
|
const { stdout, error } = await execNeverFail(cmd, dir, options);
|
|
206699
206692
|
if (error) throw error;
|
|
@@ -213312,17 +213305,6 @@ async function execNeverFail2(cmd, dir, options) {
|
|
|
213312
213305
|
logger.debug(`Command ${formatCmd(cmd, dir)} finished ${result.error ? "with error" : "successfully"}`);
|
|
213313
213306
|
return result;
|
|
213314
213307
|
}
|
|
213315
|
-
async function exec2(cmd, dir, options) {
|
|
213316
|
-
logger.debug(`Running command: ${formatCmd(cmd, dir)}`);
|
|
213317
|
-
try {
|
|
213318
|
-
const result = await exec(cmd, dir, options);
|
|
213319
|
-
logger.debug(`Command ${formatCmd(cmd, dir)} finished successfully`);
|
|
213320
|
-
return result;
|
|
213321
|
-
} catch (error) {
|
|
213322
|
-
logger.debug(`Command ${formatCmd(cmd, dir)} finished with error`);
|
|
213323
|
-
throw error;
|
|
213324
|
-
}
|
|
213325
|
-
}
|
|
213326
213308
|
async function runCommandResolveStdOut2(cmd, dir, options) {
|
|
213327
213309
|
logger.debug(`Running command: ${formatCmd(cmd, dir)}`);
|
|
213328
213310
|
try {
|
|
@@ -213469,13 +213451,13 @@ var Diff = class {
|
|
|
213469
213451
|
editLength++;
|
|
213470
213452
|
};
|
|
213471
213453
|
if (callback) {
|
|
213472
|
-
(function
|
|
213454
|
+
(function exec4() {
|
|
213473
213455
|
setTimeout(function() {
|
|
213474
213456
|
if (editLength > maxEditLength || Date.now() > abortAfterTimestamp) {
|
|
213475
213457
|
return callback(void 0);
|
|
213476
213458
|
}
|
|
213477
213459
|
if (!execEditLength()) {
|
|
213478
|
-
|
|
213460
|
+
exec4();
|
|
213479
213461
|
}
|
|
213480
213462
|
}, 0);
|
|
213481
213463
|
})();
|
|
@@ -225731,8 +225713,8 @@ var getNpmBin = once(async () => {
|
|
|
225731
225713
|
async function actuallyRunInstall(specificPackagesArgs = [], dir) {
|
|
225732
225714
|
const installationCommand = cmdt2`${await getNpmBin()} install -f --ignore-scripts --no-fund --no-audit --no-progress ${specificPackagesArgs}`;
|
|
225733
225715
|
logger.debug(`Running installation command: "${installationCommand}" in ${dir}`);
|
|
225734
|
-
const result = execAndLogOnFailure4(installationCommand, dir);
|
|
225735
|
-
logger.info(`Installation completed.`);
|
|
225716
|
+
const result = await execAndLogOnFailure4(installationCommand, dir);
|
|
225717
|
+
logger.info(`Installation ${result ? "completed" : "failed"}.`);
|
|
225736
225718
|
return result;
|
|
225737
225719
|
}
|
|
225738
225720
|
async function getWorkspacePathsFromPackageJSON(projectFolder, useDotWhenNoWorkspaces = false) {
|
|
@@ -225926,7 +225908,7 @@ var PnpmFixingManager = class extends NpmEcosystemFixingManager {
|
|
|
225926
225908
|
const installationCommand = cmdt`pnpm install --ignore-scripts${await this.getPnpmMajorVersion() >= 9 && specificPackagesCmd.length === 0 ? "--no-frozen-lockfile" : ""} --config.confirmModulesPurge=false ${specificPackagesCmd}`;
|
|
225927
225909
|
const installDir = resolve22(this.rootDir, this.subprojectPath, workspacePath);
|
|
225928
225910
|
logger.info(`Running installation command: "${installationCommand}" in ${installDir}`);
|
|
225929
|
-
await
|
|
225911
|
+
await execAndLogOnFailure2(installationCommand, installDir);
|
|
225930
225912
|
logger.info(`Installation completed.`);
|
|
225931
225913
|
}
|
|
225932
225914
|
async getLockFileYaml() {
|
|
@@ -226026,7 +226008,10 @@ var PnpmFixingManager = class extends NpmEcosystemFixingManager {
|
|
|
226026
226008
|
async finalizeFixes() {
|
|
226027
226009
|
const cmd = cmdt`pnpm install --ignore-scripts --fix-lockfile --config.confirmModulesPurge=false `;
|
|
226028
226010
|
logger.info(`Adjusting lock file changes by running '${cmd}'`);
|
|
226029
|
-
await
|
|
226011
|
+
const result = await execAndLogOnFailure2(cmd, resolve22(this.rootDir, this.subprojectPath));
|
|
226012
|
+
if (!result) {
|
|
226013
|
+
throw new Error(`Failed to install packages`);
|
|
226014
|
+
}
|
|
226030
226015
|
}
|
|
226031
226016
|
};
|
|
226032
226017
|
function getVersionNumber(version4) {
|
|
@@ -236242,7 +236227,7 @@ function getMongoClient() {
|
|
|
236242
236227
|
}
|
|
236243
236228
|
|
|
236244
236229
|
// ../security-auditor/security-auditor-api/src/vulnerability-patterns-helper/get-interesting-urls-for-vulnerability.ts
|
|
236245
|
-
import { exec as
|
|
236230
|
+
import { exec as exec3 } from "child_process";
|
|
236246
236231
|
import { promisify } from "util";
|
|
236247
236232
|
|
|
236248
236233
|
// ../../node_modules/.pnpm/cheerio@1.0.0-rc.12/node_modules/cheerio/lib/esm/options.js
|
|
@@ -249838,7 +249823,7 @@ async function getInterestingURLsForVulnerability(vulnerability, packageMetadata
|
|
|
249838
249823
|
}
|
|
249839
249824
|
async function computeComparisonURLs(scmUrl, vulnAndFixVersionsArr) {
|
|
249840
249825
|
try {
|
|
249841
|
-
const gitTags = (await promisify(
|
|
249826
|
+
const gitTags = (await promisify(exec3)(`git ls-remote ${scmUrl} | grep -F "refs/tags"`)).stdout.split("\n");
|
|
249842
249827
|
logger3.debug("gitTags", gitTags);
|
|
249843
249828
|
logger3.debug("vulnAndFixVersionsArr", vulnAndFixVersionsArr);
|
|
249844
249829
|
const versionToSha = {};
|
|
@@ -249873,7 +249858,7 @@ async function computeInterestingCommitURLs(text3, scmUrl) {
|
|
|
249873
249858
|
const repo = scmUrl.split("/").slice(-2).join("/");
|
|
249874
249859
|
const cmd = `gh search commits ${text3} --repo ${repo}`;
|
|
249875
249860
|
logger3.debug(`Finding issue or PR url for text ${text3}`, cmd);
|
|
249876
|
-
const { stdout } = await promisify(
|
|
249861
|
+
const { stdout } = await promisify(exec3)(cmd, { shell: "/bin/zsh" });
|
|
249877
249862
|
return stdout.split("\n").filter((line) => line).map((line) => {
|
|
249878
249863
|
const [repo2, sha] = line.split(" ");
|
|
249879
249864
|
return `https://www.github.com/${repo2}/commit/${sha}`;
|
|
@@ -249887,7 +249872,7 @@ async function computeInterestingIssueAndPRUrlsWithText(text3, scmUrl) {
|
|
|
249887
249872
|
const repo = scmUrl.split("/").slice(-2).join("/");
|
|
249888
249873
|
const cmd = `gh search issues ${text3} in:title,body,comment --repo ${repo} --include-prs`;
|
|
249889
249874
|
console.log(`Finding issue or PR url for text ${text3}`, cmd);
|
|
249890
|
-
const { stdout } = await promisify(
|
|
249875
|
+
const { stdout } = await promisify(exec3)(cmd, { shell: "/bin/zsh" });
|
|
249891
249876
|
return stdout.split("\n").filter((line) => line).map((line) => {
|
|
249892
249877
|
const [issueOrPr, repo2, id] = line.split(" ");
|
|
249893
249878
|
const issueOrPrUrlPart = issueOrPr === "issue" ? "issues" : "pull";
|
|
@@ -251116,7 +251101,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
251116
251101
|
}
|
|
251117
251102
|
|
|
251118
251103
|
// dist/version.js
|
|
251119
|
-
var version3 = "14.12.
|
|
251104
|
+
var version3 = "14.12.127";
|
|
251120
251105
|
|
|
251121
251106
|
// dist/cli-core.js
|
|
251122
251107
|
var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|