@html-validate/commitlint-config 3.6.8 → 3.6.9
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 +484 -22
- package/package.json +1 -1
package/dist/commitlint.js
CHANGED
|
@@ -18,6 +18,9 @@ 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) => function __init() {
|
|
22
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
23
|
+
};
|
|
21
24
|
var __commonJS = (cb, mod) => function __require2() {
|
|
22
25
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
23
26
|
};
|
|
@@ -1968,6 +1971,465 @@ var require_semver2 = __commonJS({
|
|
|
1968
1971
|
}
|
|
1969
1972
|
});
|
|
1970
1973
|
|
|
1974
|
+
// node_modules/conventional-commits-parser/dist/types.js
|
|
1975
|
+
var init_types = __esm({
|
|
1976
|
+
"node_modules/conventional-commits-parser/dist/types.js"() {
|
|
1977
|
+
}
|
|
1978
|
+
});
|
|
1979
|
+
|
|
1980
|
+
// node_modules/conventional-commits-parser/dist/regex.js
|
|
1981
|
+
function escape2(string) {
|
|
1982
|
+
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1983
|
+
}
|
|
1984
|
+
function join(parts, joiner) {
|
|
1985
|
+
return parts.map((val) => escape2(val.trim())).filter(Boolean).join(joiner);
|
|
1986
|
+
}
|
|
1987
|
+
function getNotesRegex(noteKeywords, notesPattern) {
|
|
1988
|
+
if (!noteKeywords) {
|
|
1989
|
+
return nomatchRegex;
|
|
1990
|
+
}
|
|
1991
|
+
const noteKeywordsSelection = join(noteKeywords, "|");
|
|
1992
|
+
if (!notesPattern) {
|
|
1993
|
+
return new RegExp(`^[\\s|*]*(${noteKeywordsSelection})[:\\s]+(.*)`, "i");
|
|
1994
|
+
}
|
|
1995
|
+
return notesPattern(noteKeywordsSelection);
|
|
1996
|
+
}
|
|
1997
|
+
function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) {
|
|
1998
|
+
if (!issuePrefixes) {
|
|
1999
|
+
return nomatchRegex;
|
|
2000
|
+
}
|
|
2001
|
+
const flags = issuePrefixesCaseSensitive ? "g" : "gi";
|
|
2002
|
+
return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${join(issuePrefixes, "|")})([\\w-]+)(?=\\s|$|[,;)\\]])`, flags);
|
|
2003
|
+
}
|
|
2004
|
+
function getReferencesRegex(referenceActions) {
|
|
2005
|
+
if (!referenceActions) {
|
|
2006
|
+
return /()(.+)/gi;
|
|
2007
|
+
}
|
|
2008
|
+
const joinedKeywords = join(referenceActions, "|");
|
|
2009
|
+
return new RegExp(`(${joinedKeywords})(?:\\s+(.*?))(?=(?:${joinedKeywords})|$)`, "gi");
|
|
2010
|
+
}
|
|
2011
|
+
function getParserRegexes(options = {}) {
|
|
2012
|
+
const notes = getNotesRegex(options.noteKeywords, options.notesPattern);
|
|
2013
|
+
const referenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive);
|
|
2014
|
+
const references = getReferencesRegex(options.referenceActions);
|
|
2015
|
+
return {
|
|
2016
|
+
notes,
|
|
2017
|
+
referenceParts,
|
|
2018
|
+
references,
|
|
2019
|
+
mentions: /@([\w-]+)/g,
|
|
2020
|
+
url: /\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/
|
|
2021
|
+
};
|
|
2022
|
+
}
|
|
2023
|
+
var nomatchRegex;
|
|
2024
|
+
var init_regex = __esm({
|
|
2025
|
+
"node_modules/conventional-commits-parser/dist/regex.js"() {
|
|
2026
|
+
nomatchRegex = /(?!.*)/;
|
|
2027
|
+
}
|
|
2028
|
+
});
|
|
2029
|
+
|
|
2030
|
+
// node_modules/conventional-commits-parser/dist/utils.js
|
|
2031
|
+
function trimNewLines(input) {
|
|
2032
|
+
const matches = input.match(/[^\r\n]/);
|
|
2033
|
+
if (typeof matches?.index !== "number") {
|
|
2034
|
+
return "";
|
|
2035
|
+
}
|
|
2036
|
+
const firstIndex = matches.index;
|
|
2037
|
+
let lastIndex = input.length - 1;
|
|
2038
|
+
while (input[lastIndex] === "\r" || input[lastIndex] === "\n") {
|
|
2039
|
+
lastIndex--;
|
|
2040
|
+
}
|
|
2041
|
+
return input.substring(firstIndex, lastIndex + 1);
|
|
2042
|
+
}
|
|
2043
|
+
function appendLine(src, line) {
|
|
2044
|
+
return src ? `${src}
|
|
2045
|
+
${line || ""}` : line || "";
|
|
2046
|
+
}
|
|
2047
|
+
function getCommentFilter(char) {
|
|
2048
|
+
return char ? (line) => !line.startsWith(char) : () => true;
|
|
2049
|
+
}
|
|
2050
|
+
function truncateToScissor(lines, commentChar) {
|
|
2051
|
+
const scissorIndex = lines.indexOf(`${commentChar} ${SCISSOR}`);
|
|
2052
|
+
if (scissorIndex === -1) {
|
|
2053
|
+
return lines;
|
|
2054
|
+
}
|
|
2055
|
+
return lines.slice(0, scissorIndex);
|
|
2056
|
+
}
|
|
2057
|
+
function gpgFilter(line) {
|
|
2058
|
+
return !line.match(/^\s*gpg:/);
|
|
2059
|
+
}
|
|
2060
|
+
function assignMatchedCorrespondence(target, matches, correspondence) {
|
|
2061
|
+
const { groups } = matches;
|
|
2062
|
+
for (let i2 = 0, len = correspondence.length, key; i2 < len; i2++) {
|
|
2063
|
+
key = correspondence[i2];
|
|
2064
|
+
target[key] = (groups ? groups[key] : matches[i2 + 1]) || null;
|
|
2065
|
+
}
|
|
2066
|
+
return target;
|
|
2067
|
+
}
|
|
2068
|
+
var SCISSOR;
|
|
2069
|
+
var init_utils = __esm({
|
|
2070
|
+
"node_modules/conventional-commits-parser/dist/utils.js"() {
|
|
2071
|
+
SCISSOR = "------------------------ >8 ------------------------";
|
|
2072
|
+
}
|
|
2073
|
+
});
|
|
2074
|
+
|
|
2075
|
+
// node_modules/conventional-commits-parser/dist/options.js
|
|
2076
|
+
var defaultOptions;
|
|
2077
|
+
var init_options = __esm({
|
|
2078
|
+
"node_modules/conventional-commits-parser/dist/options.js"() {
|
|
2079
|
+
defaultOptions = {
|
|
2080
|
+
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
2081
|
+
issuePrefixes: ["#"],
|
|
2082
|
+
referenceActions: [
|
|
2083
|
+
"close",
|
|
2084
|
+
"closes",
|
|
2085
|
+
"closed",
|
|
2086
|
+
"fix",
|
|
2087
|
+
"fixes",
|
|
2088
|
+
"fixed",
|
|
2089
|
+
"resolve",
|
|
2090
|
+
"resolves",
|
|
2091
|
+
"resolved"
|
|
2092
|
+
],
|
|
2093
|
+
headerPattern: /^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,
|
|
2094
|
+
headerCorrespondence: [
|
|
2095
|
+
"type",
|
|
2096
|
+
"scope",
|
|
2097
|
+
"subject"
|
|
2098
|
+
],
|
|
2099
|
+
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
|
|
2100
|
+
revertCorrespondence: ["header", "hash"],
|
|
2101
|
+
fieldPattern: /^-(.*?)-$/
|
|
2102
|
+
};
|
|
2103
|
+
}
|
|
2104
|
+
});
|
|
2105
|
+
|
|
2106
|
+
// node_modules/conventional-commits-parser/dist/CommitParser.js
|
|
2107
|
+
function createCommitObject(initialData = {}) {
|
|
2108
|
+
return {
|
|
2109
|
+
merge: null,
|
|
2110
|
+
revert: null,
|
|
2111
|
+
header: null,
|
|
2112
|
+
body: null,
|
|
2113
|
+
footer: null,
|
|
2114
|
+
notes: [],
|
|
2115
|
+
mentions: [],
|
|
2116
|
+
references: [],
|
|
2117
|
+
...initialData
|
|
2118
|
+
};
|
|
2119
|
+
}
|
|
2120
|
+
var CommitParser;
|
|
2121
|
+
var init_CommitParser = __esm({
|
|
2122
|
+
"node_modules/conventional-commits-parser/dist/CommitParser.js"() {
|
|
2123
|
+
init_regex();
|
|
2124
|
+
init_utils();
|
|
2125
|
+
init_options();
|
|
2126
|
+
CommitParser = class {
|
|
2127
|
+
options;
|
|
2128
|
+
regexes;
|
|
2129
|
+
lines = [];
|
|
2130
|
+
lineIndex = 0;
|
|
2131
|
+
commit = createCommitObject();
|
|
2132
|
+
constructor(options = {}) {
|
|
2133
|
+
this.options = {
|
|
2134
|
+
...defaultOptions,
|
|
2135
|
+
...options
|
|
2136
|
+
};
|
|
2137
|
+
this.regexes = getParserRegexes(this.options);
|
|
2138
|
+
}
|
|
2139
|
+
currentLine() {
|
|
2140
|
+
return this.lines[this.lineIndex];
|
|
2141
|
+
}
|
|
2142
|
+
nextLine() {
|
|
2143
|
+
return this.lines[this.lineIndex++];
|
|
2144
|
+
}
|
|
2145
|
+
isLineAvailable() {
|
|
2146
|
+
return this.lineIndex < this.lines.length;
|
|
2147
|
+
}
|
|
2148
|
+
parseReference(input, action) {
|
|
2149
|
+
const { regexes } = this;
|
|
2150
|
+
if (regexes.url.test(input)) {
|
|
2151
|
+
return null;
|
|
2152
|
+
}
|
|
2153
|
+
const matches = regexes.referenceParts.exec(input);
|
|
2154
|
+
if (!matches) {
|
|
2155
|
+
return null;
|
|
2156
|
+
}
|
|
2157
|
+
let [raw, repository = null, prefix2, issue] = matches;
|
|
2158
|
+
let owner = null;
|
|
2159
|
+
if (repository) {
|
|
2160
|
+
const slashIndex = repository.indexOf("/");
|
|
2161
|
+
if (slashIndex !== -1) {
|
|
2162
|
+
owner = repository.slice(0, slashIndex);
|
|
2163
|
+
repository = repository.slice(slashIndex + 1);
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
return {
|
|
2167
|
+
raw,
|
|
2168
|
+
action,
|
|
2169
|
+
owner,
|
|
2170
|
+
repository,
|
|
2171
|
+
prefix: prefix2,
|
|
2172
|
+
issue
|
|
2173
|
+
};
|
|
2174
|
+
}
|
|
2175
|
+
parseReferences(input) {
|
|
2176
|
+
const { regexes } = this;
|
|
2177
|
+
const regex = input.match(regexes.references) ? regexes.references : /()(.+)/gi;
|
|
2178
|
+
const references = [];
|
|
2179
|
+
let matches;
|
|
2180
|
+
let action;
|
|
2181
|
+
let sentence;
|
|
2182
|
+
let reference;
|
|
2183
|
+
while (true) {
|
|
2184
|
+
matches = regex.exec(input);
|
|
2185
|
+
if (!matches) {
|
|
2186
|
+
break;
|
|
2187
|
+
}
|
|
2188
|
+
action = matches[1] || null;
|
|
2189
|
+
sentence = matches[2] || "";
|
|
2190
|
+
while (true) {
|
|
2191
|
+
reference = this.parseReference(sentence, action);
|
|
2192
|
+
if (!reference) {
|
|
2193
|
+
break;
|
|
2194
|
+
}
|
|
2195
|
+
references.push(reference);
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
return references;
|
|
2199
|
+
}
|
|
2200
|
+
skipEmptyLines() {
|
|
2201
|
+
let line = this.currentLine();
|
|
2202
|
+
while (line !== void 0 && !line.trim()) {
|
|
2203
|
+
this.nextLine();
|
|
2204
|
+
line = this.currentLine();
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
parseMerge() {
|
|
2208
|
+
const { commit, options } = this;
|
|
2209
|
+
const correspondence = options.mergeCorrespondence || [];
|
|
2210
|
+
const merge = this.currentLine();
|
|
2211
|
+
const matches = merge && options.mergePattern ? merge.match(options.mergePattern) : null;
|
|
2212
|
+
if (matches) {
|
|
2213
|
+
this.nextLine();
|
|
2214
|
+
commit.merge = matches[0] || null;
|
|
2215
|
+
assignMatchedCorrespondence(commit, matches, correspondence);
|
|
2216
|
+
return true;
|
|
2217
|
+
}
|
|
2218
|
+
return false;
|
|
2219
|
+
}
|
|
2220
|
+
parseHeader(isMergeCommit) {
|
|
2221
|
+
if (isMergeCommit) {
|
|
2222
|
+
this.skipEmptyLines();
|
|
2223
|
+
}
|
|
2224
|
+
const { commit, options } = this;
|
|
2225
|
+
const correspondence = options.headerCorrespondence || [];
|
|
2226
|
+
const header = commit.header ?? this.nextLine();
|
|
2227
|
+
let matches = null;
|
|
2228
|
+
if (header) {
|
|
2229
|
+
if (options.breakingHeaderPattern) {
|
|
2230
|
+
matches = header.match(options.breakingHeaderPattern);
|
|
2231
|
+
}
|
|
2232
|
+
if (!matches && options.headerPattern) {
|
|
2233
|
+
matches = header.match(options.headerPattern);
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
if (header) {
|
|
2237
|
+
commit.header = header;
|
|
2238
|
+
}
|
|
2239
|
+
if (matches) {
|
|
2240
|
+
assignMatchedCorrespondence(commit, matches, correspondence);
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
parseMeta() {
|
|
2244
|
+
const { options, commit } = this;
|
|
2245
|
+
if (!options.fieldPattern || !this.isLineAvailable()) {
|
|
2246
|
+
return false;
|
|
2247
|
+
}
|
|
2248
|
+
let matches;
|
|
2249
|
+
let field = null;
|
|
2250
|
+
let parsed = false;
|
|
2251
|
+
while (this.isLineAvailable()) {
|
|
2252
|
+
matches = this.currentLine().match(options.fieldPattern);
|
|
2253
|
+
if (matches) {
|
|
2254
|
+
field = matches[1] || null;
|
|
2255
|
+
this.nextLine();
|
|
2256
|
+
continue;
|
|
2257
|
+
}
|
|
2258
|
+
if (field) {
|
|
2259
|
+
parsed = true;
|
|
2260
|
+
commit[field] = appendLine(commit[field], this.currentLine());
|
|
2261
|
+
this.nextLine();
|
|
2262
|
+
} else {
|
|
2263
|
+
break;
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
return parsed;
|
|
2267
|
+
}
|
|
2268
|
+
parseNotes() {
|
|
2269
|
+
const { regexes, commit } = this;
|
|
2270
|
+
if (!this.isLineAvailable()) {
|
|
2271
|
+
return false;
|
|
2272
|
+
}
|
|
2273
|
+
const matches = this.currentLine().match(regexes.notes);
|
|
2274
|
+
let references = [];
|
|
2275
|
+
if (matches) {
|
|
2276
|
+
const note = {
|
|
2277
|
+
title: matches[1],
|
|
2278
|
+
text: matches[2]
|
|
2279
|
+
};
|
|
2280
|
+
commit.notes.push(note);
|
|
2281
|
+
commit.footer = appendLine(commit.footer, this.currentLine());
|
|
2282
|
+
this.nextLine();
|
|
2283
|
+
while (this.isLineAvailable()) {
|
|
2284
|
+
if (this.parseMeta()) {
|
|
2285
|
+
return true;
|
|
2286
|
+
}
|
|
2287
|
+
if (this.parseNotes()) {
|
|
2288
|
+
return true;
|
|
2289
|
+
}
|
|
2290
|
+
references = this.parseReferences(this.currentLine());
|
|
2291
|
+
if (references.length) {
|
|
2292
|
+
commit.references.push(...references);
|
|
2293
|
+
} else {
|
|
2294
|
+
note.text = appendLine(note.text, this.currentLine());
|
|
2295
|
+
}
|
|
2296
|
+
commit.footer = appendLine(commit.footer, this.currentLine());
|
|
2297
|
+
this.nextLine();
|
|
2298
|
+
if (references.length) {
|
|
2299
|
+
break;
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
return true;
|
|
2303
|
+
}
|
|
2304
|
+
return false;
|
|
2305
|
+
}
|
|
2306
|
+
parseBodyAndFooter(isBody) {
|
|
2307
|
+
const { commit } = this;
|
|
2308
|
+
if (!this.isLineAvailable()) {
|
|
2309
|
+
return isBody;
|
|
2310
|
+
}
|
|
2311
|
+
const references = this.parseReferences(this.currentLine());
|
|
2312
|
+
const isStillBody = !references.length && isBody;
|
|
2313
|
+
if (isStillBody) {
|
|
2314
|
+
commit.body = appendLine(commit.body, this.currentLine());
|
|
2315
|
+
} else {
|
|
2316
|
+
commit.references.push(...references);
|
|
2317
|
+
commit.footer = appendLine(commit.footer, this.currentLine());
|
|
2318
|
+
}
|
|
2319
|
+
this.nextLine();
|
|
2320
|
+
return isStillBody;
|
|
2321
|
+
}
|
|
2322
|
+
parseBreakingHeader() {
|
|
2323
|
+
const { commit, options } = this;
|
|
2324
|
+
if (!options.breakingHeaderPattern || commit.notes.length || !commit.header) {
|
|
2325
|
+
return;
|
|
2326
|
+
}
|
|
2327
|
+
const matches = commit.header.match(options.breakingHeaderPattern);
|
|
2328
|
+
if (matches) {
|
|
2329
|
+
commit.notes.push({
|
|
2330
|
+
title: "BREAKING CHANGE",
|
|
2331
|
+
text: matches[3]
|
|
2332
|
+
});
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
parseMentions(input) {
|
|
2336
|
+
const { commit, regexes } = this;
|
|
2337
|
+
let matches;
|
|
2338
|
+
for (; ; ) {
|
|
2339
|
+
matches = regexes.mentions.exec(input);
|
|
2340
|
+
if (!matches) {
|
|
2341
|
+
break;
|
|
2342
|
+
}
|
|
2343
|
+
commit.mentions.push(matches[1]);
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
parseRevert(input) {
|
|
2347
|
+
const { commit, options } = this;
|
|
2348
|
+
const correspondence = options.revertCorrespondence || [];
|
|
2349
|
+
const matches = options.revertPattern ? input.match(options.revertPattern) : null;
|
|
2350
|
+
if (matches) {
|
|
2351
|
+
commit.revert = assignMatchedCorrespondence({}, matches, correspondence);
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
cleanupCommit() {
|
|
2355
|
+
const { commit } = this;
|
|
2356
|
+
if (commit.body) {
|
|
2357
|
+
commit.body = trimNewLines(commit.body);
|
|
2358
|
+
}
|
|
2359
|
+
if (commit.footer) {
|
|
2360
|
+
commit.footer = trimNewLines(commit.footer);
|
|
2361
|
+
}
|
|
2362
|
+
commit.notes.forEach((note) => {
|
|
2363
|
+
note.text = trimNewLines(note.text);
|
|
2364
|
+
});
|
|
2365
|
+
const referencesSet = /* @__PURE__ */ new Set();
|
|
2366
|
+
commit.references = commit.references.filter((reference) => {
|
|
2367
|
+
const uid = `${reference.action} ${reference.raw}`.toLocaleLowerCase();
|
|
2368
|
+
const ok = !referencesSet.has(uid);
|
|
2369
|
+
if (ok) {
|
|
2370
|
+
referencesSet.add(uid);
|
|
2371
|
+
}
|
|
2372
|
+
return ok;
|
|
2373
|
+
});
|
|
2374
|
+
}
|
|
2375
|
+
/**
|
|
2376
|
+
* Parse commit message string into an object.
|
|
2377
|
+
* @param input - Commit message string.
|
|
2378
|
+
* @returns Commit object.
|
|
2379
|
+
*/
|
|
2380
|
+
parse(input) {
|
|
2381
|
+
if (!input.trim()) {
|
|
2382
|
+
throw new TypeError("Expected a raw commit");
|
|
2383
|
+
}
|
|
2384
|
+
const { commentChar } = this.options;
|
|
2385
|
+
const commentFilter = getCommentFilter(commentChar);
|
|
2386
|
+
const rawLines = trimNewLines(input).split(/\r?\n/);
|
|
2387
|
+
const lines = commentChar ? truncateToScissor(rawLines, commentChar).filter((line) => commentFilter(line) && gpgFilter(line)) : rawLines.filter((line) => gpgFilter(line));
|
|
2388
|
+
const commit = createCommitObject();
|
|
2389
|
+
this.lines = lines;
|
|
2390
|
+
this.lineIndex = 0;
|
|
2391
|
+
this.commit = commit;
|
|
2392
|
+
const isMergeCommit = this.parseMerge();
|
|
2393
|
+
this.parseHeader(isMergeCommit);
|
|
2394
|
+
if (commit.header) {
|
|
2395
|
+
commit.references = this.parseReferences(commit.header);
|
|
2396
|
+
}
|
|
2397
|
+
let isBody = true;
|
|
2398
|
+
while (this.isLineAvailable()) {
|
|
2399
|
+
this.parseMeta();
|
|
2400
|
+
if (this.parseNotes()) {
|
|
2401
|
+
isBody = false;
|
|
2402
|
+
}
|
|
2403
|
+
if (!this.parseBodyAndFooter(isBody)) {
|
|
2404
|
+
isBody = false;
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
this.parseBreakingHeader();
|
|
2408
|
+
this.parseMentions(input);
|
|
2409
|
+
this.parseRevert(input);
|
|
2410
|
+
this.cleanupCommit();
|
|
2411
|
+
return commit;
|
|
2412
|
+
}
|
|
2413
|
+
};
|
|
2414
|
+
}
|
|
2415
|
+
});
|
|
2416
|
+
|
|
2417
|
+
// node_modules/conventional-commits-parser/dist/stream.js
|
|
2418
|
+
var init_stream = __esm({
|
|
2419
|
+
"node_modules/conventional-commits-parser/dist/stream.js"() {
|
|
2420
|
+
init_CommitParser();
|
|
2421
|
+
}
|
|
2422
|
+
});
|
|
2423
|
+
|
|
2424
|
+
// node_modules/conventional-commits-parser/dist/index.js
|
|
2425
|
+
var init_dist = __esm({
|
|
2426
|
+
"node_modules/conventional-commits-parser/dist/index.js"() {
|
|
2427
|
+
init_types();
|
|
2428
|
+
init_CommitParser();
|
|
2429
|
+
init_stream();
|
|
2430
|
+
}
|
|
2431
|
+
});
|
|
2432
|
+
|
|
1971
2433
|
// node_modules/array-ify/index.js
|
|
1972
2434
|
var require_array_ify = __commonJS({
|
|
1973
2435
|
"node_modules/array-ify/index.js"(exports, module) {
|
|
@@ -14976,7 +15438,7 @@ var require_util2 = __commonJS({
|
|
|
14976
15438
|
return path11;
|
|
14977
15439
|
}
|
|
14978
15440
|
exports.normalize = normalize2;
|
|
14979
|
-
function
|
|
15441
|
+
function join2(aRoot, aPath) {
|
|
14980
15442
|
if (aRoot === "") {
|
|
14981
15443
|
aRoot = ".";
|
|
14982
15444
|
}
|
|
@@ -15008,7 +15470,7 @@ var require_util2 = __commonJS({
|
|
|
15008
15470
|
}
|
|
15009
15471
|
return joined;
|
|
15010
15472
|
}
|
|
15011
|
-
exports.join =
|
|
15473
|
+
exports.join = join2;
|
|
15012
15474
|
exports.isAbsolute = function(aPath) {
|
|
15013
15475
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
15014
15476
|
};
|
|
@@ -15181,7 +15643,7 @@ var require_util2 = __commonJS({
|
|
|
15181
15643
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
15182
15644
|
}
|
|
15183
15645
|
}
|
|
15184
|
-
sourceURL =
|
|
15646
|
+
sourceURL = join2(urlGenerate(parsed), sourceURL);
|
|
15185
15647
|
}
|
|
15186
15648
|
return normalize2(sourceURL);
|
|
15187
15649
|
}
|
|
@@ -31670,12 +32132,12 @@ ${lanes.join("\n")}
|
|
|
31670
32132
|
}
|
|
31671
32133
|
}
|
|
31672
32134
|
});
|
|
31673
|
-
forEach(decimalEscapes, (
|
|
31674
|
-
if (
|
|
32135
|
+
forEach(decimalEscapes, (escape3) => {
|
|
32136
|
+
if (escape3.value > numberOfCapturingGroups) {
|
|
31675
32137
|
if (numberOfCapturingGroups) {
|
|
31676
|
-
error2(Diagnostics.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,
|
|
32138
|
+
error2(Diagnostics.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression, escape3.pos, escape3.end - escape3.pos, numberOfCapturingGroups);
|
|
31677
32139
|
} else {
|
|
31678
|
-
error2(Diagnostics.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,
|
|
32140
|
+
error2(Diagnostics.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression, escape3.pos, escape3.end - escape3.pos);
|
|
31679
32141
|
}
|
|
31680
32142
|
}
|
|
31681
32143
|
});
|
|
@@ -63867,19 +64329,19 @@ ${lanes.join("\n")}
|
|
|
63867
64329
|
errors
|
|
63868
64330
|
);
|
|
63869
64331
|
}
|
|
63870
|
-
function convertOptionsFromJson(optionsNameMap, jsonOptions, basePath,
|
|
64332
|
+
function convertOptionsFromJson(optionsNameMap, jsonOptions, basePath, defaultOptions2, diagnostics, errors) {
|
|
63871
64333
|
if (!jsonOptions) {
|
|
63872
64334
|
return;
|
|
63873
64335
|
}
|
|
63874
64336
|
for (const id in jsonOptions) {
|
|
63875
64337
|
const opt = optionsNameMap.get(id);
|
|
63876
64338
|
if (opt) {
|
|
63877
|
-
(
|
|
64339
|
+
(defaultOptions2 || (defaultOptions2 = {}))[opt.name] = convertJsonOption(opt, jsonOptions[id], basePath, errors);
|
|
63878
64340
|
} else {
|
|
63879
64341
|
errors.push(createUnknownOptionError(id, diagnostics));
|
|
63880
64342
|
}
|
|
63881
64343
|
}
|
|
63882
|
-
return
|
|
64344
|
+
return defaultOptions2;
|
|
63883
64345
|
}
|
|
63884
64346
|
function createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, message2, ...args) {
|
|
63885
64347
|
return sourceFile && node ? createDiagnosticForNodeInSourceFile(sourceFile, node, message2, ...args) : createCompilerDiagnostic(message2, ...args);
|
|
@@ -161033,22 +161495,22 @@ ${lanes.join("\n")}
|
|
|
161033
161495
|
result.tscBuild = true;
|
|
161034
161496
|
return result;
|
|
161035
161497
|
}
|
|
161036
|
-
function createSolutionBuilder(host, rootNames,
|
|
161498
|
+
function createSolutionBuilder(host, rootNames, defaultOptions2) {
|
|
161037
161499
|
return createSolutionBuilderWorker(
|
|
161038
161500
|
/*watch*/
|
|
161039
161501
|
false,
|
|
161040
161502
|
host,
|
|
161041
161503
|
rootNames,
|
|
161042
|
-
|
|
161504
|
+
defaultOptions2
|
|
161043
161505
|
);
|
|
161044
161506
|
}
|
|
161045
|
-
function createSolutionBuilderWithWatch(host, rootNames,
|
|
161507
|
+
function createSolutionBuilderWithWatch(host, rootNames, defaultOptions2, baseWatchOptions) {
|
|
161046
161508
|
return createSolutionBuilderWorker(
|
|
161047
161509
|
/*watch*/
|
|
161048
161510
|
true,
|
|
161049
161511
|
host,
|
|
161050
161512
|
rootNames,
|
|
161051
|
-
|
|
161513
|
+
defaultOptions2,
|
|
161052
161514
|
baseWatchOptions
|
|
161053
161515
|
);
|
|
161054
161516
|
}
|
|
@@ -172148,10 +172610,10 @@ interface Symbol {
|
|
|
172148
172610
|
}));
|
|
172149
172611
|
const diagnostics = [];
|
|
172150
172612
|
const options = transpileOptions.compilerOptions ? fixupCompilerOptions(transpileOptions.compilerOptions, diagnostics) : {};
|
|
172151
|
-
const
|
|
172152
|
-
for (const key in
|
|
172153
|
-
if (hasProperty(
|
|
172154
|
-
options[key] =
|
|
172613
|
+
const defaultOptions2 = getDefaultCompilerOptions2();
|
|
172614
|
+
for (const key in defaultOptions2) {
|
|
172615
|
+
if (hasProperty(defaultOptions2, key) && options[key] === void 0) {
|
|
172616
|
+
options[key] = defaultOptions2[key];
|
|
172155
172617
|
}
|
|
172156
172618
|
}
|
|
172157
172619
|
for (const option of transpileOptionValueCompilerOptions) {
|
|
@@ -234023,7 +234485,7 @@ function isIgnored(commit = "", opts = {}) {
|
|
|
234023
234485
|
}
|
|
234024
234486
|
|
|
234025
234487
|
// node_modules/@commitlint/parse/lib/index.js
|
|
234026
|
-
|
|
234488
|
+
init_dist();
|
|
234027
234489
|
|
|
234028
234490
|
// node_modules/conventional-changelog-angular/src/parser.js
|
|
234029
234491
|
function createParserOpts() {
|
|
@@ -237355,7 +237817,7 @@ function output(process5) {
|
|
|
237355
237817
|
}
|
|
237356
237818
|
|
|
237357
237819
|
// node_modules/@conventional-changelog/git-client/dist/GitClient.js
|
|
237358
|
-
var
|
|
237820
|
+
var SCISSOR2 = "------------------------ >8 ------------------------";
|
|
237359
237821
|
var GitClient = class {
|
|
237360
237822
|
cwd;
|
|
237361
237823
|
debug;
|
|
@@ -237414,8 +237876,8 @@ var GitClient = class {
|
|
|
237414
237876
|
async *getRawCommits(params = {}) {
|
|
237415
237877
|
const { path: path11, from = "", to = "HEAD", format: format4 = "%B", ignore, reverse, merges, since } = params;
|
|
237416
237878
|
const shouldNotIgnore = ignore ? (chunk2) => !ignore.test(chunk2) : () => true;
|
|
237417
|
-
const stdout = this.execStream("log", `--format=${format4}%n${
|
|
237418
|
-
const commitsStream = splitStream(stdout, `${
|
|
237879
|
+
const stdout = this.execStream("log", `--format=${format4}%n${SCISSOR2}`, since && `--since=${since instanceof Date ? since.toISOString() : since}`, reverse && "--reverse", merges && "--merges", merges === false && "--no-merges", [from, to].filter(Boolean).join(".."), ...path11 ? ["--", ...toArray(path11)] : []);
|
|
237880
|
+
const commitsStream = splitStream(stdout, `${SCISSOR2}
|
|
237419
237881
|
`);
|
|
237420
237882
|
let chunk;
|
|
237421
237883
|
for await (chunk of commitsStream) {
|