@coana-tech/cli 14.12.176 → 14.12.177

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
@@ -235308,7 +235308,13 @@ var bgWhiteBright = format5(107, 49);
235308
235308
  import { readFile as readFile34 } from "fs/promises";
235309
235309
  import { platform as platform9 } from "process";
235310
235310
  var VM_MAX_MAP_COUNT_PATH = "/proc/sys/vm/max_map_count";
235311
+ function checkNotWindows() {
235312
+ if (platform9 === "win32") {
235313
+ throw new Error("The Coana CLI is not supported on Windows. Please use Linux or macOS, or run in a Docker container or WSL (Windows Subsystem for Linux).");
235314
+ }
235315
+ }
235311
235316
  async function checkSystemRequirements(memoryLimitInMb, socketMode) {
235317
+ checkNotWindows();
235312
235318
  if (platform9 !== "linux" || !socketMode) {
235313
235319
  return;
235314
235320
  }
@@ -251421,7 +251427,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
251421
251427
  }
251422
251428
 
251423
251429
  // dist/version.js
251424
- var version3 = "14.12.176";
251430
+ var version3 = "14.12.177";
251425
251431
 
251426
251432
  // dist/cli-core.js
251427
251433
  var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
@@ -252438,11 +252444,13 @@ run2.name("run").argument("<path>", "File system path to folder containing the p
252438
252444
  });
252439
252445
  var applyFixes = new Command();
252440
252446
  applyFixes.name("apply-fixes").argument("<path>", "File system path to the folder containing the project").argument("<fixIds...>", "Apply the fixes associated with the fixIds of the form fix_UUID").option("-r, --recompute-outdated", "Look for a new fix solution when the old solution is outdated", false).option("-d, --debug", "Enable debug logging", false).option("-s, --silent", "Silence all debug/warning output", false).option("--silent-spinner", "Silence spinner", "CI" in process.env || !process.stdin.isTTY).addOption(new Option("--run-without-docker", "Run package managers without using docker").default(process.env.RUN_WITHOUT_DOCKER === "true").hideHelp()).version(version3).action(async (path9, fixIds, options) => {
252447
+ checkNotWindows();
252441
252448
  process.env.DOCKER_IMAGE_TAG ??= version3;
252442
252449
  await applyFix(path9, fixIds, options);
252443
252450
  }).configureHelp({ sortOptions: true });
252444
252451
  var computeFixesAndUpgradePurlsCmd = new Command();
252445
252452
  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("-i, --include <patterns...>", "Glob patterns to include workspaces").option("-e, --exclude <patterns...>", "Glob patterns to exclude workspaces").option("-d, --debug", "Enable debug logging", false).option("-s, --silent", "Silence all debug/warning output", false).option("--silent-spinner", "Silence spinner", "CI" in process.env || !process.stdin.isTTY).option("--range-style <style>", 'Range style to use for the output. Currently only "pin" is supported and it only works for npm.').option("--disable-major-updates", "Do not suggest major updates. If only major update are available, the fix will not be applied.", false).option("-o, --output-file <file>", "Writes output to a JSON file").option("--minimum-release-age <minimumReleaseAge>", "Do not allow upgrades to package versions that are newer than minimumReleaseAge. Format is 2m, 5h, 3d or 1w").option("--show-affected-direct-dependencies", "Show the affected direct dependencies for each vulnerability and what upgrades could fix them - does not apply the upgrades.", false).option("--purl-types <purlTypes...>", "List of PURL types to filter artifacts by (space-separated). Only vulnerabilities from artifacts matching these types will be included.").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(version3).action(async (path9, options) => {
252453
+ checkNotWindows();
252446
252454
  process.env.DOCKER_IMAGE_TAG ??= version3;
252447
252455
  if (options.outputFile && !options.outputFile.endsWith(".json")) {
252448
252456
  throw new Error("Output file must have a .json extension");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.176",
3
+ "version": "14.12.177",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {