@coana-tech/cli 14.12.13 → 14.12.14

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 CHANGED
@@ -225660,7 +225660,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
225660
225660
  }
225661
225661
 
225662
225662
  // dist/version.js
225663
- var version2 = "14.12.13";
225663
+ var version2 = "14.12.14";
225664
225664
 
225665
225665
  // dist/cli-core.js
225666
225666
  var { mapValues, omit, partition, pick } = import_lodash15.default;
@@ -226674,6 +226674,9 @@ upgradePurls.name("upgrade-purls").argument("<path>", "File system path to the f
226674
226674
  var computeFixesAndUpgradePurlsCmd = new Command();
226675
226675
  computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument("<path>", "File system path to the folder containing the project").option("-a, --apply-fixes-to <ghsas...>", 'GHSA IDs to compute fixes for. Use "all" to compute fixes for all vulnerabilities.', []).option("--dry-run", "Show what changes would be made without actually making them", false).option("-g, --glob <pattern>", "Glob pattern to filter workspaces by absolute file path").option("-d, --debug", "Enable debug logging", false).option("-s, --silent", "Silence all debug/warning output", false).option("--range-style <style>", 'Range style to use for the output. Currently only "pin" is supported and it only works for npm.').addOption(new Option("--run-without-docker", "Run package managers without using docker").default(process.env.RUN_WITHOUT_DOCKER === "true").hideHelp()).addOption(new Option("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket. If provided, Socket will be used for computing dependency trees.").hideHelp()).version(version2).action(async (path2, options) => {
226676
226676
  process.env.DOCKER_IMAGE_TAG ??= version2;
226677
+ if (options.rangeStyle && options.rangeStyle === "preserve") {
226678
+ options.rangeStyle = void 0;
226679
+ }
226677
226680
  if (options.rangeStyle && options.rangeStyle !== "pin") {
226678
226681
  throw new Error('Range style must be "pin"');
226679
226682
  }
@@ -226692,7 +226695,12 @@ compareReportsCommand.name("compare-reports").argument("<baselineReportPath>", "
226692
226695
  const newReport = await readReport(newReportPath);
226693
226696
  await compareReports(baselineReport, newReport, options);
226694
226697
  });
226695
- program2.name("coana-cli").addCommand(run2, { isDefault: true }).addCommand(applyFixes).addCommand(upgradePurls, { hidden: true }).addCommand(compareReportsCommand).addCommand(computeFixesAndUpgradePurlsCmd, { hidden: true }).configureHelp({ sortSubcommands: true }).version(version2);
226698
+ var findVulnerabilities = new Command();
226699
+ findVulnerabilities.name("find-vulnerabilities").requiredOption("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket.").action(async (options) => {
226700
+ const { artifacts } = await fetchArtifactsFromManifestsTarHash(options.manifestsTarHash);
226701
+ console.log(i5(artifacts.flatMap((a4) => a4.vulnerabilities?.map((v) => v.ghsaId) ?? [])));
226702
+ });
226703
+ program2.name("coana-cli").addCommand(run2, { isDefault: true }).addCommand(findVulnerabilities).addCommand(applyFixes).addCommand(upgradePurls, { hidden: true }).addCommand(compareReportsCommand).addCommand(computeFixesAndUpgradePurlsCmd, { hidden: true }).configureHelp({ sortSubcommands: true }).version(version2);
226696
226704
  program2.parseAsync();
226697
226705
  var defaultCliOptions = {
226698
226706
  debug: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.13",
3
+ "version": "14.12.14",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {