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

compare-versions

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compare-versions - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

test/gt.js

4

bower.json
{
"name": "compare-versions",
"version": "1.0.0",
"description": "Compare semver version strings to find which is greater, equal or lesser.",
"version": "1.1.1",
"description": "Compare semver version strings to find greater, equal or lesser.",
"main": "index.js",

@@ -6,0 +6,0 @@ "authors": [

@@ -0,1 +1,2 @@

/* global define */
(function (root, factory) {

@@ -9,3 +10,3 @@ /* istanbul ignore next */

root.returnExports = factory();
}
}
}(this, function () {

@@ -27,4 +28,4 @@

for (var i = 0; i < 3; i++) {
var n1 = parseInt(s1[i] || 0);
var n2 = parseInt(s2[i] || 0);
var n1 = parseInt(s1[i] || 0, 10);
var n2 = parseInt(s2[i] || 0, 10);

@@ -31,0 +32,0 @@ if (n1 > n2) return 1;

{
"name": "compare-versions",
"version": "1.1.0",
"description": "Compare semver version strings to find which is greater, equal or lesser.",
"version": "1.1.1",
"description": "Compare semver version strings to find greater, equal or lesser.",
"main": "index.js",

@@ -6,0 +6,0 @@ "repository": {

@@ -6,6 +6,8 @@ # compare-versions

Compare semver version strings to find which is greater, equal or lesser. Runs in the browser as well as node.js/iojs.
Compare [semver](http://semver.org/) version strings to find greater, equal or lesser. Runs in the browser as well as node.js/iojs.
## Install
Install with `bower` or `npm`:
```bash

@@ -15,2 +17,6 @@ $ bower install compare-versions --save

```bash
$ npm install compare-versions --save
```
## Usage

@@ -17,0 +23,0 @@

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