Socket
Socket
Sign inDemoInstall

semver-utils

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "semver-utils",
"version": "1.0.0",
"version": "1.0.1",
"description": "Tools for manipulating semver strings and objects",

@@ -5,0 +5,0 @@ "main": "semver-utils.js",

@@ -32,2 +32,17 @@ (function () {

function stringifySemver(obj) {
var str = '';
str += obj.major || '0';
str += '.';
str += obj.minor || '0';
str += '.';
str += obj.patch || '0';
if (obj.release) {
str += '-' + obj.release;
}
if (obj.build) {
str += '+' + obj.build;
}
}
function parseSemverRange(str) {

@@ -72,3 +87,4 @@ var m

module.exports.parse = parseSemver;
module.exports.stringify = stringifySemver;
module.exports.parseRange = parseSemverRange;
}());
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc