git-semver-tags
Advanced tools
Comparing version 5.0.1 to 6.0.0
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" | ||
} | ||
} |
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
6691
102
+ Addedmeow@12.1.1(transitive)
- Removed@babel/code-frame@7.25.7(transitive)
- Removed@babel/helper-validator-identifier@7.25.7(transitive)
- Removed@babel/highlight@7.25.7(transitive)
- Removed@types/minimist@1.2.5(transitive)
- Removed@types/normalize-package-data@2.4.4(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedarrify@1.0.1(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcamelcase-keys@6.2.2(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddecamelize-keys@1.1.1(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedhard-rejection@2.1.0(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.94.1.0(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-plain-obj@1.1.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedkind-of@6.0.3(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removedmap-obj@1.0.14.3.0(transitive)
- Removedmeow@8.1.2(transitive)
- Removedmin-indent@1.0.1(transitive)
- Removedminimist-options@4.1.0(transitive)
- Removednormalize-package-data@2.5.03.0.3(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpicocolors@1.1.0(transitive)
- Removedquick-lru@4.0.1(transitive)
- Removedread-pkg@5.2.0(transitive)
- Removedread-pkg-up@7.0.1(transitive)
- Removedredent@3.0.0(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsemver@5.7.2(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.20(transitive)
- Removedstrip-indent@3.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtrim-newlines@3.0.1(transitive)
- Removedtype-fest@0.18.10.6.00.8.1(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedyallist@4.0.0(transitive)
- Removedyargs-parser@20.2.9(transitive)
Updatedmeow@^12.0.1
Updatedsemver@^7.5.2