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

comparev

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comparev - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

6

lib/index.js

@@ -11,3 +11,2 @@ /*

function compare(v1, v2) {
// equal
if (v1 === v2) return 0;

@@ -18,3 +17,2 @@

// convert to number
arr1 = arr1.map(function(value) {

@@ -43,3 +41,4 @@ return parseInt(value);

// use in AMD environment
// If we're in the browser,
// define it if we're using AMD, otherwise leak a global.
if (typeof define === 'function' && define.amd) {

@@ -50,3 +49,2 @@ define(function(){

}
// use in browser
else if (typeof window !== 'undefined') {

@@ -53,0 +51,0 @@ window.comparev = compare;

{
"name": "comparev",
"version": "0.1.3",
"version": "0.1.4",
"description": "Easily compare versions numbers (semver version)",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -51,3 +51,3 @@ # comparev

# Test
# Testing

@@ -54,0 +54,0 @@ ```

Sorry, the diff of this file is not supported yet

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