Socket
Socket
Sign inDemoInstall

sls-version

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sls-version - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

8

lib/slsVersionMatcher.js

@@ -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

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