Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "semver", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "The semantic version parser used by npm.", | ||
@@ -5,0 +5,0 @@ "main": "semver.js", |
@@ -229,3 +229,3 @@ // export the class if we are in a Node-like system. | ||
var v = parse(version, loose); | ||
return v ? v.version : false; | ||
return v ? v.version : null; | ||
} | ||
@@ -788,2 +788,4 @@ | ||
Range.prototype.test = function(version) { | ||
if (!version) | ||
return false; | ||
for (var i = 0; i < this.set.length; i++) { | ||
@@ -790,0 +792,0 @@ if (testSet(this.set[i], version)) |
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
561480
20
41503