@forsakringskassan/commitlint-config 3.3.5 → 3.3.7
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 +625 -366
- package/dist/format.js +1 -4
- package/dist/install.js +6 -6
- package/package.json +1 -1
package/dist/commitlint.js
CHANGED
|
@@ -6587,7 +6587,7 @@ var require_compile = __commonJS({
|
|
|
6587
6587
|
const schOrFunc = root.refs[ref];
|
|
6588
6588
|
if (schOrFunc)
|
|
6589
6589
|
return schOrFunc;
|
|
6590
|
-
let _sch =
|
|
6590
|
+
let _sch = resolve6.call(this, root, ref);
|
|
6591
6591
|
if (_sch === void 0) {
|
|
6592
6592
|
const schema2 = (_a2 = root.localRefs) === null || _a2 === void 0 ? void 0 : _a2[ref];
|
|
6593
6593
|
const { schemaId } = this.opts;
|
|
@@ -6614,7 +6614,7 @@ var require_compile = __commonJS({
|
|
|
6614
6614
|
function sameSchemaEnv(s1, s2) {
|
|
6615
6615
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
6616
6616
|
}
|
|
6617
|
-
function
|
|
6617
|
+
function resolve6(root, ref) {
|
|
6618
6618
|
let sch;
|
|
6619
6619
|
while (typeof (sch = this.refs[ref]) == "string")
|
|
6620
6620
|
ref = sch;
|
|
@@ -7189,7 +7189,7 @@ var require_fast_uri = __commonJS({
|
|
|
7189
7189
|
}
|
|
7190
7190
|
return uri;
|
|
7191
7191
|
}
|
|
7192
|
-
function
|
|
7192
|
+
function resolve6(baseURI, relativeURI, options) {
|
|
7193
7193
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
7194
7194
|
const resolved = resolveComponent(parse2(baseURI, schemelessOptions), parse2(relativeURI, schemelessOptions), schemelessOptions, true);
|
|
7195
7195
|
schemelessOptions.skipEscape = true;
|
|
@@ -7416,7 +7416,7 @@ var require_fast_uri = __commonJS({
|
|
|
7416
7416
|
var fastUri = {
|
|
7417
7417
|
SCHEMES,
|
|
7418
7418
|
normalize: normalize2,
|
|
7419
|
-
resolve:
|
|
7419
|
+
resolve: resolve6,
|
|
7420
7420
|
resolveComponent,
|
|
7421
7421
|
equal,
|
|
7422
7422
|
serialize,
|
|
@@ -11019,7 +11019,7 @@ var require_resolve_from = __commonJS({
|
|
|
11019
11019
|
"use strict";
|
|
11020
11020
|
var path11 = __require("path");
|
|
11021
11021
|
var Module = __require("module");
|
|
11022
|
-
var
|
|
11022
|
+
var fs7 = __require("fs");
|
|
11023
11023
|
var resolveFrom2 = (fromDirectory, moduleId, silent) => {
|
|
11024
11024
|
if (typeof fromDirectory !== "string") {
|
|
11025
11025
|
throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``);
|
|
@@ -11028,7 +11028,7 @@ var require_resolve_from = __commonJS({
|
|
|
11028
11028
|
throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
|
|
11029
11029
|
}
|
|
11030
11030
|
try {
|
|
11031
|
-
fromDirectory =
|
|
11031
|
+
fromDirectory = fs7.realpathSync(fromDirectory);
|
|
11032
11032
|
} catch (error) {
|
|
11033
11033
|
if (error.code === "ENOENT") {
|
|
11034
11034
|
fromDirectory = path11.resolve(fromDirectory);
|
|
@@ -11064,7 +11064,7 @@ var require_resolve_from2 = __commonJS({
|
|
|
11064
11064
|
"use strict";
|
|
11065
11065
|
var path11 = __require("path");
|
|
11066
11066
|
var Module = __require("module");
|
|
11067
|
-
var
|
|
11067
|
+
var fs7 = __require("fs");
|
|
11068
11068
|
var resolveFrom2 = (fromDir, moduleId, silent) => {
|
|
11069
11069
|
if (typeof fromDir !== "string") {
|
|
11070
11070
|
throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
|
|
@@ -11073,7 +11073,7 @@ var require_resolve_from2 = __commonJS({
|
|
|
11073
11073
|
throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
|
|
11074
11074
|
}
|
|
11075
11075
|
try {
|
|
11076
|
-
fromDir =
|
|
11076
|
+
fromDir = fs7.realpathSync(fromDir);
|
|
11077
11077
|
} catch (err) {
|
|
11078
11078
|
if (err.code === "ENOENT") {
|
|
11079
11079
|
fromDir = path11.resolve(fromDir);
|
|
@@ -11565,13 +11565,13 @@ var require_identifier = __commonJS({
|
|
|
11565
11565
|
exports.isIdentifierChar = isIdentifierChar;
|
|
11566
11566
|
exports.isIdentifierName = isIdentifierName;
|
|
11567
11567
|
exports.isIdentifierStart = isIdentifierStart;
|
|
11568
|
-
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\
|
|
11569
|
-
var nonASCIIidentifierChars = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\
|
|
11568
|
+
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
11569
|
+
var nonASCIIidentifierChars = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
|
|
11570
11570
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
11571
11571
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
11572
11572
|
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
11573
|
-
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25,
|
|
11574
|
-
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1,
|
|
11573
|
+
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
|
|
11574
|
+
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
11575
11575
|
function isInAstralSet(code, set) {
|
|
11576
11576
|
let pos = 65536;
|
|
11577
11577
|
for (let i2 = 0, length = set.length; i2 < length; i2 += 2) {
|
|
@@ -16587,11 +16587,11 @@ var require_source_map_support = __commonJS({
|
|
|
16587
16587
|
"node_modules/source-map-support/source-map-support.js"(exports) {
|
|
16588
16588
|
var SourceMapConsumer = require_source_map().SourceMapConsumer;
|
|
16589
16589
|
var path11 = __require("path");
|
|
16590
|
-
var
|
|
16590
|
+
var fs7;
|
|
16591
16591
|
try {
|
|
16592
|
-
|
|
16593
|
-
if (!
|
|
16594
|
-
|
|
16592
|
+
fs7 = __require("fs");
|
|
16593
|
+
if (!fs7.existsSync || !fs7.readFileSync) {
|
|
16594
|
+
fs7 = null;
|
|
16595
16595
|
}
|
|
16596
16596
|
} catch (err) {
|
|
16597
16597
|
}
|
|
@@ -16642,7 +16642,7 @@ var require_source_map_support = __commonJS({
|
|
|
16642
16642
|
}
|
|
16643
16643
|
var contents = "";
|
|
16644
16644
|
try {
|
|
16645
|
-
if (!
|
|
16645
|
+
if (!fs7) {
|
|
16646
16646
|
var xhr = new XMLHttpRequest();
|
|
16647
16647
|
xhr.open(
|
|
16648
16648
|
"GET",
|
|
@@ -16654,8 +16654,8 @@ var require_source_map_support = __commonJS({
|
|
|
16654
16654
|
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
16655
16655
|
contents = xhr.responseText;
|
|
16656
16656
|
}
|
|
16657
|
-
} else if (
|
|
16658
|
-
contents =
|
|
16657
|
+
} else if (fs7.existsSync(path12)) {
|
|
16658
|
+
contents = fs7.readFileSync(path12, "utf8");
|
|
16659
16659
|
}
|
|
16660
16660
|
} catch (er) {
|
|
16661
16661
|
}
|
|
@@ -16905,9 +16905,9 @@ var require_source_map_support = __commonJS({
|
|
|
16905
16905
|
var line = +match2[2];
|
|
16906
16906
|
var column = +match2[3];
|
|
16907
16907
|
var contents = fileContentsCache[source];
|
|
16908
|
-
if (!contents &&
|
|
16908
|
+
if (!contents && fs7 && fs7.existsSync(source)) {
|
|
16909
16909
|
try {
|
|
16910
|
-
contents =
|
|
16910
|
+
contents = fs7.readFileSync(source, "utf8");
|
|
16911
16911
|
} catch (er) {
|
|
16912
16912
|
contents = "";
|
|
16913
16913
|
}
|
|
@@ -17571,7 +17571,7 @@ var require_typescript = __commonJS({
|
|
|
17571
17571
|
findListItemInfo: () => findListItemInfo,
|
|
17572
17572
|
findModifier: () => findModifier,
|
|
17573
17573
|
findNextToken: () => findNextToken,
|
|
17574
|
-
findPackageJson: () =>
|
|
17574
|
+
findPackageJson: () => findPackageJson2,
|
|
17575
17575
|
findPackageJsons: () => findPackageJsons,
|
|
17576
17576
|
findPrecedingMatchingToken: () => findPrecedingMatchingToken,
|
|
17577
17577
|
findPrecedingToken: () => findPrecedingToken,
|
|
@@ -20670,10 +20670,10 @@ var require_typescript = __commonJS({
|
|
|
20670
20670
|
function and(f2, g2) {
|
|
20671
20671
|
return (arg) => f2(arg) && g2(arg);
|
|
20672
20672
|
}
|
|
20673
|
-
function or(...
|
|
20673
|
+
function or(...fs7) {
|
|
20674
20674
|
return (...args) => {
|
|
20675
20675
|
let lastResult;
|
|
20676
|
-
for (const f2 of
|
|
20676
|
+
for (const f2 of fs7) {
|
|
20677
20677
|
lastResult = f2(...args);
|
|
20678
20678
|
if (lastResult) {
|
|
20679
20679
|
return lastResult;
|
|
@@ -22248,7 +22248,7 @@ ${lanes.join("\n")}
|
|
|
22248
22248
|
var tracing;
|
|
22249
22249
|
var tracingEnabled;
|
|
22250
22250
|
((tracingEnabled2) => {
|
|
22251
|
-
let
|
|
22251
|
+
let fs7;
|
|
22252
22252
|
let traceCount = 0;
|
|
22253
22253
|
let traceFd = 0;
|
|
22254
22254
|
let mode;
|
|
@@ -22257,9 +22257,9 @@ ${lanes.join("\n")}
|
|
|
22257
22257
|
const legend = [];
|
|
22258
22258
|
function startTracing2(tracingMode, traceDir, configFilePath) {
|
|
22259
22259
|
Debug.assert(!tracing, "Tracing already started");
|
|
22260
|
-
if (
|
|
22260
|
+
if (fs7 === void 0) {
|
|
22261
22261
|
try {
|
|
22262
|
-
|
|
22262
|
+
fs7 = __require("fs");
|
|
22263
22263
|
} catch (e2) {
|
|
22264
22264
|
throw new Error(`tracing requires having fs
|
|
22265
22265
|
(original error: ${e2.message || e2})`);
|
|
@@ -22270,8 +22270,8 @@ ${lanes.join("\n")}
|
|
|
22270
22270
|
if (legendPath === void 0) {
|
|
22271
22271
|
legendPath = combinePaths(traceDir, "legend.json");
|
|
22272
22272
|
}
|
|
22273
|
-
if (!
|
|
22274
|
-
|
|
22273
|
+
if (!fs7.existsSync(traceDir)) {
|
|
22274
|
+
fs7.mkdirSync(traceDir, { recursive: true });
|
|
22275
22275
|
}
|
|
22276
22276
|
const countPart = mode === "build" ? `.${process.pid}-${++traceCount}` : mode === "server" ? `.${process.pid}` : ``;
|
|
22277
22277
|
const tracePath = combinePaths(traceDir, `trace${countPart}.json`);
|
|
@@ -22281,10 +22281,10 @@ ${lanes.join("\n")}
|
|
|
22281
22281
|
tracePath,
|
|
22282
22282
|
typesPath
|
|
22283
22283
|
});
|
|
22284
|
-
traceFd =
|
|
22284
|
+
traceFd = fs7.openSync(tracePath, "w");
|
|
22285
22285
|
tracing = tracingEnabled2;
|
|
22286
22286
|
const meta = { cat: "__metadata", ph: "M", ts: 1e3 * timestamp(), pid: 1, tid: 1 };
|
|
22287
|
-
|
|
22287
|
+
fs7.writeSync(
|
|
22288
22288
|
traceFd,
|
|
22289
22289
|
"[\n" + [{ name: "process_name", args: { name: "tsc" }, ...meta }, { name: "thread_name", args: { name: "Main" }, ...meta }, { name: "TracingStartedInBrowser", ...meta, cat: "disabled-by-default-devtools.timeline" }].map((v2) => JSON.stringify(v2)).join(",\n")
|
|
22290
22290
|
);
|
|
@@ -22293,10 +22293,10 @@ ${lanes.join("\n")}
|
|
|
22293
22293
|
function stopTracing() {
|
|
22294
22294
|
Debug.assert(tracing, "Tracing is not in progress");
|
|
22295
22295
|
Debug.assert(!!typeCatalog.length === (mode !== "server"));
|
|
22296
|
-
|
|
22296
|
+
fs7.writeSync(traceFd, `
|
|
22297
22297
|
]
|
|
22298
22298
|
`);
|
|
22299
|
-
|
|
22299
|
+
fs7.closeSync(traceFd);
|
|
22300
22300
|
tracing = void 0;
|
|
22301
22301
|
if (typeCatalog.length) {
|
|
22302
22302
|
dumpTypes(typeCatalog);
|
|
@@ -22368,11 +22368,11 @@ ${lanes.join("\n")}
|
|
|
22368
22368
|
function writeEvent(eventType, phase, name, args, extras, time = 1e3 * timestamp()) {
|
|
22369
22369
|
if (mode === "server" && phase === "checkTypes") return;
|
|
22370
22370
|
mark("beginTracing");
|
|
22371
|
-
|
|
22371
|
+
fs7.writeSync(traceFd, `,
|
|
22372
22372
|
{"pid":1,"tid":1,"ph":"${eventType}","cat":"${phase}","ts":${time},"name":"${name}"`);
|
|
22373
|
-
if (extras)
|
|
22374
|
-
if (args)
|
|
22375
|
-
|
|
22373
|
+
if (extras) fs7.writeSync(traceFd, `,${extras}`);
|
|
22374
|
+
if (args) fs7.writeSync(traceFd, `,"args":${JSON.stringify(args)}`);
|
|
22375
|
+
fs7.writeSync(traceFd, `}`);
|
|
22376
22376
|
mark("endTracing");
|
|
22377
22377
|
measure("Tracing", "beginTracing", "endTracing");
|
|
22378
22378
|
}
|
|
@@ -22394,9 +22394,9 @@ ${lanes.join("\n")}
|
|
|
22394
22394
|
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
22395
22395
|
mark("beginDumpTypes");
|
|
22396
22396
|
const typesPath = legend[legend.length - 1].typesPath;
|
|
22397
|
-
const typesFd =
|
|
22397
|
+
const typesFd = fs7.openSync(typesPath, "w");
|
|
22398
22398
|
const recursionIdentityMap = /* @__PURE__ */ new Map();
|
|
22399
|
-
|
|
22399
|
+
fs7.writeSync(typesFd, "[");
|
|
22400
22400
|
const numTypes = types.length;
|
|
22401
22401
|
for (let i2 = 0; i2 < numTypes; i2++) {
|
|
22402
22402
|
const type = types[i2];
|
|
@@ -22492,13 +22492,13 @@ ${lanes.join("\n")}
|
|
|
22492
22492
|
flags: Debug.formatTypeFlags(type.flags).split("|"),
|
|
22493
22493
|
display
|
|
22494
22494
|
};
|
|
22495
|
-
|
|
22495
|
+
fs7.writeSync(typesFd, JSON.stringify(descriptor));
|
|
22496
22496
|
if (i2 < numTypes - 1) {
|
|
22497
|
-
|
|
22497
|
+
fs7.writeSync(typesFd, ",\n");
|
|
22498
22498
|
}
|
|
22499
22499
|
}
|
|
22500
|
-
|
|
22501
|
-
|
|
22500
|
+
fs7.writeSync(typesFd, "]\n");
|
|
22501
|
+
fs7.closeSync(typesFd);
|
|
22502
22502
|
mark("endDumpTypes");
|
|
22503
22503
|
measure("Dump types", "beginDumpTypes", "endDumpTypes");
|
|
22504
22504
|
}
|
|
@@ -22506,7 +22506,7 @@ ${lanes.join("\n")}
|
|
|
22506
22506
|
if (!legendPath) {
|
|
22507
22507
|
return;
|
|
22508
22508
|
}
|
|
22509
|
-
|
|
22509
|
+
fs7.writeFileSync(legendPath, JSON.stringify(legend));
|
|
22510
22510
|
}
|
|
22511
22511
|
tracingEnabled2.dumpLegend = dumpLegend;
|
|
22512
22512
|
})(tracingEnabled || (tracingEnabled = {}));
|
|
@@ -25612,7 +25612,7 @@ ${lanes.join("\n")}
|
|
|
25612
25612
|
writeOutputIsTTY() {
|
|
25613
25613
|
return process.stdout.isTTY;
|
|
25614
25614
|
},
|
|
25615
|
-
readFile
|
|
25615
|
+
readFile,
|
|
25616
25616
|
writeFile: writeFile22,
|
|
25617
25617
|
watchFile: watchFile2,
|
|
25618
25618
|
watchDirectory,
|
|
@@ -25818,7 +25818,7 @@ ${lanes.join("\n")}
|
|
|
25818
25818
|
callback
|
|
25819
25819
|
);
|
|
25820
25820
|
}
|
|
25821
|
-
function
|
|
25821
|
+
function readFile(fileName, _encoding) {
|
|
25822
25822
|
let buffer;
|
|
25823
25823
|
try {
|
|
25824
25824
|
buffer = _fs.readFileSync(fileName);
|
|
@@ -31663,12 +31663,12 @@ ${lanes.join("\n")}
|
|
|
31663
31663
|
}
|
|
31664
31664
|
}
|
|
31665
31665
|
});
|
|
31666
|
-
forEach(decimalEscapes, (
|
|
31667
|
-
if (
|
|
31666
|
+
forEach(decimalEscapes, (escape3) => {
|
|
31667
|
+
if (escape3.value > numberOfCapturingGroups) {
|
|
31668
31668
|
if (numberOfCapturingGroups) {
|
|
31669
|
-
error2(Diagnostics.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,
|
|
31669
|
+
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);
|
|
31670
31670
|
} else {
|
|
31671
|
-
error2(Diagnostics.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,
|
|
31671
|
+
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);
|
|
31672
31672
|
}
|
|
31673
31673
|
}
|
|
31674
31674
|
});
|
|
@@ -62374,7 +62374,7 @@ ${lanes.join("\n")}
|
|
|
62374
62374
|
const possibleOption = getSpellingSuggestion(unknownOption, diagnostics.optionDeclarations, getOptionName);
|
|
62375
62375
|
return possibleOption ? createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownDidYouMeanDiagnostic, unknownOptionErrorText || unknownOption, possibleOption.name) : createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownOptionDiagnostic, unknownOptionErrorText || unknownOption);
|
|
62376
62376
|
}
|
|
62377
|
-
function parseCommandLineWorker(diagnostics, commandLine,
|
|
62377
|
+
function parseCommandLineWorker(diagnostics, commandLine, readFile) {
|
|
62378
62378
|
const options = {};
|
|
62379
62379
|
let watchOptions;
|
|
62380
62380
|
const fileNames = [];
|
|
@@ -62422,7 +62422,7 @@ ${lanes.join("\n")}
|
|
|
62422
62422
|
}
|
|
62423
62423
|
}
|
|
62424
62424
|
function parseResponseFile(fileName) {
|
|
62425
|
-
const text = tryReadFile(fileName,
|
|
62425
|
+
const text = tryReadFile(fileName, readFile || ((fileName2) => sys.readFile(fileName2)));
|
|
62426
62426
|
if (!isString(text)) {
|
|
62427
62427
|
errors.push(text);
|
|
62428
62428
|
return;
|
|
@@ -62525,8 +62525,8 @@ ${lanes.join("\n")}
|
|
|
62525
62525
|
unknownDidYouMeanDiagnostic: Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,
|
|
62526
62526
|
optionTypeMismatchDiagnostic: Diagnostics.Compiler_option_0_expects_an_argument
|
|
62527
62527
|
};
|
|
62528
|
-
function parseCommandLine(commandLine,
|
|
62529
|
-
return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine,
|
|
62528
|
+
function parseCommandLine(commandLine, readFile) {
|
|
62529
|
+
return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine, readFile);
|
|
62530
62530
|
}
|
|
62531
62531
|
function getOptionFromName(optionName, allowShort) {
|
|
62532
62532
|
return getOptionDeclarationFromName(getOptionsNameMap, optionName, allowShort);
|
|
@@ -62608,8 +62608,8 @@ ${lanes.join("\n")}
|
|
|
62608
62608
|
watchOptionsToExtend
|
|
62609
62609
|
);
|
|
62610
62610
|
}
|
|
62611
|
-
function readConfigFile(fileName,
|
|
62612
|
-
const textOrDiagnostic = tryReadFile(fileName,
|
|
62611
|
+
function readConfigFile(fileName, readFile) {
|
|
62612
|
+
const textOrDiagnostic = tryReadFile(fileName, readFile);
|
|
62613
62613
|
return isString(textOrDiagnostic) ? parseConfigFileTextToJson(fileName, textOrDiagnostic) : { config: {}, error: textOrDiagnostic };
|
|
62614
62614
|
}
|
|
62615
62615
|
function parseConfigFileTextToJson(fileName, jsonText) {
|
|
@@ -62624,14 +62624,14 @@ ${lanes.join("\n")}
|
|
|
62624
62624
|
error: jsonSourceFile.parseDiagnostics.length ? jsonSourceFile.parseDiagnostics[0] : void 0
|
|
62625
62625
|
};
|
|
62626
62626
|
}
|
|
62627
|
-
function readJsonConfigFile(fileName,
|
|
62628
|
-
const textOrDiagnostic = tryReadFile(fileName,
|
|
62627
|
+
function readJsonConfigFile(fileName, readFile) {
|
|
62628
|
+
const textOrDiagnostic = tryReadFile(fileName, readFile);
|
|
62629
62629
|
return isString(textOrDiagnostic) ? parseJsonText(fileName, textOrDiagnostic) : { fileName, parseDiagnostics: [textOrDiagnostic] };
|
|
62630
62630
|
}
|
|
62631
|
-
function tryReadFile(fileName,
|
|
62631
|
+
function tryReadFile(fileName, readFile) {
|
|
62632
62632
|
let text;
|
|
62633
62633
|
try {
|
|
62634
|
-
text =
|
|
62634
|
+
text = readFile(fileName);
|
|
62635
62635
|
} catch (e2) {
|
|
62636
62636
|
return createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, e2.message);
|
|
62637
62637
|
}
|
|
@@ -140728,7 +140728,7 @@ ${lanes.join("\n")}
|
|
|
140728
140728
|
}
|
|
140729
140729
|
}
|
|
140730
140730
|
function createImportCallExpressionAMD(arg, containsLexicalThis) {
|
|
140731
|
-
const
|
|
140731
|
+
const resolve6 = factory2.createUniqueName("resolve");
|
|
140732
140732
|
const reject = factory2.createUniqueName("reject");
|
|
140733
140733
|
const parameters = [
|
|
140734
140734
|
factory2.createParameterDeclaration(
|
|
@@ -140737,7 +140737,7 @@ ${lanes.join("\n")}
|
|
|
140737
140737
|
/*dotDotDotToken*/
|
|
140738
140738
|
void 0,
|
|
140739
140739
|
/*name*/
|
|
140740
|
-
|
|
140740
|
+
resolve6
|
|
140741
140741
|
),
|
|
140742
140742
|
factory2.createParameterDeclaration(
|
|
140743
140743
|
/*modifiers*/
|
|
@@ -140754,7 +140754,7 @@ ${lanes.join("\n")}
|
|
|
140754
140754
|
factory2.createIdentifier("require"),
|
|
140755
140755
|
/*typeArguments*/
|
|
140756
140756
|
void 0,
|
|
140757
|
-
[factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]),
|
|
140757
|
+
[factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve6, reject]
|
|
140758
140758
|
)
|
|
140759
140759
|
)
|
|
140760
140760
|
]);
|
|
@@ -152289,12 +152289,12 @@ ${lanes.join("\n")}
|
|
|
152289
152289
|
function createCompilerHost(options, setParentNodes) {
|
|
152290
152290
|
return createCompilerHostWorker(options, setParentNodes);
|
|
152291
152291
|
}
|
|
152292
|
-
function createGetSourceFile(
|
|
152292
|
+
function createGetSourceFile(readFile, setParentNodes) {
|
|
152293
152293
|
return (fileName, languageVersionOrOptions, onError2) => {
|
|
152294
152294
|
let text;
|
|
152295
152295
|
try {
|
|
152296
152296
|
mark("beforeIORead");
|
|
152297
|
-
text =
|
|
152297
|
+
text = readFile(fileName);
|
|
152298
152298
|
mark("afterIORead");
|
|
152299
152299
|
measure("I/O Read", "beforeIORead", "afterIORead");
|
|
152300
152300
|
} catch (e2) {
|
|
@@ -153198,7 +153198,7 @@ ${lanes.join("\n")}
|
|
|
153198
153198
|
getRedirectFromOutput,
|
|
153199
153199
|
forEachResolvedProjectReference: forEachResolvedProjectReference2
|
|
153200
153200
|
});
|
|
153201
|
-
const
|
|
153201
|
+
const readFile = host.readFile.bind(host);
|
|
153202
153202
|
(_e = tracing) == null ? void 0 : _e.push(tracing.Phase.Program, "shouldProgramCreateNewSourceFiles", { hasOldProgram: !!oldProgram });
|
|
153203
153203
|
const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options);
|
|
153204
153204
|
(_f = tracing) == null ? void 0 : _f.pop();
|
|
@@ -153424,7 +153424,7 @@ ${lanes.join("\n")}
|
|
|
153424
153424
|
shouldTransformImportCall,
|
|
153425
153425
|
emitBuildInfo,
|
|
153426
153426
|
fileExists: fileExists2,
|
|
153427
|
-
readFile
|
|
153427
|
+
readFile,
|
|
153428
153428
|
directoryExists,
|
|
153429
153429
|
getSymlinkCache,
|
|
153430
153430
|
realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host),
|
|
@@ -168210,7 +168210,7 @@ ${lanes.join("\n")}
|
|
|
168210
168210
|
);
|
|
168211
168211
|
return paths;
|
|
168212
168212
|
}
|
|
168213
|
-
function
|
|
168213
|
+
function findPackageJson2(directory, host) {
|
|
168214
168214
|
let packageJson;
|
|
168215
168215
|
forEachAncestorDirectoryStoppingAtGlobalCache(
|
|
168216
168216
|
host,
|
|
@@ -198933,7 +198933,7 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
|
|
|
198933
198933
|
const absolutePath = resolvePath(scriptDirectory, fragment);
|
|
198934
198934
|
const baseDirectory = hasTrailingDirectorySeparator(absolutePath) ? absolutePath : getDirectoryPath(absolutePath);
|
|
198935
198935
|
if (!moduleSpecifierIsRelative) {
|
|
198936
|
-
const packageJsonPath =
|
|
198936
|
+
const packageJsonPath = findPackageJson2(baseDirectory, host);
|
|
198937
198937
|
if (packageJsonPath) {
|
|
198938
198938
|
const packageJson = readJson(packageJsonPath, host);
|
|
198939
198939
|
const typesVersions = packageJson.typesVersions;
|
|
@@ -213074,7 +213074,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
213074
213074
|
findListItemInfo: () => findListItemInfo,
|
|
213075
213075
|
findModifier: () => findModifier,
|
|
213076
213076
|
findNextToken: () => findNextToken,
|
|
213077
|
-
findPackageJson: () =>
|
|
213077
|
+
findPackageJson: () => findPackageJson2,
|
|
213078
213078
|
findPackageJsons: () => findPackageJsons,
|
|
213079
213079
|
findPrecedingMatchingToken: () => findPrecedingMatchingToken,
|
|
213080
213080
|
findPrecedingToken: () => findPrecedingToken,
|
|
@@ -227472,8 +227472,8 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
227472
227472
|
installPackage(options) {
|
|
227473
227473
|
this.packageInstallId++;
|
|
227474
227474
|
const request = { kind: "installPackage", ...options, id: this.packageInstallId };
|
|
227475
|
-
const promise = new Promise((
|
|
227476
|
-
(this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map())).set(this.packageInstallId, { resolve:
|
|
227475
|
+
const promise = new Promise((resolve6, reject) => {
|
|
227476
|
+
(this.packageInstalledPromise ?? (this.packageInstalledPromise = /* @__PURE__ */ new Map())).set(this.packageInstallId, { resolve: resolve6, reject });
|
|
227477
227477
|
});
|
|
227478
227478
|
this.installer.send(request);
|
|
227479
227479
|
return promise;
|
|
@@ -227768,6 +227768,7 @@ var require_loaders = __commonJS({
|
|
|
227768
227768
|
var promises_1 = __require("fs/promises");
|
|
227769
227769
|
var path_1 = __importDefault(__require("path"));
|
|
227770
227770
|
var url_1 = __require("url");
|
|
227771
|
+
var crypto_1 = __require("crypto");
|
|
227771
227772
|
var importFresh;
|
|
227772
227773
|
var loadJsSync = function loadJsSync2(filepath) {
|
|
227773
227774
|
if (importFresh === void 0) {
|
|
@@ -227778,7 +227779,7 @@ var require_loaders = __commonJS({
|
|
|
227778
227779
|
exports.loadJsSync = loadJsSync;
|
|
227779
227780
|
var loadJs = async function loadJs2(filepath) {
|
|
227780
227781
|
try {
|
|
227781
|
-
const { href } = (0, url_1.pathToFileURL)(filepath);
|
|
227782
|
+
const { href } = (0, url_1.pathToFileURL)(await (0, promises_1.realpath)(filepath));
|
|
227782
227783
|
return (await import(href)).default;
|
|
227783
227784
|
} catch (error) {
|
|
227784
227785
|
try {
|
|
@@ -227825,7 +227826,7 @@ ${error.message}`;
|
|
|
227825
227826
|
if (typescript === void 0) {
|
|
227826
227827
|
typescript = require_typescript();
|
|
227827
227828
|
}
|
|
227828
|
-
const compiledFilepath = `${filepath
|
|
227829
|
+
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
|
|
227829
227830
|
try {
|
|
227830
227831
|
const config = resolveTsConfig(path_1.default.dirname(filepath)) ?? {};
|
|
227831
227832
|
config.compilerOptions = {
|
|
@@ -227853,7 +227854,7 @@ ${error.message}`;
|
|
|
227853
227854
|
if (typescript === void 0) {
|
|
227854
227855
|
typescript = (await Promise.resolve().then(() => __toESM(require_typescript()))).default;
|
|
227855
227856
|
}
|
|
227856
|
-
const compiledFilepath = `${filepath
|
|
227857
|
+
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
|
|
227857
227858
|
let transpiledContent;
|
|
227858
227859
|
try {
|
|
227859
227860
|
try {
|
|
@@ -228009,9 +228010,9 @@ var require_env_paths = __commonJS({
|
|
|
228009
228010
|
"node_modules/env-paths/index.js"(exports, module) {
|
|
228010
228011
|
"use strict";
|
|
228011
228012
|
var path11 = __require("path");
|
|
228012
|
-
var
|
|
228013
|
-
var homedir =
|
|
228014
|
-
var tmpdir =
|
|
228013
|
+
var os3 = __require("os");
|
|
228014
|
+
var homedir = os3.homedir();
|
|
228015
|
+
var tmpdir = os3.tmpdir();
|
|
228015
228016
|
var { env: env2 } = process;
|
|
228016
228017
|
var macos = (name) => {
|
|
228017
228018
|
const library = path11.join(homedir, "Library");
|
|
@@ -230890,7 +230891,7 @@ var require_jiti = __commonJS({
|
|
|
230890
230891
|
for (const argument of arguments_) argument && argument.length > 0 && (void 0 === joined ? joined = argument : joined += `/${argument}`);
|
|
230891
230892
|
return void 0 === joined ? "." : pathe_ff20891b_normalize(joined.replace(/\/\/+/g, "/"));
|
|
230892
230893
|
};
|
|
230893
|
-
const
|
|
230894
|
+
const resolve6 = function(...arguments_) {
|
|
230894
230895
|
let resolvedPath = "", resolvedAbsolute = false;
|
|
230895
230896
|
for (let index = (arguments_ = arguments_.map(((argument) => normalizeWindowsPath(argument)))).length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
230896
230897
|
const path11 = index >= 0 ? arguments_[index] : "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
|
|
@@ -231375,11 +231376,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
231375
231376
|
return resolved2;
|
|
231376
231377
|
})(resolved, base, preserveSymlinks);
|
|
231377
231378
|
}
|
|
231378
|
-
function
|
|
231379
|
+
function fileURLToPath9(id) {
|
|
231379
231380
|
return "string" != typeof id || id.startsWith("file://") ? normalizeSlash((0, external_node_url_namespaceObject.fileURLToPath)(id)) : normalizeSlash(id);
|
|
231380
231381
|
}
|
|
231381
231382
|
function pathToFileURL5(id) {
|
|
231382
|
-
return (0, external_node_url_namespaceObject.pathToFileURL)(
|
|
231383
|
+
return (0, external_node_url_namespaceObject.pathToFileURL)(fileURLToPath9(id)).toString();
|
|
231383
231384
|
}
|
|
231384
231385
|
const DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]), DEFAULT_EXTENSIONS = [".mjs", ".cjs", ".js", ".json"], NOT_FOUND_ERRORS = /* @__PURE__ */ new Set(["ERR_MODULE_NOT_FOUND", "ERR_UNSUPPORTED_DIR_IMPORT", "MODULE_NOT_FOUND", "ERR_PACKAGE_PATH_NOT_EXPORTED"]);
|
|
231385
231386
|
function _tryModuleResolve(id, url, conditions2) {
|
|
@@ -231392,11 +231393,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
231392
231393
|
function _resolve(id, options = {}) {
|
|
231393
231394
|
if ("string" != typeof id) {
|
|
231394
231395
|
if (!(id instanceof URL)) throw new TypeError("input must be a `string` or `URL`");
|
|
231395
|
-
id =
|
|
231396
|
+
id = fileURLToPath9(id);
|
|
231396
231397
|
}
|
|
231397
231398
|
if (/(node|data|http|https):/.test(id)) return id;
|
|
231398
231399
|
if (BUILTIN_MODULES.has(id)) return "node:" + id;
|
|
231399
|
-
if (id.startsWith("file://") && (id =
|
|
231400
|
+
if (id.startsWith("file://") && (id = fileURLToPath9(id)), isAbsolute(id)) try {
|
|
231400
231401
|
if ((0, external_node_fs_namespaceObject.statSync)(id).isFile()) return pathToFileURL5(id);
|
|
231401
231402
|
} catch (error) {
|
|
231402
231403
|
if ("ENOENT" !== error?.code) throw error;
|
|
@@ -231426,7 +231427,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
231426
231427
|
return _resolve(id, options);
|
|
231427
231428
|
}
|
|
231428
231429
|
function resolvePathSync(id, options) {
|
|
231429
|
-
return
|
|
231430
|
+
return fileURLToPath9(resolveSync(id, options));
|
|
231430
231431
|
}
|
|
231431
231432
|
const ESM_RE = /([\s;]|^)(import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m, COMMENT_RE = /\/\*.+?\*\/|\/\/.*(?=[nr])/g;
|
|
231432
231433
|
function hasESMSyntax(code, opts = {}) {
|
|
@@ -231572,7 +231573,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
231572
231573
|
}
|
|
231573
231574
|
function tryNativeRequireResolve(ctx, id, parentURL, options) {
|
|
231574
231575
|
try {
|
|
231575
|
-
return ctx.nativeRequire.resolve(id, { ...options, paths: [pathe_ff20891b_dirname(
|
|
231576
|
+
return ctx.nativeRequire.resolve(id, { ...options, paths: [pathe_ff20891b_dirname(fileURLToPath9(parentURL)), ...options?.paths || []] });
|
|
231576
231577
|
} catch {
|
|
231577
231578
|
}
|
|
231578
231579
|
}
|
|
@@ -231640,7 +231641,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
231640
231641
|
}
|
|
231641
231642
|
function prepareCacheDir(ctx) {
|
|
231642
231643
|
if (true === ctx.opts.fsCache && (ctx.opts.fsCache = (function(ctx2) {
|
|
231643
|
-
const nmDir = ctx2.filename &&
|
|
231644
|
+
const nmDir = ctx2.filename && resolve6(ctx2.filename, "../node_modules");
|
|
231644
231645
|
if (nmDir && (0, external_node_fs_namespaceObject.existsSync)(nmDir)) return join2(nmDir, ".cache/jiti");
|
|
231645
231646
|
let _tmpDir = (0, external_node_os_namespaceObject.tmpdir)();
|
|
231646
231647
|
if (process.env.TMPDIR && _tmpDir === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
|
|
@@ -232010,7 +232011,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
232010
232011
|
for (let i2 = 1; i2 < pointer; i2++) path11 += "/" + pieces[i2];
|
|
232011
232012
|
(!path11 || addTrailingSlash && !path11.endsWith("/..")) && (path11 += "/"), url.path = path11;
|
|
232012
232013
|
}
|
|
232013
|
-
function
|
|
232014
|
+
function resolve6(input, base) {
|
|
232014
232015
|
if (!input && !base) return "";
|
|
232015
232016
|
const url = parseUrl(input);
|
|
232016
232017
|
let inputType = url.type;
|
|
@@ -232047,7 +232048,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
232047
232048
|
return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
|
|
232048
232049
|
}
|
|
232049
232050
|
}
|
|
232050
|
-
return
|
|
232051
|
+
return resolve6;
|
|
232051
232052
|
})();
|
|
232052
232053
|
}, "./node_modules/.pnpm/@jridgewell+set-array@1.2.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js": function(__unused_webpack_module, exports2) {
|
|
232053
232054
|
!(function(exports3) {
|
|
@@ -232311,7 +232312,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
232311
232312
|
}, "./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.25/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js": function(__unused_webpack_module, exports2, __webpack_require__2) {
|
|
232312
232313
|
!(function(exports3, sourcemapCodec, resolveUri) {
|
|
232313
232314
|
"use strict";
|
|
232314
|
-
function
|
|
232315
|
+
function resolve6(input, base) {
|
|
232315
232316
|
return base && !base.endsWith("/") && (base += "/"), resolveUri(input, base);
|
|
232316
232317
|
}
|
|
232317
232318
|
function stripFilename(path11) {
|
|
@@ -232449,8 +232450,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
232449
232450
|
if (!isString && map._decodedMemo) return map;
|
|
232450
232451
|
const parsed = isString ? JSON.parse(map) : map, { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
|
|
232451
232452
|
this.version = version, this.file = file, this.names = names || [], this.sourceRoot = sourceRoot, this.sources = sources, this.sourcesContent = sourcesContent, this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
|
|
232452
|
-
const from =
|
|
232453
|
-
this.resolvedSources = sources.map(((s2) =>
|
|
232453
|
+
const from = resolve6(sourceRoot || "", stripFilename(mapUrl));
|
|
232454
|
+
this.resolvedSources = sources.map(((s2) => resolve6(s2 || "", from)));
|
|
232454
232455
|
const { mappings } = parsed;
|
|
232455
232456
|
"string" == typeof mappings ? (this._encoded = mappings, this._decoded = void 0) : (this._encoded = void 0, this._decoded = maybeSort(mappings, isString)), this._decodedMemo = memoizedState(), this._bySources = void 0, this._bySourceMemos = void 0;
|
|
232456
232457
|
}
|
|
@@ -233000,7 +233001,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233000
233001
|
for (; !({ value: value2 } = gen.next()).done; ) assertStart(value2, gen);
|
|
233001
233002
|
return value2;
|
|
233002
233003
|
}
|
|
233003
|
-
function evaluateAsync(gen,
|
|
233004
|
+
function evaluateAsync(gen, resolve6, reject) {
|
|
233004
233005
|
!(function step() {
|
|
233005
233006
|
try {
|
|
233006
233007
|
let value2;
|
|
@@ -233012,7 +233013,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233012
233013
|
}));
|
|
233013
233014
|
if (sync = false, assertSuspend(out, gen), !didSyncResume) return;
|
|
233014
233015
|
}
|
|
233015
|
-
return
|
|
233016
|
+
return resolve6(value2);
|
|
233016
233017
|
} catch (err) {
|
|
233017
233018
|
return reject(err);
|
|
233018
233019
|
}
|
|
@@ -233049,10 +233050,10 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233049
233050
|
"number" != typeof arity && (arity = sync.length);
|
|
233050
233051
|
return buildOperation({ name, arity, sync: function(args) {
|
|
233051
233052
|
return sync.apply(this, args);
|
|
233052
|
-
}, async: function(args,
|
|
233053
|
-
async ? async.apply(this, args).then(
|
|
233054
|
-
null == err ?
|
|
233055
|
-
})) :
|
|
233053
|
+
}, async: function(args, resolve6, reject) {
|
|
233054
|
+
async ? async.apply(this, args).then(resolve6, reject) : errback ? errback.call(this, ...args, ((err, value2) => {
|
|
233055
|
+
null == err ? resolve6(value2) : reject(err);
|
|
233056
|
+
})) : resolve6(sync.apply(this, args));
|
|
233056
233057
|
} });
|
|
233057
233058
|
})(optsOrFn) : (function(genFn2) {
|
|
233058
233059
|
return setFunctionMetadata(genFn2.name, genFn2.length, (function(...args) {
|
|
@@ -233062,8 +233063,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233062
233063
|
const fns = { sync: function(...args) {
|
|
233063
233064
|
return evaluateSync(genFn2.apply(this, args));
|
|
233064
233065
|
}, async: function(...args) {
|
|
233065
|
-
return new Promise(((
|
|
233066
|
-
evaluateAsync(genFn2.apply(this, args),
|
|
233066
|
+
return new Promise(((resolve6, reject) => {
|
|
233067
|
+
evaluateAsync(genFn2.apply(this, args), resolve6, reject);
|
|
233067
233068
|
}));
|
|
233068
233069
|
}, errback: function(...args) {
|
|
233069
233070
|
const cb = args.pop();
|
|
@@ -233080,25 +233081,25 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233080
233081
|
})(genFn));
|
|
233081
233082
|
}), { all: buildOperation({ name: "all", arity: 1, sync: function(args) {
|
|
233082
233083
|
return Array.from(args[0]).map(((item) => evaluateSync(item)));
|
|
233083
|
-
}, async: function(args,
|
|
233084
|
+
}, async: function(args, resolve6, reject) {
|
|
233084
233085
|
const items = Array.from(args[0]);
|
|
233085
|
-
if (0 === items.length) return void Promise.resolve().then((() =>
|
|
233086
|
+
if (0 === items.length) return void Promise.resolve().then((() => resolve6([])));
|
|
233086
233087
|
let count = 0;
|
|
233087
233088
|
const results = items.map((() => {
|
|
233088
233089
|
}));
|
|
233089
233090
|
items.forEach(((item, i2) => {
|
|
233090
233091
|
evaluateAsync(item, ((val) => {
|
|
233091
|
-
results[i2] = val, count += 1, count === results.length &&
|
|
233092
|
+
results[i2] = val, count += 1, count === results.length && resolve6(results);
|
|
233092
233093
|
}), reject);
|
|
233093
233094
|
}));
|
|
233094
233095
|
} }), race: buildOperation({ name: "race", arity: 1, sync: function(args) {
|
|
233095
233096
|
const items = Array.from(args[0]);
|
|
233096
233097
|
if (0 === items.length) throw makeError("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
233097
233098
|
return evaluateSync(items[0]);
|
|
233098
|
-
}, async: function(args,
|
|
233099
|
+
}, async: function(args, resolve6, reject) {
|
|
233099
233100
|
const items = Array.from(args[0]);
|
|
233100
233101
|
if (0 === items.length) throw makeError("Must race at least 1 item", "GENSYNC_RACE_NONEMPTY");
|
|
233101
|
-
for (const item of items) evaluateAsync(item,
|
|
233102
|
+
for (const item of items) evaluateAsync(item, resolve6, reject);
|
|
233102
233103
|
} }) });
|
|
233103
233104
|
}, "./node_modules/.pnpm/globals@11.12.0/node_modules/globals/index.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
233104
233105
|
"use strict";
|
|
@@ -233724,7 +233725,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233724
233725
|
};
|
|
233725
233726
|
}, "./node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js": (module2, __unused_webpack_exports, __webpack_require__2) => {
|
|
233726
233727
|
"use strict";
|
|
233727
|
-
const
|
|
233728
|
+
const os3 = __webpack_require__2("os"), tty = __webpack_require__2("tty"), hasFlag = __webpack_require__2("./node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"), { env: env2 } = process;
|
|
233728
233729
|
let forceColor;
|
|
233729
233730
|
function translateLevel(level) {
|
|
233730
233731
|
return 0 !== level && { level, hasBasic: true, has256: level >= 2, has16m: level >= 3 };
|
|
@@ -233737,7 +233738,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233737
233738
|
const min = forceColor || 0;
|
|
233738
233739
|
if ("dumb" === env2.TERM) return min;
|
|
233739
233740
|
if ("win32" === process.platform) {
|
|
233740
|
-
const osRelease =
|
|
233741
|
+
const osRelease = os3.release().split(".");
|
|
233741
233742
|
return Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586 ? Number(osRelease[2]) >= 14931 ? 3 : 2 : 1;
|
|
233742
233743
|
}
|
|
233743
233744
|
if ("CI" in env2) return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some(((sign) => sign in env2)) || "codeship" === env2.CI_NAME ? 1 : min;
|
|
@@ -233914,8 +233915,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233914
233915
|
}
|
|
233915
233916
|
class Lock {
|
|
233916
233917
|
constructor() {
|
|
233917
|
-
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise(((
|
|
233918
|
-
this._resolve =
|
|
233918
|
+
this.released = false, this.promise = void 0, this._resolve = void 0, this.promise = new Promise(((resolve6) => {
|
|
233919
|
+
this._resolve = resolve6;
|
|
233919
233920
|
}));
|
|
233920
233921
|
}
|
|
233921
233922
|
release(value2) {
|
|
@@ -233938,7 +233939,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233938
233939
|
}
|
|
233939
233940
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.buildPresetChain = function* (arg, context) {
|
|
233940
233941
|
const chain = yield* buildPresetChainWalker(arg, context);
|
|
233941
|
-
return chain ? { plugins: dedupDescriptors(chain.plugins), presets: dedupDescriptors(chain.presets), options: chain.options.map(((o2) =>
|
|
233942
|
+
return chain ? { plugins: dedupDescriptors(chain.plugins), presets: dedupDescriptors(chain.presets), options: chain.options.map(((o2) => normalizeOptions2(o2))), files: /* @__PURE__ */ new Set() } : null;
|
|
233942
233943
|
}, exports2.buildPresetChainWalker = void 0, exports2.buildRootChain = function* (opts, context) {
|
|
233943
233944
|
let configReport, babelRcReport;
|
|
233944
233945
|
const programmaticLogger = new _printer.ConfigPrinter(), programmaticChain = yield* loadProgrammaticChain({ options: opts, dirname: context.cwd }, context, void 0, programmaticLogger);
|
|
@@ -233976,7 +233977,7 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233976
233977
|
context.showConfig && console.log(`Babel configs on "${context.filename}" (ascending priority):
|
|
233977
233978
|
` + [configReport, babelRcReport, programmaticReport].filter(((x2) => !!x2)).join("\n\n") + "\n-----End Babel configs-----");
|
|
233978
233979
|
const chain = mergeChain(mergeChain(mergeChain(emptyChain(), configFileChain), fileChain), programmaticChain);
|
|
233979
|
-
return { plugins: isIgnored2 ? [] : dedupDescriptors(chain.plugins), presets: isIgnored2 ? [] : dedupDescriptors(chain.presets), options: isIgnored2 ? [] : chain.options.map(((o2) =>
|
|
233980
|
+
return { plugins: isIgnored2 ? [] : dedupDescriptors(chain.plugins), presets: isIgnored2 ? [] : dedupDescriptors(chain.presets), options: isIgnored2 ? [] : chain.options.map(((o2) => normalizeOptions2(o2))), fileHandling: isIgnored2 ? "ignored" : "transpile", ignore: ignoreFile || void 0, babelrc: babelrcFile || void 0, config: configFile || void 0, files: chain.files };
|
|
233980
233981
|
};
|
|
233981
233982
|
var _options = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/validation/options.js"), _patternToRegex = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/pattern-to-regex.js"), _printer = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/printer.js"), _rewriteStackTrace = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"), _configError = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/errors/config-error.js"), _index = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/index.js"), _caching = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/caching.js"), _configDescriptors = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js");
|
|
233982
233983
|
const debug = _debug()("babel:config:config-chain");
|
|
@@ -233997,54 +233998,54 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
233997
233998
|
return null == chain || chain.files.add(input.filepath), chain;
|
|
233998
233999
|
}
|
|
233999
234000
|
const loadFileDescriptors = (0, _caching.makeWeakCacheSync)(((file) => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors))), loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)(((file) => (0, _caching.makeStrongCacheSync)(((envName) => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName))))), loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)(((file) => (0, _caching.makeStrongCacheSync)(((index) => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index))))), loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(((file) => (0, _caching.makeStrongCacheSync)(((index) => (0, _caching.makeStrongCacheSync)(((envName) => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName)))))));
|
|
234000
|
-
function buildRootDescriptors({ dirname:
|
|
234001
|
-
return descriptors(
|
|
234001
|
+
function buildRootDescriptors({ dirname: dirname4, options }, alias, descriptors) {
|
|
234002
|
+
return descriptors(dirname4, options, alias);
|
|
234002
234003
|
}
|
|
234003
|
-
function buildEnvDescriptors({ dirname:
|
|
234004
|
+
function buildEnvDescriptors({ dirname: dirname4, options }, alias, descriptors, envName) {
|
|
234004
234005
|
var _options$env;
|
|
234005
234006
|
const opts = null == (_options$env = options.env) ? void 0 : _options$env[envName];
|
|
234006
|
-
return opts ? descriptors(
|
|
234007
|
+
return opts ? descriptors(dirname4, opts, `${alias}.env["${envName}"]`) : null;
|
|
234007
234008
|
}
|
|
234008
|
-
function buildOverrideDescriptors({ dirname:
|
|
234009
|
+
function buildOverrideDescriptors({ dirname: dirname4, options }, alias, descriptors, index) {
|
|
234009
234010
|
var _options$overrides;
|
|
234010
234011
|
const opts = null == (_options$overrides = options.overrides) ? void 0 : _options$overrides[index];
|
|
234011
234012
|
if (!opts) throw new Error("Assertion failure - missing override");
|
|
234012
|
-
return descriptors(
|
|
234013
|
+
return descriptors(dirname4, opts, `${alias}.overrides[${index}]`);
|
|
234013
234014
|
}
|
|
234014
|
-
function buildOverrideEnvDescriptors({ dirname:
|
|
234015
|
+
function buildOverrideEnvDescriptors({ dirname: dirname4, options }, alias, descriptors, index, envName) {
|
|
234015
234016
|
var _options$overrides2, _override$env;
|
|
234016
234017
|
const override = null == (_options$overrides2 = options.overrides) ? void 0 : _options$overrides2[index];
|
|
234017
234018
|
if (!override) throw new Error("Assertion failure - missing override");
|
|
234018
234019
|
const opts = null == (_override$env = override.env) ? void 0 : _override$env[envName];
|
|
234019
|
-
return opts ? descriptors(
|
|
234020
|
+
return opts ? descriptors(dirname4, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
|
|
234020
234021
|
}
|
|
234021
234022
|
function makeChainWalker({ root, env: env2, overrides, overridesEnv, createLogger }) {
|
|
234022
234023
|
return function* (input, context, files = /* @__PURE__ */ new Set(), baseLogger) {
|
|
234023
|
-
const { dirname:
|
|
234024
|
-
if (configIsApplicable(rootOpts,
|
|
234024
|
+
const { dirname: dirname4 } = input, flattenedConfigs = [], rootOpts = root(input);
|
|
234025
|
+
if (configIsApplicable(rootOpts, dirname4, context, input.filepath)) {
|
|
234025
234026
|
flattenedConfigs.push({ config: rootOpts, envName: void 0, index: void 0 });
|
|
234026
234027
|
const envOpts = env2(input, context.envName);
|
|
234027
|
-
envOpts && configIsApplicable(envOpts,
|
|
234028
|
+
envOpts && configIsApplicable(envOpts, dirname4, context, input.filepath) && flattenedConfigs.push({ config: envOpts, envName: context.envName, index: void 0 }), (rootOpts.options.overrides || []).forEach(((_2, index) => {
|
|
234028
234029
|
const overrideOps = overrides(input, index);
|
|
234029
|
-
if (configIsApplicable(overrideOps,
|
|
234030
|
+
if (configIsApplicable(overrideOps, dirname4, context, input.filepath)) {
|
|
234030
234031
|
flattenedConfigs.push({ config: overrideOps, index, envName: void 0 });
|
|
234031
234032
|
const overrideEnvOpts = overridesEnv(input, index, context.envName);
|
|
234032
|
-
overrideEnvOpts && configIsApplicable(overrideEnvOpts,
|
|
234033
|
+
overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname4, context, input.filepath) && flattenedConfigs.push({ config: overrideEnvOpts, index, envName: context.envName });
|
|
234033
234034
|
}
|
|
234034
234035
|
}));
|
|
234035
234036
|
}
|
|
234036
|
-
if (flattenedConfigs.some((({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only,
|
|
234037
|
+
if (flattenedConfigs.some((({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only, dirname4)))) return null;
|
|
234037
234038
|
const chain = emptyChain(), logger = createLogger(input, context, baseLogger);
|
|
234038
234039
|
for (const { config, index, envName } of flattenedConfigs) {
|
|
234039
|
-
if (!(yield* mergeExtendsChain(chain, config.options,
|
|
234040
|
+
if (!(yield* mergeExtendsChain(chain, config.options, dirname4, context, files, baseLogger))) return null;
|
|
234040
234041
|
logger(config, index, envName), yield* mergeChainOpts(chain, config);
|
|
234041
234042
|
}
|
|
234042
234043
|
return chain;
|
|
234043
234044
|
};
|
|
234044
234045
|
}
|
|
234045
|
-
function* mergeExtendsChain(chain, opts,
|
|
234046
|
+
function* mergeExtendsChain(chain, opts, dirname4, context, files, baseLogger) {
|
|
234046
234047
|
if (void 0 === opts.extends) return true;
|
|
234047
|
-
const file = yield* (0, _index.loadConfig)(opts.extends,
|
|
234048
|
+
const file = yield* (0, _index.loadConfig)(opts.extends, dirname4, context.envName, context.caller);
|
|
234048
234049
|
if (files.has(file)) throw new Error(`Configuration cycle detected loading ${file.filepath}.
|
|
234049
234050
|
File already loaded following the config chain:
|
|
234050
234051
|
` + Array.from(files, ((file2) => ` - ${file2.filepath}`)).join("\n"));
|
|
@@ -234063,7 +234064,7 @@ File already loaded following the config chain:
|
|
|
234063
234064
|
function emptyChain() {
|
|
234064
234065
|
return { options: [], presets: [], plugins: [], files: /* @__PURE__ */ new Set() };
|
|
234065
234066
|
}
|
|
234066
|
-
function
|
|
234067
|
+
function normalizeOptions2(opts) {
|
|
234067
234068
|
const options = Object.assign({}, opts);
|
|
234068
234069
|
return delete options.extends, delete options.env, delete options.overrides, delete options.plugins, delete options.presets, delete options.passPerPreset, delete options.ignore, delete options.only, delete options.test, delete options.include, delete options.exclude, hasOwnProperty.call(options, "sourceMap") && (options.sourceMaps = options.sourceMap, delete options.sourceMap), options;
|
|
234069
234070
|
}
|
|
@@ -234078,35 +234079,35 @@ File already loaded following the config chain:
|
|
|
234078
234079
|
} else descriptors.push({ value: item });
|
|
234079
234080
|
return descriptors.reduce(((acc, desc) => (acc.push(desc.value), acc)), []);
|
|
234080
234081
|
}
|
|
234081
|
-
function configIsApplicable({ options },
|
|
234082
|
-
return (void 0 === options.test || configFieldIsApplicable(context, options.test,
|
|
234082
|
+
function configIsApplicable({ options }, dirname4, context, configName) {
|
|
234083
|
+
return (void 0 === options.test || configFieldIsApplicable(context, options.test, dirname4, configName)) && (void 0 === options.include || configFieldIsApplicable(context, options.include, dirname4, configName)) && (void 0 === options.exclude || !configFieldIsApplicable(context, options.exclude, dirname4, configName));
|
|
234083
234084
|
}
|
|
234084
|
-
function configFieldIsApplicable(context, test2,
|
|
234085
|
-
return matchesPatterns(context, Array.isArray(test2) ? test2 : [test2],
|
|
234085
|
+
function configFieldIsApplicable(context, test2, dirname4, configName) {
|
|
234086
|
+
return matchesPatterns(context, Array.isArray(test2) ? test2 : [test2], dirname4, configName);
|
|
234086
234087
|
}
|
|
234087
234088
|
function ignoreListReplacer(_key, value2) {
|
|
234088
234089
|
return value2 instanceof RegExp ? String(value2) : value2;
|
|
234089
234090
|
}
|
|
234090
|
-
function shouldIgnore(context, ignore, only,
|
|
234091
|
-
if (ignore && matchesPatterns(context, ignore,
|
|
234091
|
+
function shouldIgnore(context, ignore, only, dirname4) {
|
|
234092
|
+
if (ignore && matchesPatterns(context, ignore, dirname4)) {
|
|
234092
234093
|
var _context$filename;
|
|
234093
|
-
const message2 = `No config is applied to "${null != (_context$filename = context.filename) ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${
|
|
234094
|
+
const message2 = `No config is applied to "${null != (_context$filename = context.filename) ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname4}"`;
|
|
234094
234095
|
return debug(message2), context.showConfig && console.log(message2), true;
|
|
234095
234096
|
}
|
|
234096
|
-
if (only && !matchesPatterns(context, only,
|
|
234097
|
+
if (only && !matchesPatterns(context, only, dirname4)) {
|
|
234097
234098
|
var _context$filename2;
|
|
234098
|
-
const message2 = `No config is applied to "${null != (_context$filename2 = context.filename) ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${
|
|
234099
|
+
const message2 = `No config is applied to "${null != (_context$filename2 = context.filename) ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname4}"`;
|
|
234099
234100
|
return debug(message2), context.showConfig && console.log(message2), true;
|
|
234100
234101
|
}
|
|
234101
234102
|
return false;
|
|
234102
234103
|
}
|
|
234103
|
-
function matchesPatterns(context, patterns,
|
|
234104
|
-
return patterns.some(((pattern) => matchPattern(pattern,
|
|
234104
|
+
function matchesPatterns(context, patterns, dirname4, configName) {
|
|
234105
|
+
return patterns.some(((pattern) => matchPattern(pattern, dirname4, context.filename, context, configName)));
|
|
234105
234106
|
}
|
|
234106
|
-
function matchPattern(pattern,
|
|
234107
|
-
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname:
|
|
234107
|
+
function matchPattern(pattern, dirname4, pathToTest, context, configName) {
|
|
234108
|
+
if ("function" == typeof pattern) return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, { dirname: dirname4, envName: context.envName, caller: context.caller });
|
|
234108
234109
|
if ("string" != typeof pathToTest) throw new _configError.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel", configName);
|
|
234109
|
-
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern,
|
|
234110
|
+
return "string" == typeof pattern && (pattern = (0, _patternToRegex.default)(pattern, dirname4)), pattern.test(pathToTest);
|
|
234110
234111
|
}
|
|
234111
234112
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/config-descriptors.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
234112
234113
|
"use strict";
|
|
@@ -234116,28 +234117,28 @@ File already loaded following the config chain:
|
|
|
234116
234117
|
return data;
|
|
234117
234118
|
}, data;
|
|
234118
234119
|
}
|
|
234119
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createCachedDescriptors = function(
|
|
234120
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createCachedDescriptors = function(dirname4, options, alias) {
|
|
234120
234121
|
const { plugins, presets, passPerPreset } = options;
|
|
234121
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
234122
|
-
}, exports2.createDescriptor = createDescriptor, exports2.createUncachedDescriptors = function(
|
|
234123
|
-
return { options: optionsWithResolvedBrowserslistConfigFile(options,
|
|
234122
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname4), plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname4)(alias) : () => handlerOf([]), presets: presets ? () => createCachedPresetDescriptors(presets, dirname4)(alias)(!!passPerPreset) : () => handlerOf([]) };
|
|
234123
|
+
}, exports2.createDescriptor = createDescriptor, exports2.createUncachedDescriptors = function(dirname4, options, alias) {
|
|
234124
|
+
return { options: optionsWithResolvedBrowserslistConfigFile(options, dirname4), plugins: (0, _functional.once)((() => createPluginDescriptors(options.plugins || [], dirname4, alias))), presets: (0, _functional.once)((() => createPresetDescriptors(options.presets || [], dirname4, alias, !!options.passPerPreset))) };
|
|
234124
234125
|
};
|
|
234125
234126
|
var _functional = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/functional.js"), _index = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/index.js"), _item = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/item.js"), _caching = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/caching.js"), _resolveTargets = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/resolve-targets.js");
|
|
234126
234127
|
function* handlerOf(value2) {
|
|
234127
234128
|
return value2;
|
|
234128
234129
|
}
|
|
234129
|
-
function optionsWithResolvedBrowserslistConfigFile(options,
|
|
234130
|
-
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile,
|
|
234130
|
+
function optionsWithResolvedBrowserslistConfigFile(options, dirname4) {
|
|
234131
|
+
return "string" == typeof options.browserslistConfigFile && (options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname4)), options;
|
|
234131
234132
|
}
|
|
234132
234133
|
const PRESET_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)(((items, cache2) => {
|
|
234133
|
-
const
|
|
234134
|
+
const dirname4 = cache2.using(((dir) => dir));
|
|
234134
234135
|
return (0, _caching.makeStrongCacheSync)(((alias) => (0, _caching.makeStrongCache)((function* (passPerPreset) {
|
|
234135
|
-
return (yield* createPresetDescriptors(items,
|
|
234136
|
+
return (yield* createPresetDescriptors(items, dirname4, alias, passPerPreset)).map(((desc) => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc)));
|
|
234136
234137
|
}))));
|
|
234137
234138
|
})), PLUGIN_DESCRIPTOR_CACHE = /* @__PURE__ */ new WeakMap(), createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)(((items, cache2) => {
|
|
234138
|
-
const
|
|
234139
|
+
const dirname4 = cache2.using(((dir) => dir));
|
|
234139
234140
|
return (0, _caching.makeStrongCache)((function* (alias) {
|
|
234140
|
-
return (yield* createPluginDescriptors(items,
|
|
234141
|
+
return (yield* createPluginDescriptors(items, dirname4, alias)).map(((desc) => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc)));
|
|
234141
234142
|
}));
|
|
234142
234143
|
})), DEFAULT_OPTIONS = {};
|
|
234143
234144
|
function loadCachedDescriptor(cache2, desc) {
|
|
@@ -234156,14 +234157,14 @@ File already loaded following the config chain:
|
|
|
234156
234157
|
}
|
|
234157
234158
|
return desc;
|
|
234158
234159
|
}
|
|
234159
|
-
function* createPresetDescriptors(items,
|
|
234160
|
-
return yield* createDescriptors("preset", items,
|
|
234160
|
+
function* createPresetDescriptors(items, dirname4, alias, passPerPreset) {
|
|
234161
|
+
return yield* createDescriptors("preset", items, dirname4, alias, passPerPreset);
|
|
234161
234162
|
}
|
|
234162
|
-
function* createPluginDescriptors(items,
|
|
234163
|
-
return yield* createDescriptors("plugin", items,
|
|
234163
|
+
function* createPluginDescriptors(items, dirname4, alias) {
|
|
234164
|
+
return yield* createDescriptors("plugin", items, dirname4, alias);
|
|
234164
234165
|
}
|
|
234165
|
-
function* createDescriptors(type, items,
|
|
234166
|
-
const descriptors = yield* _gensync().all(items.map(((item, index) => createDescriptor(item,
|
|
234166
|
+
function* createDescriptors(type, items, dirname4, alias, ownPass) {
|
|
234167
|
+
const descriptors = yield* _gensync().all(items.map(((item, index) => createDescriptor(item, dirname4, { type, alias: `${alias}$${index}`, ownPass: !!ownPass }))));
|
|
234167
234168
|
return (function(items2) {
|
|
234168
234169
|
const map = /* @__PURE__ */ new Map();
|
|
234169
234170
|
for (const item of items2) {
|
|
@@ -234177,7 +234178,7 @@ File already loaded following the config chain:
|
|
|
234177
234178
|
}
|
|
234178
234179
|
})(descriptors), descriptors;
|
|
234179
234180
|
}
|
|
234180
|
-
function* createDescriptor(pair,
|
|
234181
|
+
function* createDescriptor(pair, dirname4, { type, alias, ownPass }) {
|
|
234181
234182
|
const desc = (0, _item.getItemDescriptor)(pair);
|
|
234182
234183
|
if (desc) return desc;
|
|
234183
234184
|
let name, options, file, value2 = pair;
|
|
@@ -234186,7 +234187,7 @@ File already loaded following the config chain:
|
|
|
234186
234187
|
if ("string" == typeof value2) {
|
|
234187
234188
|
if ("string" != typeof type) throw new Error("To resolve a string-based item, the type of item must be given");
|
|
234188
234189
|
const resolver = "plugin" === type ? _index.loadPlugin : _index.loadPreset, request = value2;
|
|
234189
|
-
({ filepath, value: value2 } = yield* resolver(value2,
|
|
234190
|
+
({ filepath, value: value2 } = yield* resolver(value2, dirname4)), file = { request, resolved: filepath };
|
|
234190
234191
|
}
|
|
234191
234192
|
if (!value2) throw new Error(`Unexpected falsy value: ${String(value2)}`);
|
|
234192
234193
|
if ("object" == typeof value2 && value2.__esModule) {
|
|
@@ -234195,7 +234196,7 @@ File already loaded following the config chain:
|
|
|
234195
234196
|
}
|
|
234196
234197
|
if ("object" != typeof value2 && "function" != typeof value2) throw new Error(`Unsupported format: ${typeof value2}. Expected an object or a function.`);
|
|
234197
234198
|
if (null !== filepath && "object" == typeof value2 && value2) throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
|
|
234198
|
-
return { name, alias: filepath || alias, value: value2, options, dirname:
|
|
234199
|
+
return { name, alias: filepath || alias, value: value2, options, dirname: dirname4, ownPass, file };
|
|
234199
234200
|
}
|
|
234200
234201
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/configuration.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
234201
234202
|
"use strict";
|
|
@@ -234230,47 +234231,47 @@ File already loaded following the config chain:
|
|
|
234230
234231
|
}, data;
|
|
234231
234232
|
}
|
|
234232
234233
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.ROOT_CONFIG_FILENAMES = void 0, exports2.findConfigUpwards = function(rootDir) {
|
|
234233
|
-
let
|
|
234234
|
+
let dirname4 = rootDir;
|
|
234234
234235
|
for (; ; ) {
|
|
234235
|
-
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(
|
|
234236
|
-
const nextDir = _path().dirname(
|
|
234237
|
-
if (
|
|
234238
|
-
|
|
234236
|
+
for (const filename of ROOT_CONFIG_FILENAMES) if (_fs().existsSync(_path().join(dirname4, filename))) return dirname4;
|
|
234237
|
+
const nextDir = _path().dirname(dirname4);
|
|
234238
|
+
if (dirname4 === nextDir) break;
|
|
234239
|
+
dirname4 = nextDir;
|
|
234239
234240
|
}
|
|
234240
234241
|
return null;
|
|
234241
234242
|
}, exports2.findRelativeConfig = function* (packageData, envName, caller) {
|
|
234242
234243
|
let config = null, ignore = null;
|
|
234243
|
-
const
|
|
234244
|
+
const dirname4 = _path().dirname(packageData.filepath);
|
|
234244
234245
|
for (const loc of packageData.directories) {
|
|
234245
234246
|
var _packageData$pkg;
|
|
234246
234247
|
if (!config) config = yield* loadOneConfig(RELATIVE_CONFIG_FILENAMES, loc, envName, caller, (null == (_packageData$pkg = packageData.pkg) ? void 0 : _packageData$pkg.dirname) === loc ? packageToBabelConfig(packageData.pkg) : null);
|
|
234247
234248
|
if (!ignore) {
|
|
234248
234249
|
const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
|
|
234249
|
-
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug("Found ignore %o from %o.", ignore.filepath,
|
|
234250
|
+
ignore = yield* readIgnoreConfig(ignoreLoc), ignore && debug("Found ignore %o from %o.", ignore.filepath, dirname4);
|
|
234250
234251
|
}
|
|
234251
234252
|
}
|
|
234252
234253
|
return { config, ignore };
|
|
234253
|
-
}, exports2.findRootConfig = function(
|
|
234254
|
-
return loadOneConfig(ROOT_CONFIG_FILENAMES,
|
|
234255
|
-
}, exports2.loadConfig = function* (name,
|
|
234254
|
+
}, exports2.findRootConfig = function(dirname4, envName, caller) {
|
|
234255
|
+
return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname4, envName, caller);
|
|
234256
|
+
}, exports2.loadConfig = function* (name, dirname4, envName, caller) {
|
|
234256
234257
|
const filepath = (v2 = process.versions.node, w2 = "8.9", v2 = v2.split("."), w2 = w2.split("."), +v2[0] > +w2[0] || v2[0] == w2[0] && +v2[1] >= +w2[1] ? __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve : (r2, { paths: [b2] }, M2 = __webpack_require__2("module")) => {
|
|
234257
234258
|
let f2 = M2._findPath(r2, M2._nodeModulePaths(b2).concat(b2));
|
|
234258
234259
|
if (f2) return f2;
|
|
234259
234260
|
throw f2 = new Error(`Cannot resolve module '${r2}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
234260
|
-
})(name, { paths: [
|
|
234261
|
+
})(name, { paths: [dirname4] }), conf = yield* readConfig(filepath, envName, caller);
|
|
234261
234262
|
var v2, w2;
|
|
234262
234263
|
if (!conf) throw new _configError.default("Config file contains no configuration data", filepath);
|
|
234263
|
-
return debug("Loaded config %o from %o.", name,
|
|
234264
|
-
}, exports2.resolveShowConfigPath = function* (
|
|
234264
|
+
return debug("Loaded config %o from %o.", name, dirname4), conf;
|
|
234265
|
+
}, exports2.resolveShowConfigPath = function* (dirname4) {
|
|
234265
234266
|
const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
|
|
234266
234267
|
if (null != targetPath) {
|
|
234267
|
-
const absolutePath = _path().resolve(
|
|
234268
|
-
if (!(yield*
|
|
234268
|
+
const absolutePath = _path().resolve(dirname4, targetPath);
|
|
234269
|
+
if (!(yield* fs7.stat(absolutePath)).isFile()) throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
|
|
234269
234270
|
return absolutePath;
|
|
234270
234271
|
}
|
|
234271
234272
|
return null;
|
|
234272
234273
|
};
|
|
234273
|
-
var _caching = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/caching.js"), _configApi = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/helpers/config-api.js"), _utils = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/utils.js"), _moduleTypes = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/module-types.js"), _patternToRegex = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/pattern-to-regex.js"), _configError = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/errors/config-error.js"),
|
|
234274
|
+
var _caching = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/caching.js"), _configApi = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/helpers/config-api.js"), _utils = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/utils.js"), _moduleTypes = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/module-types.js"), _patternToRegex = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/pattern-to-regex.js"), _configError = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/errors/config-error.js"), fs7 = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/fs.js"), _rewriteStackTrace = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"), _async = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/async.js");
|
|
234274
234275
|
const debug = _debug()("babel:config:loading:files:configuration"), ROOT_CONFIG_FILENAMES = exports2.ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts"], RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"], BABELIGNORE_FILENAME = ".babelignore", runConfig = (0, _caching.makeWeakCache)((function* (options, cache2) {
|
|
234275
234276
|
return yield* [], { options: (0, _rewriteStackTrace.endHiddenCallStack)(options)((0, _configApi.makeConfigAPI)(cache2)), cacheNeedsConfiguration: !cache2.configured() };
|
|
234276
234277
|
}));
|
|
@@ -234344,15 +234345,15 @@ module.exports = function(api) {
|
|
|
234344
234345
|
for (const pattern of ignorePatterns) if ("!" === pattern[0]) throw new _configError.default("Negation of file paths is not supported.", filepath);
|
|
234345
234346
|
return { filepath, dirname: _path().dirname(filepath), ignore: ignorePatterns.map(((pattern) => (0, _patternToRegex.default)(pattern, ignoreDir))) };
|
|
234346
234347
|
}));
|
|
234347
|
-
function* loadOneConfig(names,
|
|
234348
|
-
const config = (yield* _gensync().all(names.map(((filename) => readConfig(_path().join(
|
|
234348
|
+
function* loadOneConfig(names, dirname4, envName, caller, previousConfig = null) {
|
|
234349
|
+
const config = (yield* _gensync().all(names.map(((filename) => readConfig(_path().join(dirname4, filename), envName, caller))))).reduce(((previousConfig2, config2) => {
|
|
234349
234350
|
if (config2 && previousConfig2) throw new _configError.default(`Multiple configuration files found. Please remove one:
|
|
234350
234351
|
- ${_path().basename(previousConfig2.filepath)}
|
|
234351
234352
|
- ${config2.filepath}
|
|
234352
|
-
from ${
|
|
234353
|
+
from ${dirname4}`);
|
|
234353
234354
|
return config2 || previousConfig2;
|
|
234354
234355
|
}), previousConfig);
|
|
234355
|
-
return config && debug("Found configuration %o from %o.", config.filepath,
|
|
234356
|
+
return config && debug("Found configuration %o from %o.", config.filepath, dirname4), config;
|
|
234356
234357
|
}
|
|
234357
234358
|
function readConfig(filepath, envName, caller) {
|
|
234358
234359
|
switch (_path().extname(filepath)) {
|
|
@@ -234548,15 +234549,15 @@ packageExtensions:
|
|
|
234548
234549
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.findPackageData = function* (filepath) {
|
|
234549
234550
|
let pkg2 = null;
|
|
234550
234551
|
const directories = [];
|
|
234551
|
-
let isPackage = true,
|
|
234552
|
-
for (; !pkg2 && "node_modules" !== _path().basename(
|
|
234553
|
-
directories.push(
|
|
234554
|
-
const nextLoc = _path().dirname(
|
|
234555
|
-
if (
|
|
234552
|
+
let isPackage = true, dirname4 = _path().dirname(filepath);
|
|
234553
|
+
for (; !pkg2 && "node_modules" !== _path().basename(dirname4); ) {
|
|
234554
|
+
directories.push(dirname4), pkg2 = yield* readConfigPackage(_path().join(dirname4, PACKAGE_FILENAME));
|
|
234555
|
+
const nextLoc = _path().dirname(dirname4);
|
|
234556
|
+
if (dirname4 === nextLoc) {
|
|
234556
234557
|
isPackage = false;
|
|
234557
234558
|
break;
|
|
234558
234559
|
}
|
|
234559
|
-
|
|
234560
|
+
dirname4 = nextLoc;
|
|
234560
234561
|
}
|
|
234561
234562
|
return { filepath, directories, pkg: pkg2, isPackage };
|
|
234562
234563
|
};
|
|
@@ -234587,12 +234588,12 @@ packageExtensions:
|
|
|
234587
234588
|
return data;
|
|
234588
234589
|
}, data;
|
|
234589
234590
|
}
|
|
234590
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.loadPlugin = function* (name,
|
|
234591
|
-
const { filepath, loader } = resolvePlugin(name,
|
|
234592
|
-
return debug("Loaded plugin %o from %o.", name,
|
|
234593
|
-
}, exports2.loadPreset = function* (name,
|
|
234594
|
-
const { filepath, loader } = resolvePreset(name,
|
|
234595
|
-
return debug("Loaded preset %o from %o.", name,
|
|
234591
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.loadPlugin = function* (name, dirname4) {
|
|
234592
|
+
const { filepath, loader } = resolvePlugin(name, dirname4, yield* (0, _async.isAsync)()), value2 = yield* requireModule("plugin", loader, filepath);
|
|
234593
|
+
return debug("Loaded plugin %o from %o.", name, dirname4), { filepath, value: value2 };
|
|
234594
|
+
}, exports2.loadPreset = function* (name, dirname4) {
|
|
234595
|
+
const { filepath, loader } = resolvePreset(name, dirname4, yield* (0, _async.isAsync)()), value2 = yield* requireModule("preset", loader, filepath);
|
|
234596
|
+
return debug("Loaded preset %o from %o.", name, dirname4), { filepath, value: value2 };
|
|
234596
234597
|
}, exports2.resolvePreset = exports2.resolvePlugin = void 0;
|
|
234597
234598
|
var _async = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/async.js"), _moduleTypes = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files/module-types.js");
|
|
234598
234599
|
function _url() {
|
|
@@ -234630,13 +234631,13 @@ packageExtensions:
|
|
|
234630
234631
|
}
|
|
234631
234632
|
throw error.message += "\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n", error;
|
|
234632
234633
|
}
|
|
234633
|
-
function tryRequireResolve(id,
|
|
234634
|
+
function tryRequireResolve(id, dirname4) {
|
|
234634
234635
|
try {
|
|
234635
|
-
return
|
|
234636
|
+
return dirname4 ? { error: null, value: (v2 = process.versions.node, w2 = "8.9", v2 = v2.split("."), w2 = w2.split("."), +v2[0] > +w2[0] || v2[0] == w2[0] && +v2[1] >= +w2[1] ? __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve : (r2, { paths: [b2] }, M2 = __webpack_require__2("module")) => {
|
|
234636
234637
|
let f2 = M2._findPath(r2, M2._nodeModulePaths(b2).concat(b2));
|
|
234637
234638
|
if (f2) return f2;
|
|
234638
234639
|
throw f2 = new Error(`Cannot resolve module '${r2}'`), f2.code = "MODULE_NOT_FOUND", f2;
|
|
234639
|
-
})(id, { paths: [
|
|
234640
|
+
})(id, { paths: [dirname4] }) } : { error: null, value: __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive").resolve(id) };
|
|
234640
234641
|
} catch (error) {
|
|
234641
234642
|
return { error, value: null };
|
|
234642
234643
|
}
|
|
@@ -234649,26 +234650,26 @@ packageExtensions:
|
|
|
234649
234650
|
return { error, value: null };
|
|
234650
234651
|
}
|
|
234651
234652
|
}
|
|
234652
|
-
function resolveStandardizedNameForRequire(type, name,
|
|
234653
|
+
function resolveStandardizedNameForRequire(type, name, dirname4) {
|
|
234653
234654
|
const it = resolveAlternativesHelper(type, name);
|
|
234654
234655
|
let res = it.next();
|
|
234655
|
-
for (; !res.done; ) res = it.next(tryRequireResolve(res.value,
|
|
234656
|
+
for (; !res.done; ) res = it.next(tryRequireResolve(res.value, dirname4));
|
|
234656
234657
|
return { loader: "require", filepath: res.value };
|
|
234657
234658
|
}
|
|
234658
|
-
function resolveStandardizedName(type, name,
|
|
234659
|
-
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name,
|
|
234659
|
+
function resolveStandardizedName(type, name, dirname4, allowAsync) {
|
|
234660
|
+
if (!_moduleTypes.supportsESM || !allowAsync) return resolveStandardizedNameForRequire(type, name, dirname4);
|
|
234660
234661
|
try {
|
|
234661
|
-
const resolved = (function(type2, name2,
|
|
234662
|
-
const parentUrl = (0, _url().pathToFileURL)(_path().join(
|
|
234662
|
+
const resolved = (function(type2, name2, dirname5) {
|
|
234663
|
+
const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname5, "./babel-virtual-resolve-base.js")).href, it = resolveAlternativesHelper(type2, name2);
|
|
234663
234664
|
let res = it.next();
|
|
234664
234665
|
for (; !res.done; ) res = it.next(tryImportMetaResolve(res.value, parentUrl));
|
|
234665
234666
|
return { loader: "auto", filepath: (0, _url().fileURLToPath)(res.value) };
|
|
234666
|
-
})(type, name,
|
|
234667
|
-
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${
|
|
234667
|
+
})(type, name, dirname4);
|
|
234668
|
+
if (!(0, _fs().existsSync)(resolved.filepath)) throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname4}.`), { type: "MODULE_NOT_FOUND" });
|
|
234668
234669
|
return resolved;
|
|
234669
234670
|
} catch (e2) {
|
|
234670
234671
|
try {
|
|
234671
|
-
return resolveStandardizedNameForRequire(type, name,
|
|
234672
|
+
return resolveStandardizedNameForRequire(type, name, dirname4);
|
|
234672
234673
|
} catch (e22) {
|
|
234673
234674
|
if ("MODULE_NOT_FOUND" === e2.type) throw e2;
|
|
234674
234675
|
if ("MODULE_NOT_FOUND" === e22.type) throw e22;
|
|
@@ -234700,10 +234701,10 @@ packageExtensions:
|
|
|
234700
234701
|
}
|
|
234701
234702
|
return null;
|
|
234702
234703
|
})(filepath)));
|
|
234703
|
-
return null === cached ? null : fn(filepath, yield*
|
|
234704
|
+
return null === cached ? null : fn(filepath, yield* fs7.readFile(filepath, "utf8"));
|
|
234704
234705
|
}));
|
|
234705
234706
|
};
|
|
234706
|
-
var _caching = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/caching.js"),
|
|
234707
|
+
var _caching = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/caching.js"), fs7 = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/fs.js");
|
|
234707
234708
|
function _fs2() {
|
|
234708
234709
|
const data = __webpack_require__2("fs");
|
|
234709
234710
|
return _fs2 = function() {
|
|
@@ -234798,7 +234799,7 @@ packageExtensions:
|
|
|
234798
234799
|
}
|
|
234799
234800
|
};
|
|
234800
234801
|
}
|
|
234801
|
-
const makeDescriptorLoader = (apiFactory) => (0, _caching.makeWeakCache)((function* ({ value: value2, options, dirname:
|
|
234802
|
+
const makeDescriptorLoader = (apiFactory) => (0, _caching.makeWeakCache)((function* ({ value: value2, options, dirname: dirname4, alias }, cache2) {
|
|
234802
234803
|
if (false === options) throw new Error("Assertion failure");
|
|
234803
234804
|
options = options || {};
|
|
234804
234805
|
const externalDependencies = [];
|
|
@@ -234806,7 +234807,7 @@ packageExtensions:
|
|
|
234806
234807
|
if ("function" == typeof value2) {
|
|
234807
234808
|
const factory = (0, _async.maybeAsync)(value2, "You appear to be using an async plugin/preset, but Babel has been called synchronously"), api = Object.assign({}, context, apiFactory(cache2, externalDependencies));
|
|
234808
234809
|
try {
|
|
234809
|
-
item = yield* factory(api, options,
|
|
234810
|
+
item = yield* factory(api, options, dirname4);
|
|
234810
234811
|
} catch (e2) {
|
|
234811
234812
|
throw alias && (e2.message += ` (While processing: ${JSON.stringify(alias)})`), e2;
|
|
234812
234813
|
}
|
|
@@ -234818,11 +234819,11 @@ packageExtensions:
|
|
|
234818
234819
|
throw cache2.configured() ? error += " has been configured to never be invalidated. " : error += "has not been configured to be invalidated when the external dependencies change. ", error += `Plugins/presets should configure their cache to be invalidated when the external dependencies change, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\`
|
|
234819
234820
|
(While processing: ${JSON.stringify(alias)})`, new Error(error);
|
|
234820
234821
|
}
|
|
234821
|
-
return { value: item, options, dirname:
|
|
234822
|
-
})), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)((function* ({ value: value2, options, dirname:
|
|
234822
|
+
return { value: item, options, dirname: dirname4, alias, externalDependencies: (0, _deepArray.finalize)(externalDependencies) };
|
|
234823
|
+
})), pluginDescriptorLoader = makeDescriptorLoader(_configApi.makePluginAPI), presetDescriptorLoader = makeDescriptorLoader(_configApi.makePresetAPI), instantiatePlugin = (0, _caching.makeWeakCache)((function* ({ value: value2, options, dirname: dirname4, alias, externalDependencies }, cache2) {
|
|
234823
234824
|
const pluginObj = (0, _plugins.validatePluginObject)(value2), plugin = Object.assign({}, pluginObj);
|
|
234824
234825
|
if (plugin.visitor && (plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor))), plugin.inherits) {
|
|
234825
|
-
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname:
|
|
234826
|
+
const inheritsDescriptor = { name: void 0, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname: dirname4 }, inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, ((run) => cache2.invalidate(((data) => run(inheritsDescriptor, data)))));
|
|
234826
234827
|
plugin.pre = chainMaybeAsync(inherits.pre, plugin.pre), plugin.post = chainMaybeAsync(inherits.post, plugin.post), plugin.manipulateOptions = chainMaybeAsync(inherits.manipulateOptions, plugin.manipulateOptions), plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]), inherits.externalDependencies.length > 0 && (externalDependencies = 0 === externalDependencies.length ? inherits.externalDependencies : (0, _deepArray.finalize)([externalDependencies, inherits.externalDependencies]));
|
|
234827
234828
|
}
|
|
234828
234829
|
return new _plugin.default(plugin, options, alias, externalDependencies);
|
|
@@ -234845,7 +234846,7 @@ packageExtensions:
|
|
|
234845
234846
|
const { options } = preset;
|
|
234846
234847
|
validateIfOptionNeedsFilename(options, descriptor), null == (_options$overrides = options.overrides) || _options$overrides.forEach(((overrideOptions) => validateIfOptionNeedsFilename(overrideOptions, descriptor)));
|
|
234847
234848
|
}
|
|
234848
|
-
}, instantiatePreset = (0, _caching.makeWeakCacheSync)((({ value: value2, dirname:
|
|
234849
|
+
}, instantiatePreset = (0, _caching.makeWeakCacheSync)((({ value: value2, dirname: dirname4, alias, externalDependencies }) => ({ options: (0, _options.validate)("preset", value2), alias, dirname: dirname4, externalDependencies })));
|
|
234849
234850
|
function* loadPresetDescriptor(descriptor, context2) {
|
|
234850
234851
|
const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context2));
|
|
234851
234852
|
return validatePreset(preset, context2, descriptor), { chain: yield* (0, _configChain.buildPresetChain)(preset, context2), externalDependencies: preset.externalDependencies };
|
|
@@ -234965,8 +234966,8 @@ packageExtensions:
|
|
|
234965
234966
|
return data;
|
|
234966
234967
|
}, data;
|
|
234967
234968
|
}
|
|
234968
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createConfigItem = function* (value2, { dirname:
|
|
234969
|
-
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(
|
|
234969
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.createConfigItem = function* (value2, { dirname: dirname4 = ".", type } = {}) {
|
|
234970
|
+
return createItemFromDescriptor(yield* (0, _configDescriptors.createDescriptor)(value2, _path().resolve(dirname4), { type, alias: "programmatic item" }));
|
|
234970
234971
|
}, exports2.createItemFromDescriptor = createItemFromDescriptor, exports2.getItemDescriptor = function(item) {
|
|
234971
234972
|
if (null != item && item[CONFIG_ITEM_BRAND]) return item._descriptor;
|
|
234972
234973
|
return;
|
|
@@ -235058,8 +235059,8 @@ One of the following config files must be in the directory tree: "${_index.ROOT_
|
|
|
235058
235059
|
return data;
|
|
235059
235060
|
}, data;
|
|
235060
235061
|
}
|
|
235061
|
-
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(pattern,
|
|
235062
|
-
const parts = _path().resolve(
|
|
235062
|
+
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(pattern, dirname4) {
|
|
235063
|
+
const parts = _path().resolve(dirname4, pattern).split(_path().sep);
|
|
235063
235064
|
return new RegExp(["^", ...parts.map(((part, i2) => {
|
|
235064
235065
|
const last = i2 === parts.length - 1;
|
|
235065
235066
|
return "**" === part ? last ? starStarPatLast : starStarPat : "*" === part ? last ? starPatLast : starPat : 0 === part.indexOf("*.") ? substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep) : escapeRegExp(part) + (last ? endSep : sep);
|
|
@@ -235592,12 +235593,12 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
235592
235593
|
if (!result) {
|
|
235593
235594
|
if (resultP) return promiseReferenced = true, yield* (0, _async.waitFor)(resultP);
|
|
235594
235595
|
if (yield* (0, _async.isAsync)()) {
|
|
235595
|
-
let
|
|
235596
|
+
let resolve6, reject;
|
|
235596
235597
|
resultP = new Promise(((res, rej) => {
|
|
235597
|
-
|
|
235598
|
+
resolve6 = res, reject = rej;
|
|
235598
235599
|
}));
|
|
235599
235600
|
try {
|
|
235600
|
-
result = { ok: true, value: yield* fn() }, resultP = null, promiseReferenced &&
|
|
235601
|
+
result = { ok: true, value: yield* fn() }, resultP = null, promiseReferenced && resolve6(result.value);
|
|
235601
235602
|
} catch (error) {
|
|
235602
235603
|
result = { ok: false, value: error }, resultP = null, promiseReferenced && reject(error);
|
|
235603
235604
|
}
|
|
@@ -235700,8 +235701,8 @@ To be a valid ${type}, its name and options should be wrapped in a pair of brack
|
|
|
235700
235701
|
var _index2 = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/index.js"), _transform = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform.js"), _transformFile = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform-file.js"), _transformAst = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform-ast.js"), _parse = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/parse.js");
|
|
235701
235702
|
__webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js");
|
|
235702
235703
|
exports2.version = "7.26.0";
|
|
235703
|
-
exports2.resolvePlugin = (name,
|
|
235704
|
-
exports2.resolvePreset = (name,
|
|
235704
|
+
exports2.resolvePlugin = (name, dirname4) => resolvers.resolvePlugin(name, dirname4, false).filepath;
|
|
235705
|
+
exports2.resolvePreset = (name, dirname4) => resolvers.resolvePreset(name, dirname4, false).filepath;
|
|
235705
235706
|
exports2.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
|
235706
235707
|
exports2.OptionManager = class {
|
|
235707
235708
|
init(opts) {
|
|
@@ -235921,11 +235922,11 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
235921
235922
|
}, exports2.transformFileSync = function(...args) {
|
|
235922
235923
|
return transformFileRunner.sync(...args);
|
|
235923
235924
|
};
|
|
235924
|
-
var _index = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/index.js"), _index2 = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transformation/index.js"),
|
|
235925
|
+
var _index = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/index.js"), _index2 = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transformation/index.js"), fs7 = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/gensync-utils/fs.js");
|
|
235925
235926
|
const transformFileRunner = _gensync()((function* (filename, opts) {
|
|
235926
235927
|
const options = Object.assign({}, opts, { filename }), config = yield* (0, _index.default)(options);
|
|
235927
235928
|
if (null === config) return null;
|
|
235928
|
-
const code = yield*
|
|
235929
|
+
const code = yield* fs7.readFile(filename, "utf8");
|
|
235929
235930
|
return yield* (0, _index2.run)(config, code);
|
|
235930
235931
|
}));
|
|
235931
235932
|
}, "./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/transform.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
@@ -238186,11 +238187,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
238186
238187
|
}, "./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/index.js": (__unused_webpack_module, exports2, __webpack_require__2) => {
|
|
238187
238188
|
"use strict";
|
|
238188
238189
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.default = function(ast, opts = {}, code) {
|
|
238189
|
-
const format4 =
|
|
238190
|
+
const format4 = normalizeOptions2(code, opts, ast), map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
|
|
238190
238191
|
return new _printer.default(format4, map, ast.tokens, "string" == typeof code ? code : null).generate(ast);
|
|
238191
238192
|
};
|
|
238192
238193
|
var _sourceMap = __webpack_require__2("./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/source-map.js"), _printer = __webpack_require__2("./node_modules/.pnpm/@babel+generator@7.26.3/node_modules/@babel/generator/lib/printer.js");
|
|
238193
|
-
function
|
|
238194
|
+
function normalizeOptions2(code, opts, ast) {
|
|
238194
238195
|
if (opts.experimental_preserveFormat) {
|
|
238195
238196
|
if ("string" != typeof code) throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");
|
|
238196
238197
|
if (!opts.retainLines) throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");
|
|
@@ -238207,7 +238208,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
238207
238208
|
}
|
|
238208
238209
|
exports2.CodeGenerator = class {
|
|
238209
238210
|
constructor(ast, opts = {}, code) {
|
|
238210
|
-
this._ast = void 0, this._format = void 0, this._map = void 0, this._ast = ast, this._format =
|
|
238211
|
+
this._ast = void 0, this._format = void 0, this._map = void 0, this._ast = ast, this._format = normalizeOptions2(code, opts, ast), this._map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
|
|
238211
238212
|
}
|
|
238212
238213
|
generate() {
|
|
238213
238214
|
return new _printer.default(this._format, this._map).generate(this._ast);
|
|
@@ -241233,13 +241234,13 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
241233
241234
|
})(range, api.version);
|
|
241234
241235
|
} };
|
|
241235
241236
|
function declare(builder) {
|
|
241236
|
-
return (api, options,
|
|
241237
|
+
return (api, options, dirname4) => {
|
|
241237
241238
|
var _clonedApi2;
|
|
241238
241239
|
let clonedApi;
|
|
241239
241240
|
for (const name of Object.keys(apiPolyfills)) {
|
|
241240
241241
|
api[name] || (null != clonedApi || (clonedApi = copyApiObject(api)), clonedApi[name] = apiPolyfills[name](clonedApi));
|
|
241241
241242
|
}
|
|
241242
|
-
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {},
|
|
241243
|
+
return builder(null != (_clonedApi2 = clonedApi) ? _clonedApi2 : api, options || {}, dirname4);
|
|
241243
241244
|
};
|
|
241244
241245
|
}
|
|
241245
241246
|
Object.assign(apiPolyfills, { targets: () => () => ({}), assumption: () => () => {
|
|
@@ -259995,11 +259996,11 @@ ${trace}`);
|
|
|
259995
259996
|
RegExp.prototype[Symbol.replace];
|
|
259996
259997
|
const { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG3, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_RESOLVE_REQUEST } = codes2;
|
|
259997
259998
|
/* @__PURE__ */ new Set();
|
|
259998
|
-
function
|
|
259999
|
+
function fileURLToPath9(id) {
|
|
259999
260000
|
return "string" != typeof id || id.startsWith("file://") ? normalizeSlash((0, external_node_url_namespaceObject.fileURLToPath)(id)) : normalizeSlash(id);
|
|
260000
260001
|
}
|
|
260001
260002
|
function pathToFileURL5(id) {
|
|
260002
|
-
return (0, external_node_url_namespaceObject.pathToFileURL)(
|
|
260003
|
+
return (0, external_node_url_namespaceObject.pathToFileURL)(fileURLToPath9(id)).toString();
|
|
260003
260004
|
}
|
|
260004
260005
|
function importMetaPathsPlugin(_ctx, opts) {
|
|
260005
260006
|
return { name: "import-meta-paths", visitor: { Program(path11) {
|
|
@@ -260018,8 +260019,8 @@ ${trace}`);
|
|
|
260018
260019
|
}
|
|
260019
260020
|
} });
|
|
260020
260021
|
for (const meta of metaUrls) meta.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify(pathToFileURL5(opts.filename)) : "require('url').pathToFileURL(__filename).toString()"}`);
|
|
260021
|
-
for (const metaDirname of metaDirnames) metaDirname.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify(pathe_ff20891b_dirname(
|
|
260022
|
-
for (const metaFilename of metaFilenames) metaFilename.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify(
|
|
260022
|
+
for (const metaDirname of metaDirnames) metaDirname.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify(pathe_ff20891b_dirname(fileURLToPath9(pathToFileURL5(opts.filename)))) : "__dirname"}`);
|
|
260023
|
+
for (const metaFilename of metaFilenames) metaFilename.replaceWith(template_lib.smart.ast`${opts.filename ? JSON.stringify(fileURLToPath9(pathToFileURL5(opts.filename))) : "__filename"}`);
|
|
260023
260024
|
} } };
|
|
260024
260025
|
}
|
|
260025
260026
|
var helper_module_imports_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-module-imports@7.25.9/node_modules/@babel/helper-module-imports/lib/index.js"), helper_module_transforms_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-module-transforms@7.26.0_@babel+core@7.26.0/node_modules/@babel/helper-module-transforms/lib/index.js"), helper_simple_access_lib = __webpack_require__("./node_modules/.pnpm/@babel+helper-simple-access@7.25.9/node_modules/@babel/helper-simple-access/lib/index.js");
|
|
@@ -260659,7 +260660,7 @@ var require_git_raw_commits = __commonJS({
|
|
|
260659
260660
|
// node_modules/@commitlint/cli/lib/cli.js
|
|
260660
260661
|
import { createRequire as createRequire5 } from "node:module";
|
|
260661
260662
|
import path10 from "node:path";
|
|
260662
|
-
import { fileURLToPath as
|
|
260663
|
+
import { fileURLToPath as fileURLToPath8, pathToFileURL as pathToFileURL4 } from "node:url";
|
|
260663
260664
|
import util2 from "node:util";
|
|
260664
260665
|
|
|
260665
260666
|
// node_modules/@commitlint/lint/lib/lint.js
|
|
@@ -260705,8 +260706,11 @@ function isIgnored(commit = "", opts = {}) {
|
|
|
260705
260706
|
|
|
260706
260707
|
// node_modules/conventional-commits-parser/dist/regex.js
|
|
260707
260708
|
var nomatchRegex = /(?!.*)/;
|
|
260709
|
+
function escape2(string) {
|
|
260710
|
+
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
260711
|
+
}
|
|
260708
260712
|
function join(parts, joiner) {
|
|
260709
|
-
return parts.map((val) => val.trim()).filter(Boolean).join(joiner);
|
|
260713
|
+
return parts.map((val) => escape2(val.trim())).filter(Boolean).join(joiner);
|
|
260710
260714
|
}
|
|
260711
260715
|
function getNotesRegex(noteKeywords, notesPattern) {
|
|
260712
260716
|
if (!noteKeywords) {
|
|
@@ -260806,7 +260810,7 @@ var defaultOptions = {
|
|
|
260806
260810
|
"scope",
|
|
260807
260811
|
"subject"
|
|
260808
260812
|
],
|
|
260809
|
-
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)
|
|
260813
|
+
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
|
|
260810
260814
|
revertCorrespondence: ["header", "hash"],
|
|
260811
260815
|
fieldPattern: /^-(.*?)-$/
|
|
260812
260816
|
};
|
|
@@ -261064,6 +261068,15 @@ var CommitParser = class {
|
|
|
261064
261068
|
commit.notes.forEach((note) => {
|
|
261065
261069
|
note.text = trimNewLines(note.text);
|
|
261066
261070
|
});
|
|
261071
|
+
const referencesSet = /* @__PURE__ */ new Set();
|
|
261072
|
+
commit.references = commit.references.filter((reference) => {
|
|
261073
|
+
const uid = `${reference.action} ${reference.raw}`.toLocaleLowerCase();
|
|
261074
|
+
const ok = !referencesSet.has(uid);
|
|
261075
|
+
if (ok) {
|
|
261076
|
+
referencesSet.add(uid);
|
|
261077
|
+
}
|
|
261078
|
+
return ok;
|
|
261079
|
+
});
|
|
261067
261080
|
}
|
|
261068
261081
|
/**
|
|
261069
261082
|
* Parse commit message string into an object.
|
|
@@ -261122,32 +261135,132 @@ function createParserOpts() {
|
|
|
261122
261135
|
|
|
261123
261136
|
// node_modules/conventional-changelog-angular/src/writer.js
|
|
261124
261137
|
var import_compare_func = __toESM(require_compare_func(), 1);
|
|
261125
|
-
|
|
261126
|
-
|
|
261127
|
-
|
|
261128
|
-
|
|
261138
|
+
|
|
261139
|
+
// node_modules/conventional-changelog-angular/src/templates.js
|
|
261140
|
+
var mainTemplate = `{{> header}}
|
|
261141
|
+
|
|
261142
|
+
{{#each commitGroups}}
|
|
261143
|
+
|
|
261144
|
+
{{#if title}}
|
|
261145
|
+
### {{title}}
|
|
261146
|
+
|
|
261147
|
+
{{/if}}
|
|
261148
|
+
{{#each commits}}
|
|
261149
|
+
{{> commit root=@root}}
|
|
261150
|
+
{{/each}}
|
|
261151
|
+
|
|
261152
|
+
{{/each}}
|
|
261153
|
+
{{> footer}}
|
|
261154
|
+
`;
|
|
261155
|
+
var headerPartial = `{{#if isPatch~}}
|
|
261156
|
+
##
|
|
261157
|
+
{{~else~}}
|
|
261158
|
+
#
|
|
261159
|
+
{{~/if}} {{#if @root.linkCompare~}}
|
|
261160
|
+
[{{version}}](
|
|
261161
|
+
{{~#if @root.repository~}}
|
|
261162
|
+
{{~#if @root.host}}
|
|
261163
|
+
{{~@root.host}}/
|
|
261164
|
+
{{~/if}}
|
|
261165
|
+
{{~#if @root.owner}}
|
|
261166
|
+
{{~@root.owner}}/
|
|
261167
|
+
{{~/if}}
|
|
261168
|
+
{{~@root.repository}}
|
|
261169
|
+
{{~else}}
|
|
261170
|
+
{{~@root.repoUrl}}
|
|
261171
|
+
{{~/if~}}
|
|
261172
|
+
/compare/{{previousTag}}...{{currentTag}})
|
|
261173
|
+
{{~else}}
|
|
261174
|
+
{{~version}}
|
|
261175
|
+
{{~/if}}
|
|
261176
|
+
{{~#if title}} "{{title}}"
|
|
261177
|
+
{{~/if}}
|
|
261178
|
+
{{~#if date}} ({{date}})
|
|
261179
|
+
{{/if}}
|
|
261180
|
+
`;
|
|
261181
|
+
var commitPartial = `*{{#if scope}} **{{scope}}:**
|
|
261182
|
+
{{~/if}} {{#if subject}}
|
|
261183
|
+
{{~subject}}
|
|
261184
|
+
{{~else}}
|
|
261185
|
+
{{~header}}
|
|
261186
|
+
{{~/if}}
|
|
261187
|
+
|
|
261188
|
+
{{~!-- commit link --}} {{#if @root.linkReferences~}}
|
|
261189
|
+
([{{shortHash}}](
|
|
261190
|
+
{{~#if @root.repository}}
|
|
261191
|
+
{{~#if @root.host}}
|
|
261192
|
+
{{~@root.host}}/
|
|
261193
|
+
{{~/if}}
|
|
261194
|
+
{{~#if @root.owner}}
|
|
261195
|
+
{{~@root.owner}}/
|
|
261196
|
+
{{~/if}}
|
|
261197
|
+
{{~@root.repository}}
|
|
261198
|
+
{{~else}}
|
|
261199
|
+
{{~@root.repoUrl}}
|
|
261200
|
+
{{~/if}}/
|
|
261201
|
+
{{~@root.commit}}/{{hash}}))
|
|
261202
|
+
{{~else}}
|
|
261203
|
+
{{~shortHash}}
|
|
261204
|
+
{{~/if}}
|
|
261205
|
+
|
|
261206
|
+
{{~!-- commit references --}}
|
|
261207
|
+
{{~#if references~}}
|
|
261208
|
+
, closes
|
|
261209
|
+
{{~#each references}} {{#if @root.linkReferences~}}
|
|
261210
|
+
[
|
|
261211
|
+
{{~#if this.owner}}
|
|
261212
|
+
{{~this.owner}}/
|
|
261213
|
+
{{~/if}}
|
|
261214
|
+
{{~this.repository}}#{{this.issue}}](
|
|
261215
|
+
{{~#if @root.repository}}
|
|
261216
|
+
{{~#if @root.host}}
|
|
261217
|
+
{{~@root.host}}/
|
|
261218
|
+
{{~/if}}
|
|
261219
|
+
{{~#if this.repository}}
|
|
261220
|
+
{{~#if this.owner}}
|
|
261221
|
+
{{~this.owner}}/
|
|
261222
|
+
{{~/if}}
|
|
261223
|
+
{{~this.repository}}
|
|
261224
|
+
{{~else}}
|
|
261225
|
+
{{~#if @root.owner}}
|
|
261226
|
+
{{~@root.owner}}/
|
|
261227
|
+
{{~/if}}
|
|
261228
|
+
{{~@root.repository}}
|
|
261229
|
+
{{~/if}}
|
|
261230
|
+
{{~else}}
|
|
261231
|
+
{{~@root.repoUrl}}
|
|
261232
|
+
{{~/if}}/
|
|
261233
|
+
{{~@root.issue}}/{{this.issue}})
|
|
261234
|
+
{{~else}}
|
|
261235
|
+
{{~#if this.owner}}
|
|
261236
|
+
{{~this.owner}}/
|
|
261237
|
+
{{~/if}}
|
|
261238
|
+
{{~this.repository}}#{{this.issue}}
|
|
261239
|
+
{{~/if}}{{/each}}
|
|
261240
|
+
{{~/if}}
|
|
261241
|
+
|
|
261242
|
+
`;
|
|
261243
|
+
var footerPartial = `{{#if noteGroups}}
|
|
261244
|
+
{{#each noteGroups}}
|
|
261245
|
+
|
|
261246
|
+
### {{title}}
|
|
261247
|
+
|
|
261248
|
+
{{#each notes}}
|
|
261249
|
+
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
|
|
261250
|
+
{{/each}}
|
|
261251
|
+
{{/each}}
|
|
261252
|
+
|
|
261253
|
+
{{/if}}
|
|
261254
|
+
`;
|
|
261255
|
+
|
|
261256
|
+
// node_modules/conventional-changelog-angular/src/writer.js
|
|
261129
261257
|
var COMMIT_HASH_LENGTH = 7;
|
|
261130
|
-
|
|
261131
|
-
const [
|
|
261132
|
-
template,
|
|
261133
|
-
header,
|
|
261134
|
-
commit,
|
|
261135
|
-
footer
|
|
261136
|
-
] = await Promise.all([
|
|
261137
|
-
readFile(resolve(dirname, "./templates/template.hbs"), "utf-8"),
|
|
261138
|
-
readFile(resolve(dirname, "./templates/header.hbs"), "utf-8"),
|
|
261139
|
-
readFile(resolve(dirname, "./templates/commit.hbs"), "utf-8"),
|
|
261140
|
-
readFile(resolve(dirname, "./templates/footer.hbs"), "utf-8")
|
|
261141
|
-
]);
|
|
261142
|
-
const writerOpts = getWriterOpts();
|
|
261143
|
-
writerOpts.mainTemplate = template;
|
|
261144
|
-
writerOpts.headerPartial = header;
|
|
261145
|
-
writerOpts.commitPartial = commit;
|
|
261146
|
-
writerOpts.footerPartial = footer;
|
|
261147
|
-
return writerOpts;
|
|
261148
|
-
}
|
|
261149
|
-
function getWriterOpts() {
|
|
261258
|
+
function createWriterOpts() {
|
|
261150
261259
|
return {
|
|
261260
|
+
mainTemplate,
|
|
261261
|
+
headerPartial,
|
|
261262
|
+
commitPartial,
|
|
261263
|
+
footerPartial,
|
|
261151
261264
|
transform: (commit, context) => {
|
|
261152
261265
|
let discard = true;
|
|
261153
261266
|
const notes = commit.notes.map((note) => {
|
|
@@ -261244,14 +261357,14 @@ function whatBump(commits) {
|
|
|
261244
261357
|
}
|
|
261245
261358
|
|
|
261246
261359
|
// node_modules/conventional-changelog-angular/src/index.js
|
|
261247
|
-
|
|
261360
|
+
function createPreset(config) {
|
|
261248
261361
|
return {
|
|
261249
261362
|
commits: {
|
|
261250
261363
|
ignore: config?.ignoreCommits,
|
|
261251
261364
|
merges: false
|
|
261252
261365
|
},
|
|
261253
261366
|
parser: createParserOpts(),
|
|
261254
|
-
writer:
|
|
261367
|
+
writer: createWriterOpts(),
|
|
261255
261368
|
whatBump
|
|
261256
261369
|
};
|
|
261257
261370
|
}
|
|
@@ -262210,8 +262323,9 @@ function executable(config) {
|
|
|
262210
262323
|
// node_modules/@commitlint/resolve-extends/lib/index.js
|
|
262211
262324
|
import { createRequire as createRequire2 } from "node:module";
|
|
262212
262325
|
import fs3 from "node:fs";
|
|
262326
|
+
import os2 from "node:os";
|
|
262213
262327
|
import path4 from "node:path";
|
|
262214
|
-
import { pathToFileURL as pathToFileURL2, fileURLToPath as
|
|
262328
|
+
import { pathToFileURL as pathToFileURL2, fileURLToPath as fileURLToPath5 } from "node:url";
|
|
262215
262329
|
|
|
262216
262330
|
// node_modules/global-directory/index.js
|
|
262217
262331
|
var import_ini = __toESM(require_ini(), 1);
|
|
@@ -262309,20 +262423,20 @@ var global_directory_default = globalDirectory;
|
|
|
262309
262423
|
import assert2 from "node:assert";
|
|
262310
262424
|
import { Stats, statSync, realpathSync } from "node:fs";
|
|
262311
262425
|
import process3 from "node:process";
|
|
262312
|
-
import { URL as URL3, fileURLToPath as
|
|
262426
|
+
import { URL as URL3, fileURLToPath as fileURLToPath4, pathToFileURL } from "node:url";
|
|
262313
262427
|
import path3 from "node:path";
|
|
262314
262428
|
import { builtinModules } from "node:module";
|
|
262315
262429
|
|
|
262316
262430
|
// node_modules/import-meta-resolve/lib/get-format.js
|
|
262317
|
-
import { fileURLToPath as
|
|
262431
|
+
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
262318
262432
|
|
|
262319
262433
|
// node_modules/import-meta-resolve/lib/package-config.js
|
|
262320
|
-
import { URL as URL2, fileURLToPath as
|
|
262434
|
+
import { URL as URL2, fileURLToPath as fileURLToPath2 } from "node:url";
|
|
262321
262435
|
|
|
262322
262436
|
// node_modules/import-meta-resolve/lib/package-json-reader.js
|
|
262323
262437
|
import fs2 from "node:fs";
|
|
262324
262438
|
import path2 from "node:path";
|
|
262325
|
-
import { fileURLToPath
|
|
262439
|
+
import { fileURLToPath } from "node:url";
|
|
262326
262440
|
|
|
262327
262441
|
// node_modules/import-meta-resolve/lib/errors.js
|
|
262328
262442
|
import v8 from "node:v8";
|
|
@@ -262700,7 +262814,7 @@ function read(jsonPath, { base, specifier }) {
|
|
|
262700
262814
|
);
|
|
262701
262815
|
const error = new ERR_INVALID_PACKAGE_CONFIG(
|
|
262702
262816
|
jsonPath,
|
|
262703
|
-
(base ? `"${specifier}" from ` : "") +
|
|
262817
|
+
(base ? `"${specifier}" from ` : "") + fileURLToPath(base || specifier),
|
|
262704
262818
|
cause.message
|
|
262705
262819
|
);
|
|
262706
262820
|
error.cause = cause;
|
|
@@ -262736,7 +262850,7 @@ function getPackageScopeConfig(resolved) {
|
|
|
262736
262850
|
break;
|
|
262737
262851
|
}
|
|
262738
262852
|
const packageConfig = package_json_reader_default.read(
|
|
262739
|
-
|
|
262853
|
+
fileURLToPath2(packageJSONUrl),
|
|
262740
262854
|
{ specifier: resolved }
|
|
262741
262855
|
);
|
|
262742
262856
|
if (packageConfig.exists) {
|
|
@@ -262748,7 +262862,7 @@ function getPackageScopeConfig(resolved) {
|
|
|
262748
262862
|
break;
|
|
262749
262863
|
}
|
|
262750
262864
|
}
|
|
262751
|
-
const packageJSONPath =
|
|
262865
|
+
const packageJSONPath = fileURLToPath2(packageJSONUrl);
|
|
262752
262866
|
return {
|
|
262753
262867
|
pjsonPath: packageJSONPath,
|
|
262754
262868
|
exists: false,
|
|
@@ -262835,7 +262949,7 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
262835
262949
|
if (ignoreErrors) {
|
|
262836
262950
|
return void 0;
|
|
262837
262951
|
}
|
|
262838
|
-
const filepath =
|
|
262952
|
+
const filepath = fileURLToPath3(url);
|
|
262839
262953
|
throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
|
|
262840
262954
|
}
|
|
262841
262955
|
function getHttpProtocolModuleFormat() {
|
|
@@ -262872,10 +262986,10 @@ function emitInvalidSegmentDeprecation(target, request, match2, packageJsonUrl,
|
|
|
262872
262986
|
if (process3.noDeprecation) {
|
|
262873
262987
|
return;
|
|
262874
262988
|
}
|
|
262875
|
-
const pjsonPath =
|
|
262989
|
+
const pjsonPath = fileURLToPath4(packageJsonUrl);
|
|
262876
262990
|
const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null;
|
|
262877
262991
|
process3.emitWarning(
|
|
262878
|
-
`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match2 ? "" : `matched to "${match2}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${
|
|
262992
|
+
`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match2 ? "" : `matched to "${match2}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${fileURLToPath4(base)}` : ""}.`,
|
|
262879
262993
|
"DeprecationWarning",
|
|
262880
262994
|
"DEP0166"
|
|
262881
262995
|
);
|
|
@@ -262886,9 +263000,9 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main2) {
|
|
|
262886
263000
|
}
|
|
262887
263001
|
const format4 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
|
|
262888
263002
|
if (format4 !== "module") return;
|
|
262889
|
-
const urlPath =
|
|
262890
|
-
const pkgPath =
|
|
262891
|
-
const basePath =
|
|
263003
|
+
const urlPath = fileURLToPath4(url.href);
|
|
263004
|
+
const pkgPath = fileURLToPath4(new URL3(".", packageJsonUrl));
|
|
263005
|
+
const basePath = fileURLToPath4(base);
|
|
262892
263006
|
if (!main2) {
|
|
262893
263007
|
process3.emitWarning(
|
|
262894
263008
|
`No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${urlPath.slice(
|
|
@@ -262962,8 +263076,8 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
262962
263076
|
return guess;
|
|
262963
263077
|
}
|
|
262964
263078
|
throw new ERR_MODULE_NOT_FOUND(
|
|
262965
|
-
|
|
262966
|
-
|
|
263079
|
+
fileURLToPath4(new URL3(".", packageJsonUrl)),
|
|
263080
|
+
fileURLToPath4(base)
|
|
262967
263081
|
);
|
|
262968
263082
|
}
|
|
262969
263083
|
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
@@ -262971,12 +263085,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
262971
263085
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
262972
263086
|
resolved.pathname,
|
|
262973
263087
|
'must not include encoded "/" or "\\" characters',
|
|
262974
|
-
|
|
263088
|
+
fileURLToPath4(base)
|
|
262975
263089
|
);
|
|
262976
263090
|
}
|
|
262977
263091
|
let filePath;
|
|
262978
263092
|
try {
|
|
262979
|
-
filePath =
|
|
263093
|
+
filePath = fileURLToPath4(resolved);
|
|
262980
263094
|
} catch (error) {
|
|
262981
263095
|
const cause = (
|
|
262982
263096
|
/** @type {ErrnoException} */
|
|
@@ -262990,14 +263104,14 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
262990
263104
|
filePath.endsWith("/") ? filePath.slice(-1) : filePath
|
|
262991
263105
|
);
|
|
262992
263106
|
if (stats.isDirectory()) {
|
|
262993
|
-
const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath,
|
|
263107
|
+
const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, fileURLToPath4(base));
|
|
262994
263108
|
error.url = String(resolved);
|
|
262995
263109
|
throw error;
|
|
262996
263110
|
}
|
|
262997
263111
|
if (!stats.isFile()) {
|
|
262998
263112
|
const error = new ERR_MODULE_NOT_FOUND(
|
|
262999
263113
|
filePath || resolved.pathname,
|
|
263000
|
-
base &&
|
|
263114
|
+
base && fileURLToPath4(base),
|
|
263001
263115
|
true
|
|
263002
263116
|
);
|
|
263003
263117
|
error.url = String(resolved);
|
|
@@ -263015,33 +263129,33 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
263015
263129
|
function importNotDefined(specifier, packageJsonUrl, base) {
|
|
263016
263130
|
return new ERR_PACKAGE_IMPORT_NOT_DEFINED(
|
|
263017
263131
|
specifier,
|
|
263018
|
-
packageJsonUrl &&
|
|
263019
|
-
|
|
263132
|
+
packageJsonUrl && fileURLToPath4(new URL3(".", packageJsonUrl)),
|
|
263133
|
+
fileURLToPath4(base)
|
|
263020
263134
|
);
|
|
263021
263135
|
}
|
|
263022
263136
|
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
263023
263137
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED(
|
|
263024
|
-
|
|
263138
|
+
fileURLToPath4(new URL3(".", packageJsonUrl)),
|
|
263025
263139
|
subpath,
|
|
263026
|
-
base &&
|
|
263140
|
+
base && fileURLToPath4(base)
|
|
263027
263141
|
);
|
|
263028
263142
|
}
|
|
263029
263143
|
function throwInvalidSubpath(request, match2, packageJsonUrl, internal, base) {
|
|
263030
|
-
const reason = `request is not a valid match in pattern "${match2}" for the "${internal ? "imports" : "exports"}" resolution of ${
|
|
263144
|
+
const reason = `request is not a valid match in pattern "${match2}" for the "${internal ? "imports" : "exports"}" resolution of ${fileURLToPath4(packageJsonUrl)}`;
|
|
263031
263145
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
263032
263146
|
request,
|
|
263033
263147
|
reason,
|
|
263034
|
-
base &&
|
|
263148
|
+
base && fileURLToPath4(base)
|
|
263035
263149
|
);
|
|
263036
263150
|
}
|
|
263037
263151
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
263038
263152
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
263039
263153
|
return new ERR_INVALID_PACKAGE_TARGET(
|
|
263040
|
-
|
|
263154
|
+
fileURLToPath4(new URL3(".", packageJsonUrl)),
|
|
263041
263155
|
subpath,
|
|
263042
263156
|
target,
|
|
263043
263157
|
internal,
|
|
263044
|
-
base &&
|
|
263158
|
+
base && fileURLToPath4(base)
|
|
263045
263159
|
);
|
|
263046
263160
|
}
|
|
263047
263161
|
function resolvePackageTargetString(target, subpath, match2, packageJsonUrl, base, pattern, internal, isPathMap, conditions2) {
|
|
@@ -263196,7 +263310,7 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
263196
263310
|
const key = keys[i2];
|
|
263197
263311
|
if (isArrayIndex(key)) {
|
|
263198
263312
|
throw new ERR_INVALID_PACKAGE_CONFIG2(
|
|
263199
|
-
|
|
263313
|
+
fileURLToPath4(packageJsonUrl),
|
|
263200
263314
|
base,
|
|
263201
263315
|
'"exports" cannot contain numeric property keys.'
|
|
263202
263316
|
);
|
|
@@ -263252,7 +263366,7 @@ function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
|
263252
263366
|
isConditionalSugar = curIsConditionalSugar;
|
|
263253
263367
|
} else if (isConditionalSugar !== curIsConditionalSugar) {
|
|
263254
263368
|
throw new ERR_INVALID_PACKAGE_CONFIG2(
|
|
263255
|
-
|
|
263369
|
+
fileURLToPath4(packageJsonUrl),
|
|
263256
263370
|
base,
|
|
263257
263371
|
`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`
|
|
263258
263372
|
);
|
|
@@ -263264,11 +263378,11 @@ function emitTrailingSlashPatternDeprecation(match2, pjsonUrl, base) {
|
|
|
263264
263378
|
if (process3.noDeprecation) {
|
|
263265
263379
|
return;
|
|
263266
263380
|
}
|
|
263267
|
-
const pjsonPath =
|
|
263381
|
+
const pjsonPath = fileURLToPath4(pjsonUrl);
|
|
263268
263382
|
if (emittedPackageWarnings.has(pjsonPath + "|" + match2)) return;
|
|
263269
263383
|
emittedPackageWarnings.add(pjsonPath + "|" + match2);
|
|
263270
263384
|
process3.emitWarning(
|
|
263271
|
-
`Use of deprecated trailing slash pattern mapping "${match2}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${
|
|
263385
|
+
`Use of deprecated trailing slash pattern mapping "${match2}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${fileURLToPath4(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`,
|
|
263272
263386
|
"DeprecationWarning",
|
|
263273
263387
|
"DEP0155"
|
|
263274
263388
|
);
|
|
@@ -263360,7 +263474,7 @@ function patternKeyCompare(a2, b2) {
|
|
|
263360
263474
|
function packageImportsResolve(name, base, conditions2) {
|
|
263361
263475
|
if (name === "#" || name.startsWith("#/") || name.endsWith("/")) {
|
|
263362
263476
|
const reason = "is not a valid internal imports specifier name";
|
|
263363
|
-
throw new ERR_INVALID_MODULE_SPECIFIER(name, reason,
|
|
263477
|
+
throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath4(base));
|
|
263364
263478
|
}
|
|
263365
263479
|
let packageJsonUrl;
|
|
263366
263480
|
const packageConfig = getPackageScopeConfig(base);
|
|
@@ -263444,7 +263558,7 @@ function parsePackageName(specifier, base) {
|
|
|
263444
263558
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
263445
263559
|
specifier,
|
|
263446
263560
|
"is not a valid package name",
|
|
263447
|
-
|
|
263561
|
+
fileURLToPath4(base)
|
|
263448
263562
|
);
|
|
263449
263563
|
}
|
|
263450
263564
|
const packageSubpath = "." + (separatorIndex === -1 ? "" : specifier.slice(separatorIndex));
|
|
@@ -263475,7 +263589,7 @@ function packageResolve(specifier, base, conditions2) {
|
|
|
263475
263589
|
"./node_modules/" + packageName + "/package.json",
|
|
263476
263590
|
base
|
|
263477
263591
|
);
|
|
263478
|
-
let packageJsonPath =
|
|
263592
|
+
let packageJsonPath = fileURLToPath4(packageJsonUrl);
|
|
263479
263593
|
let lastPath;
|
|
263480
263594
|
do {
|
|
263481
263595
|
const stat2 = tryStatSync(packageJsonPath.slice(0, -13));
|
|
@@ -263485,7 +263599,7 @@ function packageResolve(specifier, base, conditions2) {
|
|
|
263485
263599
|
(isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
|
|
263486
263600
|
packageJsonUrl
|
|
263487
263601
|
);
|
|
263488
|
-
packageJsonPath =
|
|
263602
|
+
packageJsonPath = fileURLToPath4(packageJsonUrl);
|
|
263489
263603
|
continue;
|
|
263490
263604
|
}
|
|
263491
263605
|
const packageConfig2 = package_json_reader_default.read(packageJsonPath, {
|
|
@@ -263506,7 +263620,7 @@ function packageResolve(specifier, base, conditions2) {
|
|
|
263506
263620
|
}
|
|
263507
263621
|
return new URL3(packageSubpath, packageJsonUrl);
|
|
263508
263622
|
} while (packageJsonPath.length !== lastPath.length);
|
|
263509
|
-
throw new ERR_MODULE_NOT_FOUND(packageName,
|
|
263623
|
+
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath4(base), false);
|
|
263510
263624
|
}
|
|
263511
263625
|
function isRelativeSpecifier(specifier) {
|
|
263512
263626
|
if (specifier[0] === ".") {
|
|
@@ -263549,10 +263663,10 @@ function moduleResolve(specifier, base, conditions2, preserveSymlinks) {
|
|
|
263549
263663
|
// node_modules/@commitlint/resolve-extends/lib/index.js
|
|
263550
263664
|
var import_lodash6 = __toESM(require_lodash6(), 1);
|
|
263551
263665
|
var import_resolve_from = __toESM(require_resolve_from(), 1);
|
|
263666
|
+
var require3 = createRequire2(import.meta.url);
|
|
263552
263667
|
var dynamicImport = async (id) => {
|
|
263553
263668
|
if (id.endsWith(".json")) {
|
|
263554
|
-
|
|
263555
|
-
return require5(id);
|
|
263669
|
+
return require3(id);
|
|
263556
263670
|
}
|
|
263557
263671
|
const imported = await (path4.isAbsolute(id) ? import(pathToFileURL2(id).toString()) : import(id));
|
|
263558
263672
|
return "default" in imported && imported.default || imported;
|
|
@@ -263579,7 +263693,7 @@ var resolveFrom = (lookup, parent) => {
|
|
|
263579
263693
|
const base = pathToFileURL2(parent ? fs3.statSync(parent).isDirectory() ? path4.join(parent, "noop.js") : parent : import.meta.url);
|
|
263580
263694
|
for (const suffix of specifierSuffixes) {
|
|
263581
263695
|
try {
|
|
263582
|
-
return
|
|
263696
|
+
return fileURLToPath5(moduleResolve(lookup + suffix, base, conditions));
|
|
263583
263697
|
} catch (err) {
|
|
263584
263698
|
if (!resolveError) {
|
|
263585
263699
|
resolveError = err;
|
|
@@ -263587,7 +263701,7 @@ var resolveFrom = (lookup, parent) => {
|
|
|
263587
263701
|
}
|
|
263588
263702
|
}
|
|
263589
263703
|
try {
|
|
263590
|
-
return (0, import_resolve_from.default)(path4.dirname(
|
|
263704
|
+
return (0, import_resolve_from.default)(path4.dirname(fileURLToPath5(base)), lookup);
|
|
263591
263705
|
} catch {
|
|
263592
263706
|
throw resolveError;
|
|
263593
263707
|
}
|
|
@@ -263646,14 +263760,14 @@ function getId(raw = "", prefix2 = "") {
|
|
|
263646
263760
|
return relative2 || absolute ? raw : [prefix2, raw].filter(String).join("-");
|
|
263647
263761
|
}
|
|
263648
263762
|
function resolveConfig(raw, context = {}) {
|
|
263649
|
-
const
|
|
263763
|
+
const resolve6 = context.resolve || resolveId;
|
|
263650
263764
|
const id = getId(raw, context.prefix);
|
|
263651
263765
|
let resolved;
|
|
263652
263766
|
try {
|
|
263653
|
-
resolved =
|
|
263767
|
+
resolved = resolve6(id, context);
|
|
263654
263768
|
} catch (err) {
|
|
263655
263769
|
const legacy = getId(raw, "conventional-changelog-lint-config");
|
|
263656
|
-
resolved =
|
|
263770
|
+
resolved = resolve6(legacy, context);
|
|
263657
263771
|
console.warn(`Resolving ${raw} to legacy config ${legacy}. To silence this warning raise an issue at 'npm repo ${legacy}' to rename to ${id}.`);
|
|
263658
263772
|
}
|
|
263659
263773
|
return resolved;
|
|
@@ -263678,6 +263792,62 @@ function resolveFromSilent(specifier, parent) {
|
|
|
263678
263792
|
} catch {
|
|
263679
263793
|
}
|
|
263680
263794
|
}
|
|
263795
|
+
function getNpmCacheDir() {
|
|
263796
|
+
if (process.env.npm_config_cache) {
|
|
263797
|
+
return process.env.npm_config_cache;
|
|
263798
|
+
}
|
|
263799
|
+
try {
|
|
263800
|
+
const { execSync } = require3("child_process");
|
|
263801
|
+
const cacheDir = execSync("npm config get cache", {
|
|
263802
|
+
encoding: "utf8",
|
|
263803
|
+
stdio: ["pipe", "pipe", "ignore"]
|
|
263804
|
+
}).trim();
|
|
263805
|
+
if (cacheDir) {
|
|
263806
|
+
return cacheDir;
|
|
263807
|
+
}
|
|
263808
|
+
} catch {
|
|
263809
|
+
}
|
|
263810
|
+
const home = os2.homedir();
|
|
263811
|
+
return path4.join(home, ".npm");
|
|
263812
|
+
}
|
|
263813
|
+
var npxCachePathsCache;
|
|
263814
|
+
function getNpxCachePaths() {
|
|
263815
|
+
if (npxCachePathsCache) {
|
|
263816
|
+
return npxCachePathsCache;
|
|
263817
|
+
}
|
|
263818
|
+
const npmCache = getNpmCacheDir();
|
|
263819
|
+
const npxPath = path4.join(npmCache, "_npx");
|
|
263820
|
+
if (!fs3.existsSync(npxPath)) {
|
|
263821
|
+
npxCachePathsCache = [];
|
|
263822
|
+
return [];
|
|
263823
|
+
}
|
|
263824
|
+
try {
|
|
263825
|
+
const entries = fs3.readdirSync(npxPath, { withFileTypes: true });
|
|
263826
|
+
const dirs = entries.filter((entry) => entry.isDirectory()).map((entry) => ({
|
|
263827
|
+
path: path4.join(npxPath, entry.name, "node_modules"),
|
|
263828
|
+
mtime: fs3.statSync(path4.join(npxPath, entry.name)).mtime
|
|
263829
|
+
})).sort((a2, b2) => b2.mtime.getTime() - a2.mtime.getTime());
|
|
263830
|
+
npxCachePathsCache = dirs.map((d2) => d2.path);
|
|
263831
|
+
} catch (err) {
|
|
263832
|
+
if (process.env.DEBUG === "true") {
|
|
263833
|
+
console.debug(`Failed to read npx cache: ${err.message}`);
|
|
263834
|
+
}
|
|
263835
|
+
npxCachePathsCache = [];
|
|
263836
|
+
}
|
|
263837
|
+
return npxCachePathsCache;
|
|
263838
|
+
}
|
|
263839
|
+
function resolveFromNpxCache(specifier) {
|
|
263840
|
+
for (const npxDir of getNpxCachePaths()) {
|
|
263841
|
+
try {
|
|
263842
|
+
return require3.resolve(specifier, { paths: [npxDir] });
|
|
263843
|
+
} catch (err) {
|
|
263844
|
+
if (process.env.DEBUG === "true") {
|
|
263845
|
+
console.debug(`Failed to resolve ${specifier} from ${npxDir}: ${err.message}`);
|
|
263846
|
+
}
|
|
263847
|
+
}
|
|
263848
|
+
}
|
|
263849
|
+
return void 0;
|
|
263850
|
+
}
|
|
263681
263851
|
function resolveGlobalSilent(specifier) {
|
|
263682
263852
|
for (const globalPackages of [
|
|
263683
263853
|
global_directory_default.npm.packages,
|
|
@@ -263685,9 +263855,13 @@ function resolveGlobalSilent(specifier) {
|
|
|
263685
263855
|
]) {
|
|
263686
263856
|
try {
|
|
263687
263857
|
return resolveFrom(specifier, globalPackages);
|
|
263688
|
-
} catch {
|
|
263858
|
+
} catch (err) {
|
|
263859
|
+
if (process.env.DEBUG === "true") {
|
|
263860
|
+
console.debug(`Failed to resolve ${specifier} from global: ${err.message}`);
|
|
263861
|
+
}
|
|
263689
263862
|
}
|
|
263690
263863
|
}
|
|
263864
|
+
return resolveFromNpxCache(specifier);
|
|
263691
263865
|
}
|
|
263692
263866
|
|
|
263693
263867
|
// node_modules/is-plain-obj/index.js
|
|
@@ -263851,16 +264025,16 @@ async function loadParserOpts(pendingParser) {
|
|
|
263851
264025
|
return parser2;
|
|
263852
264026
|
}
|
|
263853
264027
|
if (isParserOptsFunction(parser2) && typeof parser2.name === "string" && parser2.name.startsWith("conventional-changelog-")) {
|
|
263854
|
-
return new Promise((
|
|
264028
|
+
return new Promise((resolve6) => {
|
|
263855
264029
|
const result = parser2.parserOpts((_2, opts) => {
|
|
263856
|
-
|
|
264030
|
+
resolve6({
|
|
263857
264031
|
...parser2,
|
|
263858
264032
|
parserOpts: opts?.parserOpts
|
|
263859
264033
|
});
|
|
263860
264034
|
});
|
|
263861
264035
|
if (result) {
|
|
263862
264036
|
Promise.resolve(result).then((opts) => {
|
|
263863
|
-
|
|
264037
|
+
resolve6({
|
|
263864
264038
|
...parser2,
|
|
263865
264039
|
parserOpts: opts?.parserOpts || opts?.parser
|
|
263866
264040
|
});
|
|
@@ -263875,8 +264049,9 @@ async function loadParserOpts(pendingParser) {
|
|
|
263875
264049
|
// node_modules/@commitlint/load/lib/utils/load-plugin.js
|
|
263876
264050
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
263877
264051
|
import { createRequire as createRequire4 } from "node:module";
|
|
264052
|
+
import fs4 from "node:fs";
|
|
263878
264053
|
import path7 from "node:path";
|
|
263879
|
-
import { fileURLToPath as
|
|
264054
|
+
import { fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "node:url";
|
|
263880
264055
|
|
|
263881
264056
|
// node_modules/@commitlint/load/lib/utils/plugin-naming.js
|
|
263882
264057
|
import path6 from "node:path";
|
|
@@ -263942,16 +264117,49 @@ var MissingPluginError = class _MissingPluginError extends Error {
|
|
|
263942
264117
|
};
|
|
263943
264118
|
|
|
263944
264119
|
// node_modules/@commitlint/load/lib/utils/load-plugin.js
|
|
263945
|
-
var
|
|
263946
|
-
var __dirname2 = path7.resolve(
|
|
264120
|
+
var require4 = createRequire4(import.meta.url);
|
|
264121
|
+
var __dirname2 = path7.resolve(fileURLToPath6(import.meta.url), "..");
|
|
263947
264122
|
var dynamicImport2 = async (id) => {
|
|
263948
264123
|
const imported = await (path7.isAbsolute(id) ? import(pathToFileURL3(id).toString()) : import(id));
|
|
263949
264124
|
return "default" in imported && imported.default || imported;
|
|
263950
264125
|
};
|
|
263951
|
-
|
|
264126
|
+
function sanitizeErrorMessage(message2) {
|
|
264127
|
+
return message2.replace(/\/[^/]+\/node_modules/g, "...").replace(/\\[^\\]+\\node_modules/g, "...");
|
|
264128
|
+
}
|
|
264129
|
+
function findPackageJson(dir) {
|
|
264130
|
+
let current = dir;
|
|
264131
|
+
const root = path7.parse(dir).root;
|
|
264132
|
+
while (current !== root) {
|
|
264133
|
+
const pkgPath = path7.join(current, "package.json");
|
|
264134
|
+
if (fs4.existsSync(pkgPath)) {
|
|
264135
|
+
return pkgPath;
|
|
264136
|
+
}
|
|
264137
|
+
current = path7.dirname(current);
|
|
264138
|
+
}
|
|
264139
|
+
return null;
|
|
264140
|
+
}
|
|
264141
|
+
function normalizeOptions(options) {
|
|
264142
|
+
if (typeof options === "boolean") {
|
|
264143
|
+
return { debug: options };
|
|
264144
|
+
}
|
|
264145
|
+
return options;
|
|
264146
|
+
}
|
|
264147
|
+
async function loadPlugin(plugins, pluginName, options = {}) {
|
|
264148
|
+
const normalized = normalizeOptions(options);
|
|
264149
|
+
const { debug = false, searchPaths = [] } = normalized;
|
|
264150
|
+
for (const searchPath of searchPaths) {
|
|
264151
|
+
if (typeof searchPath !== "string" || !path7.isAbsolute(searchPath)) {
|
|
264152
|
+
throw new Error(`Invalid searchPath "${searchPath}": must be an absolute path`);
|
|
264153
|
+
}
|
|
264154
|
+
if (!fs4.existsSync(searchPath)) {
|
|
264155
|
+
throw new Error(`Invalid searchPath "${searchPath}": directory does not exist`);
|
|
264156
|
+
}
|
|
264157
|
+
if (!fs4.statSync(searchPath).isDirectory()) {
|
|
264158
|
+
throw new Error(`Invalid searchPath "${searchPath}": must be a directory, not a file`);
|
|
264159
|
+
}
|
|
264160
|
+
}
|
|
263952
264161
|
const longName = normalizePackageName(pluginName);
|
|
263953
264162
|
const shortName = getShorthandName(longName);
|
|
263954
|
-
let plugin;
|
|
263955
264163
|
if (pluginName.match(/\s+/u)) {
|
|
263956
264164
|
throw new WhitespacePluginError(pluginName, {
|
|
263957
264165
|
pluginName: longName
|
|
@@ -263959,32 +264167,81 @@ async function loadPlugin(plugins, pluginName, debug = false) {
|
|
|
263959
264167
|
}
|
|
263960
264168
|
const pluginKey = longName === pluginName ? shortName : pluginName;
|
|
263961
264169
|
if (!plugins[pluginKey]) {
|
|
263962
|
-
|
|
263963
|
-
|
|
263964
|
-
|
|
264170
|
+
let plugin;
|
|
264171
|
+
let resolvedPath;
|
|
264172
|
+
const npxResolvedPath = resolveFromNpxCache(longName);
|
|
264173
|
+
if (npxResolvedPath) {
|
|
263965
264174
|
try {
|
|
263966
|
-
|
|
263967
|
-
|
|
263968
|
-
|
|
263969
|
-
|
|
263970
|
-
|
|
263971
|
-
|
|
263972
|
-
|
|
263973
|
-
|
|
264175
|
+
plugin = await dynamicImport2(npxResolvedPath);
|
|
264176
|
+
resolvedPath = npxResolvedPath;
|
|
264177
|
+
} catch (err) {
|
|
264178
|
+
if (debug) {
|
|
264179
|
+
console.debug(`Failed to load plugin ${longName} from npx cache: ${err.message}`);
|
|
264180
|
+
}
|
|
264181
|
+
}
|
|
264182
|
+
}
|
|
264183
|
+
if (!plugin) {
|
|
264184
|
+
for (const searchPath of searchPaths) {
|
|
264185
|
+
try {
|
|
264186
|
+
resolvedPath = require4.resolve(longName, { paths: [searchPath] });
|
|
264187
|
+
plugin = await dynamicImport2(resolvedPath);
|
|
264188
|
+
break;
|
|
264189
|
+
} catch (err) {
|
|
264190
|
+
if (debug) {
|
|
264191
|
+
console.debug(`Failed to load plugin ${longName} from ${searchPath}: ${err.message}`);
|
|
264192
|
+
}
|
|
264193
|
+
}
|
|
264194
|
+
}
|
|
264195
|
+
}
|
|
264196
|
+
if (!plugin) {
|
|
264197
|
+
try {
|
|
264198
|
+
plugin = await dynamicImport2(longName);
|
|
264199
|
+
try {
|
|
264200
|
+
resolvedPath = require4.resolve(longName);
|
|
264201
|
+
} catch {
|
|
264202
|
+
}
|
|
264203
|
+
} catch (err) {
|
|
264204
|
+
let resolutionError;
|
|
264205
|
+
try {
|
|
264206
|
+
resolvedPath = require4.resolve(longName);
|
|
264207
|
+
} catch (resolveErr) {
|
|
264208
|
+
resolutionError = resolveErr;
|
|
264209
|
+
}
|
|
264210
|
+
if (resolutionError) {
|
|
264211
|
+
if (debug) {
|
|
264212
|
+
console.debug(`Failed to resolve plugin ${longName}: ${resolutionError.message}`);
|
|
264213
|
+
}
|
|
264214
|
+
throw new MissingPluginError(pluginName, sanitizeErrorMessage(resolutionError.message), {
|
|
264215
|
+
pluginName: longName,
|
|
264216
|
+
commitlintPath: path7.resolve(__dirname2, "../..")
|
|
264217
|
+
});
|
|
264218
|
+
}
|
|
264219
|
+
throw err;
|
|
263974
264220
|
}
|
|
263975
|
-
throw pluginLoadErr;
|
|
263976
264221
|
}
|
|
263977
264222
|
if (debug) {
|
|
263978
|
-
const resolvedPath = require3.resolve(longName);
|
|
263979
264223
|
let version = null;
|
|
263980
|
-
|
|
263981
|
-
|
|
263982
|
-
|
|
264224
|
+
if (resolvedPath) {
|
|
264225
|
+
try {
|
|
264226
|
+
const pkgPath = findPackageJson(path7.dirname(resolvedPath));
|
|
264227
|
+
if (pkgPath) {
|
|
264228
|
+
version = require4(pkgPath).version;
|
|
264229
|
+
}
|
|
264230
|
+
} catch {
|
|
264231
|
+
}
|
|
263983
264232
|
}
|
|
263984
264233
|
const loadedPluginAndVersion = version ? `${longName}@${version}` : `${longName}, version unknown`;
|
|
263985
|
-
|
|
264234
|
+
const fromPath = resolvedPath ? ` (from ${resolvedPath})` : "";
|
|
264235
|
+
console.log(import_picocolors.default.blue(`Loaded plugin ${pluginName} (${loadedPluginAndVersion})${fromPath}`));
|
|
264236
|
+
}
|
|
264237
|
+
if (plugin) {
|
|
264238
|
+
plugins[pluginKey] = plugin;
|
|
264239
|
+
} else {
|
|
264240
|
+
throw new MissingPluginError(pluginName, "Plugin loaded but is undefined", {
|
|
264241
|
+
pluginName: longName,
|
|
264242
|
+
commitlintPath: path7.resolve(__dirname2, "../..")
|
|
264243
|
+
});
|
|
263986
264244
|
}
|
|
263987
|
-
plugins[pluginKey] = plugin;
|
|
263988
264245
|
}
|
|
263989
264246
|
return plugins;
|
|
263990
264247
|
}
|
|
@@ -264032,7 +264289,9 @@ async function load(seed = {}, options = {}) {
|
|
|
264032
264289
|
const deduplicatedPlugins = [...new Set(extended.plugins)];
|
|
264033
264290
|
for (const plugin of deduplicatedPlugins) {
|
|
264034
264291
|
if (typeof plugin === "string") {
|
|
264035
|
-
plugins = await loadPlugin(plugins, plugin,
|
|
264292
|
+
plugins = await loadPlugin(plugins, plugin, {
|
|
264293
|
+
debug: process.env.DEBUG === "true"
|
|
264294
|
+
});
|
|
264036
264295
|
} else {
|
|
264037
264296
|
plugins.local = plugin;
|
|
264038
264297
|
}
|
|
@@ -264069,7 +264328,7 @@ var import_git_raw_commits = __toESM(require_git_raw_commits(), 1);
|
|
|
264069
264328
|
// node_modules/@commitlint/read/lib/stream-to-promise.js
|
|
264070
264329
|
function streamToPromise(stream) {
|
|
264071
264330
|
const data = [];
|
|
264072
|
-
return new Promise((
|
|
264331
|
+
return new Promise((resolve6, reject) => stream.on("data", (chunk) => data.push(chunk.toString("utf-8"))).on("error", reject).on("end", () => resolve6(data)));
|
|
264073
264332
|
}
|
|
264074
264333
|
|
|
264075
264334
|
// node_modules/@commitlint/read/lib/get-history-commits.js
|
|
@@ -264081,21 +264340,21 @@ async function getHistoryCommits(options, opts = {}) {
|
|
|
264081
264340
|
import process4 from "node:process";
|
|
264082
264341
|
|
|
264083
264342
|
// node_modules/escalade/dist/index.mjs
|
|
264084
|
-
import { dirname
|
|
264343
|
+
import { dirname, resolve } from "path";
|
|
264085
264344
|
import { readdir, stat } from "fs";
|
|
264086
264345
|
import { promisify } from "util";
|
|
264087
264346
|
var toStats = promisify(stat);
|
|
264088
264347
|
var toRead = promisify(readdir);
|
|
264089
264348
|
async function dist_default(start, callback) {
|
|
264090
|
-
let dir =
|
|
264349
|
+
let dir = resolve(".", start);
|
|
264091
264350
|
let tmp, stats = await toStats(dir);
|
|
264092
264351
|
if (!stats.isDirectory()) {
|
|
264093
|
-
dir =
|
|
264352
|
+
dir = dirname(dir);
|
|
264094
264353
|
}
|
|
264095
264354
|
while (true) {
|
|
264096
264355
|
tmp = await callback(dir, await toRead(dir));
|
|
264097
|
-
if (tmp) return
|
|
264098
|
-
dir =
|
|
264356
|
+
if (tmp) return resolve(dir, tmp);
|
|
264357
|
+
dir = dirname(tmp = dir);
|
|
264099
264358
|
if (tmp === dir) break;
|
|
264100
264359
|
}
|
|
264101
264360
|
}
|
|
@@ -264111,21 +264370,21 @@ function toplevel(cwd = process4.cwd()) {
|
|
|
264111
264370
|
}
|
|
264112
264371
|
|
|
264113
264372
|
// node_modules/@commitlint/read/lib/get-edit-commit.js
|
|
264114
|
-
import
|
|
264373
|
+
import fs6 from "fs/promises";
|
|
264115
264374
|
|
|
264116
264375
|
// node_modules/@commitlint/read/lib/get-edit-file-path.js
|
|
264117
264376
|
import path9 from "node:path";
|
|
264118
|
-
import
|
|
264377
|
+
import fs5 from "fs/promises";
|
|
264119
264378
|
async function getEditFilePath(top2, edit) {
|
|
264120
264379
|
if (typeof edit === "string") {
|
|
264121
264380
|
return path9.resolve(top2, edit);
|
|
264122
264381
|
}
|
|
264123
264382
|
const dotgitPath = path9.join(top2, ".git");
|
|
264124
|
-
const dotgitStats = await
|
|
264383
|
+
const dotgitStats = await fs5.lstat(dotgitPath);
|
|
264125
264384
|
if (dotgitStats.isDirectory()) {
|
|
264126
264385
|
return path9.join(top2, ".git/COMMIT_EDITMSG");
|
|
264127
264386
|
}
|
|
264128
|
-
const gitFile = await
|
|
264387
|
+
const gitFile = await fs5.readFile(dotgitPath, {
|
|
264129
264388
|
encoding: "utf-8"
|
|
264130
264389
|
});
|
|
264131
264390
|
const relativeGitPath = gitFile.replace("gitdir: ", "").replace("\n", "");
|
|
@@ -264139,7 +264398,7 @@ async function getEditCommit(cwd, edit) {
|
|
|
264139
264398
|
throw new TypeError(`Could not find git root from ${cwd}`);
|
|
264140
264399
|
}
|
|
264141
264400
|
const editFilePath = await getEditFilePath(top2, edit);
|
|
264142
|
-
const editFile = await
|
|
264401
|
+
const editFile = await fs6.readFile(editFilePath);
|
|
264143
264402
|
return [`${editFile.toString("utf-8")}
|
|
264144
264403
|
`];
|
|
264145
264404
|
}
|
|
@@ -265116,18 +265375,18 @@ function ui(opts) {
|
|
|
265116
265375
|
}
|
|
265117
265376
|
|
|
265118
265377
|
// node_modules/escalade/sync/index.mjs
|
|
265119
|
-
import { dirname as
|
|
265378
|
+
import { dirname as dirname2, resolve as resolve2 } from "path";
|
|
265120
265379
|
import { readdirSync, statSync as statSync2 } from "fs";
|
|
265121
265380
|
function sync_default(start, callback) {
|
|
265122
|
-
let dir =
|
|
265381
|
+
let dir = resolve2(".", start);
|
|
265123
265382
|
let tmp, stats = statSync2(dir);
|
|
265124
265383
|
if (!stats.isDirectory()) {
|
|
265125
|
-
dir =
|
|
265384
|
+
dir = dirname2(dir);
|
|
265126
265385
|
}
|
|
265127
265386
|
while (true) {
|
|
265128
265387
|
tmp = callback(dir, readdirSync(dir));
|
|
265129
|
-
if (tmp) return
|
|
265130
|
-
dir =
|
|
265388
|
+
if (tmp) return resolve2(dir, tmp);
|
|
265389
|
+
dir = dirname2(tmp = dir);
|
|
265131
265390
|
if (tmp === dir) break;
|
|
265132
265391
|
}
|
|
265133
265392
|
}
|
|
@@ -265135,11 +265394,11 @@ function sync_default(start, callback) {
|
|
|
265135
265394
|
// node_modules/yargs/lib/platform-shims/esm.mjs
|
|
265136
265395
|
import { inspect as inspect2 } from "util";
|
|
265137
265396
|
import { readFileSync as readFileSync4 } from "fs";
|
|
265138
|
-
import { fileURLToPath as
|
|
265397
|
+
import { fileURLToPath as fileURLToPath7 } from "url";
|
|
265139
265398
|
|
|
265140
265399
|
// node_modules/yargs-parser/build/lib/index.js
|
|
265141
265400
|
import { format as format2 } from "util";
|
|
265142
|
-
import { normalize, resolve as
|
|
265401
|
+
import { normalize, resolve as resolve3 } from "path";
|
|
265143
265402
|
|
|
265144
265403
|
// node_modules/yargs-parser/build/lib/string-utils.js
|
|
265145
265404
|
function camelCase2(str) {
|
|
@@ -266097,7 +266356,7 @@ var parser = new YargsParser({
|
|
|
266097
266356
|
},
|
|
266098
266357
|
format: format2,
|
|
266099
266358
|
normalize,
|
|
266100
|
-
resolve:
|
|
266359
|
+
resolve: resolve3,
|
|
266101
266360
|
// TODO: figure out a way to combine ESM and CJS coverage, such that
|
|
266102
266361
|
// we can exercise all the lines below:
|
|
266103
266362
|
require: (path11) => {
|
|
@@ -266123,7 +266382,7 @@ yargsParser.looksLikeNumber = looksLikeNumber;
|
|
|
266123
266382
|
var lib_default5 = yargsParser;
|
|
266124
266383
|
|
|
266125
266384
|
// node_modules/yargs/lib/platform-shims/esm.mjs
|
|
266126
|
-
import { basename, dirname as
|
|
266385
|
+
import { basename, dirname as dirname3, extname as extname2, relative, resolve as resolve5 } from "path";
|
|
266127
266386
|
|
|
266128
266387
|
// node_modules/yargs/build/lib/utils/process-argv.js
|
|
266129
266388
|
function getProcessArgvBinIndex() {
|
|
@@ -266155,14 +266414,14 @@ var YError = class _YError extends Error {
|
|
|
266155
266414
|
// node_modules/y18n/build/lib/platform-shims/node.js
|
|
266156
266415
|
import { readFileSync as readFileSync3, statSync as statSync3, writeFile } from "fs";
|
|
266157
266416
|
import { format as format3 } from "util";
|
|
266158
|
-
import { resolve as
|
|
266417
|
+
import { resolve as resolve4 } from "path";
|
|
266159
266418
|
var node_default = {
|
|
266160
266419
|
fs: {
|
|
266161
266420
|
readFileSync: readFileSync3,
|
|
266162
266421
|
writeFile
|
|
266163
266422
|
},
|
|
266164
266423
|
format: format3,
|
|
266165
|
-
resolve:
|
|
266424
|
+
resolve: resolve4,
|
|
266166
266425
|
exists: (file) => {
|
|
266167
266426
|
try {
|
|
266168
266427
|
return statSync3(file).isFile();
|
|
@@ -266344,7 +266603,7 @@ var REQUIRE_ERROR = "require is not supported by ESM";
|
|
|
266344
266603
|
var REQUIRE_DIRECTORY_ERROR = "loading a directory of commands is not supported yet for ESM";
|
|
266345
266604
|
var __dirname3;
|
|
266346
266605
|
try {
|
|
266347
|
-
__dirname3 =
|
|
266606
|
+
__dirname3 = fileURLToPath7(import.meta.url);
|
|
266348
266607
|
} catch (e2) {
|
|
266349
266608
|
__dirname3 = process.cwd();
|
|
266350
266609
|
}
|
|
@@ -266368,10 +266627,10 @@ var esm_default = {
|
|
|
266368
266627
|
Parser: lib_default5,
|
|
266369
266628
|
path: {
|
|
266370
266629
|
basename,
|
|
266371
|
-
dirname:
|
|
266630
|
+
dirname: dirname3,
|
|
266372
266631
|
extname: extname2,
|
|
266373
266632
|
relative,
|
|
266374
|
-
resolve:
|
|
266633
|
+
resolve: resolve5
|
|
266375
266634
|
},
|
|
266376
266635
|
process: {
|
|
266377
266636
|
argv: () => process.argv,
|
|
@@ -266393,7 +266652,7 @@ var esm_default = {
|
|
|
266393
266652
|
return [...str].length;
|
|
266394
266653
|
},
|
|
266395
266654
|
y18n: y18n_default({
|
|
266396
|
-
directory:
|
|
266655
|
+
directory: resolve5(__dirname3, "../../../locales"),
|
|
266397
266656
|
updateFiles: false
|
|
266398
266657
|
})
|
|
266399
266658
|
};
|
|
@@ -268626,12 +268885,12 @@ var YargsInstance = class {
|
|
|
268626
268885
|
async getCompletion(args, done) {
|
|
268627
268886
|
argsert("<array> [function]", [args, done], arguments.length);
|
|
268628
268887
|
if (!done) {
|
|
268629
|
-
return new Promise((
|
|
268888
|
+
return new Promise((resolve6, reject) => {
|
|
268630
268889
|
__classPrivateFieldGet(this, _YargsInstance_completion, "f").getCompletion(args, (err, completions) => {
|
|
268631
268890
|
if (err)
|
|
268632
268891
|
reject(err);
|
|
268633
268892
|
else
|
|
268634
|
-
|
|
268893
|
+
resolve6(completions);
|
|
268635
268894
|
});
|
|
268636
268895
|
});
|
|
268637
268896
|
} else {
|
|
@@ -269692,13 +269951,13 @@ var CliError = class _CliError extends Error {
|
|
|
269692
269951
|
};
|
|
269693
269952
|
|
|
269694
269953
|
// node_modules/@commitlint/cli/lib/cli.js
|
|
269695
|
-
var
|
|
269696
|
-
var __dirname4 = path10.resolve(
|
|
269954
|
+
var require5 = createRequire5(import.meta.url);
|
|
269955
|
+
var __dirname4 = path10.resolve(fileURLToPath8(import.meta.url), "..");
|
|
269697
269956
|
var dynamicImport3 = async (id) => {
|
|
269698
269957
|
const imported = await (path10.isAbsolute(id) ? import(pathToFileURL4(id).toString()) : import(id));
|
|
269699
269958
|
return "default" in imported && imported.default || imported;
|
|
269700
269959
|
};
|
|
269701
|
-
var pkg =
|
|
269960
|
+
var pkg = require5("../package.json");
|
|
269702
269961
|
var gitDefaultCommentChar = "#";
|
|
269703
269962
|
var cli = yargs_default(process.argv.slice(2)).options({
|
|
269704
269963
|
color: {
|
|
@@ -269793,7 +270052,7 @@ var cli = yargs_default(process.argv.slice(2)).options({
|
|
|
269793
270052
|
type: "boolean",
|
|
269794
270053
|
description: "enable strict mode; result code 2 for warnings, 3 for errors"
|
|
269795
270054
|
}
|
|
269796
|
-
}).version("version", "display version information", `${pkg.name}@${pkg.version}`).alias("v", "version").help("help").alias("h", "help").config("options", "path to a JSON file or Common.js module containing CLI options",
|
|
270055
|
+
}).version("version", "display version information", `${pkg.name}@${pkg.version}`).alias("v", "version").help("help").alias("h", "help").config("options", "path to a JSON file or Common.js module containing CLI options", require5).usage(`${pkg.name}@${pkg.version} - ${pkg.description}
|
|
269797
270056
|
`).usage(`[input] reads from stdin if --edit, --env, --from and --to are omitted`).strict();
|
|
269798
270057
|
cli.wrap(cli.terminalWidth());
|
|
269799
270058
|
main(cli.argv).catch((err) => {
|