addons-moz-compare
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "addons-moz-compare", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "JS implementation to compare add-on versions.", | ||
@@ -16,7 +16,8 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"geckodriver": "^1.22.3", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.1", | ||
"geckodriver": "^3.1.0", | ||
"jest": "^29.0.0", | ||
"jest-environment-jsdom": "^29.0.0", | ||
"prettier": "^2.7.1", | ||
"pretty-quick": "^3.1.0", | ||
"selenium-webdriver": "^4.0.0-beta.3" | ||
"selenium-webdriver": "^4.5.0" | ||
}, | ||
@@ -30,3 +31,4 @@ "homepage": "https://github.com/mozilla/addons-moz-compare", | ||
"url": "http://github.com/mozilla/addons-moz-compare/issues" | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
@@ -82,7 +82,4 @@ (function addonsMozCompare() { | ||
let nextPartPosition = versionPart.indexOf(parts.a.toString()[0]) + 1; | ||
// Account for the minus sign. | ||
if (parts.a.toString().startsWith('-')) { | ||
nextPartPosition++; | ||
} | ||
let nextPartPosition = | ||
versionPart.indexOf(parts.a.toString()) + parts.a.toString().length; | ||
@@ -89,0 +86,0 @@ const rest = versionPart.substr(nextPartPosition); |
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
22767
6
117