@superblocksteam/cli 2.0.3-next.165 → 2.0.3-next.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chunk-HKVEEX6C.js +985 -0
- package/dist/index.js +2584 -7547
- package/dist/read-pkg-C6MUEGVQ.js +4040 -0
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,985 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS,
|
|
3
|
+
init_cjs_shims
|
|
4
|
+
} from "./chunk-4MT6BZYR.js";
|
|
5
|
+
|
|
6
|
+
// ../../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
7
|
+
var require_picocolors = __commonJS({
|
|
8
|
+
"../../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
|
|
9
|
+
init_cjs_shims();
|
|
10
|
+
var p = process || {};
|
|
11
|
+
var argv = p.argv || [];
|
|
12
|
+
var env = p.env || {};
|
|
13
|
+
var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
14
|
+
var formatter = (open, close, replace = open) => (input) => {
|
|
15
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
16
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
17
|
+
};
|
|
18
|
+
var replaceClose = (string, close, replace, index) => {
|
|
19
|
+
let result = "", cursor = 0;
|
|
20
|
+
do {
|
|
21
|
+
result += string.substring(cursor, index) + replace;
|
|
22
|
+
cursor = index + close.length;
|
|
23
|
+
index = string.indexOf(close, cursor);
|
|
24
|
+
} while (~index);
|
|
25
|
+
return result + string.substring(cursor);
|
|
26
|
+
};
|
|
27
|
+
var createColors = (enabled = isColorSupported) => {
|
|
28
|
+
let f = enabled ? formatter : () => String;
|
|
29
|
+
return {
|
|
30
|
+
isColorSupported: enabled,
|
|
31
|
+
reset: f("\x1B[0m", "\x1B[0m"),
|
|
32
|
+
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
33
|
+
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
34
|
+
italic: f("\x1B[3m", "\x1B[23m"),
|
|
35
|
+
underline: f("\x1B[4m", "\x1B[24m"),
|
|
36
|
+
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
37
|
+
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
38
|
+
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
39
|
+
black: f("\x1B[30m", "\x1B[39m"),
|
|
40
|
+
red: f("\x1B[31m", "\x1B[39m"),
|
|
41
|
+
green: f("\x1B[32m", "\x1B[39m"),
|
|
42
|
+
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
43
|
+
blue: f("\x1B[34m", "\x1B[39m"),
|
|
44
|
+
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
45
|
+
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
46
|
+
white: f("\x1B[37m", "\x1B[39m"),
|
|
47
|
+
gray: f("\x1B[90m", "\x1B[39m"),
|
|
48
|
+
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
49
|
+
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
50
|
+
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
51
|
+
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
52
|
+
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
53
|
+
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
54
|
+
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
55
|
+
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
56
|
+
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
57
|
+
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
58
|
+
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
59
|
+
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
60
|
+
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
61
|
+
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
62
|
+
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
63
|
+
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
64
|
+
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
65
|
+
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
66
|
+
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
67
|
+
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
68
|
+
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
69
|
+
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
70
|
+
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
71
|
+
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
module.exports = createColors();
|
|
75
|
+
module.exports.createColors = createColors;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// ../../../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
|
|
80
|
+
var require_js_tokens = __commonJS({
|
|
81
|
+
"../../../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js"(exports) {
|
|
82
|
+
init_cjs_shims();
|
|
83
|
+
Object.defineProperty(exports, "__esModule", {
|
|
84
|
+
value: true
|
|
85
|
+
});
|
|
86
|
+
exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
|
|
87
|
+
exports.matchToToken = function(match) {
|
|
88
|
+
var token = { type: "invalid", value: match[0], closed: void 0 };
|
|
89
|
+
if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
|
|
90
|
+
else if (match[5]) token.type = "comment";
|
|
91
|
+
else if (match[6]) token.type = "comment", token.closed = !!match[7];
|
|
92
|
+
else if (match[8]) token.type = "regex";
|
|
93
|
+
else if (match[9]) token.type = "number";
|
|
94
|
+
else if (match[10]) token.type = "name";
|
|
95
|
+
else if (match[11]) token.type = "punctuator";
|
|
96
|
+
else if (match[12]) token.type = "whitespace";
|
|
97
|
+
return token;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// ../../../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
103
|
+
var require_identifier = __commonJS({
|
|
104
|
+
"../../../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) {
|
|
105
|
+
"use strict";
|
|
106
|
+
init_cjs_shims();
|
|
107
|
+
Object.defineProperty(exports, "__esModule", {
|
|
108
|
+
value: true
|
|
109
|
+
});
|
|
110
|
+
exports.isIdentifierChar = isIdentifierChar;
|
|
111
|
+
exports.isIdentifierName = isIdentifierName;
|
|
112
|
+
exports.isIdentifierStart = isIdentifierStart;
|
|
113
|
+
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-\u088E\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\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";
|
|
114
|
+
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-\u1ACE\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";
|
|
115
|
+
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
116
|
+
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
117
|
+
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
118
|
+
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, 71, 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, 2, 60, 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, 328, 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, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 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, 496, 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, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
119
|
+
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, 80, 3, 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, 343, 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, 330, 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, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
120
|
+
function isInAstralSet(code, set) {
|
|
121
|
+
let pos = 65536;
|
|
122
|
+
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
123
|
+
pos += set[i];
|
|
124
|
+
if (pos > code) return false;
|
|
125
|
+
pos += set[i + 1];
|
|
126
|
+
if (pos >= code) return true;
|
|
127
|
+
}
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
function isIdentifierStart(code) {
|
|
131
|
+
if (code < 65) return code === 36;
|
|
132
|
+
if (code <= 90) return true;
|
|
133
|
+
if (code < 97) return code === 95;
|
|
134
|
+
if (code <= 122) return true;
|
|
135
|
+
if (code <= 65535) {
|
|
136
|
+
return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
|
|
137
|
+
}
|
|
138
|
+
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
139
|
+
}
|
|
140
|
+
function isIdentifierChar(code) {
|
|
141
|
+
if (code < 48) return code === 36;
|
|
142
|
+
if (code < 58) return true;
|
|
143
|
+
if (code < 65) return false;
|
|
144
|
+
if (code <= 90) return true;
|
|
145
|
+
if (code < 97) return code === 95;
|
|
146
|
+
if (code <= 122) return true;
|
|
147
|
+
if (code <= 65535) {
|
|
148
|
+
return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
|
|
149
|
+
}
|
|
150
|
+
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
151
|
+
}
|
|
152
|
+
function isIdentifierName(name) {
|
|
153
|
+
let isFirst = true;
|
|
154
|
+
for (let i = 0; i < name.length; i++) {
|
|
155
|
+
let cp = name.charCodeAt(i);
|
|
156
|
+
if ((cp & 64512) === 55296 && i + 1 < name.length) {
|
|
157
|
+
const trail = name.charCodeAt(++i);
|
|
158
|
+
if ((trail & 64512) === 56320) {
|
|
159
|
+
cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (isFirst) {
|
|
163
|
+
isFirst = false;
|
|
164
|
+
if (!isIdentifierStart(cp)) {
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
} else if (!isIdentifierChar(cp)) {
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return !isFirst;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
// ../../../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
177
|
+
var require_keyword = __commonJS({
|
|
178
|
+
"../../../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) {
|
|
179
|
+
"use strict";
|
|
180
|
+
init_cjs_shims();
|
|
181
|
+
Object.defineProperty(exports, "__esModule", {
|
|
182
|
+
value: true
|
|
183
|
+
});
|
|
184
|
+
exports.isKeyword = isKeyword;
|
|
185
|
+
exports.isReservedWord = isReservedWord;
|
|
186
|
+
exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
|
|
187
|
+
exports.isStrictBindReservedWord = isStrictBindReservedWord;
|
|
188
|
+
exports.isStrictReservedWord = isStrictReservedWord;
|
|
189
|
+
var reservedWords = {
|
|
190
|
+
keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"],
|
|
191
|
+
strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
|
|
192
|
+
strictBind: ["eval", "arguments"]
|
|
193
|
+
};
|
|
194
|
+
var keywords = new Set(reservedWords.keyword);
|
|
195
|
+
var reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
196
|
+
var reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
|
|
197
|
+
function isReservedWord(word, inModule) {
|
|
198
|
+
return inModule && word === "await" || word === "enum";
|
|
199
|
+
}
|
|
200
|
+
function isStrictReservedWord(word, inModule) {
|
|
201
|
+
return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
|
|
202
|
+
}
|
|
203
|
+
function isStrictBindOnlyReservedWord(word) {
|
|
204
|
+
return reservedWordsStrictBindSet.has(word);
|
|
205
|
+
}
|
|
206
|
+
function isStrictBindReservedWord(word, inModule) {
|
|
207
|
+
return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
|
|
208
|
+
}
|
|
209
|
+
function isKeyword(word) {
|
|
210
|
+
return keywords.has(word);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
// ../../../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
216
|
+
var require_lib = __commonJS({
|
|
217
|
+
"../../../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) {
|
|
218
|
+
"use strict";
|
|
219
|
+
init_cjs_shims();
|
|
220
|
+
Object.defineProperty(exports, "__esModule", {
|
|
221
|
+
value: true
|
|
222
|
+
});
|
|
223
|
+
Object.defineProperty(exports, "isIdentifierChar", {
|
|
224
|
+
enumerable: true,
|
|
225
|
+
get: function() {
|
|
226
|
+
return _identifier.isIdentifierChar;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(exports, "isIdentifierName", {
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get: function() {
|
|
232
|
+
return _identifier.isIdentifierName;
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
Object.defineProperty(exports, "isIdentifierStart", {
|
|
236
|
+
enumerable: true,
|
|
237
|
+
get: function() {
|
|
238
|
+
return _identifier.isIdentifierStart;
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(exports, "isKeyword", {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function() {
|
|
244
|
+
return _keyword.isKeyword;
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
Object.defineProperty(exports, "isReservedWord", {
|
|
248
|
+
enumerable: true,
|
|
249
|
+
get: function() {
|
|
250
|
+
return _keyword.isReservedWord;
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
|
|
254
|
+
enumerable: true,
|
|
255
|
+
get: function() {
|
|
256
|
+
return _keyword.isStrictBindOnlyReservedWord;
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
Object.defineProperty(exports, "isStrictBindReservedWord", {
|
|
260
|
+
enumerable: true,
|
|
261
|
+
get: function() {
|
|
262
|
+
return _keyword.isStrictBindReservedWord;
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
Object.defineProperty(exports, "isStrictReservedWord", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
get: function() {
|
|
268
|
+
return _keyword.isStrictReservedWord;
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
var _identifier = require_identifier();
|
|
272
|
+
var _keyword = require_keyword();
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
// ../../../../node_modules/.pnpm/@babel+code-frame@7.26.2/node_modules/@babel/code-frame/lib/index.js
|
|
277
|
+
var require_lib2 = __commonJS({
|
|
278
|
+
"../../../../node_modules/.pnpm/@babel+code-frame@7.26.2/node_modules/@babel/code-frame/lib/index.js"(exports) {
|
|
279
|
+
"use strict";
|
|
280
|
+
init_cjs_shims();
|
|
281
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
282
|
+
var picocolors = require_picocolors();
|
|
283
|
+
var jsTokens = require_js_tokens();
|
|
284
|
+
var helperValidatorIdentifier = require_lib();
|
|
285
|
+
function isColorSupported() {
|
|
286
|
+
return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
|
|
287
|
+
}
|
|
288
|
+
var compose = (f, g) => (v) => f(g(v));
|
|
289
|
+
function buildDefs(colors) {
|
|
290
|
+
return {
|
|
291
|
+
keyword: colors.cyan,
|
|
292
|
+
capitalized: colors.yellow,
|
|
293
|
+
jsxIdentifier: colors.yellow,
|
|
294
|
+
punctuator: colors.yellow,
|
|
295
|
+
number: colors.magenta,
|
|
296
|
+
string: colors.green,
|
|
297
|
+
regex: colors.magenta,
|
|
298
|
+
comment: colors.gray,
|
|
299
|
+
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
|
300
|
+
gutter: colors.gray,
|
|
301
|
+
marker: compose(colors.red, colors.bold),
|
|
302
|
+
message: compose(colors.red, colors.bold),
|
|
303
|
+
reset: colors.reset
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
var defsOn = buildDefs(picocolors.createColors(true));
|
|
307
|
+
var defsOff = buildDefs(picocolors.createColors(false));
|
|
308
|
+
function getDefs(enabled) {
|
|
309
|
+
return enabled ? defsOn : defsOff;
|
|
310
|
+
}
|
|
311
|
+
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
312
|
+
var NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
|
|
313
|
+
var BRACKET = /^[()[\]{}]$/;
|
|
314
|
+
var tokenize;
|
|
315
|
+
{
|
|
316
|
+
const JSX_TAG = /^[a-z][\w-]*$/i;
|
|
317
|
+
const getTokenType = function(token, offset, text) {
|
|
318
|
+
if (token.type === "name") {
|
|
319
|
+
if (helperValidatorIdentifier.isKeyword(token.value) || helperValidatorIdentifier.isStrictReservedWord(token.value, true) || sometimesKeywords.has(token.value)) {
|
|
320
|
+
return "keyword";
|
|
321
|
+
}
|
|
322
|
+
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
|
|
323
|
+
return "jsxIdentifier";
|
|
324
|
+
}
|
|
325
|
+
if (token.value[0] !== token.value[0].toLowerCase()) {
|
|
326
|
+
return "capitalized";
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
if (token.type === "punctuator" && BRACKET.test(token.value)) {
|
|
330
|
+
return "bracket";
|
|
331
|
+
}
|
|
332
|
+
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
|
|
333
|
+
return "punctuator";
|
|
334
|
+
}
|
|
335
|
+
return token.type;
|
|
336
|
+
};
|
|
337
|
+
tokenize = function* (text) {
|
|
338
|
+
let match;
|
|
339
|
+
while (match = jsTokens.default.exec(text)) {
|
|
340
|
+
const token = jsTokens.matchToToken(match);
|
|
341
|
+
yield {
|
|
342
|
+
type: getTokenType(token, match.index, text),
|
|
343
|
+
value: token.value
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
function highlight(text) {
|
|
349
|
+
if (text === "") return "";
|
|
350
|
+
const defs = getDefs(true);
|
|
351
|
+
let highlighted = "";
|
|
352
|
+
for (const {
|
|
353
|
+
type,
|
|
354
|
+
value
|
|
355
|
+
} of tokenize(text)) {
|
|
356
|
+
if (type in defs) {
|
|
357
|
+
highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
|
|
358
|
+
} else {
|
|
359
|
+
highlighted += value;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return highlighted;
|
|
363
|
+
}
|
|
364
|
+
var deprecationWarningShown = false;
|
|
365
|
+
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
366
|
+
function getMarkerLines(loc, source, opts) {
|
|
367
|
+
const startLoc = Object.assign({
|
|
368
|
+
column: 0,
|
|
369
|
+
line: -1
|
|
370
|
+
}, loc.start);
|
|
371
|
+
const endLoc = Object.assign({}, startLoc, loc.end);
|
|
372
|
+
const {
|
|
373
|
+
linesAbove = 2,
|
|
374
|
+
linesBelow = 3
|
|
375
|
+
} = opts || {};
|
|
376
|
+
const startLine = startLoc.line;
|
|
377
|
+
const startColumn = startLoc.column;
|
|
378
|
+
const endLine = endLoc.line;
|
|
379
|
+
const endColumn = endLoc.column;
|
|
380
|
+
let start = Math.max(startLine - (linesAbove + 1), 0);
|
|
381
|
+
let end = Math.min(source.length, endLine + linesBelow);
|
|
382
|
+
if (startLine === -1) {
|
|
383
|
+
start = 0;
|
|
384
|
+
}
|
|
385
|
+
if (endLine === -1) {
|
|
386
|
+
end = source.length;
|
|
387
|
+
}
|
|
388
|
+
const lineDiff = endLine - startLine;
|
|
389
|
+
const markerLines = {};
|
|
390
|
+
if (lineDiff) {
|
|
391
|
+
for (let i = 0; i <= lineDiff; i++) {
|
|
392
|
+
const lineNumber = i + startLine;
|
|
393
|
+
if (!startColumn) {
|
|
394
|
+
markerLines[lineNumber] = true;
|
|
395
|
+
} else if (i === 0) {
|
|
396
|
+
const sourceLength = source[lineNumber - 1].length;
|
|
397
|
+
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
|
|
398
|
+
} else if (i === lineDiff) {
|
|
399
|
+
markerLines[lineNumber] = [0, endColumn];
|
|
400
|
+
} else {
|
|
401
|
+
const sourceLength = source[lineNumber - i].length;
|
|
402
|
+
markerLines[lineNumber] = [0, sourceLength];
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
} else {
|
|
406
|
+
if (startColumn === endColumn) {
|
|
407
|
+
if (startColumn) {
|
|
408
|
+
markerLines[startLine] = [startColumn, 0];
|
|
409
|
+
} else {
|
|
410
|
+
markerLines[startLine] = true;
|
|
411
|
+
}
|
|
412
|
+
} else {
|
|
413
|
+
markerLines[startLine] = [startColumn, endColumn - startColumn];
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return {
|
|
417
|
+
start,
|
|
418
|
+
end,
|
|
419
|
+
markerLines
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
423
|
+
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
|
424
|
+
const defs = getDefs(shouldHighlight);
|
|
425
|
+
const lines = rawLines.split(NEWLINE);
|
|
426
|
+
const {
|
|
427
|
+
start,
|
|
428
|
+
end,
|
|
429
|
+
markerLines
|
|
430
|
+
} = getMarkerLines(loc, lines, opts);
|
|
431
|
+
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
432
|
+
const numberMaxWidth = String(end).length;
|
|
433
|
+
const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;
|
|
434
|
+
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index2) => {
|
|
435
|
+
const number = start + 1 + index2;
|
|
436
|
+
const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
|
|
437
|
+
const gutter = ` ${paddedNumber} |`;
|
|
438
|
+
const hasMarker = markerLines[number];
|
|
439
|
+
const lastMarkerLine = !markerLines[number + 1];
|
|
440
|
+
if (hasMarker) {
|
|
441
|
+
let markerLine = "";
|
|
442
|
+
if (Array.isArray(hasMarker)) {
|
|
443
|
+
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
|
444
|
+
const numberOfMarkers = hasMarker[1] || 1;
|
|
445
|
+
markerLine = ["\n ", defs.gutter(gutter.replace(/\d/g, " ")), " ", markerSpacing, defs.marker("^").repeat(numberOfMarkers)].join("");
|
|
446
|
+
if (lastMarkerLine && opts.message) {
|
|
447
|
+
markerLine += " " + defs.message(opts.message);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
return [defs.marker(">"), defs.gutter(gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
|
|
451
|
+
} else {
|
|
452
|
+
return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
|
453
|
+
}
|
|
454
|
+
}).join("\n");
|
|
455
|
+
if (opts.message && !hasColumns) {
|
|
456
|
+
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}
|
|
457
|
+
${frame}`;
|
|
458
|
+
}
|
|
459
|
+
if (shouldHighlight) {
|
|
460
|
+
return defs.reset(frame);
|
|
461
|
+
} else {
|
|
462
|
+
return frame;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function index(rawLines, lineNumber, colNumber, opts = {}) {
|
|
466
|
+
if (!deprecationWarningShown) {
|
|
467
|
+
deprecationWarningShown = true;
|
|
468
|
+
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
|
469
|
+
if (process.emitWarning) {
|
|
470
|
+
process.emitWarning(message, "DeprecationWarning");
|
|
471
|
+
} else {
|
|
472
|
+
const deprecationError = new Error(message);
|
|
473
|
+
deprecationError.name = "DeprecationWarning";
|
|
474
|
+
console.warn(new Error(message));
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
colNumber = Math.max(colNumber, 0);
|
|
478
|
+
const location = {
|
|
479
|
+
start: {
|
|
480
|
+
column: colNumber,
|
|
481
|
+
line: lineNumber
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
return codeFrameColumns(rawLines, location, opts);
|
|
485
|
+
}
|
|
486
|
+
exports.codeFrameColumns = codeFrameColumns;
|
|
487
|
+
exports.default = index;
|
|
488
|
+
exports.highlight = highlight;
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
// ../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/constants.js
|
|
493
|
+
var require_constants = __commonJS({
|
|
494
|
+
"../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/constants.js"(exports, module) {
|
|
495
|
+
init_cjs_shims();
|
|
496
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
497
|
+
var MAX_LENGTH = 256;
|
|
498
|
+
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
499
|
+
9007199254740991;
|
|
500
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
501
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
502
|
+
var RELEASE_TYPES = [
|
|
503
|
+
"major",
|
|
504
|
+
"premajor",
|
|
505
|
+
"minor",
|
|
506
|
+
"preminor",
|
|
507
|
+
"patch",
|
|
508
|
+
"prepatch",
|
|
509
|
+
"prerelease"
|
|
510
|
+
];
|
|
511
|
+
module.exports = {
|
|
512
|
+
MAX_LENGTH,
|
|
513
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
514
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
515
|
+
MAX_SAFE_INTEGER,
|
|
516
|
+
RELEASE_TYPES,
|
|
517
|
+
SEMVER_SPEC_VERSION,
|
|
518
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
519
|
+
FLAG_LOOSE: 2
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
|
|
524
|
+
// ../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js
|
|
525
|
+
var require_debug = __commonJS({
|
|
526
|
+
"../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/debug.js"(exports, module) {
|
|
527
|
+
init_cjs_shims();
|
|
528
|
+
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
529
|
+
};
|
|
530
|
+
module.exports = debug;
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
|
|
534
|
+
// ../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/re.js
|
|
535
|
+
var require_re = __commonJS({
|
|
536
|
+
"../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/re.js"(exports, module) {
|
|
537
|
+
init_cjs_shims();
|
|
538
|
+
var {
|
|
539
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
540
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
541
|
+
MAX_LENGTH
|
|
542
|
+
} = require_constants();
|
|
543
|
+
var debug = require_debug();
|
|
544
|
+
exports = module.exports = {};
|
|
545
|
+
var re = exports.re = [];
|
|
546
|
+
var safeRe = exports.safeRe = [];
|
|
547
|
+
var src = exports.src = [];
|
|
548
|
+
var safeSrc = exports.safeSrc = [];
|
|
549
|
+
var t = exports.t = {};
|
|
550
|
+
var R = 0;
|
|
551
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
552
|
+
var safeRegexReplacements = [
|
|
553
|
+
["\\s", 1],
|
|
554
|
+
["\\d", MAX_LENGTH],
|
|
555
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
556
|
+
];
|
|
557
|
+
var makeSafeRegex = (value) => {
|
|
558
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
559
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
560
|
+
}
|
|
561
|
+
return value;
|
|
562
|
+
};
|
|
563
|
+
var createToken = (name, value, isGlobal) => {
|
|
564
|
+
const safe = makeSafeRegex(value);
|
|
565
|
+
const index = R++;
|
|
566
|
+
debug(name, index, value);
|
|
567
|
+
t[name] = index;
|
|
568
|
+
src[index] = value;
|
|
569
|
+
safeSrc[index] = safe;
|
|
570
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
571
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
572
|
+
};
|
|
573
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
574
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
575
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
576
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
577
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
578
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
579
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
580
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
581
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
582
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
583
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
584
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
585
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
586
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
587
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
588
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
589
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
590
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
591
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
592
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
593
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
594
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
595
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
596
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
597
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
598
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
599
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
600
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
601
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
602
|
+
exports.tildeTrimReplace = "$1~";
|
|
603
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
604
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
605
|
+
createToken("LONECARET", "(?:\\^)");
|
|
606
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
607
|
+
exports.caretTrimReplace = "$1^";
|
|
608
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
609
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
610
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
611
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
612
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
613
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
614
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
615
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
616
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
617
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
618
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
|
|
622
|
+
// ../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/identifiers.js
|
|
623
|
+
var require_identifiers = __commonJS({
|
|
624
|
+
"../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
625
|
+
init_cjs_shims();
|
|
626
|
+
var numeric = /^[0-9]+$/;
|
|
627
|
+
var compareIdentifiers = (a, b) => {
|
|
628
|
+
const anum = numeric.test(a);
|
|
629
|
+
const bnum = numeric.test(b);
|
|
630
|
+
if (anum && bnum) {
|
|
631
|
+
a = +a;
|
|
632
|
+
b = +b;
|
|
633
|
+
}
|
|
634
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
635
|
+
};
|
|
636
|
+
var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
637
|
+
module.exports = {
|
|
638
|
+
compareIdentifiers,
|
|
639
|
+
rcompareIdentifiers
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
});
|
|
643
|
+
|
|
644
|
+
// ../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/parse-options.js
|
|
645
|
+
var require_parse_options = __commonJS({
|
|
646
|
+
"../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
647
|
+
init_cjs_shims();
|
|
648
|
+
var looseOption = Object.freeze({ loose: true });
|
|
649
|
+
var emptyOpts = Object.freeze({});
|
|
650
|
+
var parseOptions = (options) => {
|
|
651
|
+
if (!options) {
|
|
652
|
+
return emptyOpts;
|
|
653
|
+
}
|
|
654
|
+
if (typeof options !== "object") {
|
|
655
|
+
return looseOption;
|
|
656
|
+
}
|
|
657
|
+
return options;
|
|
658
|
+
};
|
|
659
|
+
module.exports = parseOptions;
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
|
|
663
|
+
// ../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/semver.js
|
|
664
|
+
var require_semver = __commonJS({
|
|
665
|
+
"../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/classes/semver.js"(exports, module) {
|
|
666
|
+
init_cjs_shims();
|
|
667
|
+
var debug = require_debug();
|
|
668
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
669
|
+
var { safeRe: re, safeSrc: src, t } = require_re();
|
|
670
|
+
var parseOptions = require_parse_options();
|
|
671
|
+
var { compareIdentifiers } = require_identifiers();
|
|
672
|
+
var SemVer = class _SemVer {
|
|
673
|
+
constructor(version, options) {
|
|
674
|
+
options = parseOptions(options);
|
|
675
|
+
if (version instanceof _SemVer) {
|
|
676
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
677
|
+
return version;
|
|
678
|
+
} else {
|
|
679
|
+
version = version.version;
|
|
680
|
+
}
|
|
681
|
+
} else if (typeof version !== "string") {
|
|
682
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
683
|
+
}
|
|
684
|
+
if (version.length > MAX_LENGTH) {
|
|
685
|
+
throw new TypeError(
|
|
686
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
687
|
+
);
|
|
688
|
+
}
|
|
689
|
+
debug("SemVer", version, options);
|
|
690
|
+
this.options = options;
|
|
691
|
+
this.loose = !!options.loose;
|
|
692
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
693
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
694
|
+
if (!m) {
|
|
695
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
696
|
+
}
|
|
697
|
+
this.raw = version;
|
|
698
|
+
this.major = +m[1];
|
|
699
|
+
this.minor = +m[2];
|
|
700
|
+
this.patch = +m[3];
|
|
701
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
702
|
+
throw new TypeError("Invalid major version");
|
|
703
|
+
}
|
|
704
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
705
|
+
throw new TypeError("Invalid minor version");
|
|
706
|
+
}
|
|
707
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
708
|
+
throw new TypeError("Invalid patch version");
|
|
709
|
+
}
|
|
710
|
+
if (!m[4]) {
|
|
711
|
+
this.prerelease = [];
|
|
712
|
+
} else {
|
|
713
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
714
|
+
if (/^[0-9]+$/.test(id)) {
|
|
715
|
+
const num = +id;
|
|
716
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
717
|
+
return num;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
return id;
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
724
|
+
this.format();
|
|
725
|
+
}
|
|
726
|
+
format() {
|
|
727
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
728
|
+
if (this.prerelease.length) {
|
|
729
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
730
|
+
}
|
|
731
|
+
return this.version;
|
|
732
|
+
}
|
|
733
|
+
toString() {
|
|
734
|
+
return this.version;
|
|
735
|
+
}
|
|
736
|
+
compare(other) {
|
|
737
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
738
|
+
if (!(other instanceof _SemVer)) {
|
|
739
|
+
if (typeof other === "string" && other === this.version) {
|
|
740
|
+
return 0;
|
|
741
|
+
}
|
|
742
|
+
other = new _SemVer(other, this.options);
|
|
743
|
+
}
|
|
744
|
+
if (other.version === this.version) {
|
|
745
|
+
return 0;
|
|
746
|
+
}
|
|
747
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
748
|
+
}
|
|
749
|
+
compareMain(other) {
|
|
750
|
+
if (!(other instanceof _SemVer)) {
|
|
751
|
+
other = new _SemVer(other, this.options);
|
|
752
|
+
}
|
|
753
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
754
|
+
}
|
|
755
|
+
comparePre(other) {
|
|
756
|
+
if (!(other instanceof _SemVer)) {
|
|
757
|
+
other = new _SemVer(other, this.options);
|
|
758
|
+
}
|
|
759
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
760
|
+
return -1;
|
|
761
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
762
|
+
return 1;
|
|
763
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
764
|
+
return 0;
|
|
765
|
+
}
|
|
766
|
+
let i = 0;
|
|
767
|
+
do {
|
|
768
|
+
const a = this.prerelease[i];
|
|
769
|
+
const b = other.prerelease[i];
|
|
770
|
+
debug("prerelease compare", i, a, b);
|
|
771
|
+
if (a === void 0 && b === void 0) {
|
|
772
|
+
return 0;
|
|
773
|
+
} else if (b === void 0) {
|
|
774
|
+
return 1;
|
|
775
|
+
} else if (a === void 0) {
|
|
776
|
+
return -1;
|
|
777
|
+
} else if (a === b) {
|
|
778
|
+
continue;
|
|
779
|
+
} else {
|
|
780
|
+
return compareIdentifiers(a, b);
|
|
781
|
+
}
|
|
782
|
+
} while (++i);
|
|
783
|
+
}
|
|
784
|
+
compareBuild(other) {
|
|
785
|
+
if (!(other instanceof _SemVer)) {
|
|
786
|
+
other = new _SemVer(other, this.options);
|
|
787
|
+
}
|
|
788
|
+
let i = 0;
|
|
789
|
+
do {
|
|
790
|
+
const a = this.build[i];
|
|
791
|
+
const b = other.build[i];
|
|
792
|
+
debug("build compare", i, a, b);
|
|
793
|
+
if (a === void 0 && b === void 0) {
|
|
794
|
+
return 0;
|
|
795
|
+
} else if (b === void 0) {
|
|
796
|
+
return 1;
|
|
797
|
+
} else if (a === void 0) {
|
|
798
|
+
return -1;
|
|
799
|
+
} else if (a === b) {
|
|
800
|
+
continue;
|
|
801
|
+
} else {
|
|
802
|
+
return compareIdentifiers(a, b);
|
|
803
|
+
}
|
|
804
|
+
} while (++i);
|
|
805
|
+
}
|
|
806
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
807
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
808
|
+
inc(release, identifier, identifierBase) {
|
|
809
|
+
if (release.startsWith("pre")) {
|
|
810
|
+
if (!identifier && identifierBase === false) {
|
|
811
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
812
|
+
}
|
|
813
|
+
if (identifier) {
|
|
814
|
+
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
|
|
815
|
+
const match = `-${identifier}`.match(r);
|
|
816
|
+
if (!match || match[1] !== identifier) {
|
|
817
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
switch (release) {
|
|
822
|
+
case "premajor":
|
|
823
|
+
this.prerelease.length = 0;
|
|
824
|
+
this.patch = 0;
|
|
825
|
+
this.minor = 0;
|
|
826
|
+
this.major++;
|
|
827
|
+
this.inc("pre", identifier, identifierBase);
|
|
828
|
+
break;
|
|
829
|
+
case "preminor":
|
|
830
|
+
this.prerelease.length = 0;
|
|
831
|
+
this.patch = 0;
|
|
832
|
+
this.minor++;
|
|
833
|
+
this.inc("pre", identifier, identifierBase);
|
|
834
|
+
break;
|
|
835
|
+
case "prepatch":
|
|
836
|
+
this.prerelease.length = 0;
|
|
837
|
+
this.inc("patch", identifier, identifierBase);
|
|
838
|
+
this.inc("pre", identifier, identifierBase);
|
|
839
|
+
break;
|
|
840
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
841
|
+
// prepatch.
|
|
842
|
+
case "prerelease":
|
|
843
|
+
if (this.prerelease.length === 0) {
|
|
844
|
+
this.inc("patch", identifier, identifierBase);
|
|
845
|
+
}
|
|
846
|
+
this.inc("pre", identifier, identifierBase);
|
|
847
|
+
break;
|
|
848
|
+
case "release":
|
|
849
|
+
if (this.prerelease.length === 0) {
|
|
850
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
851
|
+
}
|
|
852
|
+
this.prerelease.length = 0;
|
|
853
|
+
break;
|
|
854
|
+
case "major":
|
|
855
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
856
|
+
this.major++;
|
|
857
|
+
}
|
|
858
|
+
this.minor = 0;
|
|
859
|
+
this.patch = 0;
|
|
860
|
+
this.prerelease = [];
|
|
861
|
+
break;
|
|
862
|
+
case "minor":
|
|
863
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
864
|
+
this.minor++;
|
|
865
|
+
}
|
|
866
|
+
this.patch = 0;
|
|
867
|
+
this.prerelease = [];
|
|
868
|
+
break;
|
|
869
|
+
case "patch":
|
|
870
|
+
if (this.prerelease.length === 0) {
|
|
871
|
+
this.patch++;
|
|
872
|
+
}
|
|
873
|
+
this.prerelease = [];
|
|
874
|
+
break;
|
|
875
|
+
// This probably shouldn't be used publicly.
|
|
876
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
877
|
+
case "pre": {
|
|
878
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
879
|
+
if (this.prerelease.length === 0) {
|
|
880
|
+
this.prerelease = [base];
|
|
881
|
+
} else {
|
|
882
|
+
let i = this.prerelease.length;
|
|
883
|
+
while (--i >= 0) {
|
|
884
|
+
if (typeof this.prerelease[i] === "number") {
|
|
885
|
+
this.prerelease[i]++;
|
|
886
|
+
i = -2;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
if (i === -1) {
|
|
890
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
891
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
892
|
+
}
|
|
893
|
+
this.prerelease.push(base);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
if (identifier) {
|
|
897
|
+
let prerelease = [identifier, base];
|
|
898
|
+
if (identifierBase === false) {
|
|
899
|
+
prerelease = [identifier];
|
|
900
|
+
}
|
|
901
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
902
|
+
if (isNaN(this.prerelease[1])) {
|
|
903
|
+
this.prerelease = prerelease;
|
|
904
|
+
}
|
|
905
|
+
} else {
|
|
906
|
+
this.prerelease = prerelease;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
default:
|
|
912
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
913
|
+
}
|
|
914
|
+
this.raw = this.format();
|
|
915
|
+
if (this.build.length) {
|
|
916
|
+
this.raw += `+${this.build.join(".")}`;
|
|
917
|
+
}
|
|
918
|
+
return this;
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
module.exports = SemVer;
|
|
922
|
+
}
|
|
923
|
+
});
|
|
924
|
+
|
|
925
|
+
// ../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/parse.js
|
|
926
|
+
var require_parse = __commonJS({
|
|
927
|
+
"../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/parse.js"(exports, module) {
|
|
928
|
+
init_cjs_shims();
|
|
929
|
+
var SemVer = require_semver();
|
|
930
|
+
var parse = (version, options, throwErrors = false) => {
|
|
931
|
+
if (version instanceof SemVer) {
|
|
932
|
+
return version;
|
|
933
|
+
}
|
|
934
|
+
try {
|
|
935
|
+
return new SemVer(version, options);
|
|
936
|
+
} catch (er) {
|
|
937
|
+
if (!throwErrors) {
|
|
938
|
+
return null;
|
|
939
|
+
}
|
|
940
|
+
throw er;
|
|
941
|
+
}
|
|
942
|
+
};
|
|
943
|
+
module.exports = parse;
|
|
944
|
+
}
|
|
945
|
+
});
|
|
946
|
+
|
|
947
|
+
// ../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/valid.js
|
|
948
|
+
var require_valid = __commonJS({
|
|
949
|
+
"../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/valid.js"(exports, module) {
|
|
950
|
+
init_cjs_shims();
|
|
951
|
+
var parse = require_parse();
|
|
952
|
+
var valid = (version, options) => {
|
|
953
|
+
const v = parse(version, options);
|
|
954
|
+
return v ? v.version : null;
|
|
955
|
+
};
|
|
956
|
+
module.exports = valid;
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
|
|
960
|
+
// ../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/clean.js
|
|
961
|
+
var require_clean = __commonJS({
|
|
962
|
+
"../../../../node_modules/.pnpm/semver@7.7.1/node_modules/semver/functions/clean.js"(exports, module) {
|
|
963
|
+
init_cjs_shims();
|
|
964
|
+
var parse = require_parse();
|
|
965
|
+
var clean = (version, options) => {
|
|
966
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
967
|
+
return s ? s.version : null;
|
|
968
|
+
};
|
|
969
|
+
module.exports = clean;
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
|
|
973
|
+
export {
|
|
974
|
+
require_constants,
|
|
975
|
+
require_debug,
|
|
976
|
+
require_re,
|
|
977
|
+
require_parse_options,
|
|
978
|
+
require_identifiers,
|
|
979
|
+
require_semver,
|
|
980
|
+
require_parse,
|
|
981
|
+
require_valid,
|
|
982
|
+
require_clean,
|
|
983
|
+
require_lib,
|
|
984
|
+
require_lib2
|
|
985
|
+
};
|