@coana-tech/cli 14.12.195 → 14.12.196

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
@@ -234328,6 +234328,7 @@ function getNpmChecks(command, manifestFileNames) {
234328
234328
  const checks = [];
234329
234329
  const nexe = isNexeMode();
234330
234330
  if (command === "run") {
234331
+ checks.push(Promise.resolve(checkNodeVersion(20)));
234331
234332
  if (!nexe) {
234332
234333
  checks.push(checkTool("npm", "NPM", "Required for NPM dependency management. Install from https://nodejs.org"));
234333
234334
  }
@@ -234376,6 +234377,17 @@ async function checkEitherTool(command1, command2, ecosystem, toolLabel, message
234376
234377
  return null;
234377
234378
  }
234378
234379
  var JAVA_HOME_ENV_VARS = ["JAVA_HOME", "JAVA8_HOME", "JAVA11_HOME", "JAVA17_HOME", "JAVA21_HOME"];
234380
+ function checkNodeVersion(minimumMajor) {
234381
+ const currentMajor = parseInt(process.versions.node.split(".")[0], 10);
234382
+ if (isNaN(currentMajor) || currentMajor < minimumMajor) {
234383
+ return {
234384
+ ecosystem: "NPM",
234385
+ tool: "node",
234386
+ message: `Requires Node.js version ${minimumMajor} or higher (current: ${process.versions.node}). Install from https://nodejs.org`
234387
+ };
234388
+ }
234389
+ return null;
234390
+ }
234379
234391
  async function checkJavaAvailable() {
234380
234392
  if (await isCommandAvailable("java"))
234381
234393
  return null;
@@ -251640,7 +251652,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
251640
251652
  }
251641
251653
 
251642
251654
  // dist/version.js
251643
- var version3 = "14.12.195";
251655
+ var version3 = "14.12.196";
251644
251656
 
251645
251657
  // dist/cli-core.js
251646
251658
  var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.195",
3
+ "version": "14.12.196",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {