compare-versions
Advanced tools
Comparing version 6.0.0-rc.2 to 6.0.0-rc.3
@@ -81,2 +81,4 @@ /** | ||
export const satisfies = (version, range) => { | ||
// clean input | ||
range = range.replace(/([><=]+)\s+/g, '$1'); | ||
// handle multiple comparators | ||
@@ -83,0 +85,0 @@ if (range.includes('||')) { |
@@ -87,2 +87,4 @@ (function (global, factory) { | ||
const satisfies = (version, range) => { | ||
// clean input | ||
range = range.replace(/([><=]+)\s+/g, '$1'); | ||
// handle multiple comparators | ||
@@ -89,0 +91,0 @@ if (range.includes('||')) { |
{ | ||
"name": "compare-versions", | ||
"version": "6.0.0-rc.2", | ||
"version": "6.0.0-rc.3", | ||
"description": "Compare semver version strings to find greater, equal or lesser.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -94,2 +94,5 @@ /** | ||
export const satisfies = (version: string, range: string): boolean => { | ||
// clean input | ||
range = range.replace(/([><=]+)\s+/g, '$1'); | ||
// handle multiple comparators | ||
@@ -96,0 +99,0 @@ if (range.includes('||')) { |
Sorry, the diff of this file is not supported yet
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
63361
861