Comparing version 0.1.3 to 0.1.4
@@ -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
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
1
3900
5
41