Socket
Socket
Sign inDemoInstall

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 6.0.0-rc.2 to 6.0.0-rc.3

2

lib/esm/index.js

@@ -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('||')) {

2

package.json
{
"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

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