jfrog-cli-v2 2.50.0 → 2.50.2

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.
Files changed (2) hide show
  1. package/init.js +3 -3
  2. package/package.json +1 -1
package/init.js CHANGED
@@ -97,8 +97,8 @@ function isValidNpmVersion() {
97
97
  const child_process = require("child_process");
98
98
  const npmVersionCmdOut = child_process.execSync("npm version -json");
99
99
  const npmVersion = JSON.parse(npmVersionCmdOut).npm;
100
- // Supported since version 5.0.0
101
- return parseInt(npmVersion.charAt(0)) > 4;
100
+ // Supported since version 5.0.0 (also support npm v10+)
101
+ return parseInt(npmVersion.split('.')[0]) > 4;
102
102
  }
103
103
 
104
104
  function writeToFile(response) {
@@ -153,4 +153,4 @@ function getFileName() {
153
153
  executable += ".exe";
154
154
  }
155
155
  return executable;
156
- }
156
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jfrog-cli-v2",
3
- "version": "2.50.0",
3
+ "version": "2.50.2",
4
4
  "description": "🐸 Command-line interface for JFrog Artifactory, Xray, Distribution, Pipelines and Mission Control 🐸",
5
5
  "homepage": "https://github.com/jfrog/jfrog-cli",
6
6
  "preferGlobal": true,