selenium-standalone
Advanced tools
Comparing version 8.0.8 to 8.0.9
@@ -47,3 +47,5 @@ module.exports = computeDownloadUrls; | ||
opts.seleniumBaseURL, | ||
`selenium-${opts.seleniumVersion}`, | ||
`selenium-${ | ||
isSelenium4(opts.seleniumVersion) ? getVersionWithZeroedPatchPart(opts.seleniumVersion) : opts.seleniumVersion | ||
}`, | ||
opts.seleniumVersion | ||
@@ -257,1 +259,11 @@ ), | ||
} | ||
function getVersionWithZeroedPatchPart(fullVersion) { | ||
if (!/^\d+\.\d+\.\d+$/i.test(fullVersion)) { | ||
// If version longer than just 3 numbers, like '4.0.0-beta-1', do nothing | ||
return fullVersion; | ||
} | ||
// else make version patch part zero: '4.1.1' => '4.1.0' | ||
const [major, minor] = fullVersion.split('.'); | ||
return `${major}.${minor}.0`; | ||
} |
{ | ||
"name": "selenium-standalone", | ||
"version": "8.0.8", | ||
"version": "8.0.9", | ||
"description": "installs a `selenium-standalone` command line to install and start a standalone selenium server", | ||
@@ -61,3 +61,3 @@ "main": "index.js", | ||
"doctoc": "2.1.0", | ||
"eslint": "8.3.0", | ||
"eslint": "8.7.0", | ||
"eslint-config-prettier": "8.3.0", | ||
@@ -67,8 +67,8 @@ "eslint-plugin-prettier": "4.0.0", | ||
"json": "11.0.0", | ||
"mocha": "9.1.3", | ||
"mocha": "9.1.4", | ||
"mversion": "2.0.1", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "2.5.0", | ||
"prettier": "2.5.1", | ||
"release-it": "^14.10.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84999
1270