sls-version
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -68,3 +68,3 @@ "use strict"; | ||
SlsVersionMatcher.prototype.matches = function (version) { | ||
if (version.rc !== undefined) { | ||
if (version.rc != null || version.snapshot != null) { | ||
return false; | ||
@@ -80,3 +80,3 @@ } | ||
if (this.major !== undefined) { | ||
var comparison = compareNumbers(version.major, this.major); | ||
var comparison = compareNumbers(this.major, version.major); | ||
if (comparison !== 0) { | ||
@@ -87,3 +87,3 @@ return comparison; | ||
if (this.minor !== undefined) { | ||
var comparison = compareNumbers(version.minor, this.minor); | ||
var comparison = compareNumbers(this.minor, version.minor); | ||
if (comparison !== 0) { | ||
@@ -94,3 +94,3 @@ return comparison; | ||
if (this.patch !== undefined) { | ||
var comparison = compareNumbers(version.patch, this.patch); | ||
var comparison = compareNumbers(this.patch, version.patch); | ||
if (comparison !== 0) { | ||
@@ -97,0 +97,0 @@ return comparison; |
{ | ||
"name": "sls-version", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Typescript utilities for manipulating SLS versions", | ||
@@ -15,3 +15,3 @@ "sideEffects": false, | ||
"lint-fix": "yarn lint -- --fix --project ./src/tsconfig.json", | ||
"test": "jest --config jest.config.json", | ||
"test": "jest --config jest.config.js", | ||
"circle-publish": "./scripts/circle-publish-npm" | ||
@@ -18,0 +18,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
39224
0