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.1.2 to 1.1.3

LICENSE

2

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

@@ -5,0 +5,0 @@ "homepage": "https://git.coolaj86.com/coolaj86/semver-utils.js",

@@ -11,3 +11,3 @@ (function () {

//, reSemverRange = /\s*((\|\||\-)|(([<>~]?=?)\s*(v)?([0-9]+)(\.(x|[0-9]+))?(\.(x|[0-9]+))?(([\-+])([a-zA-Z0-9\.]+))?))\s*/g
, reSemverRange = /\s*((\|\||\-)|(([<>~^]?=?)\s*(v)?([0-9]+)(\.(x|\*|[0-9]+))?(\.(x|\*|[0-9]+))?(([\-+])([a-zA-Z0-9\.-]+))?))\s*/g
, reSemverRange = /\s*((\|\||\-)|(([<>~^]*=?)\s*(v)?([0-9]+)(\.(x|\*|[0-9]+))?(\.(x|\*|[0-9]+))?(([\-+])([a-zA-Z0-9\.-]+))?))\s*/g
;

@@ -14,0 +14,0 @@

@@ -192,2 +192,12 @@ var assert = require('chai').assert;

});
it('should parse ~> ranges', function() {
deepOwnEqual(semverutils.parseRange('~> 2.0.0'), [{
semver: '~> 2.0.0',
operator: '~>',
major: '2',
minor: '0',
patch: '0'
}]);
});
});
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