@html-validate/commitlint-config 4.1.2 → 4.2.0
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/dist/commitlint.js +576 -545
- package/package.json +1 -1
package/dist/commitlint.js
CHANGED
|
@@ -18,6 +18,14 @@ var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? requir
|
|
|
18
18
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
19
19
|
throw Error('Dynamic require of "' + x2 + '" is not supported');
|
|
20
20
|
});
|
|
21
|
+
var __esm = (fn, res, err) => function __init() {
|
|
22
|
+
if (err) throw err[0];
|
|
23
|
+
try {
|
|
24
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
25
|
+
} catch (e2) {
|
|
26
|
+
throw err = [e2], e2;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
21
29
|
var __commonJS = (cb, mod) => function __require2() {
|
|
22
30
|
try {
|
|
23
31
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -2036,6 +2044,459 @@ var require_semver2 = __commonJS({
|
|
|
2036
2044
|
}
|
|
2037
2045
|
});
|
|
2038
2046
|
|
|
2047
|
+
// node_modules/conventional-commits-parser/dist/regex.js
|
|
2048
|
+
function escape2(string) {
|
|
2049
|
+
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2050
|
+
}
|
|
2051
|
+
function joinOr(parts) {
|
|
2052
|
+
return parts.map((val) => typeof val === "string" ? escape2(val.trim()) : val.source).filter(Boolean).join("|");
|
|
2053
|
+
}
|
|
2054
|
+
function getNotesRegex(noteKeywords, notesPattern) {
|
|
2055
|
+
if (!noteKeywords) {
|
|
2056
|
+
return nomatchRegex;
|
|
2057
|
+
}
|
|
2058
|
+
const noteKeywordsSelection = joinOr(noteKeywords);
|
|
2059
|
+
if (!notesPattern) {
|
|
2060
|
+
return new RegExp(`^[\\s|*]*(${noteKeywordsSelection})[:\\s]+(.*)`, "i");
|
|
2061
|
+
}
|
|
2062
|
+
return notesPattern(noteKeywordsSelection);
|
|
2063
|
+
}
|
|
2064
|
+
function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) {
|
|
2065
|
+
if (!issuePrefixes) {
|
|
2066
|
+
return nomatchRegex;
|
|
2067
|
+
}
|
|
2068
|
+
const flags = issuePrefixesCaseSensitive ? "g" : "gi";
|
|
2069
|
+
return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${joinOr(issuePrefixes)})([\\w-]+)(?=\\s|$|[,;.)\\]])`, flags);
|
|
2070
|
+
}
|
|
2071
|
+
function getReferencesRegex(referenceActions) {
|
|
2072
|
+
if (!referenceActions) {
|
|
2073
|
+
return /()(.+)/gi;
|
|
2074
|
+
}
|
|
2075
|
+
const joinedKeywords = joinOr(referenceActions);
|
|
2076
|
+
return new RegExp(`(${joinedKeywords})(?:\\s+(.*?))(?=(?:${joinedKeywords})|$)`, "gi");
|
|
2077
|
+
}
|
|
2078
|
+
function getFooterTokenRegex(issuePrefixes) {
|
|
2079
|
+
const issuePrefixSeparator = issuePrefixes ? `|\\s+(?:${joinOr(issuePrefixes)})` : "";
|
|
2080
|
+
return new RegExp(`^\\s*(?:BREAKING CHANGE|[\\w-]+)(?::\\s+${issuePrefixSeparator}).+`, "i");
|
|
2081
|
+
}
|
|
2082
|
+
function getParserRegexes(options = {}) {
|
|
2083
|
+
const notes = getNotesRegex(options.noteKeywords, options.notesPattern);
|
|
2084
|
+
const referenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive);
|
|
2085
|
+
const references = getReferencesRegex(options.referenceActions);
|
|
2086
|
+
const footerToken = getFooterTokenRegex(options.issuePrefixes);
|
|
2087
|
+
return {
|
|
2088
|
+
notes,
|
|
2089
|
+
referenceParts,
|
|
2090
|
+
references,
|
|
2091
|
+
footerToken,
|
|
2092
|
+
mentions: /@([\w-]+)/g,
|
|
2093
|
+
url: /\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/
|
|
2094
|
+
};
|
|
2095
|
+
}
|
|
2096
|
+
var nomatchRegex;
|
|
2097
|
+
var init_regex = __esm({
|
|
2098
|
+
"node_modules/conventional-commits-parser/dist/regex.js"() {
|
|
2099
|
+
nomatchRegex = /(?!.*)/;
|
|
2100
|
+
}
|
|
2101
|
+
});
|
|
2102
|
+
|
|
2103
|
+
// node_modules/conventional-commits-parser/dist/utils.js
|
|
2104
|
+
function trimNewLines(input) {
|
|
2105
|
+
const matches = input.match(/[^\r\n]/);
|
|
2106
|
+
if (typeof matches?.index !== "number") {
|
|
2107
|
+
return "";
|
|
2108
|
+
}
|
|
2109
|
+
const firstIndex = matches.index;
|
|
2110
|
+
let lastIndex = input.length - 1;
|
|
2111
|
+
while (input[lastIndex] === "\r" || input[lastIndex] === "\n") {
|
|
2112
|
+
lastIndex--;
|
|
2113
|
+
}
|
|
2114
|
+
return input.substring(firstIndex, lastIndex + 1);
|
|
2115
|
+
}
|
|
2116
|
+
function appendLine(src, line) {
|
|
2117
|
+
return src ? `${src}
|
|
2118
|
+
${line || ""}` : line || "";
|
|
2119
|
+
}
|
|
2120
|
+
function getCommentFilter(char) {
|
|
2121
|
+
return char ? (line) => !line.startsWith(char) : () => true;
|
|
2122
|
+
}
|
|
2123
|
+
function truncateToScissor(lines, commentChar) {
|
|
2124
|
+
const scissorIndex = lines.indexOf(`${commentChar} ${SCISSOR}`);
|
|
2125
|
+
if (scissorIndex === -1) {
|
|
2126
|
+
return lines;
|
|
2127
|
+
}
|
|
2128
|
+
return lines.slice(0, scissorIndex);
|
|
2129
|
+
}
|
|
2130
|
+
function gpgFilter(line) {
|
|
2131
|
+
return !line.match(/^\s*gpg:/);
|
|
2132
|
+
}
|
|
2133
|
+
function assignMatchedCorrespondence(target, matches, correspondence) {
|
|
2134
|
+
const { groups } = matches;
|
|
2135
|
+
for (let i2 = 0, len = correspondence.length, key; i2 < len; i2++) {
|
|
2136
|
+
key = correspondence[i2];
|
|
2137
|
+
target[key] = (groups ? groups[key] : matches[i2 + 1]) || null;
|
|
2138
|
+
}
|
|
2139
|
+
return target;
|
|
2140
|
+
}
|
|
2141
|
+
var SCISSOR;
|
|
2142
|
+
var init_utils = __esm({
|
|
2143
|
+
"node_modules/conventional-commits-parser/dist/utils.js"() {
|
|
2144
|
+
SCISSOR = "------------------------ >8 ------------------------";
|
|
2145
|
+
}
|
|
2146
|
+
});
|
|
2147
|
+
|
|
2148
|
+
// node_modules/conventional-commits-parser/dist/options.js
|
|
2149
|
+
var defaultOptions;
|
|
2150
|
+
var init_options = __esm({
|
|
2151
|
+
"node_modules/conventional-commits-parser/dist/options.js"() {
|
|
2152
|
+
defaultOptions = {
|
|
2153
|
+
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
2154
|
+
issuePrefixes: ["#"],
|
|
2155
|
+
referenceActions: [
|
|
2156
|
+
"close",
|
|
2157
|
+
"closes",
|
|
2158
|
+
"closed",
|
|
2159
|
+
"fix",
|
|
2160
|
+
"fixes",
|
|
2161
|
+
"fixed",
|
|
2162
|
+
"resolve",
|
|
2163
|
+
"resolves",
|
|
2164
|
+
"resolved"
|
|
2165
|
+
],
|
|
2166
|
+
headerPattern: /^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,
|
|
2167
|
+
headerCorrespondence: [
|
|
2168
|
+
"type",
|
|
2169
|
+
"scope",
|
|
2170
|
+
"subject"
|
|
2171
|
+
],
|
|
2172
|
+
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
|
|
2173
|
+
revertCorrespondence: ["header", "hash"],
|
|
2174
|
+
fieldPattern: /^-(.*?)-$/
|
|
2175
|
+
};
|
|
2176
|
+
}
|
|
2177
|
+
});
|
|
2178
|
+
|
|
2179
|
+
// node_modules/conventional-commits-parser/dist/CommitParser.js
|
|
2180
|
+
function createCommitObject(initialData = {}) {
|
|
2181
|
+
return {
|
|
2182
|
+
merge: null,
|
|
2183
|
+
revert: null,
|
|
2184
|
+
header: null,
|
|
2185
|
+
body: null,
|
|
2186
|
+
footer: null,
|
|
2187
|
+
notes: [],
|
|
2188
|
+
mentions: [],
|
|
2189
|
+
references: [],
|
|
2190
|
+
...initialData
|
|
2191
|
+
};
|
|
2192
|
+
}
|
|
2193
|
+
var CommitParser;
|
|
2194
|
+
var init_CommitParser = __esm({
|
|
2195
|
+
"node_modules/conventional-commits-parser/dist/CommitParser.js"() {
|
|
2196
|
+
init_regex();
|
|
2197
|
+
init_utils();
|
|
2198
|
+
init_options();
|
|
2199
|
+
CommitParser = class {
|
|
2200
|
+
options;
|
|
2201
|
+
regexes;
|
|
2202
|
+
lines = [];
|
|
2203
|
+
lineIndex = 0;
|
|
2204
|
+
commit = createCommitObject();
|
|
2205
|
+
constructor(options = {}) {
|
|
2206
|
+
this.options = {
|
|
2207
|
+
...defaultOptions,
|
|
2208
|
+
...options
|
|
2209
|
+
};
|
|
2210
|
+
this.regexes = getParserRegexes(this.options);
|
|
2211
|
+
}
|
|
2212
|
+
currentLine() {
|
|
2213
|
+
return this.lines[this.lineIndex];
|
|
2214
|
+
}
|
|
2215
|
+
nextLine() {
|
|
2216
|
+
return this.lines[this.lineIndex++];
|
|
2217
|
+
}
|
|
2218
|
+
isLineAvailable() {
|
|
2219
|
+
return this.lineIndex < this.lines.length;
|
|
2220
|
+
}
|
|
2221
|
+
parseReference(input, action) {
|
|
2222
|
+
const { regexes } = this;
|
|
2223
|
+
if (regexes.url.test(input)) {
|
|
2224
|
+
return null;
|
|
2225
|
+
}
|
|
2226
|
+
const matches = regexes.referenceParts.exec(input);
|
|
2227
|
+
if (!matches) {
|
|
2228
|
+
return null;
|
|
2229
|
+
}
|
|
2230
|
+
let [raw, repository = null, prefix2, issue] = matches;
|
|
2231
|
+
let owner = null;
|
|
2232
|
+
if (repository) {
|
|
2233
|
+
const slashIndex = repository.indexOf("/");
|
|
2234
|
+
if (slashIndex !== -1) {
|
|
2235
|
+
owner = repository.slice(0, slashIndex);
|
|
2236
|
+
repository = repository.slice(slashIndex + 1);
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
return {
|
|
2240
|
+
raw,
|
|
2241
|
+
action,
|
|
2242
|
+
owner,
|
|
2243
|
+
repository,
|
|
2244
|
+
prefix: prefix2,
|
|
2245
|
+
issue
|
|
2246
|
+
};
|
|
2247
|
+
}
|
|
2248
|
+
parseReferences(input) {
|
|
2249
|
+
const { regexes } = this;
|
|
2250
|
+
const regex2 = input.match(regexes.references) ? regexes.references : /()(.+)/gi;
|
|
2251
|
+
const references = [];
|
|
2252
|
+
let matches;
|
|
2253
|
+
let action;
|
|
2254
|
+
let sentence;
|
|
2255
|
+
let reference2;
|
|
2256
|
+
while (true) {
|
|
2257
|
+
matches = regex2.exec(input);
|
|
2258
|
+
if (!matches) {
|
|
2259
|
+
break;
|
|
2260
|
+
}
|
|
2261
|
+
action = matches[1] || null;
|
|
2262
|
+
sentence = matches[2] || "";
|
|
2263
|
+
while (true) {
|
|
2264
|
+
reference2 = this.parseReference(sentence, action);
|
|
2265
|
+
if (!reference2) {
|
|
2266
|
+
break;
|
|
2267
|
+
}
|
|
2268
|
+
references.push(reference2);
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
return references;
|
|
2272
|
+
}
|
|
2273
|
+
skipEmptyLines() {
|
|
2274
|
+
let line = this.currentLine();
|
|
2275
|
+
while (line !== void 0 && !line.trim()) {
|
|
2276
|
+
this.nextLine();
|
|
2277
|
+
line = this.currentLine();
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
parseMerge() {
|
|
2281
|
+
const { commit, options } = this;
|
|
2282
|
+
const correspondence = options.mergeCorrespondence || [];
|
|
2283
|
+
const merge2 = this.currentLine();
|
|
2284
|
+
const matches = merge2 && options.mergePattern ? merge2.match(options.mergePattern) : null;
|
|
2285
|
+
if (matches) {
|
|
2286
|
+
this.nextLine();
|
|
2287
|
+
commit.merge = matches[0] || null;
|
|
2288
|
+
assignMatchedCorrespondence(commit, matches, correspondence);
|
|
2289
|
+
return true;
|
|
2290
|
+
}
|
|
2291
|
+
return false;
|
|
2292
|
+
}
|
|
2293
|
+
parseHeader(isMergeCommit) {
|
|
2294
|
+
if (isMergeCommit) {
|
|
2295
|
+
this.skipEmptyLines();
|
|
2296
|
+
}
|
|
2297
|
+
const { commit, options } = this;
|
|
2298
|
+
const correspondence = options.headerCorrespondence || [];
|
|
2299
|
+
const header = commit.header ?? this.nextLine();
|
|
2300
|
+
let matches = null;
|
|
2301
|
+
if (header) {
|
|
2302
|
+
if (options.breakingHeaderPattern) {
|
|
2303
|
+
matches = header.match(options.breakingHeaderPattern);
|
|
2304
|
+
}
|
|
2305
|
+
if (!matches && options.headerPattern) {
|
|
2306
|
+
matches = header.match(options.headerPattern);
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
if (header) {
|
|
2310
|
+
commit.header = header;
|
|
2311
|
+
}
|
|
2312
|
+
if (matches) {
|
|
2313
|
+
assignMatchedCorrespondence(commit, matches, correspondence);
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
parseMeta() {
|
|
2317
|
+
const { options, commit } = this;
|
|
2318
|
+
if (!options.fieldPattern || !this.isLineAvailable()) {
|
|
2319
|
+
return false;
|
|
2320
|
+
}
|
|
2321
|
+
let matches;
|
|
2322
|
+
let field = null;
|
|
2323
|
+
let parsed = false;
|
|
2324
|
+
while (this.isLineAvailable()) {
|
|
2325
|
+
matches = this.currentLine().match(options.fieldPattern);
|
|
2326
|
+
if (matches) {
|
|
2327
|
+
field = matches[1] || null;
|
|
2328
|
+
this.nextLine();
|
|
2329
|
+
continue;
|
|
2330
|
+
}
|
|
2331
|
+
if (field) {
|
|
2332
|
+
parsed = true;
|
|
2333
|
+
commit[field] = appendLine(commit[field], this.currentLine());
|
|
2334
|
+
this.nextLine();
|
|
2335
|
+
} else {
|
|
2336
|
+
break;
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
return parsed;
|
|
2340
|
+
}
|
|
2341
|
+
parseNotes() {
|
|
2342
|
+
const { regexes, commit } = this;
|
|
2343
|
+
if (!this.isLineAvailable()) {
|
|
2344
|
+
return false;
|
|
2345
|
+
}
|
|
2346
|
+
const matches = this.currentLine().match(regexes.notes);
|
|
2347
|
+
let isFooterToken;
|
|
2348
|
+
if (matches) {
|
|
2349
|
+
const note = {
|
|
2350
|
+
title: matches[1],
|
|
2351
|
+
text: matches[2]
|
|
2352
|
+
};
|
|
2353
|
+
commit.notes.push(note);
|
|
2354
|
+
commit.footer = appendLine(commit.footer, this.currentLine());
|
|
2355
|
+
this.nextLine();
|
|
2356
|
+
while (this.isLineAvailable()) {
|
|
2357
|
+
if (this.parseMeta()) {
|
|
2358
|
+
return true;
|
|
2359
|
+
}
|
|
2360
|
+
if (this.parseNotes()) {
|
|
2361
|
+
return true;
|
|
2362
|
+
}
|
|
2363
|
+
isFooterToken = regexes.footerToken.test(this.currentLine());
|
|
2364
|
+
commit.references.push(...this.parseReferences(this.currentLine()));
|
|
2365
|
+
if (!isFooterToken) {
|
|
2366
|
+
note.text = appendLine(note.text, this.currentLine());
|
|
2367
|
+
}
|
|
2368
|
+
commit.footer = appendLine(commit.footer, this.currentLine());
|
|
2369
|
+
this.nextLine();
|
|
2370
|
+
if (isFooterToken) {
|
|
2371
|
+
break;
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
return true;
|
|
2375
|
+
}
|
|
2376
|
+
return false;
|
|
2377
|
+
}
|
|
2378
|
+
parseBodyAndFooter(isBody) {
|
|
2379
|
+
const { commit, regexes } = this;
|
|
2380
|
+
if (!this.isLineAvailable()) {
|
|
2381
|
+
return isBody;
|
|
2382
|
+
}
|
|
2383
|
+
const isFooterToken = regexes.footerToken.test(this.currentLine());
|
|
2384
|
+
const isStillBody = !isFooterToken && isBody;
|
|
2385
|
+
commit.references.push(...this.parseReferences(this.currentLine()));
|
|
2386
|
+
if (isStillBody) {
|
|
2387
|
+
commit.body = appendLine(commit.body, this.currentLine());
|
|
2388
|
+
} else {
|
|
2389
|
+
commit.footer = appendLine(commit.footer, this.currentLine());
|
|
2390
|
+
}
|
|
2391
|
+
this.nextLine();
|
|
2392
|
+
return isStillBody;
|
|
2393
|
+
}
|
|
2394
|
+
parseBreakingHeader() {
|
|
2395
|
+
const { commit, options } = this;
|
|
2396
|
+
if (!options.breakingHeaderPattern || commit.notes.length || !commit.header) {
|
|
2397
|
+
return;
|
|
2398
|
+
}
|
|
2399
|
+
const matches = commit.header.match(options.breakingHeaderPattern);
|
|
2400
|
+
if (matches) {
|
|
2401
|
+
commit.notes.push({
|
|
2402
|
+
title: "BREAKING CHANGE",
|
|
2403
|
+
text: matches[3]
|
|
2404
|
+
});
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
parseMentions(input) {
|
|
2408
|
+
const { commit, regexes } = this;
|
|
2409
|
+
let matches;
|
|
2410
|
+
for (; ; ) {
|
|
2411
|
+
matches = regexes.mentions.exec(input);
|
|
2412
|
+
if (!matches) {
|
|
2413
|
+
break;
|
|
2414
|
+
}
|
|
2415
|
+
commit.mentions.push(matches[1]);
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
parseRevert(input) {
|
|
2419
|
+
const { commit, options } = this;
|
|
2420
|
+
const correspondence = options.revertCorrespondence || [];
|
|
2421
|
+
const matches = options.revertPattern ? input.match(options.revertPattern) : null;
|
|
2422
|
+
if (matches) {
|
|
2423
|
+
commit.revert = assignMatchedCorrespondence({}, matches, correspondence);
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
cleanupCommit() {
|
|
2427
|
+
const { commit } = this;
|
|
2428
|
+
commit.body &&= trimNewLines(commit.body);
|
|
2429
|
+
commit.footer &&= trimNewLines(commit.footer);
|
|
2430
|
+
commit.notes.forEach((note) => {
|
|
2431
|
+
note.text = trimNewLines(note.text);
|
|
2432
|
+
});
|
|
2433
|
+
const referencesSet = /* @__PURE__ */ new Set();
|
|
2434
|
+
commit.references = commit.references.filter((reference2) => {
|
|
2435
|
+
const uid = `${reference2.action} ${reference2.raw}`.toLocaleLowerCase();
|
|
2436
|
+
const ok = !referencesSet.has(uid);
|
|
2437
|
+
if (ok) {
|
|
2438
|
+
referencesSet.add(uid);
|
|
2439
|
+
}
|
|
2440
|
+
return ok;
|
|
2441
|
+
});
|
|
2442
|
+
}
|
|
2443
|
+
/**
|
|
2444
|
+
* Parse commit message string into an object.
|
|
2445
|
+
* @param input - Commit message string.
|
|
2446
|
+
* @returns Commit object.
|
|
2447
|
+
*/
|
|
2448
|
+
parse(input) {
|
|
2449
|
+
if (!input.trim()) {
|
|
2450
|
+
throw new TypeError("Expected a raw commit");
|
|
2451
|
+
}
|
|
2452
|
+
const { commentChar } = this.options;
|
|
2453
|
+
const commentFilter = getCommentFilter(commentChar);
|
|
2454
|
+
const rawLines = trimNewLines(input).split(/\r?\n/);
|
|
2455
|
+
const lines = commentChar ? truncateToScissor(rawLines, commentChar).filter((line) => commentFilter(line) && gpgFilter(line)) : rawLines.filter((line) => gpgFilter(line));
|
|
2456
|
+
const commit = createCommitObject();
|
|
2457
|
+
this.lines = lines;
|
|
2458
|
+
this.lineIndex = 0;
|
|
2459
|
+
this.commit = commit;
|
|
2460
|
+
const isMergeCommit = this.parseMerge();
|
|
2461
|
+
this.parseHeader(isMergeCommit);
|
|
2462
|
+
if (commit.header) {
|
|
2463
|
+
commit.references = this.parseReferences(commit.header);
|
|
2464
|
+
}
|
|
2465
|
+
let isBody = true;
|
|
2466
|
+
while (this.isLineAvailable()) {
|
|
2467
|
+
this.parseMeta();
|
|
2468
|
+
if (this.parseNotes()) {
|
|
2469
|
+
isBody = false;
|
|
2470
|
+
}
|
|
2471
|
+
if (!this.parseBodyAndFooter(isBody)) {
|
|
2472
|
+
isBody = false;
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
this.parseBreakingHeader();
|
|
2476
|
+
this.parseMentions(input);
|
|
2477
|
+
this.parseRevert(input);
|
|
2478
|
+
this.cleanupCommit();
|
|
2479
|
+
return commit;
|
|
2480
|
+
}
|
|
2481
|
+
};
|
|
2482
|
+
}
|
|
2483
|
+
});
|
|
2484
|
+
|
|
2485
|
+
// node_modules/conventional-commits-parser/dist/stream.js
|
|
2486
|
+
var init_stream = __esm({
|
|
2487
|
+
"node_modules/conventional-commits-parser/dist/stream.js"() {
|
|
2488
|
+
init_CommitParser();
|
|
2489
|
+
}
|
|
2490
|
+
});
|
|
2491
|
+
|
|
2492
|
+
// node_modules/conventional-commits-parser/dist/index.js
|
|
2493
|
+
var init_dist = __esm({
|
|
2494
|
+
"node_modules/conventional-commits-parser/dist/index.js"() {
|
|
2495
|
+
init_CommitParser();
|
|
2496
|
+
init_stream();
|
|
2497
|
+
}
|
|
2498
|
+
});
|
|
2499
|
+
|
|
2039
2500
|
// node_modules/ajv/dist/compile/codegen/code.js
|
|
2040
2501
|
var require_code = __commonJS({
|
|
2041
2502
|
"node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
@@ -5844,7 +6305,7 @@ var require_fast_uri = __commonJS({
|
|
|
5844
6305
|
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
5845
6306
|
if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
5846
6307
|
try {
|
|
5847
|
-
parsed.host = URL
|
|
6308
|
+
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
5848
6309
|
} catch (e2) {
|
|
5849
6310
|
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e2;
|
|
5850
6311
|
}
|
|
@@ -15034,9 +15495,9 @@ var require_source_map_support = __commonJS({
|
|
|
15034
15495
|
}
|
|
15035
15496
|
});
|
|
15036
15497
|
|
|
15037
|
-
// node_modules
|
|
15498
|
+
// node_modules/@typescript/old/lib/typescript.js
|
|
15038
15499
|
var require_typescript = __commonJS({
|
|
15039
|
-
"node_modules
|
|
15500
|
+
"node_modules/@typescript/old/lib/typescript.js"(exports, module) {
|
|
15040
15501
|
var ts = {};
|
|
15041
15502
|
((module2) => {
|
|
15042
15503
|
"use strict";
|
|
@@ -226566,6 +227027,13 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
226566
227027
|
}
|
|
226567
227028
|
});
|
|
226568
227029
|
|
|
227030
|
+
// node_modules/typescript/lib/typescript.js
|
|
227031
|
+
var require_typescript2 = __commonJS({
|
|
227032
|
+
"node_modules/typescript/lib/typescript.js"(exports, module) {
|
|
227033
|
+
module.exports = require_typescript();
|
|
227034
|
+
}
|
|
227035
|
+
});
|
|
227036
|
+
|
|
226569
227037
|
// node_modules/cosmiconfig/dist/loaders.js
|
|
226570
227038
|
var require_loaders = __commonJS({
|
|
226571
227039
|
"node_modules/cosmiconfig/dist/loaders.js"(exports) {
|
|
@@ -226635,7 +227103,7 @@ ${error.message}`;
|
|
|
226635
227103
|
var typescript;
|
|
226636
227104
|
var loadTsSync = function loadTsSync2(filepath, content) {
|
|
226637
227105
|
if (typescript === void 0) {
|
|
226638
|
-
typescript =
|
|
227106
|
+
typescript = require_typescript2();
|
|
226639
227107
|
}
|
|
226640
227108
|
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
|
|
226641
227109
|
try {
|
|
@@ -226663,7 +227131,7 @@ ${error.message}`;
|
|
|
226663
227131
|
exports.loadTsSync = loadTsSync;
|
|
226664
227132
|
var loadTs = async function loadTs2(filepath, content) {
|
|
226665
227133
|
if (typescript === void 0) {
|
|
226666
|
-
typescript = (await Promise.resolve().then(() => __toESM(
|
|
227134
|
+
typescript = (await Promise.resolve().then(() => __toESM(require_typescript2()))).default;
|
|
226667
227135
|
}
|
|
226668
227136
|
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
|
|
226669
227137
|
let transpiledContent;
|
|
@@ -230647,9 +231115,9 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
230647
231115
|
}
|
|
230648
231116
|
});
|
|
230649
231117
|
|
|
230650
|
-
// node_modules/@
|
|
231118
|
+
// node_modules/@commitlint/read/node_modules/semver/internal/constants.js
|
|
230651
231119
|
var require_constants2 = __commonJS({
|
|
230652
|
-
"node_modules/@
|
|
231120
|
+
"node_modules/@commitlint/read/node_modules/semver/internal/constants.js"(exports, module) {
|
|
230653
231121
|
"use strict";
|
|
230654
231122
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
230655
231123
|
var MAX_LENGTH = 256;
|
|
@@ -230679,9 +231147,9 @@ var require_constants2 = __commonJS({
|
|
|
230679
231147
|
}
|
|
230680
231148
|
});
|
|
230681
231149
|
|
|
230682
|
-
// node_modules/@
|
|
231150
|
+
// node_modules/@commitlint/read/node_modules/semver/internal/debug.js
|
|
230683
231151
|
var require_debug2 = __commonJS({
|
|
230684
|
-
"node_modules/@
|
|
231152
|
+
"node_modules/@commitlint/read/node_modules/semver/internal/debug.js"(exports, module) {
|
|
230685
231153
|
"use strict";
|
|
230686
231154
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
230687
231155
|
};
|
|
@@ -230689,9 +231157,9 @@ var require_debug2 = __commonJS({
|
|
|
230689
231157
|
}
|
|
230690
231158
|
});
|
|
230691
231159
|
|
|
230692
|
-
// node_modules/@
|
|
231160
|
+
// node_modules/@commitlint/read/node_modules/semver/internal/re.js
|
|
230693
231161
|
var require_re2 = __commonJS({
|
|
230694
|
-
"node_modules/@
|
|
231162
|
+
"node_modules/@commitlint/read/node_modules/semver/internal/re.js"(exports, module) {
|
|
230695
231163
|
"use strict";
|
|
230696
231164
|
var {
|
|
230697
231165
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
@@ -230777,9 +231245,9 @@ var require_re2 = __commonJS({
|
|
|
230777
231245
|
}
|
|
230778
231246
|
});
|
|
230779
231247
|
|
|
230780
|
-
// node_modules/@
|
|
231248
|
+
// node_modules/@commitlint/read/node_modules/semver/internal/parse-options.js
|
|
230781
231249
|
var require_parse_options2 = __commonJS({
|
|
230782
|
-
"node_modules/@
|
|
231250
|
+
"node_modules/@commitlint/read/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
230783
231251
|
"use strict";
|
|
230784
231252
|
var looseOption = Object.freeze({ loose: true });
|
|
230785
231253
|
var emptyOpts = Object.freeze({});
|
|
@@ -230796,9 +231264,9 @@ var require_parse_options2 = __commonJS({
|
|
|
230796
231264
|
}
|
|
230797
231265
|
});
|
|
230798
231266
|
|
|
230799
|
-
// node_modules/@
|
|
231267
|
+
// node_modules/@commitlint/read/node_modules/semver/internal/identifiers.js
|
|
230800
231268
|
var require_identifiers2 = __commonJS({
|
|
230801
|
-
"node_modules/@
|
|
231269
|
+
"node_modules/@commitlint/read/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
230802
231270
|
"use strict";
|
|
230803
231271
|
var numeric = /^[0-9]+$/;
|
|
230804
231272
|
var compareIdentifiers = (a2, b2) => {
|
|
@@ -230821,9 +231289,9 @@ var require_identifiers2 = __commonJS({
|
|
|
230821
231289
|
}
|
|
230822
231290
|
});
|
|
230823
231291
|
|
|
230824
|
-
// node_modules/@
|
|
231292
|
+
// node_modules/@commitlint/read/node_modules/semver/classes/semver.js
|
|
230825
231293
|
var require_semver3 = __commonJS({
|
|
230826
|
-
"node_modules/@
|
|
231294
|
+
"node_modules/@commitlint/read/node_modules/semver/classes/semver.js"(exports, module) {
|
|
230827
231295
|
"use strict";
|
|
230828
231296
|
var debug = require_debug2();
|
|
230829
231297
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants2();
|
|
@@ -231113,9 +231581,9 @@ var require_semver3 = __commonJS({
|
|
|
231113
231581
|
}
|
|
231114
231582
|
});
|
|
231115
231583
|
|
|
231116
|
-
// node_modules/@
|
|
231584
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/parse.js
|
|
231117
231585
|
var require_parse2 = __commonJS({
|
|
231118
|
-
"node_modules/@
|
|
231586
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/parse.js"(exports, module) {
|
|
231119
231587
|
"use strict";
|
|
231120
231588
|
var SemVer = require_semver3();
|
|
231121
231589
|
var parse2 = (version, options, throwErrors = false) => {
|
|
@@ -231135,9 +231603,9 @@ var require_parse2 = __commonJS({
|
|
|
231135
231603
|
}
|
|
231136
231604
|
});
|
|
231137
231605
|
|
|
231138
|
-
// node_modules/@
|
|
231606
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/valid.js
|
|
231139
231607
|
var require_valid3 = __commonJS({
|
|
231140
|
-
"node_modules/@
|
|
231608
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/valid.js"(exports, module) {
|
|
231141
231609
|
"use strict";
|
|
231142
231610
|
var parse2 = require_parse2();
|
|
231143
231611
|
var valid = (version, options) => {
|
|
@@ -231148,9 +231616,9 @@ var require_valid3 = __commonJS({
|
|
|
231148
231616
|
}
|
|
231149
231617
|
});
|
|
231150
231618
|
|
|
231151
|
-
// node_modules/@
|
|
231619
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/clean.js
|
|
231152
231620
|
var require_clean2 = __commonJS({
|
|
231153
|
-
"node_modules/@
|
|
231621
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/clean.js"(exports, module) {
|
|
231154
231622
|
"use strict";
|
|
231155
231623
|
var parse2 = require_parse2();
|
|
231156
231624
|
var clean = (version, options) => {
|
|
@@ -231161,9 +231629,9 @@ var require_clean2 = __commonJS({
|
|
|
231161
231629
|
}
|
|
231162
231630
|
});
|
|
231163
231631
|
|
|
231164
|
-
// node_modules/@
|
|
231632
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/inc.js
|
|
231165
231633
|
var require_inc2 = __commonJS({
|
|
231166
|
-
"node_modules/@
|
|
231634
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/inc.js"(exports, module) {
|
|
231167
231635
|
"use strict";
|
|
231168
231636
|
var SemVer = require_semver3();
|
|
231169
231637
|
var inc = (version, release, options, identifier, identifierBase) => {
|
|
@@ -231185,9 +231653,9 @@ var require_inc2 = __commonJS({
|
|
|
231185
231653
|
}
|
|
231186
231654
|
});
|
|
231187
231655
|
|
|
231188
|
-
// node_modules/@
|
|
231656
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/diff.js
|
|
231189
231657
|
var require_diff2 = __commonJS({
|
|
231190
|
-
"node_modules/@
|
|
231658
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/diff.js"(exports, module) {
|
|
231191
231659
|
"use strict";
|
|
231192
231660
|
var parse2 = require_parse2();
|
|
231193
231661
|
var diff = (version1, version2) => {
|
|
@@ -231229,9 +231697,9 @@ var require_diff2 = __commonJS({
|
|
|
231229
231697
|
}
|
|
231230
231698
|
});
|
|
231231
231699
|
|
|
231232
|
-
// node_modules/@
|
|
231700
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/major.js
|
|
231233
231701
|
var require_major2 = __commonJS({
|
|
231234
|
-
"node_modules/@
|
|
231702
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/major.js"(exports, module) {
|
|
231235
231703
|
"use strict";
|
|
231236
231704
|
var SemVer = require_semver3();
|
|
231237
231705
|
var major = (a2, loose) => new SemVer(a2, loose).major;
|
|
@@ -231239,9 +231707,9 @@ var require_major2 = __commonJS({
|
|
|
231239
231707
|
}
|
|
231240
231708
|
});
|
|
231241
231709
|
|
|
231242
|
-
// node_modules/@
|
|
231710
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/minor.js
|
|
231243
231711
|
var require_minor2 = __commonJS({
|
|
231244
|
-
"node_modules/@
|
|
231712
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/minor.js"(exports, module) {
|
|
231245
231713
|
"use strict";
|
|
231246
231714
|
var SemVer = require_semver3();
|
|
231247
231715
|
var minor = (a2, loose) => new SemVer(a2, loose).minor;
|
|
@@ -231249,9 +231717,9 @@ var require_minor2 = __commonJS({
|
|
|
231249
231717
|
}
|
|
231250
231718
|
});
|
|
231251
231719
|
|
|
231252
|
-
// node_modules/@
|
|
231720
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/patch.js
|
|
231253
231721
|
var require_patch2 = __commonJS({
|
|
231254
|
-
"node_modules/@
|
|
231722
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/patch.js"(exports, module) {
|
|
231255
231723
|
"use strict";
|
|
231256
231724
|
var SemVer = require_semver3();
|
|
231257
231725
|
var patch = (a2, loose) => new SemVer(a2, loose).patch;
|
|
@@ -231259,9 +231727,9 @@ var require_patch2 = __commonJS({
|
|
|
231259
231727
|
}
|
|
231260
231728
|
});
|
|
231261
231729
|
|
|
231262
|
-
// node_modules/@
|
|
231730
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/prerelease.js
|
|
231263
231731
|
var require_prerelease2 = __commonJS({
|
|
231264
|
-
"node_modules/@
|
|
231732
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
231265
231733
|
"use strict";
|
|
231266
231734
|
var parse2 = require_parse2();
|
|
231267
231735
|
var prerelease = (version, options) => {
|
|
@@ -231272,9 +231740,9 @@ var require_prerelease2 = __commonJS({
|
|
|
231272
231740
|
}
|
|
231273
231741
|
});
|
|
231274
231742
|
|
|
231275
|
-
// node_modules/@
|
|
231743
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/compare.js
|
|
231276
231744
|
var require_compare2 = __commonJS({
|
|
231277
|
-
"node_modules/@
|
|
231745
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/compare.js"(exports, module) {
|
|
231278
231746
|
"use strict";
|
|
231279
231747
|
var SemVer = require_semver3();
|
|
231280
231748
|
var compare = (a2, b2, loose) => new SemVer(a2, loose).compare(new SemVer(b2, loose));
|
|
@@ -231282,9 +231750,9 @@ var require_compare2 = __commonJS({
|
|
|
231282
231750
|
}
|
|
231283
231751
|
});
|
|
231284
231752
|
|
|
231285
|
-
// node_modules/@
|
|
231753
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/rcompare.js
|
|
231286
231754
|
var require_rcompare2 = __commonJS({
|
|
231287
|
-
"node_modules/@
|
|
231755
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
231288
231756
|
"use strict";
|
|
231289
231757
|
var compare = require_compare2();
|
|
231290
231758
|
var rcompare = (a2, b2, loose) => compare(b2, a2, loose);
|
|
@@ -231292,9 +231760,9 @@ var require_rcompare2 = __commonJS({
|
|
|
231292
231760
|
}
|
|
231293
231761
|
});
|
|
231294
231762
|
|
|
231295
|
-
// node_modules/@
|
|
231763
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/compare-loose.js
|
|
231296
231764
|
var require_compare_loose2 = __commonJS({
|
|
231297
|
-
"node_modules/@
|
|
231765
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
231298
231766
|
"use strict";
|
|
231299
231767
|
var compare = require_compare2();
|
|
231300
231768
|
var compareLoose = (a2, b2) => compare(a2, b2, true);
|
|
@@ -231302,9 +231770,9 @@ var require_compare_loose2 = __commonJS({
|
|
|
231302
231770
|
}
|
|
231303
231771
|
});
|
|
231304
231772
|
|
|
231305
|
-
// node_modules/@
|
|
231773
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/compare-build.js
|
|
231306
231774
|
var require_compare_build2 = __commonJS({
|
|
231307
|
-
"node_modules/@
|
|
231775
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
231308
231776
|
"use strict";
|
|
231309
231777
|
var SemVer = require_semver3();
|
|
231310
231778
|
var compareBuild = (a2, b2, loose) => {
|
|
@@ -231316,9 +231784,9 @@ var require_compare_build2 = __commonJS({
|
|
|
231316
231784
|
}
|
|
231317
231785
|
});
|
|
231318
231786
|
|
|
231319
|
-
// node_modules/@
|
|
231787
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/sort.js
|
|
231320
231788
|
var require_sort2 = __commonJS({
|
|
231321
|
-
"node_modules/@
|
|
231789
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/sort.js"(exports, module) {
|
|
231322
231790
|
"use strict";
|
|
231323
231791
|
var compareBuild = require_compare_build2();
|
|
231324
231792
|
var sort = (list2, loose) => list2.sort((a2, b2) => compareBuild(a2, b2, loose));
|
|
@@ -231326,9 +231794,9 @@ var require_sort2 = __commonJS({
|
|
|
231326
231794
|
}
|
|
231327
231795
|
});
|
|
231328
231796
|
|
|
231329
|
-
// node_modules/@
|
|
231797
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/rsort.js
|
|
231330
231798
|
var require_rsort2 = __commonJS({
|
|
231331
|
-
"node_modules/@
|
|
231799
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
231332
231800
|
"use strict";
|
|
231333
231801
|
var compareBuild = require_compare_build2();
|
|
231334
231802
|
var rsort = (list2, loose) => list2.sort((a2, b2) => compareBuild(b2, a2, loose));
|
|
@@ -231336,9 +231804,9 @@ var require_rsort2 = __commonJS({
|
|
|
231336
231804
|
}
|
|
231337
231805
|
});
|
|
231338
231806
|
|
|
231339
|
-
// node_modules/@
|
|
231807
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/gt.js
|
|
231340
231808
|
var require_gt2 = __commonJS({
|
|
231341
|
-
"node_modules/@
|
|
231809
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/gt.js"(exports, module) {
|
|
231342
231810
|
"use strict";
|
|
231343
231811
|
var compare = require_compare2();
|
|
231344
231812
|
var gt = (a2, b2, loose) => compare(a2, b2, loose) > 0;
|
|
@@ -231346,9 +231814,9 @@ var require_gt2 = __commonJS({
|
|
|
231346
231814
|
}
|
|
231347
231815
|
});
|
|
231348
231816
|
|
|
231349
|
-
// node_modules/@
|
|
231817
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/lt.js
|
|
231350
231818
|
var require_lt2 = __commonJS({
|
|
231351
|
-
"node_modules/@
|
|
231819
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/lt.js"(exports, module) {
|
|
231352
231820
|
"use strict";
|
|
231353
231821
|
var compare = require_compare2();
|
|
231354
231822
|
var lt = (a2, b2, loose) => compare(a2, b2, loose) < 0;
|
|
@@ -231356,9 +231824,9 @@ var require_lt2 = __commonJS({
|
|
|
231356
231824
|
}
|
|
231357
231825
|
});
|
|
231358
231826
|
|
|
231359
|
-
// node_modules/@
|
|
231827
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/eq.js
|
|
231360
231828
|
var require_eq2 = __commonJS({
|
|
231361
|
-
"node_modules/@
|
|
231829
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/eq.js"(exports, module) {
|
|
231362
231830
|
"use strict";
|
|
231363
231831
|
var compare = require_compare2();
|
|
231364
231832
|
var eq = (a2, b2, loose) => compare(a2, b2, loose) === 0;
|
|
@@ -231366,9 +231834,9 @@ var require_eq2 = __commonJS({
|
|
|
231366
231834
|
}
|
|
231367
231835
|
});
|
|
231368
231836
|
|
|
231369
|
-
// node_modules/@
|
|
231837
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/neq.js
|
|
231370
231838
|
var require_neq2 = __commonJS({
|
|
231371
|
-
"node_modules/@
|
|
231839
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/neq.js"(exports, module) {
|
|
231372
231840
|
"use strict";
|
|
231373
231841
|
var compare = require_compare2();
|
|
231374
231842
|
var neq = (a2, b2, loose) => compare(a2, b2, loose) !== 0;
|
|
@@ -231376,9 +231844,9 @@ var require_neq2 = __commonJS({
|
|
|
231376
231844
|
}
|
|
231377
231845
|
});
|
|
231378
231846
|
|
|
231379
|
-
// node_modules/@
|
|
231847
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/gte.js
|
|
231380
231848
|
var require_gte2 = __commonJS({
|
|
231381
|
-
"node_modules/@
|
|
231849
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/gte.js"(exports, module) {
|
|
231382
231850
|
"use strict";
|
|
231383
231851
|
var compare = require_compare2();
|
|
231384
231852
|
var gte = (a2, b2, loose) => compare(a2, b2, loose) >= 0;
|
|
@@ -231386,9 +231854,9 @@ var require_gte2 = __commonJS({
|
|
|
231386
231854
|
}
|
|
231387
231855
|
});
|
|
231388
231856
|
|
|
231389
|
-
// node_modules/@
|
|
231857
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/lte.js
|
|
231390
231858
|
var require_lte2 = __commonJS({
|
|
231391
|
-
"node_modules/@
|
|
231859
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/lte.js"(exports, module) {
|
|
231392
231860
|
"use strict";
|
|
231393
231861
|
var compare = require_compare2();
|
|
231394
231862
|
var lte = (a2, b2, loose) => compare(a2, b2, loose) <= 0;
|
|
@@ -231396,9 +231864,9 @@ var require_lte2 = __commonJS({
|
|
|
231396
231864
|
}
|
|
231397
231865
|
});
|
|
231398
231866
|
|
|
231399
|
-
// node_modules/@
|
|
231867
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/cmp.js
|
|
231400
231868
|
var require_cmp2 = __commonJS({
|
|
231401
|
-
"node_modules/@
|
|
231869
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
231402
231870
|
"use strict";
|
|
231403
231871
|
var eq = require_eq2();
|
|
231404
231872
|
var neq = require_neq2();
|
|
@@ -231446,9 +231914,9 @@ var require_cmp2 = __commonJS({
|
|
|
231446
231914
|
}
|
|
231447
231915
|
});
|
|
231448
231916
|
|
|
231449
|
-
// node_modules/@
|
|
231917
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/coerce.js
|
|
231450
231918
|
var require_coerce2 = __commonJS({
|
|
231451
|
-
"node_modules/@
|
|
231919
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
231452
231920
|
"use strict";
|
|
231453
231921
|
var SemVer = require_semver3();
|
|
231454
231922
|
var parse2 = require_parse2();
|
|
@@ -231492,9 +231960,9 @@ var require_coerce2 = __commonJS({
|
|
|
231492
231960
|
}
|
|
231493
231961
|
});
|
|
231494
231962
|
|
|
231495
|
-
// node_modules/@
|
|
231963
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/truncate.js
|
|
231496
231964
|
var require_truncate2 = __commonJS({
|
|
231497
|
-
"node_modules/@
|
|
231965
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/truncate.js"(exports, module) {
|
|
231498
231966
|
"use strict";
|
|
231499
231967
|
var parse2 = require_parse2();
|
|
231500
231968
|
var constants = require_constants2();
|
|
@@ -231533,9 +232001,9 @@ var require_truncate2 = __commonJS({
|
|
|
231533
232001
|
}
|
|
231534
232002
|
});
|
|
231535
232003
|
|
|
231536
|
-
// node_modules/@
|
|
232004
|
+
// node_modules/@commitlint/read/node_modules/semver/internal/lrucache.js
|
|
231537
232005
|
var require_lrucache2 = __commonJS({
|
|
231538
|
-
"node_modules/@
|
|
232006
|
+
"node_modules/@commitlint/read/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
231539
232007
|
"use strict";
|
|
231540
232008
|
var LRUCache = class {
|
|
231541
232009
|
constructor() {
|
|
@@ -231571,9 +232039,9 @@ var require_lrucache2 = __commonJS({
|
|
|
231571
232039
|
}
|
|
231572
232040
|
});
|
|
231573
232041
|
|
|
231574
|
-
// node_modules/@
|
|
232042
|
+
// node_modules/@commitlint/read/node_modules/semver/classes/range.js
|
|
231575
232043
|
var require_range2 = __commonJS({
|
|
231576
|
-
"node_modules/@
|
|
232044
|
+
"node_modules/@commitlint/read/node_modules/semver/classes/range.js"(exports, module) {
|
|
231577
232045
|
"use strict";
|
|
231578
232046
|
var SPACE_CHARACTERS = /\s+/g;
|
|
231579
232047
|
var Range = class _Range {
|
|
@@ -231956,9 +232424,9 @@ var require_range2 = __commonJS({
|
|
|
231956
232424
|
}
|
|
231957
232425
|
});
|
|
231958
232426
|
|
|
231959
|
-
// node_modules/@
|
|
232427
|
+
// node_modules/@commitlint/read/node_modules/semver/classes/comparator.js
|
|
231960
232428
|
var require_comparator2 = __commonJS({
|
|
231961
|
-
"node_modules/@
|
|
232429
|
+
"node_modules/@commitlint/read/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
231962
232430
|
"use strict";
|
|
231963
232431
|
var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
|
|
231964
232432
|
var Comparator = class _Comparator {
|
|
@@ -232069,9 +232537,9 @@ var require_comparator2 = __commonJS({
|
|
|
232069
232537
|
}
|
|
232070
232538
|
});
|
|
232071
232539
|
|
|
232072
|
-
// node_modules/@
|
|
232540
|
+
// node_modules/@commitlint/read/node_modules/semver/functions/satisfies.js
|
|
232073
232541
|
var require_satisfies2 = __commonJS({
|
|
232074
|
-
"node_modules/@
|
|
232542
|
+
"node_modules/@commitlint/read/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
232075
232543
|
"use strict";
|
|
232076
232544
|
var Range = require_range2();
|
|
232077
232545
|
var satisfies = (version, range, options) => {
|
|
@@ -232086,9 +232554,9 @@ var require_satisfies2 = __commonJS({
|
|
|
232086
232554
|
}
|
|
232087
232555
|
});
|
|
232088
232556
|
|
|
232089
|
-
// node_modules/@
|
|
232557
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/to-comparators.js
|
|
232090
232558
|
var require_to_comparators2 = __commonJS({
|
|
232091
|
-
"node_modules/@
|
|
232559
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
232092
232560
|
"use strict";
|
|
232093
232561
|
var Range = require_range2();
|
|
232094
232562
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c2) => c2.value).join(" ").trim().split(" "));
|
|
@@ -232096,9 +232564,9 @@ var require_to_comparators2 = __commonJS({
|
|
|
232096
232564
|
}
|
|
232097
232565
|
});
|
|
232098
232566
|
|
|
232099
|
-
// node_modules/@
|
|
232567
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/max-satisfying.js
|
|
232100
232568
|
var require_max_satisfying2 = __commonJS({
|
|
232101
|
-
"node_modules/@
|
|
232569
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
232102
232570
|
"use strict";
|
|
232103
232571
|
var SemVer = require_semver3();
|
|
232104
232572
|
var Range = require_range2();
|
|
@@ -232125,9 +232593,9 @@ var require_max_satisfying2 = __commonJS({
|
|
|
232125
232593
|
}
|
|
232126
232594
|
});
|
|
232127
232595
|
|
|
232128
|
-
// node_modules/@
|
|
232596
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/min-satisfying.js
|
|
232129
232597
|
var require_min_satisfying2 = __commonJS({
|
|
232130
|
-
"node_modules/@
|
|
232598
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
232131
232599
|
"use strict";
|
|
232132
232600
|
var SemVer = require_semver3();
|
|
232133
232601
|
var Range = require_range2();
|
|
@@ -232154,9 +232622,9 @@ var require_min_satisfying2 = __commonJS({
|
|
|
232154
232622
|
}
|
|
232155
232623
|
});
|
|
232156
232624
|
|
|
232157
|
-
// node_modules/@
|
|
232625
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/min-version.js
|
|
232158
232626
|
var require_min_version2 = __commonJS({
|
|
232159
|
-
"node_modules/@
|
|
232627
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
232160
232628
|
"use strict";
|
|
232161
232629
|
var SemVer = require_semver3();
|
|
232162
232630
|
var Range = require_range2();
|
|
@@ -232213,9 +232681,9 @@ var require_min_version2 = __commonJS({
|
|
|
232213
232681
|
}
|
|
232214
232682
|
});
|
|
232215
232683
|
|
|
232216
|
-
// node_modules/@
|
|
232684
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/valid.js
|
|
232217
232685
|
var require_valid4 = __commonJS({
|
|
232218
|
-
"node_modules/@
|
|
232686
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
232219
232687
|
"use strict";
|
|
232220
232688
|
var Range = require_range2();
|
|
232221
232689
|
var validRange = (range, options) => {
|
|
@@ -232229,9 +232697,9 @@ var require_valid4 = __commonJS({
|
|
|
232229
232697
|
}
|
|
232230
232698
|
});
|
|
232231
232699
|
|
|
232232
|
-
// node_modules/@
|
|
232700
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/outside.js
|
|
232233
232701
|
var require_outside2 = __commonJS({
|
|
232234
|
-
"node_modules/@
|
|
232702
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
232235
232703
|
"use strict";
|
|
232236
232704
|
var SemVer = require_semver3();
|
|
232237
232705
|
var Comparator = require_comparator2();
|
|
@@ -232298,9 +232766,9 @@ var require_outside2 = __commonJS({
|
|
|
232298
232766
|
}
|
|
232299
232767
|
});
|
|
232300
232768
|
|
|
232301
|
-
// node_modules/@
|
|
232769
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/gtr.js
|
|
232302
232770
|
var require_gtr2 = __commonJS({
|
|
232303
|
-
"node_modules/@
|
|
232771
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
232304
232772
|
"use strict";
|
|
232305
232773
|
var outside = require_outside2();
|
|
232306
232774
|
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
@@ -232308,9 +232776,9 @@ var require_gtr2 = __commonJS({
|
|
|
232308
232776
|
}
|
|
232309
232777
|
});
|
|
232310
232778
|
|
|
232311
|
-
// node_modules/@
|
|
232779
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/ltr.js
|
|
232312
232780
|
var require_ltr2 = __commonJS({
|
|
232313
|
-
"node_modules/@
|
|
232781
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
232314
232782
|
"use strict";
|
|
232315
232783
|
var outside = require_outside2();
|
|
232316
232784
|
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
@@ -232318,9 +232786,9 @@ var require_ltr2 = __commonJS({
|
|
|
232318
232786
|
}
|
|
232319
232787
|
});
|
|
232320
232788
|
|
|
232321
|
-
// node_modules/@
|
|
232789
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/intersects.js
|
|
232322
232790
|
var require_intersects2 = __commonJS({
|
|
232323
|
-
"node_modules/@
|
|
232791
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
232324
232792
|
"use strict";
|
|
232325
232793
|
var Range = require_range2();
|
|
232326
232794
|
var intersects = (r1, r2, options) => {
|
|
@@ -232332,9 +232800,9 @@ var require_intersects2 = __commonJS({
|
|
|
232332
232800
|
}
|
|
232333
232801
|
});
|
|
232334
232802
|
|
|
232335
|
-
// node_modules/@
|
|
232803
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/simplify.js
|
|
232336
232804
|
var require_simplify2 = __commonJS({
|
|
232337
|
-
"node_modules/@
|
|
232805
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
232338
232806
|
"use strict";
|
|
232339
232807
|
var satisfies = require_satisfies2();
|
|
232340
232808
|
var compare = require_compare2();
|
|
@@ -232382,9 +232850,9 @@ var require_simplify2 = __commonJS({
|
|
|
232382
232850
|
}
|
|
232383
232851
|
});
|
|
232384
232852
|
|
|
232385
|
-
// node_modules/@
|
|
232853
|
+
// node_modules/@commitlint/read/node_modules/semver/ranges/subset.js
|
|
232386
232854
|
var require_subset2 = __commonJS({
|
|
232387
|
-
"node_modules/@
|
|
232855
|
+
"node_modules/@commitlint/read/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
232388
232856
|
"use strict";
|
|
232389
232857
|
var Range = require_range2();
|
|
232390
232858
|
var Comparator = require_comparator2();
|
|
@@ -232544,9 +233012,9 @@ var require_subset2 = __commonJS({
|
|
|
232544
233012
|
}
|
|
232545
233013
|
});
|
|
232546
233014
|
|
|
232547
|
-
// node_modules/@
|
|
233015
|
+
// node_modules/@commitlint/read/node_modules/semver/index.js
|
|
232548
233016
|
var require_semver4 = __commonJS({
|
|
232549
|
-
"node_modules/@
|
|
233017
|
+
"node_modules/@commitlint/read/node_modules/semver/index.js"(exports, module) {
|
|
232550
233018
|
"use strict";
|
|
232551
233019
|
var internalRe = require_re2();
|
|
232552
233020
|
var constants = require_constants2();
|
|
@@ -232731,420 +233199,8 @@ function isIgnored(commit = "", opts = {}) {
|
|
|
232731
233199
|
return [...base, ...ignores].some((w2) => w2(commit));
|
|
232732
233200
|
}
|
|
232733
233201
|
|
|
232734
|
-
// node_modules/@commitlint/parse/
|
|
232735
|
-
|
|
232736
|
-
function escape2(string) {
|
|
232737
|
-
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
232738
|
-
}
|
|
232739
|
-
function joinOr(parts) {
|
|
232740
|
-
return parts.map((val) => typeof val === "string" ? escape2(val.trim()) : val.source).filter(Boolean).join("|");
|
|
232741
|
-
}
|
|
232742
|
-
function getNotesRegex(noteKeywords, notesPattern) {
|
|
232743
|
-
if (!noteKeywords) {
|
|
232744
|
-
return nomatchRegex;
|
|
232745
|
-
}
|
|
232746
|
-
const noteKeywordsSelection = joinOr(noteKeywords);
|
|
232747
|
-
if (!notesPattern) {
|
|
232748
|
-
return new RegExp(`^[\\s|*]*(${noteKeywordsSelection})[:\\s]+(.*)`, "i");
|
|
232749
|
-
}
|
|
232750
|
-
return notesPattern(noteKeywordsSelection);
|
|
232751
|
-
}
|
|
232752
|
-
function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) {
|
|
232753
|
-
if (!issuePrefixes) {
|
|
232754
|
-
return nomatchRegex;
|
|
232755
|
-
}
|
|
232756
|
-
const flags = issuePrefixesCaseSensitive ? "g" : "gi";
|
|
232757
|
-
return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${joinOr(issuePrefixes)})([\\w-]+)(?=\\s|$|[,;.)\\]])`, flags);
|
|
232758
|
-
}
|
|
232759
|
-
function getReferencesRegex(referenceActions) {
|
|
232760
|
-
if (!referenceActions) {
|
|
232761
|
-
return /()(.+)/gi;
|
|
232762
|
-
}
|
|
232763
|
-
const joinedKeywords = joinOr(referenceActions);
|
|
232764
|
-
return new RegExp(`(${joinedKeywords})(?:\\s+(.*?))(?=(?:${joinedKeywords})|$)`, "gi");
|
|
232765
|
-
}
|
|
232766
|
-
function getFooterTokenRegex(issuePrefixes) {
|
|
232767
|
-
const issuePrefixSeparator = issuePrefixes ? `|\\s+(?:${joinOr(issuePrefixes)})` : "";
|
|
232768
|
-
return new RegExp(`^\\s*(?:BREAKING CHANGE|[\\w-]+)(?::\\s+${issuePrefixSeparator}).+`, "i");
|
|
232769
|
-
}
|
|
232770
|
-
function getParserRegexes(options = {}) {
|
|
232771
|
-
const notes = getNotesRegex(options.noteKeywords, options.notesPattern);
|
|
232772
|
-
const referenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive);
|
|
232773
|
-
const references = getReferencesRegex(options.referenceActions);
|
|
232774
|
-
const footerToken = getFooterTokenRegex(options.issuePrefixes);
|
|
232775
|
-
return {
|
|
232776
|
-
notes,
|
|
232777
|
-
referenceParts,
|
|
232778
|
-
references,
|
|
232779
|
-
footerToken,
|
|
232780
|
-
mentions: /@([\w-]+)/g,
|
|
232781
|
-
url: /\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/
|
|
232782
|
-
};
|
|
232783
|
-
}
|
|
232784
|
-
|
|
232785
|
-
// node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/utils.js
|
|
232786
|
-
var SCISSOR = "------------------------ >8 ------------------------";
|
|
232787
|
-
function trimNewLines(input) {
|
|
232788
|
-
const matches = input.match(/[^\r\n]/);
|
|
232789
|
-
if (typeof matches?.index !== "number") {
|
|
232790
|
-
return "";
|
|
232791
|
-
}
|
|
232792
|
-
const firstIndex = matches.index;
|
|
232793
|
-
let lastIndex = input.length - 1;
|
|
232794
|
-
while (input[lastIndex] === "\r" || input[lastIndex] === "\n") {
|
|
232795
|
-
lastIndex--;
|
|
232796
|
-
}
|
|
232797
|
-
return input.substring(firstIndex, lastIndex + 1);
|
|
232798
|
-
}
|
|
232799
|
-
function appendLine(src, line) {
|
|
232800
|
-
return src ? `${src}
|
|
232801
|
-
${line || ""}` : line || "";
|
|
232802
|
-
}
|
|
232803
|
-
function getCommentFilter(char) {
|
|
232804
|
-
return char ? (line) => !line.startsWith(char) : () => true;
|
|
232805
|
-
}
|
|
232806
|
-
function truncateToScissor(lines, commentChar) {
|
|
232807
|
-
const scissorIndex = lines.indexOf(`${commentChar} ${SCISSOR}`);
|
|
232808
|
-
if (scissorIndex === -1) {
|
|
232809
|
-
return lines;
|
|
232810
|
-
}
|
|
232811
|
-
return lines.slice(0, scissorIndex);
|
|
232812
|
-
}
|
|
232813
|
-
function gpgFilter(line) {
|
|
232814
|
-
return !line.match(/^\s*gpg:/);
|
|
232815
|
-
}
|
|
232816
|
-
function assignMatchedCorrespondence(target, matches, correspondence) {
|
|
232817
|
-
const { groups } = matches;
|
|
232818
|
-
for (let i2 = 0, len = correspondence.length, key; i2 < len; i2++) {
|
|
232819
|
-
key = correspondence[i2];
|
|
232820
|
-
target[key] = (groups ? groups[key] : matches[i2 + 1]) || null;
|
|
232821
|
-
}
|
|
232822
|
-
return target;
|
|
232823
|
-
}
|
|
232824
|
-
|
|
232825
|
-
// node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/options.js
|
|
232826
|
-
var defaultOptions = {
|
|
232827
|
-
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
232828
|
-
issuePrefixes: ["#"],
|
|
232829
|
-
referenceActions: [
|
|
232830
|
-
"close",
|
|
232831
|
-
"closes",
|
|
232832
|
-
"closed",
|
|
232833
|
-
"fix",
|
|
232834
|
-
"fixes",
|
|
232835
|
-
"fixed",
|
|
232836
|
-
"resolve",
|
|
232837
|
-
"resolves",
|
|
232838
|
-
"resolved"
|
|
232839
|
-
],
|
|
232840
|
-
headerPattern: /^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,
|
|
232841
|
-
headerCorrespondence: [
|
|
232842
|
-
"type",
|
|
232843
|
-
"scope",
|
|
232844
|
-
"subject"
|
|
232845
|
-
],
|
|
232846
|
-
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
|
|
232847
|
-
revertCorrespondence: ["header", "hash"],
|
|
232848
|
-
fieldPattern: /^-(.*?)-$/
|
|
232849
|
-
};
|
|
232850
|
-
|
|
232851
|
-
// node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/CommitParser.js
|
|
232852
|
-
function createCommitObject(initialData = {}) {
|
|
232853
|
-
return {
|
|
232854
|
-
merge: null,
|
|
232855
|
-
revert: null,
|
|
232856
|
-
header: null,
|
|
232857
|
-
body: null,
|
|
232858
|
-
footer: null,
|
|
232859
|
-
notes: [],
|
|
232860
|
-
mentions: [],
|
|
232861
|
-
references: [],
|
|
232862
|
-
...initialData
|
|
232863
|
-
};
|
|
232864
|
-
}
|
|
232865
|
-
var CommitParser = class {
|
|
232866
|
-
options;
|
|
232867
|
-
regexes;
|
|
232868
|
-
lines = [];
|
|
232869
|
-
lineIndex = 0;
|
|
232870
|
-
commit = createCommitObject();
|
|
232871
|
-
constructor(options = {}) {
|
|
232872
|
-
this.options = {
|
|
232873
|
-
...defaultOptions,
|
|
232874
|
-
...options
|
|
232875
|
-
};
|
|
232876
|
-
this.regexes = getParserRegexes(this.options);
|
|
232877
|
-
}
|
|
232878
|
-
currentLine() {
|
|
232879
|
-
return this.lines[this.lineIndex];
|
|
232880
|
-
}
|
|
232881
|
-
nextLine() {
|
|
232882
|
-
return this.lines[this.lineIndex++];
|
|
232883
|
-
}
|
|
232884
|
-
isLineAvailable() {
|
|
232885
|
-
return this.lineIndex < this.lines.length;
|
|
232886
|
-
}
|
|
232887
|
-
parseReference(input, action) {
|
|
232888
|
-
const { regexes } = this;
|
|
232889
|
-
if (regexes.url.test(input)) {
|
|
232890
|
-
return null;
|
|
232891
|
-
}
|
|
232892
|
-
const matches = regexes.referenceParts.exec(input);
|
|
232893
|
-
if (!matches) {
|
|
232894
|
-
return null;
|
|
232895
|
-
}
|
|
232896
|
-
let [raw, repository = null, prefix2, issue] = matches;
|
|
232897
|
-
let owner = null;
|
|
232898
|
-
if (repository) {
|
|
232899
|
-
const slashIndex = repository.indexOf("/");
|
|
232900
|
-
if (slashIndex !== -1) {
|
|
232901
|
-
owner = repository.slice(0, slashIndex);
|
|
232902
|
-
repository = repository.slice(slashIndex + 1);
|
|
232903
|
-
}
|
|
232904
|
-
}
|
|
232905
|
-
return {
|
|
232906
|
-
raw,
|
|
232907
|
-
action,
|
|
232908
|
-
owner,
|
|
232909
|
-
repository,
|
|
232910
|
-
prefix: prefix2,
|
|
232911
|
-
issue
|
|
232912
|
-
};
|
|
232913
|
-
}
|
|
232914
|
-
parseReferences(input) {
|
|
232915
|
-
const { regexes } = this;
|
|
232916
|
-
const regex2 = input.match(regexes.references) ? regexes.references : /()(.+)/gi;
|
|
232917
|
-
const references = [];
|
|
232918
|
-
let matches;
|
|
232919
|
-
let action;
|
|
232920
|
-
let sentence;
|
|
232921
|
-
let reference2;
|
|
232922
|
-
while (true) {
|
|
232923
|
-
matches = regex2.exec(input);
|
|
232924
|
-
if (!matches) {
|
|
232925
|
-
break;
|
|
232926
|
-
}
|
|
232927
|
-
action = matches[1] || null;
|
|
232928
|
-
sentence = matches[2] || "";
|
|
232929
|
-
while (true) {
|
|
232930
|
-
reference2 = this.parseReference(sentence, action);
|
|
232931
|
-
if (!reference2) {
|
|
232932
|
-
break;
|
|
232933
|
-
}
|
|
232934
|
-
references.push(reference2);
|
|
232935
|
-
}
|
|
232936
|
-
}
|
|
232937
|
-
return references;
|
|
232938
|
-
}
|
|
232939
|
-
skipEmptyLines() {
|
|
232940
|
-
let line = this.currentLine();
|
|
232941
|
-
while (line !== void 0 && !line.trim()) {
|
|
232942
|
-
this.nextLine();
|
|
232943
|
-
line = this.currentLine();
|
|
232944
|
-
}
|
|
232945
|
-
}
|
|
232946
|
-
parseMerge() {
|
|
232947
|
-
const { commit, options } = this;
|
|
232948
|
-
const correspondence = options.mergeCorrespondence || [];
|
|
232949
|
-
const merge2 = this.currentLine();
|
|
232950
|
-
const matches = merge2 && options.mergePattern ? merge2.match(options.mergePattern) : null;
|
|
232951
|
-
if (matches) {
|
|
232952
|
-
this.nextLine();
|
|
232953
|
-
commit.merge = matches[0] || null;
|
|
232954
|
-
assignMatchedCorrespondence(commit, matches, correspondence);
|
|
232955
|
-
return true;
|
|
232956
|
-
}
|
|
232957
|
-
return false;
|
|
232958
|
-
}
|
|
232959
|
-
parseHeader(isMergeCommit) {
|
|
232960
|
-
if (isMergeCommit) {
|
|
232961
|
-
this.skipEmptyLines();
|
|
232962
|
-
}
|
|
232963
|
-
const { commit, options } = this;
|
|
232964
|
-
const correspondence = options.headerCorrespondence || [];
|
|
232965
|
-
const header = commit.header ?? this.nextLine();
|
|
232966
|
-
let matches = null;
|
|
232967
|
-
if (header) {
|
|
232968
|
-
if (options.breakingHeaderPattern) {
|
|
232969
|
-
matches = header.match(options.breakingHeaderPattern);
|
|
232970
|
-
}
|
|
232971
|
-
if (!matches && options.headerPattern) {
|
|
232972
|
-
matches = header.match(options.headerPattern);
|
|
232973
|
-
}
|
|
232974
|
-
}
|
|
232975
|
-
if (header) {
|
|
232976
|
-
commit.header = header;
|
|
232977
|
-
}
|
|
232978
|
-
if (matches) {
|
|
232979
|
-
assignMatchedCorrespondence(commit, matches, correspondence);
|
|
232980
|
-
}
|
|
232981
|
-
}
|
|
232982
|
-
parseMeta() {
|
|
232983
|
-
const { options, commit } = this;
|
|
232984
|
-
if (!options.fieldPattern || !this.isLineAvailable()) {
|
|
232985
|
-
return false;
|
|
232986
|
-
}
|
|
232987
|
-
let matches;
|
|
232988
|
-
let field = null;
|
|
232989
|
-
let parsed = false;
|
|
232990
|
-
while (this.isLineAvailable()) {
|
|
232991
|
-
matches = this.currentLine().match(options.fieldPattern);
|
|
232992
|
-
if (matches) {
|
|
232993
|
-
field = matches[1] || null;
|
|
232994
|
-
this.nextLine();
|
|
232995
|
-
continue;
|
|
232996
|
-
}
|
|
232997
|
-
if (field) {
|
|
232998
|
-
parsed = true;
|
|
232999
|
-
commit[field] = appendLine(commit[field], this.currentLine());
|
|
233000
|
-
this.nextLine();
|
|
233001
|
-
} else {
|
|
233002
|
-
break;
|
|
233003
|
-
}
|
|
233004
|
-
}
|
|
233005
|
-
return parsed;
|
|
233006
|
-
}
|
|
233007
|
-
parseNotes() {
|
|
233008
|
-
const { regexes, commit } = this;
|
|
233009
|
-
if (!this.isLineAvailable()) {
|
|
233010
|
-
return false;
|
|
233011
|
-
}
|
|
233012
|
-
const matches = this.currentLine().match(regexes.notes);
|
|
233013
|
-
let isFooterToken;
|
|
233014
|
-
if (matches) {
|
|
233015
|
-
const note = {
|
|
233016
|
-
title: matches[1],
|
|
233017
|
-
text: matches[2]
|
|
233018
|
-
};
|
|
233019
|
-
commit.notes.push(note);
|
|
233020
|
-
commit.footer = appendLine(commit.footer, this.currentLine());
|
|
233021
|
-
this.nextLine();
|
|
233022
|
-
while (this.isLineAvailable()) {
|
|
233023
|
-
if (this.parseMeta()) {
|
|
233024
|
-
return true;
|
|
233025
|
-
}
|
|
233026
|
-
if (this.parseNotes()) {
|
|
233027
|
-
return true;
|
|
233028
|
-
}
|
|
233029
|
-
isFooterToken = regexes.footerToken.test(this.currentLine());
|
|
233030
|
-
commit.references.push(...this.parseReferences(this.currentLine()));
|
|
233031
|
-
if (!isFooterToken) {
|
|
233032
|
-
note.text = appendLine(note.text, this.currentLine());
|
|
233033
|
-
}
|
|
233034
|
-
commit.footer = appendLine(commit.footer, this.currentLine());
|
|
233035
|
-
this.nextLine();
|
|
233036
|
-
if (isFooterToken) {
|
|
233037
|
-
break;
|
|
233038
|
-
}
|
|
233039
|
-
}
|
|
233040
|
-
return true;
|
|
233041
|
-
}
|
|
233042
|
-
return false;
|
|
233043
|
-
}
|
|
233044
|
-
parseBodyAndFooter(isBody) {
|
|
233045
|
-
const { commit, regexes } = this;
|
|
233046
|
-
if (!this.isLineAvailable()) {
|
|
233047
|
-
return isBody;
|
|
233048
|
-
}
|
|
233049
|
-
const isFooterToken = regexes.footerToken.test(this.currentLine());
|
|
233050
|
-
const isStillBody = !isFooterToken && isBody;
|
|
233051
|
-
commit.references.push(...this.parseReferences(this.currentLine()));
|
|
233052
|
-
if (isStillBody) {
|
|
233053
|
-
commit.body = appendLine(commit.body, this.currentLine());
|
|
233054
|
-
} else {
|
|
233055
|
-
commit.footer = appendLine(commit.footer, this.currentLine());
|
|
233056
|
-
}
|
|
233057
|
-
this.nextLine();
|
|
233058
|
-
return isStillBody;
|
|
233059
|
-
}
|
|
233060
|
-
parseBreakingHeader() {
|
|
233061
|
-
const { commit, options } = this;
|
|
233062
|
-
if (!options.breakingHeaderPattern || commit.notes.length || !commit.header) {
|
|
233063
|
-
return;
|
|
233064
|
-
}
|
|
233065
|
-
const matches = commit.header.match(options.breakingHeaderPattern);
|
|
233066
|
-
if (matches) {
|
|
233067
|
-
commit.notes.push({
|
|
233068
|
-
title: "BREAKING CHANGE",
|
|
233069
|
-
text: matches[3]
|
|
233070
|
-
});
|
|
233071
|
-
}
|
|
233072
|
-
}
|
|
233073
|
-
parseMentions(input) {
|
|
233074
|
-
const { commit, regexes } = this;
|
|
233075
|
-
let matches;
|
|
233076
|
-
for (; ; ) {
|
|
233077
|
-
matches = regexes.mentions.exec(input);
|
|
233078
|
-
if (!matches) {
|
|
233079
|
-
break;
|
|
233080
|
-
}
|
|
233081
|
-
commit.mentions.push(matches[1]);
|
|
233082
|
-
}
|
|
233083
|
-
}
|
|
233084
|
-
parseRevert(input) {
|
|
233085
|
-
const { commit, options } = this;
|
|
233086
|
-
const correspondence = options.revertCorrespondence || [];
|
|
233087
|
-
const matches = options.revertPattern ? input.match(options.revertPattern) : null;
|
|
233088
|
-
if (matches) {
|
|
233089
|
-
commit.revert = assignMatchedCorrespondence({}, matches, correspondence);
|
|
233090
|
-
}
|
|
233091
|
-
}
|
|
233092
|
-
cleanupCommit() {
|
|
233093
|
-
const { commit } = this;
|
|
233094
|
-
commit.body &&= trimNewLines(commit.body);
|
|
233095
|
-
commit.footer &&= trimNewLines(commit.footer);
|
|
233096
|
-
commit.notes.forEach((note) => {
|
|
233097
|
-
note.text = trimNewLines(note.text);
|
|
233098
|
-
});
|
|
233099
|
-
const referencesSet = /* @__PURE__ */ new Set();
|
|
233100
|
-
commit.references = commit.references.filter((reference2) => {
|
|
233101
|
-
const uid = `${reference2.action} ${reference2.raw}`.toLocaleLowerCase();
|
|
233102
|
-
const ok = !referencesSet.has(uid);
|
|
233103
|
-
if (ok) {
|
|
233104
|
-
referencesSet.add(uid);
|
|
233105
|
-
}
|
|
233106
|
-
return ok;
|
|
233107
|
-
});
|
|
233108
|
-
}
|
|
233109
|
-
/**
|
|
233110
|
-
* Parse commit message string into an object.
|
|
233111
|
-
* @param input - Commit message string.
|
|
233112
|
-
* @returns Commit object.
|
|
233113
|
-
*/
|
|
233114
|
-
parse(input) {
|
|
233115
|
-
if (!input.trim()) {
|
|
233116
|
-
throw new TypeError("Expected a raw commit");
|
|
233117
|
-
}
|
|
233118
|
-
const { commentChar } = this.options;
|
|
233119
|
-
const commentFilter = getCommentFilter(commentChar);
|
|
233120
|
-
const rawLines = trimNewLines(input).split(/\r?\n/);
|
|
233121
|
-
const lines = commentChar ? truncateToScissor(rawLines, commentChar).filter((line) => commentFilter(line) && gpgFilter(line)) : rawLines.filter((line) => gpgFilter(line));
|
|
233122
|
-
const commit = createCommitObject();
|
|
233123
|
-
this.lines = lines;
|
|
233124
|
-
this.lineIndex = 0;
|
|
233125
|
-
this.commit = commit;
|
|
233126
|
-
const isMergeCommit = this.parseMerge();
|
|
233127
|
-
this.parseHeader(isMergeCommit);
|
|
233128
|
-
if (commit.header) {
|
|
233129
|
-
commit.references = this.parseReferences(commit.header);
|
|
233130
|
-
}
|
|
233131
|
-
let isBody = true;
|
|
233132
|
-
while (this.isLineAvailable()) {
|
|
233133
|
-
this.parseMeta();
|
|
233134
|
-
if (this.parseNotes()) {
|
|
233135
|
-
isBody = false;
|
|
233136
|
-
}
|
|
233137
|
-
if (!this.parseBodyAndFooter(isBody)) {
|
|
233138
|
-
isBody = false;
|
|
233139
|
-
}
|
|
233140
|
-
}
|
|
233141
|
-
this.parseBreakingHeader();
|
|
233142
|
-
this.parseMentions(input);
|
|
233143
|
-
this.parseRevert(input);
|
|
233144
|
-
this.cleanupCommit();
|
|
233145
|
-
return commit;
|
|
233146
|
-
}
|
|
233147
|
-
};
|
|
233202
|
+
// node_modules/@commitlint/parse/lib/index.js
|
|
233203
|
+
init_dist();
|
|
233148
233204
|
|
|
233149
233205
|
// node_modules/conventional-changelog-angular/src/parser.js
|
|
233150
233206
|
function createParserOpts() {
|
|
@@ -235742,7 +235798,7 @@ async function load(seed = {}, options = {}) {
|
|
|
235742
235798
|
// node_modules/@commitlint/read/lib/read.js
|
|
235743
235799
|
import { parseArgs } from "node:util";
|
|
235744
235800
|
|
|
235745
|
-
// node_modules/@conventional-changelog/git-client/dist/utils.js
|
|
235801
|
+
// node_modules/@commitlint/read/node_modules/@conventional-changelog/git-client/dist/utils.js
|
|
235746
235802
|
function formatArgs(...args) {
|
|
235747
235803
|
return args.reduce((finalArgs, arg) => {
|
|
235748
235804
|
if (arg) {
|
|
@@ -235755,7 +235811,7 @@ function toArray(value) {
|
|
|
235755
235811
|
return Array.isArray(value) ? value : [value];
|
|
235756
235812
|
}
|
|
235757
235813
|
|
|
235758
|
-
// node_modules/@conventional-changelog/git-client/dist/GitClient.js
|
|
235814
|
+
// node_modules/@commitlint/read/node_modules/@conventional-changelog/git-client/dist/GitClient.js
|
|
235759
235815
|
import { spawn } from "child_process";
|
|
235760
235816
|
|
|
235761
235817
|
// node_modules/@simple-libs/stream-utils/dist/index.js
|
|
@@ -235837,7 +235893,7 @@ function output(process4) {
|
|
|
235837
235893
|
return concatBufferStream(outputStream(process4));
|
|
235838
235894
|
}
|
|
235839
235895
|
|
|
235840
|
-
// node_modules/@conventional-changelog/git-client/dist/GitClient.js
|
|
235896
|
+
// node_modules/@commitlint/read/node_modules/@conventional-changelog/git-client/dist/GitClient.js
|
|
235841
235897
|
var SCISSOR2 = "------------------------ >8 ------------------------";
|
|
235842
235898
|
var GitClient = class {
|
|
235843
235899
|
cwd;
|
|
@@ -235913,9 +235969,9 @@ var GitClient = class {
|
|
|
235913
235969
|
* @yields Tags
|
|
235914
235970
|
*/
|
|
235915
235971
|
async *getTags(params = {}) {
|
|
235916
|
-
const { path: path9, from = "", to = "HEAD", since } = params;
|
|
235972
|
+
const { path: path9, from = "", to = "HEAD", since, all } = params;
|
|
235917
235973
|
const tagRegex = /tag:\s*(.+?)[,)]/gi;
|
|
235918
|
-
const stdout = this.execStream("log", "--decorate", "--no-color", "--date-order", since && `--since=${since instanceof Date ? since.toISOString() : since}`, [from, to].filter(Boolean).join(".."), ...path9 ? ["--", ...toArray(path9)] : []);
|
|
235974
|
+
const stdout = this.execStream("log", "--decorate", "--no-color", "--date-order", all && "--all", since && `--since=${since instanceof Date ? since.toISOString() : since}`, [from, to].filter(Boolean).join(".."), ...path9 ? ["--", ...toArray(path9)] : []);
|
|
235919
235975
|
let chunk;
|
|
235920
235976
|
let matches;
|
|
235921
235977
|
let tag;
|
|
@@ -236071,35 +236127,9 @@ var GitClient = class {
|
|
|
236071
236127
|
}
|
|
236072
236128
|
};
|
|
236073
236129
|
|
|
236074
|
-
// node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js
|
|
236130
|
+
// node_modules/@commitlint/read/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js
|
|
236075
236131
|
var import_semver2 = __toESM(require_semver4(), 1);
|
|
236076
236132
|
|
|
236077
|
-
// node_modules/git-raw-commits/src/index.js
|
|
236078
|
-
function getFinalOptions(options = {}) {
|
|
236079
|
-
const finalOptions = {
|
|
236080
|
-
cwd: process.cwd(),
|
|
236081
|
-
...options
|
|
236082
|
-
};
|
|
236083
|
-
if (options.debug) {
|
|
236084
|
-
finalOptions.debug = (args) => {
|
|
236085
|
-
options.debug(`Your git-log command is:
|
|
236086
|
-
git ${args.join(" ")}`);
|
|
236087
|
-
};
|
|
236088
|
-
}
|
|
236089
|
-
return finalOptions;
|
|
236090
|
-
}
|
|
236091
|
-
async function* getRawCommits(options) {
|
|
236092
|
-
const { cwd, debug, ...finalOptions } = getFinalOptions(options);
|
|
236093
|
-
const client = new GitClient(cwd, debug);
|
|
236094
|
-
let commit;
|
|
236095
|
-
if (typeof finalOptions.ignore === "string") {
|
|
236096
|
-
finalOptions.ignore = new RegExp(finalOptions.ignore);
|
|
236097
|
-
}
|
|
236098
|
-
for await (commit of client.getRawCommits(finalOptions)) {
|
|
236099
|
-
yield commit;
|
|
236100
|
-
}
|
|
236101
|
-
}
|
|
236102
|
-
|
|
236103
236133
|
// node_modules/@commitlint/read/lib/get-history-commits.js
|
|
236104
236134
|
async function getHistoryCommits(options, opts = {}) {
|
|
236105
236135
|
const { skip: skipRaw, ...gitOptions } = options;
|
|
@@ -236110,8 +236140,9 @@ async function getHistoryCommits(options, opts = {}) {
|
|
|
236110
236140
|
throw new TypeError(`Invalid skip value: ${skipRaw}`);
|
|
236111
236141
|
}
|
|
236112
236142
|
}
|
|
236143
|
+
const client = new GitClient(opts.cwd ?? process.cwd());
|
|
236113
236144
|
const data = [];
|
|
236114
|
-
for await (const commit of getRawCommits(
|
|
236145
|
+
for await (const commit of client.getRawCommits(gitOptions)) {
|
|
236115
236146
|
if (skipNum > 0) {
|
|
236116
236147
|
skipNum--;
|
|
236117
236148
|
continue;
|
|
@@ -242376,7 +242407,7 @@ process.on("unhandledRejection", (reason, promise) => {
|
|
|
242376
242407
|
});
|
|
242377
242408
|
/*! Bundled license information:
|
|
242378
242409
|
|
|
242379
|
-
typescript/lib/typescript.js:
|
|
242410
|
+
@typescript/old/lib/typescript.js:
|
|
242380
242411
|
(*! *****************************************************************************
|
|
242381
242412
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
242382
242413
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|