Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

addons-moz-compare

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

addons-moz-compare - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

14

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc