Socket
Socket
Sign inDemoInstall

compare-versions

Package Overview
Dependencies
Maintainers
0
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.1.0 to 6.1.1

2

lib/esm/compare.d.ts

@@ -1,2 +0,2 @@

import { CompareOperator } from './utils';
import { CompareOperator } from './utils.js';
/**

@@ -3,0 +3,0 @@ * Compare [semver](https://semver.org/) version strings using the specified operator.

@@ -1,2 +0,2 @@

import { compareVersions } from './compareVersions';
import { compareVersions } from './compareVersions.js';
/**

@@ -3,0 +3,0 @@ * Compare [semver](https://semver.org/) version strings using the specified operator.

@@ -1,2 +0,2 @@

import { compareSegments, validateAndParse } from './utils';
import { compareSegments, validateAndParse } from './utils.js';
/**

@@ -3,0 +3,0 @@ * Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.

@@ -1,5 +0,5 @@

export { compare } from './compare';
export { compareVersions } from './compareVersions';
export { satisfies } from './satisfies';
export { CompareOperator } from './utils';
export { validate, validateStrict } from './validate';
export { compare } from './compare.js';
export { compareVersions } from './compareVersions.js';
export { satisfies } from './satisfies.js';
export { CompareOperator } from './utils.js';
export { validate, validateStrict } from './validate.js';

@@ -1,5 +0,5 @@

export { compare } from './compare';
export { compareVersions } from './compareVersions';
export { satisfies } from './satisfies';
export { validate, validateStrict } from './validate';
export { compare } from './compare.js';
export { compareVersions } from './compareVersions.js';
export { satisfies } from './satisfies.js';
export { validate, validateStrict } from './validate.js';
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

import { compare } from './compare';
import { compareSegments, validateAndParse } from './utils';
import { compare } from './compare.js';
import { compareSegments, validateAndParse } from './utils.js';
/**

@@ -4,0 +4,0 @@ * Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.

@@ -1,2 +0,2 @@

import { semver } from './utils';
import { semver } from './utils.js';
/**

@@ -3,0 +3,0 @@ * Validate [semver](https://semver.org/) version strings.

{
"name": "compare-versions",
"version": "6.1.0",
"version": "6.1.1",
"description": "Compare semver version strings to find greater, equal or lesser.",

@@ -27,3 +27,3 @@ "repository": {

"prepublishOnly": "npm run build",
"test": "c8 --reporter=lcov mocha -r ts-node/register test/**/*.ts"
"test": "c8 --reporter=lcov mocha"
},

@@ -39,9 +39,9 @@ "main": "./lib/umd/index.js",

"devDependencies": {
"@types/mocha": "^10.0.1",
"c8": "^8.0.1",
"mocha": "^10.0.0",
"rollup": "^3.7.4",
"ts-node": "^10.7.0",
"typescript": "^5.1.6"
"@types/mocha": "^10.0.7",
"c8": "^10.1.2",
"mocha": "^10.6.0",
"rollup": "^4.18.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
}
}
# compare-versions
![Build Status](https://github.com/omichelsen/compare-versions/actions/workflows/ci.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/omichelsen/compare-versions/badge.svg?branch=master&service=github)](https://coveralls.io/github/omichelsen/compare-versions?branch=master)
[![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/compare-versions.svg)](https://bundlephobia.com/result?p=compare-versions)
[![Build Status](https://github.com/omichelsen/compare-versions/actions/workflows/ci.yml/badge.svg)](https://github.com/omichelsen/compare-versions/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/omichelsen/compare-versions/badge.svg?branch=main&service=github)](https://coveralls.io/github/omichelsen/compare-versions?branch=main)
[![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/compare-versions.svg)](https://bundlephobia.com/package/compare-versions)
Compare [semver](https://semver.org/) version strings to find greater, equal or lesser. Runs in the browser as well as Node.js/React Native etc. Has no dependencies and is tiny.
Compare [semver](https://semver.org/) version strings to find greater, equal or lesser. Runs in the browser as well as Node.js/React Native etc. Has no dependencies and is [tiny](https://bundlephobia.com/package/compare-versions).

@@ -9,0 +9,0 @@ Supports the full semver specification including versions with different number of digits like `1.0.0`, `1.0`, `1` and pre-releases like `1.0.0-alpha`. Additionally supports the following variations:

@@ -1,3 +0,3 @@

import { compareVersions } from './compareVersions';
import { CompareOperator } from './utils';
import { compareVersions } from './compareVersions.js';
import { CompareOperator } from './utils.js';

@@ -4,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { compareSegments, validateAndParse } from './utils';
import { compareSegments, validateAndParse } from './utils.js';

@@ -3,0 +3,0 @@ /**

@@ -1,5 +0,5 @@

export { compare } from './compare';
export { compareVersions } from './compareVersions';
export { satisfies } from './satisfies';
export { CompareOperator } from './utils';
export { validate, validateStrict } from './validate';
export { compare } from './compare.js';
export { compareVersions } from './compareVersions.js';
export { satisfies } from './satisfies.js';
export { CompareOperator } from './utils.js';
export { validate, validateStrict } from './validate.js';

@@ -1,3 +0,3 @@

import { compare } from './compare';
import { CompareOperator, compareSegments, validateAndParse } from './utils';
import { compare } from './compare.js';
import { CompareOperator, compareSegments, validateAndParse } from './utils.js';

@@ -4,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { semver } from './utils';
import { semver } from './utils.js';

@@ -3,0 +3,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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