Socket
Socket
Sign inDemoInstall

git-semver-tags

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-semver-tags - npm Package Compare versions

Comparing version 5.0.1 to 6.0.0

cli.mjs

12

index.js

@@ -37,6 +37,2 @@ 'use strict'

const tags = []
let tagPrefixRegexp
if (options.tagPrefix) {
tagPrefixRegexp = new RegExp('^' + options.tagPrefix + '(.*)')
}
data.split('\n').forEach(function (decorations) {

@@ -57,5 +53,7 @@ let match

} else if (options.tagPrefix) {
const matches = tag.match(tagPrefixRegexp)
if (matches && semverValid(matches[1])) {
tags.push(tag)
if (tag.startsWith(options.tagPrefix)) {
const unprefixedTag = tag.replace(options.tagPrefix, '')
if (semverValid(unprefixedTag)) {
tags.push(tag)
}
}

@@ -62,0 +60,0 @@ } else if (semverValid(tag)) {

{
"name": "git-semver-tags",
"version": "5.0.1",
"version": "6.0.0",
"description": "Get all git semver tags of your repository in reverse chronological order",

@@ -20,7 +20,7 @@ "bugs": {

"engines": {
"node": ">=14"
"node": ">=16"
},
"files": [
"index.js",
"cli.js"
"cli.mjs"
],

@@ -36,11 +36,8 @@ "keywords": [

"dependencies": {
"meow": "^8.1.2",
"semver": "^7.0.0"
"meow": "^12.0.1",
"semver": "^7.5.2"
},
"bin": {
"git-semver-tags": "cli.js"
},
"scripts": {
"test-windows": "mocha --timeout 30000"
"git-semver-tags": "cli.mjs"
}
}
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