@storm-software/git-tools 2.124.81 → 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/bin/git.js
CHANGED
|
@@ -417,10 +417,13 @@ async function createPreset(variant = "monorepo") {
|
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
// ../../node_modules/.pnpm/conventional-commits-parser@6.
|
|
420
|
+
// ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/regex.js
|
|
421
421
|
var nomatchRegex = /(?!.*)/;
|
|
422
|
+
function escape(string) {
|
|
423
|
+
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
424
|
+
}
|
|
422
425
|
function join(parts, joiner) {
|
|
423
|
-
return parts.map((val) => val.trim()).filter(Boolean).join(joiner);
|
|
426
|
+
return parts.map((val) => escape(val.trim())).filter(Boolean).join(joiner);
|
|
424
427
|
}
|
|
425
428
|
function getNotesRegex(noteKeywords, notesPattern) {
|
|
426
429
|
if (!noteKeywords) {
|
|
@@ -459,7 +462,7 @@ function getParserRegexes(options = {}) {
|
|
|
459
462
|
};
|
|
460
463
|
}
|
|
461
464
|
|
|
462
|
-
// ../../node_modules/.pnpm/conventional-commits-parser@6.
|
|
465
|
+
// ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/utils.js
|
|
463
466
|
var SCISSOR = "------------------------ >8 ------------------------";
|
|
464
467
|
function trimNewLines(input) {
|
|
465
468
|
const matches = input.match(/[^\r\n]/);
|
|
@@ -499,7 +502,7 @@ function assignMatchedCorrespondence(target, matches, correspondence) {
|
|
|
499
502
|
return target;
|
|
500
503
|
}
|
|
501
504
|
|
|
502
|
-
// ../../node_modules/.pnpm/conventional-commits-parser@6.
|
|
505
|
+
// ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/options.js
|
|
503
506
|
var defaultOptions = {
|
|
504
507
|
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
505
508
|
issuePrefixes: ["#"],
|
|
@@ -520,12 +523,12 @@ var defaultOptions = {
|
|
|
520
523
|
"scope",
|
|
521
524
|
"subject"
|
|
522
525
|
],
|
|
523
|
-
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)
|
|
526
|
+
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
|
|
524
527
|
revertCorrespondence: ["header", "hash"],
|
|
525
528
|
fieldPattern: /^-(.*?)-$/
|
|
526
529
|
};
|
|
527
530
|
|
|
528
|
-
// ../../node_modules/.pnpm/conventional-commits-parser@6.
|
|
531
|
+
// ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/CommitParser.js
|
|
529
532
|
function createCommitObject(initialData = {}) {
|
|
530
533
|
return {
|
|
531
534
|
merge: null,
|
|
@@ -778,6 +781,15 @@ var CommitParser = class {
|
|
|
778
781
|
commit.notes.forEach((note) => {
|
|
779
782
|
note.text = trimNewLines(note.text);
|
|
780
783
|
});
|
|
784
|
+
const referencesSet = /* @__PURE__ */ new Set();
|
|
785
|
+
commit.references = commit.references.filter((reference) => {
|
|
786
|
+
const uid = `${reference.action} ${reference.raw}`.toLocaleLowerCase();
|
|
787
|
+
const ok = !referencesSet.has(uid);
|
|
788
|
+
if (ok) {
|
|
789
|
+
referencesSet.add(uid);
|
|
790
|
+
}
|
|
791
|
+
return ok;
|
|
792
|
+
});
|
|
781
793
|
}
|
|
782
794
|
/**
|
|
783
795
|
* Parse commit message string into an object.
|