New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

to-semver

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-semver - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

9

index.js

@@ -6,3 +6,4 @@ 'use strict';

options = Object.assign({
includePrereleases: true
includePrereleases: true,
clean: true
}, options);

@@ -16,3 +17,7 @@

return sortedVersions.map(x => semver.clean(x));
if (options.clean) {
sortedVersions = sortedVersions.map(x => semver.clean(x));
}
return sortedVersions;
};
{
"name": "to-semver",
"version": "1.0.0",
"version": "1.1.0",
"description": "Get an array of valid, sorted, and cleaned semver versions from an array of strings",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -55,3 +55,10 @@ # to-semver [![Build Status](https://travis-ci.org/sindresorhus/to-semver.svg?branch=master)](https://travis-ci.org/sindresorhus/to-semver)

##### clean
Type: `boolean`<br>
Default: `true`
Clean versions. For example `v1.3.0` → `1.3.0`.
## Related

@@ -58,0 +65,0 @@

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