@storm-software/git-tools 2.124.80 → 2.124.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/git.cjs +18 -6
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +18 -6
- package/bin/git.js.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/bin/git.cjs
CHANGED
|
@@ -439,10 +439,13 @@ async function createPreset(variant = "monorepo") {
|
|
|
439
439
|
);
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
// ../../node_modules/.pnpm/conventional-commits-parser@6.
|
|
442
|
+
// ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/regex.js
|
|
443
443
|
var nomatchRegex = /(?!.*)/;
|
|
444
|
+
function escape(string) {
|
|
445
|
+
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
446
|
+
}
|
|
444
447
|
function join(parts, joiner) {
|
|
445
|
-
return parts.map((val) => val.trim()).filter(Boolean).join(joiner);
|
|
448
|
+
return parts.map((val) => escape(val.trim())).filter(Boolean).join(joiner);
|
|
446
449
|
}
|
|
447
450
|
function getNotesRegex(noteKeywords, notesPattern) {
|
|
448
451
|
if (!noteKeywords) {
|
|
@@ -481,7 +484,7 @@ function getParserRegexes(options = {}) {
|
|
|
481
484
|
};
|
|
482
485
|
}
|
|
483
486
|
|
|
484
|
-
// ../../node_modules/.pnpm/conventional-commits-parser@6.
|
|
487
|
+
// ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/utils.js
|
|
485
488
|
var SCISSOR = "------------------------ >8 ------------------------";
|
|
486
489
|
function trimNewLines(input) {
|
|
487
490
|
const matches = input.match(/[^\r\n]/);
|
|
@@ -521,7 +524,7 @@ function assignMatchedCorrespondence(target, matches, correspondence) {
|
|
|
521
524
|
return target;
|
|
522
525
|
}
|
|
523
526
|
|
|
524
|
-
// ../../node_modules/.pnpm/conventional-commits-parser@6.
|
|
527
|
+
// ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/options.js
|
|
525
528
|
var defaultOptions = {
|
|
526
529
|
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
527
530
|
issuePrefixes: ["#"],
|
|
@@ -542,12 +545,12 @@ var defaultOptions = {
|
|
|
542
545
|
"scope",
|
|
543
546
|
"subject"
|
|
544
547
|
],
|
|
545
|
-
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)
|
|
548
|
+
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
|
|
546
549
|
revertCorrespondence: ["header", "hash"],
|
|
547
550
|
fieldPattern: /^-(.*?)-$/
|
|
548
551
|
};
|
|
549
552
|
|
|
550
|
-
// ../../node_modules/.pnpm/conventional-commits-parser@6.
|
|
553
|
+
// ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/CommitParser.js
|
|
551
554
|
function createCommitObject(initialData = {}) {
|
|
552
555
|
return {
|
|
553
556
|
merge: null,
|
|
@@ -800,6 +803,15 @@ var CommitParser = class {
|
|
|
800
803
|
commit.notes.forEach((note) => {
|
|
801
804
|
note.text = trimNewLines(note.text);
|
|
802
805
|
});
|
|
806
|
+
const referencesSet = /* @__PURE__ */ new Set();
|
|
807
|
+
commit.references = commit.references.filter((reference) => {
|
|
808
|
+
const uid = `${reference.action} ${reference.raw}`.toLocaleLowerCase();
|
|
809
|
+
const ok = !referencesSet.has(uid);
|
|
810
|
+
if (ok) {
|
|
811
|
+
referencesSet.add(uid);
|
|
812
|
+
}
|
|
813
|
+
return ok;
|
|
814
|
+
});
|
|
803
815
|
}
|
|
804
816
|
/**
|
|
805
817
|
* Parse commit message string into an object.
|