vercel 34.3.0 → 34.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1200 -464
- package/package.json +8 -8
package/dist/index.js
CHANGED
@@ -4073,14 +4073,14 @@ var require_templates = __commonJS2({
|
|
4073
4073
|
}
|
4074
4074
|
return results;
|
4075
4075
|
}
|
4076
|
-
function buildStyle(
|
4076
|
+
function buildStyle(chalk107, styles) {
|
4077
4077
|
const enabled = {};
|
4078
4078
|
for (const layer of styles) {
|
4079
4079
|
for (const style of layer.styles) {
|
4080
4080
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
4081
4081
|
}
|
4082
4082
|
}
|
4083
|
-
let current =
|
4083
|
+
let current = chalk107;
|
4084
4084
|
for (const [styleName, styles2] of Object.entries(enabled)) {
|
4085
4085
|
if (!Array.isArray(styles2)) {
|
4086
4086
|
continue;
|
@@ -4092,7 +4092,7 @@ var require_templates = __commonJS2({
|
|
4092
4092
|
}
|
4093
4093
|
return current;
|
4094
4094
|
}
|
4095
|
-
module2.exports = (
|
4095
|
+
module2.exports = (chalk107, temporary) => {
|
4096
4096
|
const styles = [];
|
4097
4097
|
const chunks = [];
|
4098
4098
|
let chunk = [];
|
@@ -4102,13 +4102,13 @@ var require_templates = __commonJS2({
|
|
4102
4102
|
} else if (style) {
|
4103
4103
|
const string = chunk.join("");
|
4104
4104
|
chunk = [];
|
4105
|
-
chunks.push(styles.length === 0 ? string : buildStyle(
|
4105
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk107, styles)(string));
|
4106
4106
|
styles.push({ inverse, styles: parseStyle(style) });
|
4107
4107
|
} else if (close2) {
|
4108
4108
|
if (styles.length === 0) {
|
4109
4109
|
throw new Error("Found extraneous } in Chalk template literal");
|
4110
4110
|
}
|
4111
|
-
chunks.push(buildStyle(
|
4111
|
+
chunks.push(buildStyle(chalk107, styles)(chunk.join("")));
|
4112
4112
|
chunk = [];
|
4113
4113
|
styles.pop();
|
4114
4114
|
} else {
|
@@ -4156,18 +4156,18 @@ var require_source = __commonJS2({
|
|
4156
4156
|
}
|
4157
4157
|
};
|
4158
4158
|
var chalkFactory = (options) => {
|
4159
|
-
const
|
4160
|
-
applyOptions(
|
4161
|
-
|
4162
|
-
Object.setPrototypeOf(
|
4163
|
-
Object.setPrototypeOf(
|
4164
|
-
|
4159
|
+
const chalk108 = {};
|
4160
|
+
applyOptions(chalk108, options);
|
4161
|
+
chalk108.template = (...arguments_) => chalkTag(chalk108.template, ...arguments_);
|
4162
|
+
Object.setPrototypeOf(chalk108, Chalk3.prototype);
|
4163
|
+
Object.setPrototypeOf(chalk108.template, chalk108);
|
4164
|
+
chalk108.template.constructor = () => {
|
4165
4165
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
4166
4166
|
};
|
4167
|
-
|
4168
|
-
return
|
4167
|
+
chalk108.template.Instance = ChalkClass;
|
4168
|
+
return chalk108.template;
|
4169
4169
|
};
|
4170
|
-
function
|
4170
|
+
function Chalk3(options) {
|
4171
4171
|
return chalkFactory(options);
|
4172
4172
|
}
|
4173
4173
|
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
@@ -4276,7 +4276,7 @@ var require_source = __commonJS2({
|
|
4276
4276
|
return openAll + string + closeAll;
|
4277
4277
|
};
|
4278
4278
|
var template;
|
4279
|
-
var chalkTag = (
|
4279
|
+
var chalkTag = (chalk108, ...strings) => {
|
4280
4280
|
const [firstString] = strings;
|
4281
4281
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
4282
4282
|
return strings.join(" ");
|
@@ -4292,14 +4292,14 @@ var require_source = __commonJS2({
|
|
4292
4292
|
if (template === void 0) {
|
4293
4293
|
template = require_templates();
|
4294
4294
|
}
|
4295
|
-
return template(
|
4295
|
+
return template(chalk108, parts.join(""));
|
4296
4296
|
};
|
4297
|
-
Object.defineProperties(
|
4298
|
-
var
|
4299
|
-
|
4300
|
-
|
4301
|
-
|
4302
|
-
module2.exports =
|
4297
|
+
Object.defineProperties(Chalk3.prototype, styles);
|
4298
|
+
var chalk107 = Chalk3();
|
4299
|
+
chalk107.supportsColor = stdoutColor;
|
4300
|
+
chalk107.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
|
4301
|
+
chalk107.stderr.supportsColor = stderrColor;
|
4302
|
+
module2.exports = chalk107;
|
4303
4303
|
}
|
4304
4304
|
});
|
4305
4305
|
|
@@ -4755,14 +4755,14 @@ var require_semver = __commonJS2({
|
|
4755
4755
|
return compare(b, a, loose);
|
4756
4756
|
}
|
4757
4757
|
exports2.sort = sort;
|
4758
|
-
function sort(
|
4759
|
-
return
|
4758
|
+
function sort(list6, loose) {
|
4759
|
+
return list6.sort(function(a, b) {
|
4760
4760
|
return exports2.compare(a, b, loose);
|
4761
4761
|
});
|
4762
4762
|
}
|
4763
4763
|
exports2.rsort = rsort;
|
4764
|
-
function rsort(
|
4765
|
-
return
|
4764
|
+
function rsort(list6, loose) {
|
4765
|
+
return list6.sort(function(a, b) {
|
4766
4766
|
return exports2.rcompare(a, b, loose);
|
4767
4767
|
});
|
4768
4768
|
}
|
@@ -10090,32 +10090,32 @@ var require_ms = __commonJS2({
|
|
10090
10090
|
return void 0;
|
10091
10091
|
}
|
10092
10092
|
}
|
10093
|
-
function fmtShort(
|
10094
|
-
if (
|
10095
|
-
return Math.round(
|
10093
|
+
function fmtShort(ms30) {
|
10094
|
+
if (ms30 >= d) {
|
10095
|
+
return Math.round(ms30 / d) + "d";
|
10096
10096
|
}
|
10097
|
-
if (
|
10098
|
-
return Math.round(
|
10097
|
+
if (ms30 >= h) {
|
10098
|
+
return Math.round(ms30 / h) + "h";
|
10099
10099
|
}
|
10100
|
-
if (
|
10101
|
-
return Math.round(
|
10100
|
+
if (ms30 >= m) {
|
10101
|
+
return Math.round(ms30 / m) + "m";
|
10102
10102
|
}
|
10103
|
-
if (
|
10104
|
-
return Math.round(
|
10103
|
+
if (ms30 >= s) {
|
10104
|
+
return Math.round(ms30 / s) + "s";
|
10105
10105
|
}
|
10106
|
-
return
|
10106
|
+
return ms30 + "ms";
|
10107
10107
|
}
|
10108
|
-
function fmtLong(
|
10109
|
-
return plural11(
|
10108
|
+
function fmtLong(ms30) {
|
10109
|
+
return plural11(ms30, d, "day") || plural11(ms30, h, "hour") || plural11(ms30, m, "minute") || plural11(ms30, s, "second") || ms30 + " ms";
|
10110
10110
|
}
|
10111
|
-
function plural11(
|
10112
|
-
if (
|
10111
|
+
function plural11(ms30, n, name) {
|
10112
|
+
if (ms30 < n) {
|
10113
10113
|
return;
|
10114
10114
|
}
|
10115
|
-
if (
|
10116
|
-
return Math.floor(
|
10115
|
+
if (ms30 < n * 1.5) {
|
10116
|
+
return Math.floor(ms30 / n) + " " + name;
|
10117
10117
|
}
|
10118
|
-
return Math.ceil(
|
10118
|
+
return Math.ceil(ms30 / n) + " " + name + "s";
|
10119
10119
|
}
|
10120
10120
|
}
|
10121
10121
|
});
|
@@ -10148,8 +10148,8 @@ var require_debug = __commonJS2({
|
|
10148
10148
|
return;
|
10149
10149
|
var self2 = debug3;
|
10150
10150
|
var curr = +/* @__PURE__ */ new Date();
|
10151
|
-
var
|
10152
|
-
self2.diff =
|
10151
|
+
var ms30 = curr - (prevTime || curr);
|
10152
|
+
self2.diff = ms30;
|
10153
10153
|
self2.prev = prevTime;
|
10154
10154
|
self2.curr = curr;
|
10155
10155
|
prevTime = curr;
|
@@ -13478,14 +13478,14 @@ var require_templates2 = __commonJS2({
|
|
13478
13478
|
}
|
13479
13479
|
return results;
|
13480
13480
|
}
|
13481
|
-
function buildStyle(
|
13481
|
+
function buildStyle(chalk107, styles) {
|
13482
13482
|
const enabled = {};
|
13483
13483
|
for (const layer of styles) {
|
13484
13484
|
for (const style of layer.styles) {
|
13485
13485
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
13486
13486
|
}
|
13487
13487
|
}
|
13488
|
-
let current =
|
13488
|
+
let current = chalk107;
|
13489
13489
|
for (const styleName of Object.keys(enabled)) {
|
13490
13490
|
if (Array.isArray(enabled[styleName])) {
|
13491
13491
|
if (!(styleName in current)) {
|
@@ -13500,7 +13500,7 @@ var require_templates2 = __commonJS2({
|
|
13500
13500
|
}
|
13501
13501
|
return current;
|
13502
13502
|
}
|
13503
|
-
module2.exports = (
|
13503
|
+
module2.exports = (chalk107, tmp) => {
|
13504
13504
|
const styles = [];
|
13505
13505
|
const chunks = [];
|
13506
13506
|
let chunk = [];
|
@@ -13510,13 +13510,13 @@ var require_templates2 = __commonJS2({
|
|
13510
13510
|
} else if (style) {
|
13511
13511
|
const str = chunk.join("");
|
13512
13512
|
chunk = [];
|
13513
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
13513
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk107, styles)(str));
|
13514
13514
|
styles.push({ inverse, styles: parseStyle(style) });
|
13515
13515
|
} else if (close2) {
|
13516
13516
|
if (styles.length === 0) {
|
13517
13517
|
throw new Error("Found extraneous } in Chalk template literal");
|
13518
13518
|
}
|
13519
|
-
chunks.push(buildStyle(
|
13519
|
+
chunks.push(buildStyle(chalk107, styles)(chunk.join("")));
|
13520
13520
|
chunk = [];
|
13521
13521
|
styles.pop();
|
13522
13522
|
} else {
|
@@ -13551,18 +13551,18 @@ var require_chalk = __commonJS2({
|
|
13551
13551
|
obj.level = options.level === void 0 ? scLevel : options.level;
|
13552
13552
|
obj.enabled = "enabled" in options ? options.enabled : obj.level > 0;
|
13553
13553
|
}
|
13554
|
-
function
|
13555
|
-
if (!this || !(this instanceof
|
13556
|
-
const
|
13557
|
-
applyOptions(
|
13558
|
-
|
13554
|
+
function Chalk3(options) {
|
13555
|
+
if (!this || !(this instanceof Chalk3) || this.template) {
|
13556
|
+
const chalk107 = {};
|
13557
|
+
applyOptions(chalk107, options);
|
13558
|
+
chalk107.template = function() {
|
13559
13559
|
const args2 = [].slice.call(arguments);
|
13560
|
-
return chalkTag.apply(null, [
|
13560
|
+
return chalkTag.apply(null, [chalk107.template].concat(args2));
|
13561
13561
|
};
|
13562
|
-
Object.setPrototypeOf(
|
13563
|
-
Object.setPrototypeOf(
|
13564
|
-
|
13565
|
-
return
|
13562
|
+
Object.setPrototypeOf(chalk107, Chalk3.prototype);
|
13563
|
+
Object.setPrototypeOf(chalk107.template, chalk107);
|
13564
|
+
chalk107.template.constructor = Chalk3;
|
13565
|
+
return chalk107.template;
|
13566
13566
|
}
|
13567
13567
|
applyOptions(this, options);
|
13568
13568
|
}
|
@@ -13681,7 +13681,7 @@ var require_chalk = __commonJS2({
|
|
13681
13681
|
ansiStyles.dim.open = originalDim;
|
13682
13682
|
return str;
|
13683
13683
|
}
|
13684
|
-
function chalkTag(
|
13684
|
+
function chalkTag(chalk107, strings) {
|
13685
13685
|
if (!Array.isArray(strings)) {
|
13686
13686
|
return [].slice.call(arguments, 1).join(" ");
|
13687
13687
|
}
|
@@ -13691,10 +13691,10 @@ var require_chalk = __commonJS2({
|
|
13691
13691
|
parts.push(String(args2[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
13692
13692
|
parts.push(String(strings.raw[i]));
|
13693
13693
|
}
|
13694
|
-
return template(
|
13694
|
+
return template(chalk107, parts.join(""));
|
13695
13695
|
}
|
13696
|
-
Object.defineProperties(
|
13697
|
-
module2.exports =
|
13696
|
+
Object.defineProperties(Chalk3.prototype, styles);
|
13697
|
+
module2.exports = Chalk3();
|
13698
13698
|
module2.exports.supportsColor = stdoutColor;
|
13699
13699
|
module2.exports.default = module2.exports;
|
13700
13700
|
}
|
@@ -15488,21 +15488,21 @@ var require_cli_spinners = __commonJS2({
|
|
15488
15488
|
var require_log_symbols = __commonJS2({
|
15489
15489
|
"../../node_modules/.pnpm/log-symbols@2.2.0/node_modules/log-symbols/index.js"(exports2, module2) {
|
15490
15490
|
"use strict";
|
15491
|
-
var
|
15491
|
+
var chalk107 = require_chalk();
|
15492
15492
|
var isSupported = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color";
|
15493
|
-
var
|
15494
|
-
info:
|
15495
|
-
success:
|
15496
|
-
warning:
|
15497
|
-
error:
|
15493
|
+
var main15 = {
|
15494
|
+
info: chalk107.blue("\u2139"),
|
15495
|
+
success: chalk107.green("\u2714"),
|
15496
|
+
warning: chalk107.yellow("\u26A0"),
|
15497
|
+
error: chalk107.red("\u2716")
|
15498
15498
|
};
|
15499
15499
|
var fallbacks = {
|
15500
|
-
info:
|
15501
|
-
success:
|
15502
|
-
warning:
|
15503
|
-
error:
|
15500
|
+
info: chalk107.blue("i"),
|
15501
|
+
success: chalk107.green("\u221A"),
|
15502
|
+
warning: chalk107.yellow("\u203C"),
|
15503
|
+
error: chalk107.red("\xD7")
|
15504
15504
|
};
|
15505
|
-
module2.exports = isSupported ?
|
15505
|
+
module2.exports = isSupported ? main15 : fallbacks;
|
15506
15506
|
}
|
15507
15507
|
});
|
15508
15508
|
|
@@ -15896,7 +15896,7 @@ var require_wcwidth = __commonJS2({
|
|
15896
15896
|
var require_ora = __commonJS2({
|
15897
15897
|
"../../node_modules/.pnpm/ora@3.4.0/node_modules/ora/index.js"(exports2, module2) {
|
15898
15898
|
"use strict";
|
15899
|
-
var
|
15899
|
+
var chalk107 = require_chalk();
|
15900
15900
|
var cliCursor = require_cli_cursor();
|
15901
15901
|
var cliSpinners = require_cli_spinners();
|
15902
15902
|
var logSymbols = require_log_symbols();
|
@@ -15985,7 +15985,7 @@ var require_ora = __commonJS2({
|
|
15985
15985
|
const { frames } = this.spinner;
|
15986
15986
|
let frame = frames[this.frameIndex];
|
15987
15987
|
if (this.color) {
|
15988
|
-
frame =
|
15988
|
+
frame = chalk107[this.color](frame);
|
15989
15989
|
}
|
15990
15990
|
this.frameIndex = ++this.frameIndex % frames.length;
|
15991
15991
|
const fullPrefixText = typeof this.prefixText === "string" ? this.prefixText + " " : "";
|
@@ -19613,7 +19613,7 @@ var require_jsbn = __commonJS2({
|
|
19613
19613
|
}
|
19614
19614
|
if (r == null)
|
19615
19615
|
r = nbi();
|
19616
|
-
var y = nbi(), ts = this.s,
|
19616
|
+
var y = nbi(), ts = this.s, ms30 = m.s;
|
19617
19617
|
var nsh = this.DB - nbits(pm[pm.t - 1]);
|
19618
19618
|
if (nsh > 0) {
|
19619
19619
|
pm.lShiftTo(nsh, y);
|
@@ -19649,7 +19649,7 @@ var require_jsbn = __commonJS2({
|
|
19649
19649
|
}
|
19650
19650
|
if (q2 != null) {
|
19651
19651
|
r.drShiftTo(ys, q2);
|
19652
|
-
if (ts !=
|
19652
|
+
if (ts != ms30)
|
19653
19653
|
BigInteger.ZERO.subTo(q2, q2);
|
19654
19654
|
}
|
19655
19655
|
r.t = ys;
|
@@ -40752,9 +40752,9 @@ var require_iterate = __commonJS2({
|
|
40752
40752
|
var async = require_async2();
|
40753
40753
|
var abort = require_abort();
|
40754
40754
|
module2.exports = iterate;
|
40755
|
-
function iterate(
|
40755
|
+
function iterate(list6, iterator, state, callback) {
|
40756
40756
|
var key = state["keyedList"] ? state["keyedList"][state.index] : state.index;
|
40757
|
-
state.jobs[key] = runJob(iterator, key,
|
40757
|
+
state.jobs[key] = runJob(iterator, key, list6[key], function(error5, output2) {
|
40758
40758
|
if (!(key in state.jobs)) {
|
40759
40759
|
return;
|
40760
40760
|
}
|
@@ -40783,17 +40783,17 @@ var require_iterate = __commonJS2({
|
|
40783
40783
|
var require_state = __commonJS2({
|
40784
40784
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js"(exports2, module2) {
|
40785
40785
|
module2.exports = state;
|
40786
|
-
function state(
|
40787
|
-
var isNamedList = !Array.isArray(
|
40786
|
+
function state(list6, sortMethod) {
|
40787
|
+
var isNamedList = !Array.isArray(list6), initState = {
|
40788
40788
|
index: 0,
|
40789
|
-
keyedList: isNamedList || sortMethod ? Object.keys(
|
40789
|
+
keyedList: isNamedList || sortMethod ? Object.keys(list6) : null,
|
40790
40790
|
jobs: {},
|
40791
40791
|
results: isNamedList ? {} : [],
|
40792
|
-
size: isNamedList ? Object.keys(
|
40792
|
+
size: isNamedList ? Object.keys(list6).length : list6.length
|
40793
40793
|
};
|
40794
40794
|
if (sortMethod) {
|
40795
40795
|
initState.keyedList.sort(isNamedList ? sortMethod : function(a, b) {
|
40796
|
-
return sortMethod(
|
40796
|
+
return sortMethod(list6[a], list6[b]);
|
40797
40797
|
});
|
40798
40798
|
}
|
40799
40799
|
return initState;
|
@@ -40825,10 +40825,10 @@ var require_parallel = __commonJS2({
|
|
40825
40825
|
var initState = require_state();
|
40826
40826
|
var terminator = require_terminator();
|
40827
40827
|
module2.exports = parallel;
|
40828
|
-
function parallel(
|
40829
|
-
var state = initState(
|
40830
|
-
while (state.index < (state["keyedList"] ||
|
40831
|
-
iterate(
|
40828
|
+
function parallel(list6, iterator, callback) {
|
40829
|
+
var state = initState(list6);
|
40830
|
+
while (state.index < (state["keyedList"] || list6).length) {
|
40831
|
+
iterate(list6, iterator, state, function(error5, result) {
|
40832
40832
|
if (error5) {
|
40833
40833
|
callback(error5, result);
|
40834
40834
|
return;
|
@@ -40854,16 +40854,16 @@ var require_serialOrdered = __commonJS2({
|
|
40854
40854
|
module2.exports = serialOrdered;
|
40855
40855
|
module2.exports.ascending = ascending;
|
40856
40856
|
module2.exports.descending = descending;
|
40857
|
-
function serialOrdered(
|
40858
|
-
var state = initState(
|
40859
|
-
iterate(
|
40857
|
+
function serialOrdered(list6, iterator, sortMethod, callback) {
|
40858
|
+
var state = initState(list6, sortMethod);
|
40859
|
+
iterate(list6, iterator, state, function iteratorHandler(error5, result) {
|
40860
40860
|
if (error5) {
|
40861
40861
|
callback(error5, result);
|
40862
40862
|
return;
|
40863
40863
|
}
|
40864
40864
|
state.index++;
|
40865
|
-
if (state.index < (state["keyedList"] ||
|
40866
|
-
iterate(
|
40865
|
+
if (state.index < (state["keyedList"] || list6).length) {
|
40866
|
+
iterate(list6, iterator, state, iteratorHandler);
|
40867
40867
|
return;
|
40868
40868
|
}
|
40869
40869
|
callback(null, state.results);
|
@@ -40884,8 +40884,8 @@ var require_serial = __commonJS2({
|
|
40884
40884
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js"(exports2, module2) {
|
40885
40885
|
var serialOrdered = require_serialOrdered();
|
40886
40886
|
module2.exports = serial;
|
40887
|
-
function serial(
|
40888
|
-
return serialOrdered(
|
40887
|
+
function serial(list6, iterator, callback) {
|
40888
|
+
return serialOrdered(list6, iterator, null, callback);
|
40889
40889
|
}
|
40890
40890
|
}
|
40891
40891
|
});
|
@@ -54939,7 +54939,7 @@ var require_write_json_file = __commonJS2({
|
|
54939
54939
|
};
|
54940
54940
|
var readFile6 = (fp) => pify(fs15.readFile)(fp, "utf8").catch(() => {
|
54941
54941
|
});
|
54942
|
-
var
|
54942
|
+
var main15 = (fp, data, opts) => {
|
54943
54943
|
return (opts.detectIndent ? readFile6(fp) : Promise.resolve()).then((str) => {
|
54944
54944
|
const indent = str ? detectIndent(str).indent : opts.indent;
|
54945
54945
|
const json = JSON.stringify(data, opts.replacer, indent);
|
@@ -54964,7 +54964,7 @@ var require_write_json_file = __commonJS2({
|
|
54964
54964
|
`, { mode: opts.mode });
|
54965
54965
|
};
|
54966
54966
|
module2.exports = (fp, data, opts) => {
|
54967
|
-
return makeDir(path11.dirname(fp), { fs: fs15 }).then(() => init3(
|
54967
|
+
return makeDir(path11.dirname(fp), { fs: fs15 }).then(() => init3(main15, fp, data, opts));
|
54968
54968
|
};
|
54969
54969
|
module2.exports.sync = (fp, data, opts) => {
|
54970
54970
|
makeDir.sync(path11.dirname(fp), { fs: fs15 });
|
@@ -60793,41 +60793,41 @@ var require_ms2 = __commonJS2({
|
|
60793
60793
|
return void 0;
|
60794
60794
|
}
|
60795
60795
|
}
|
60796
|
-
function fmtShort(
|
60797
|
-
var msAbs = Math.abs(
|
60796
|
+
function fmtShort(ms30) {
|
60797
|
+
var msAbs = Math.abs(ms30);
|
60798
60798
|
if (msAbs >= d) {
|
60799
|
-
return Math.round(
|
60799
|
+
return Math.round(ms30 / d) + "d";
|
60800
60800
|
}
|
60801
60801
|
if (msAbs >= h) {
|
60802
|
-
return Math.round(
|
60802
|
+
return Math.round(ms30 / h) + "h";
|
60803
60803
|
}
|
60804
60804
|
if (msAbs >= m) {
|
60805
|
-
return Math.round(
|
60805
|
+
return Math.round(ms30 / m) + "m";
|
60806
60806
|
}
|
60807
60807
|
if (msAbs >= s) {
|
60808
|
-
return Math.round(
|
60808
|
+
return Math.round(ms30 / s) + "s";
|
60809
60809
|
}
|
60810
|
-
return
|
60810
|
+
return ms30 + "ms";
|
60811
60811
|
}
|
60812
|
-
function fmtLong(
|
60813
|
-
var msAbs = Math.abs(
|
60812
|
+
function fmtLong(ms30) {
|
60813
|
+
var msAbs = Math.abs(ms30);
|
60814
60814
|
if (msAbs >= d) {
|
60815
|
-
return plural11(
|
60815
|
+
return plural11(ms30, msAbs, d, "day");
|
60816
60816
|
}
|
60817
60817
|
if (msAbs >= h) {
|
60818
|
-
return plural11(
|
60818
|
+
return plural11(ms30, msAbs, h, "hour");
|
60819
60819
|
}
|
60820
60820
|
if (msAbs >= m) {
|
60821
|
-
return plural11(
|
60821
|
+
return plural11(ms30, msAbs, m, "minute");
|
60822
60822
|
}
|
60823
60823
|
if (msAbs >= s) {
|
60824
|
-
return plural11(
|
60824
|
+
return plural11(ms30, msAbs, s, "second");
|
60825
60825
|
}
|
60826
|
-
return
|
60826
|
+
return ms30 + " ms";
|
60827
60827
|
}
|
60828
|
-
function plural11(
|
60828
|
+
function plural11(ms30, msAbs, n, name) {
|
60829
60829
|
var isPlural = msAbs >= n * 1.5;
|
60830
|
-
return Math.round(
|
60830
|
+
return Math.round(ms30 / n) + " " + name + (isPlural ? "s" : "");
|
60831
60831
|
}
|
60832
60832
|
}
|
60833
60833
|
});
|
@@ -60837,11 +60837,11 @@ var require_humanize_ms = __commonJS2({
|
|
60837
60837
|
"../../node_modules/.pnpm/humanize-ms@1.2.1/node_modules/humanize-ms/index.js"(exports2, module2) {
|
60838
60838
|
"use strict";
|
60839
60839
|
var util = require("util");
|
60840
|
-
var
|
60840
|
+
var ms30 = require_ms2();
|
60841
60841
|
module2.exports = function(t) {
|
60842
60842
|
if (typeof t === "number")
|
60843
60843
|
return t;
|
60844
|
-
var r =
|
60844
|
+
var r = ms30(t);
|
60845
60845
|
if (r === void 0) {
|
60846
60846
|
var err = new Error(util.format("humanize-ms(%j) result undefined", t));
|
60847
60847
|
console.warn(err.stack);
|
@@ -60856,7 +60856,7 @@ var require_agent = __commonJS2({
|
|
60856
60856
|
"../../node_modules/.pnpm/agentkeepalive@3.4.1/node_modules/agentkeepalive/lib/agent.js"(exports2, module2) {
|
60857
60857
|
"use strict";
|
60858
60858
|
var OriginalAgent = require_http_agent().Agent;
|
60859
|
-
var
|
60859
|
+
var ms30 = require_humanize_ms();
|
60860
60860
|
var Agent = class extends OriginalAgent {
|
60861
60861
|
constructor(options) {
|
60862
60862
|
options = options || {};
|
@@ -60867,14 +60867,14 @@ var require_agent = __commonJS2({
|
|
60867
60867
|
if (options.keepAliveTimeout) {
|
60868
60868
|
options.freeSocketKeepAliveTimeout = options.keepAliveTimeout;
|
60869
60869
|
}
|
60870
|
-
options.freeSocketKeepAliveTimeout =
|
60870
|
+
options.freeSocketKeepAliveTimeout = ms30(options.freeSocketKeepAliveTimeout);
|
60871
60871
|
if (options.timeout === void 0) {
|
60872
60872
|
options.timeout = options.freeSocketKeepAliveTimeout * 2;
|
60873
60873
|
if (options.timeout < 3e4) {
|
60874
60874
|
options.timeout = 3e4;
|
60875
60875
|
}
|
60876
60876
|
}
|
60877
|
-
options.timeout =
|
60877
|
+
options.timeout = ms30(options.timeout);
|
60878
60878
|
super(options);
|
60879
60879
|
this.createSocketCount = 0;
|
60880
60880
|
this.createSocketCountLastCheck = 0;
|
@@ -61352,7 +61352,7 @@ var require_yallist = __commonJS2({
|
|
61352
61352
|
module2.exports = Yallist;
|
61353
61353
|
Yallist.Node = Node;
|
61354
61354
|
Yallist.create = Yallist;
|
61355
|
-
function Yallist(
|
61355
|
+
function Yallist(list6) {
|
61356
61356
|
var self2 = this;
|
61357
61357
|
if (!(self2 instanceof Yallist)) {
|
61358
61358
|
self2 = new Yallist();
|
@@ -61360,8 +61360,8 @@ var require_yallist = __commonJS2({
|
|
61360
61360
|
self2.tail = null;
|
61361
61361
|
self2.head = null;
|
61362
61362
|
self2.length = 0;
|
61363
|
-
if (
|
61364
|
-
|
61363
|
+
if (list6 && typeof list6.forEach === "function") {
|
61364
|
+
list6.forEach(function(item) {
|
61365
61365
|
self2.push(item);
|
61366
61366
|
});
|
61367
61367
|
} else if (arguments.length > 0) {
|
@@ -61688,11 +61688,11 @@ var require_yallist = __commonJS2({
|
|
61688
61688
|
}
|
61689
61689
|
self2.length++;
|
61690
61690
|
}
|
61691
|
-
function Node(value, prev, next,
|
61691
|
+
function Node(value, prev, next, list6) {
|
61692
61692
|
if (!(this instanceof Node)) {
|
61693
|
-
return new Node(value, prev, next,
|
61693
|
+
return new Node(value, prev, next, list6);
|
61694
61694
|
}
|
61695
|
-
this.list =
|
61695
|
+
this.list = list6;
|
61696
61696
|
this.value = value;
|
61697
61697
|
if (prev) {
|
61698
61698
|
prev.next = this;
|
@@ -62540,7 +62540,7 @@ var require_package = __commonJS2({
|
|
62540
62540
|
"../client/package.json"(exports2, module2) {
|
62541
62541
|
module2.exports = {
|
62542
62542
|
name: "@vercel/client",
|
62543
|
-
version: "13.
|
62543
|
+
version: "13.3.0",
|
62544
62544
|
main: "dist/index.js",
|
62545
62545
|
typings: "dist/index.d.ts",
|
62546
62546
|
homepage: "https://vercel.com",
|
@@ -62577,7 +62577,7 @@ var require_package = __commonJS2({
|
|
62577
62577
|
typescript: "4.9.5"
|
62578
62578
|
},
|
62579
62579
|
dependencies: {
|
62580
|
-
"@vercel/build-utils": "8.3.
|
62580
|
+
"@vercel/build-utils": "8.3.2",
|
62581
62581
|
"@vercel/error-utils": "2.0.2",
|
62582
62582
|
"@vercel/routing-utils": "3.1.0",
|
62583
62583
|
"@zeit/fetch": "5.2.0",
|
@@ -62880,7 +62880,7 @@ var require_minimatch = __commonJS2({
|
|
62880
62880
|
var reSpecials = charSet("().*{}+?[]^$\\!");
|
62881
62881
|
var addPatternStartSet = charSet("[.(");
|
62882
62882
|
var slashSplit = /\/+/;
|
62883
|
-
minimatch5.filter = (pattern, options = {}) => (p, i,
|
62883
|
+
minimatch5.filter = (pattern, options = {}) => (p, i, list6) => minimatch5(p, pattern, options);
|
62884
62884
|
var ext = (a, b = {}) => {
|
62885
62885
|
const t = {};
|
62886
62886
|
Object.keys(a).forEach((k) => t[k] = a[k]);
|
@@ -62903,7 +62903,7 @@ var require_minimatch = __commonJS2({
|
|
62903
62903
|
m.defaults = (options) => orig.defaults(ext(def, options));
|
62904
62904
|
m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options));
|
62905
62905
|
m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options));
|
62906
|
-
m.match = (
|
62906
|
+
m.match = (list6, pattern, options) => orig.match(list6, pattern, ext(def, options));
|
62907
62907
|
return m;
|
62908
62908
|
};
|
62909
62909
|
minimatch5.braceExpand = (pattern, options) => braceExpand(pattern, options);
|
@@ -62925,13 +62925,13 @@ var require_minimatch = __commonJS2({
|
|
62925
62925
|
};
|
62926
62926
|
var SUBPARSE = Symbol("subparse");
|
62927
62927
|
minimatch5.makeRe = (pattern, options) => new Minimatch(pattern, options || {}).makeRe();
|
62928
|
-
minimatch5.match = (
|
62928
|
+
minimatch5.match = (list6, pattern, options = {}) => {
|
62929
62929
|
const mm = new Minimatch(pattern, options);
|
62930
|
-
|
62931
|
-
if (mm.options.nonull && !
|
62932
|
-
|
62930
|
+
list6 = list6.filter((f) => mm.match(f));
|
62931
|
+
if (mm.options.nonull && !list6.length) {
|
62932
|
+
list6.push(pattern);
|
62933
62933
|
}
|
62934
|
-
return
|
62934
|
+
return list6;
|
62935
62935
|
};
|
62936
62936
|
var globUnescape = (s) => s.replace(/\\(.)/g, "$1");
|
62937
62937
|
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
@@ -63443,7 +63443,7 @@ var require_readdir_recursive = __commonJS2({
|
|
63443
63443
|
}
|
63444
63444
|
function readdir2(path11, ignores) {
|
63445
63445
|
ignores = ignores.map(toMatcherFunction);
|
63446
|
-
let
|
63446
|
+
let list6 = [];
|
63447
63447
|
return new Promise(function(resolve12, reject) {
|
63448
63448
|
import_fs10.default.readdir(path11, function(err, files) {
|
63449
63449
|
if (err) {
|
@@ -63451,7 +63451,7 @@ var require_readdir_recursive = __commonJS2({
|
|
63451
63451
|
}
|
63452
63452
|
let pending = files.length;
|
63453
63453
|
if (!pending) {
|
63454
|
-
return resolve12(
|
63454
|
+
return resolve12(list6);
|
63455
63455
|
}
|
63456
63456
|
files.forEach(function(file) {
|
63457
63457
|
const filePath = import_path44.default.join(path11, file);
|
@@ -63463,26 +63463,26 @@ var require_readdir_recursive = __commonJS2({
|
|
63463
63463
|
if (matches) {
|
63464
63464
|
pending -= 1;
|
63465
63465
|
if (!pending) {
|
63466
|
-
return resolve12(
|
63466
|
+
return resolve12(list6);
|
63467
63467
|
}
|
63468
63468
|
return null;
|
63469
63469
|
}
|
63470
63470
|
if (stats.isDirectory()) {
|
63471
63471
|
readdir2(filePath, ignores).then(function(res) {
|
63472
63472
|
if (res.length === 0) {
|
63473
|
-
|
63473
|
+
list6.push(filePath);
|
63474
63474
|
}
|
63475
|
-
|
63475
|
+
list6 = list6.concat(res);
|
63476
63476
|
pending -= 1;
|
63477
63477
|
if (!pending) {
|
63478
|
-
return resolve12(
|
63478
|
+
return resolve12(list6);
|
63479
63479
|
}
|
63480
63480
|
}).catch(reject);
|
63481
63481
|
} else {
|
63482
|
-
|
63482
|
+
list6.push(filePath);
|
63483
63483
|
pending -= 1;
|
63484
63484
|
if (!pending) {
|
63485
|
-
return resolve12(
|
63485
|
+
return resolve12(list6);
|
63486
63486
|
}
|
63487
63487
|
}
|
63488
63488
|
});
|
@@ -63983,18 +63983,18 @@ var require_get_polling_delay = __commonJS2({
|
|
63983
63983
|
getPollingDelay: () => getPollingDelay
|
63984
63984
|
});
|
63985
63985
|
module2.exports = __toCommonJS4(get_polling_delay_exports);
|
63986
|
-
var
|
63986
|
+
var import_ms30 = __toESM4(require_ms2());
|
63987
63987
|
function getPollingDelay(elapsed2) {
|
63988
|
-
if (elapsed2 <= (0,
|
63989
|
-
return (0,
|
63988
|
+
if (elapsed2 <= (0, import_ms30.default)("15s")) {
|
63989
|
+
return (0, import_ms30.default)("1s");
|
63990
63990
|
}
|
63991
|
-
if (elapsed2 <= (0,
|
63992
|
-
return (0,
|
63991
|
+
if (elapsed2 <= (0, import_ms30.default)("1m")) {
|
63992
|
+
return (0, import_ms30.default)("5s");
|
63993
63993
|
}
|
63994
|
-
if (elapsed2 <= (0,
|
63995
|
-
return (0,
|
63994
|
+
if (elapsed2 <= (0, import_ms30.default)("5m")) {
|
63995
|
+
return (0, import_ms30.default)("15s");
|
63996
63996
|
}
|
63997
|
-
return (0,
|
63997
|
+
return (0, import_ms30.default)("30s");
|
63998
63998
|
}
|
63999
63999
|
}
|
64000
64000
|
});
|
@@ -64172,6 +64172,13 @@ var require_deploy = __commonJS2({
|
|
64172
64172
|
if (deploymentOptions?.builds && !deploymentOptions.functions) {
|
64173
64173
|
clientOptions.skipAutoDetectionConfirmation = true;
|
64174
64174
|
}
|
64175
|
+
if (deploymentOptions.target === "preview") {
|
64176
|
+
deploymentOptions.target = void 0;
|
64177
|
+
}
|
64178
|
+
if (deploymentOptions.target && deploymentOptions.target !== "production") {
|
64179
|
+
deploymentOptions.customEnvironmentSlugOrId = deploymentOptions.target;
|
64180
|
+
deploymentOptions.target = void 0;
|
64181
|
+
}
|
64175
64182
|
debug3("Sending deployment creation API request");
|
64176
64183
|
try {
|
64177
64184
|
const response = await (0, import_utils4.fetch)(
|
@@ -66521,20 +66528,20 @@ var require_stream_readable = __commonJS2({
|
|
66521
66528
|
}
|
66522
66529
|
return ret;
|
66523
66530
|
}
|
66524
|
-
function fromListPartial(n,
|
66531
|
+
function fromListPartial(n, list6, hasStrings) {
|
66525
66532
|
var ret;
|
66526
|
-
if (n <
|
66527
|
-
ret =
|
66528
|
-
|
66529
|
-
} else if (n ===
|
66530
|
-
ret =
|
66533
|
+
if (n < list6.head.data.length) {
|
66534
|
+
ret = list6.head.data.slice(0, n);
|
66535
|
+
list6.head.data = list6.head.data.slice(n);
|
66536
|
+
} else if (n === list6.head.data.length) {
|
66537
|
+
ret = list6.shift();
|
66531
66538
|
} else {
|
66532
|
-
ret = hasStrings ? copyFromBufferString(n,
|
66539
|
+
ret = hasStrings ? copyFromBufferString(n, list6) : copyFromBuffer(n, list6);
|
66533
66540
|
}
|
66534
66541
|
return ret;
|
66535
66542
|
}
|
66536
|
-
function copyFromBufferString(n,
|
66537
|
-
var p =
|
66543
|
+
function copyFromBufferString(n, list6) {
|
66544
|
+
var p = list6.head;
|
66538
66545
|
var c = 1;
|
66539
66546
|
var ret = p.data;
|
66540
66547
|
n -= ret.length;
|
@@ -66550,23 +66557,23 @@ var require_stream_readable = __commonJS2({
|
|
66550
66557
|
if (nb === str.length) {
|
66551
66558
|
++c;
|
66552
66559
|
if (p.next)
|
66553
|
-
|
66560
|
+
list6.head = p.next;
|
66554
66561
|
else
|
66555
|
-
|
66562
|
+
list6.head = list6.tail = null;
|
66556
66563
|
} else {
|
66557
|
-
|
66564
|
+
list6.head = p;
|
66558
66565
|
p.data = str.slice(nb);
|
66559
66566
|
}
|
66560
66567
|
break;
|
66561
66568
|
}
|
66562
66569
|
++c;
|
66563
66570
|
}
|
66564
|
-
|
66571
|
+
list6.length -= c;
|
66565
66572
|
return ret;
|
66566
66573
|
}
|
66567
|
-
function copyFromBuffer(n,
|
66574
|
+
function copyFromBuffer(n, list6) {
|
66568
66575
|
var ret = Buffer2.allocUnsafe(n);
|
66569
|
-
var p =
|
66576
|
+
var p = list6.head;
|
66570
66577
|
var c = 1;
|
66571
66578
|
p.data.copy(ret);
|
66572
66579
|
n -= p.data.length;
|
@@ -66579,18 +66586,18 @@ var require_stream_readable = __commonJS2({
|
|
66579
66586
|
if (nb === buf.length) {
|
66580
66587
|
++c;
|
66581
66588
|
if (p.next)
|
66582
|
-
|
66589
|
+
list6.head = p.next;
|
66583
66590
|
else
|
66584
|
-
|
66591
|
+
list6.head = list6.tail = null;
|
66585
66592
|
} else {
|
66586
|
-
|
66593
|
+
list6.head = p;
|
66587
66594
|
p.data = buf.slice(nb);
|
66588
66595
|
}
|
66589
66596
|
break;
|
66590
66597
|
}
|
66591
66598
|
++c;
|
66592
66599
|
}
|
66593
|
-
|
66600
|
+
list6.length -= c;
|
66594
66601
|
return ret;
|
66595
66602
|
}
|
66596
66603
|
function endReadable(stream) {
|
@@ -68409,8 +68416,8 @@ var require_tar_fs = __commonJS2({
|
|
68409
68416
|
onnextentry();
|
68410
68417
|
return pack;
|
68411
68418
|
};
|
68412
|
-
var head = function(
|
68413
|
-
return
|
68419
|
+
var head = function(list6) {
|
68420
|
+
return list6.length ? list6[list6.length - 1] : null;
|
68414
68421
|
};
|
68415
68422
|
var processGetuid = function() {
|
68416
68423
|
return process.getuid ? process.getuid() : -1;
|
@@ -70622,14 +70629,14 @@ var require_templates3 = __commonJS2({
|
|
70622
70629
|
}
|
70623
70630
|
return results;
|
70624
70631
|
}
|
70625
|
-
function buildStyle(
|
70632
|
+
function buildStyle(chalk107, styles) {
|
70626
70633
|
const enabled = {};
|
70627
70634
|
for (const layer of styles) {
|
70628
70635
|
for (const style of layer.styles) {
|
70629
70636
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
70630
70637
|
}
|
70631
70638
|
}
|
70632
|
-
let current =
|
70639
|
+
let current = chalk107;
|
70633
70640
|
for (const [styleName, styles2] of Object.entries(enabled)) {
|
70634
70641
|
if (!Array.isArray(styles2)) {
|
70635
70642
|
continue;
|
@@ -70641,7 +70648,7 @@ var require_templates3 = __commonJS2({
|
|
70641
70648
|
}
|
70642
70649
|
return current;
|
70643
70650
|
}
|
70644
|
-
module2.exports = (
|
70651
|
+
module2.exports = (chalk107, temporary) => {
|
70645
70652
|
const styles = [];
|
70646
70653
|
const chunks = [];
|
70647
70654
|
let chunk = [];
|
@@ -70651,13 +70658,13 @@ var require_templates3 = __commonJS2({
|
|
70651
70658
|
} else if (style) {
|
70652
70659
|
const string = chunk.join("");
|
70653
70660
|
chunk = [];
|
70654
|
-
chunks.push(styles.length === 0 ? string : buildStyle(
|
70661
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk107, styles)(string));
|
70655
70662
|
styles.push({ inverse, styles: parseStyle(style) });
|
70656
70663
|
} else if (close2) {
|
70657
70664
|
if (styles.length === 0) {
|
70658
70665
|
throw new Error("Found extraneous } in Chalk template literal");
|
70659
70666
|
}
|
70660
|
-
chunks.push(buildStyle(
|
70667
|
+
chunks.push(buildStyle(chalk107, styles)(chunk.join("")));
|
70661
70668
|
chunk = [];
|
70662
70669
|
styles.pop();
|
70663
70670
|
} else {
|
@@ -70705,18 +70712,18 @@ var require_source2 = __commonJS2({
|
|
70705
70712
|
}
|
70706
70713
|
};
|
70707
70714
|
var chalkFactory = (options) => {
|
70708
|
-
const
|
70709
|
-
applyOptions(
|
70710
|
-
|
70711
|
-
Object.setPrototypeOf(
|
70712
|
-
Object.setPrototypeOf(
|
70713
|
-
|
70715
|
+
const chalk108 = {};
|
70716
|
+
applyOptions(chalk108, options);
|
70717
|
+
chalk108.template = (...arguments_) => chalkTag(chalk108.template, ...arguments_);
|
70718
|
+
Object.setPrototypeOf(chalk108, Chalk3.prototype);
|
70719
|
+
Object.setPrototypeOf(chalk108.template, chalk108);
|
70720
|
+
chalk108.template.constructor = () => {
|
70714
70721
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
70715
70722
|
};
|
70716
|
-
|
70717
|
-
return
|
70723
|
+
chalk108.template.Instance = ChalkClass;
|
70724
|
+
return chalk108.template;
|
70718
70725
|
};
|
70719
|
-
function
|
70726
|
+
function Chalk3(options) {
|
70720
70727
|
return chalkFactory(options);
|
70721
70728
|
}
|
70722
70729
|
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
@@ -70825,7 +70832,7 @@ var require_source2 = __commonJS2({
|
|
70825
70832
|
return openAll + string + closeAll;
|
70826
70833
|
};
|
70827
70834
|
var template;
|
70828
|
-
var chalkTag = (
|
70835
|
+
var chalkTag = (chalk108, ...strings) => {
|
70829
70836
|
const [firstString] = strings;
|
70830
70837
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
70831
70838
|
return strings.join(" ");
|
@@ -70841,14 +70848,14 @@ var require_source2 = __commonJS2({
|
|
70841
70848
|
if (template === void 0) {
|
70842
70849
|
template = require_templates3();
|
70843
70850
|
}
|
70844
|
-
return template(
|
70851
|
+
return template(chalk108, parts.join(""));
|
70845
70852
|
};
|
70846
|
-
Object.defineProperties(
|
70847
|
-
var
|
70848
|
-
|
70849
|
-
|
70850
|
-
|
70851
|
-
module2.exports =
|
70853
|
+
Object.defineProperties(Chalk3.prototype, styles);
|
70854
|
+
var chalk107 = Chalk3();
|
70855
|
+
chalk107.supportsColor = stdoutColor;
|
70856
|
+
chalk107.stderr = Chalk3({ level: stderrColor ? stderrColor.level : 0 });
|
70857
|
+
chalk107.stderr.supportsColor = stderrColor;
|
70858
|
+
module2.exports = chalk107;
|
70852
70859
|
}
|
70853
70860
|
});
|
70854
70861
|
|
@@ -73225,15 +73232,15 @@ var init_mjs = __esm({
|
|
73225
73232
|
this.listeners[ev].push(fn2);
|
73226
73233
|
}
|
73227
73234
|
removeListener(ev, fn2) {
|
73228
|
-
const
|
73229
|
-
const i =
|
73235
|
+
const list6 = this.listeners[ev];
|
73236
|
+
const i = list6.indexOf(fn2);
|
73230
73237
|
if (i === -1) {
|
73231
73238
|
return;
|
73232
73239
|
}
|
73233
|
-
if (i === 0 &&
|
73234
|
-
|
73240
|
+
if (i === 0 && list6.length === 1) {
|
73241
|
+
list6.length = 0;
|
73235
73242
|
} else {
|
73236
|
-
|
73243
|
+
list6.splice(i, 1);
|
73237
73244
|
}
|
73238
73245
|
}
|
73239
73246
|
emit(ev, code2, signal) {
|
@@ -73616,7 +73623,7 @@ var require_figures = __commonJS2({
|
|
73616
73623
|
"use strict";
|
73617
73624
|
var escapeStringRegexp = require_escape_string_regexp();
|
73618
73625
|
var { platform: platform2 } = process;
|
73619
|
-
var
|
73626
|
+
var main15 = {
|
73620
73627
|
tick: "\u2714",
|
73621
73628
|
cross: "\u2716",
|
73622
73629
|
star: "\u2605",
|
@@ -73702,12 +73709,12 @@ var require_figures = __commonJS2({
|
|
73702
73709
|
hamburger: "\u2261",
|
73703
73710
|
smiley: "\u263A",
|
73704
73711
|
mustache: "\u250C\u2500\u2510",
|
73705
|
-
heart:
|
73712
|
+
heart: main15.heart,
|
73706
73713
|
nodejs: "\u2666",
|
73707
|
-
arrowUp:
|
73708
|
-
arrowDown:
|
73709
|
-
arrowLeft:
|
73710
|
-
arrowRight:
|
73714
|
+
arrowUp: main15.arrowUp,
|
73715
|
+
arrowDown: main15.arrowDown,
|
73716
|
+
arrowLeft: main15.arrowLeft,
|
73717
|
+
arrowRight: main15.arrowRight,
|
73711
73718
|
radioOn: "(*)",
|
73712
73719
|
radioOff: "( )",
|
73713
73720
|
checkboxOn: "[\xD7]",
|
@@ -73735,14 +73742,14 @@ var require_figures = __commonJS2({
|
|
73735
73742
|
sevenEighths: "7/8"
|
73736
73743
|
};
|
73737
73744
|
if (platform2 === "linux") {
|
73738
|
-
|
73745
|
+
main15.questionMarkPrefix = "?";
|
73739
73746
|
}
|
73740
|
-
var figures4 = platform2 === "win32" ? windows :
|
73747
|
+
var figures4 = platform2 === "win32" ? windows : main15;
|
73741
73748
|
var fn2 = (string) => {
|
73742
|
-
if (figures4 ===
|
73749
|
+
if (figures4 === main15) {
|
73743
73750
|
return string;
|
73744
73751
|
}
|
73745
|
-
for (const [key, value] of Object.entries(
|
73752
|
+
for (const [key, value] of Object.entries(main15)) {
|
73746
73753
|
if (value === figures4[key]) {
|
73747
73754
|
continue;
|
73748
73755
|
}
|
@@ -73751,7 +73758,7 @@ var require_figures = __commonJS2({
|
|
73751
73758
|
return string;
|
73752
73759
|
};
|
73753
73760
|
module2.exports = Object.assign(fn2, figures4);
|
73754
|
-
module2.exports.main =
|
73761
|
+
module2.exports.main = main15;
|
73755
73762
|
module2.exports.windows = windows;
|
73756
73763
|
}
|
73757
73764
|
});
|
@@ -75057,9 +75064,9 @@ var init_list = __esm({
|
|
75057
75064
|
});
|
75058
75065
|
|
75059
75066
|
// src/util/sleep.ts
|
75060
|
-
function sleep(
|
75067
|
+
function sleep(ms30) {
|
75061
75068
|
return new Promise((resolve12) => {
|
75062
|
-
setTimeout(resolve12,
|
75069
|
+
setTimeout(resolve12, ms30);
|
75063
75070
|
});
|
75064
75071
|
}
|
75065
75072
|
var init_sleep = __esm({
|
@@ -77048,8 +77055,8 @@ var require_common = __commonJS2({
|
|
77048
77055
|
}
|
77049
77056
|
const self2 = debug3;
|
77050
77057
|
const curr = Number(/* @__PURE__ */ new Date());
|
77051
|
-
const
|
77052
|
-
self2.diff =
|
77058
|
+
const ms30 = curr - (prevTime || curr);
|
77059
|
+
self2.diff = ms30;
|
77053
77060
|
self2.prev = prevTime;
|
77054
77061
|
self2.curr = curr;
|
77055
77062
|
prevTime = curr;
|
@@ -77484,7 +77491,594 @@ var require_node3 = __commonJS2({
|
|
77484
77491
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
77485
77492
|
}
|
77486
77493
|
function log2(...args2) {
|
77487
|
-
return process.stderr.write(util.format(...args2) + "\n");
|
77494
|
+
return process.stderr.write(util.format(...args2) + "\n");
|
77495
|
+
}
|
77496
|
+
function save(namespaces) {
|
77497
|
+
if (namespaces) {
|
77498
|
+
process.env.DEBUG = namespaces;
|
77499
|
+
} else {
|
77500
|
+
delete process.env.DEBUG;
|
77501
|
+
}
|
77502
|
+
}
|
77503
|
+
function load3() {
|
77504
|
+
return process.env.DEBUG;
|
77505
|
+
}
|
77506
|
+
function init3(debug3) {
|
77507
|
+
debug3.inspectOpts = {};
|
77508
|
+
const keys = Object.keys(exports2.inspectOpts);
|
77509
|
+
for (let i = 0; i < keys.length; i++) {
|
77510
|
+
debug3.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
77511
|
+
}
|
77512
|
+
}
|
77513
|
+
module2.exports = require_common()(exports2);
|
77514
|
+
var { formatters } = module2.exports;
|
77515
|
+
formatters.o = function(v) {
|
77516
|
+
this.inspectOpts.colors = this.useColors;
|
77517
|
+
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
77518
|
+
};
|
77519
|
+
formatters.O = function(v) {
|
77520
|
+
this.inspectOpts.colors = this.useColors;
|
77521
|
+
return util.inspect(v, this.inspectOpts);
|
77522
|
+
};
|
77523
|
+
}
|
77524
|
+
});
|
77525
|
+
|
77526
|
+
// ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js
|
77527
|
+
var require_src2 = __commonJS2({
|
77528
|
+
"../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js"(exports2, module2) {
|
77529
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
77530
|
+
module2.exports = require_browser3();
|
77531
|
+
} else {
|
77532
|
+
module2.exports = require_node3();
|
77533
|
+
}
|
77534
|
+
}
|
77535
|
+
});
|
77536
|
+
|
77537
|
+
// ../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js
|
77538
|
+
var require_proxy_from_env = __commonJS2({
|
77539
|
+
"../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js"(exports2) {
|
77540
|
+
"use strict";
|
77541
|
+
var parseUrl2 = require("url").parse;
|
77542
|
+
var DEFAULT_PORTS = {
|
77543
|
+
ftp: 21,
|
77544
|
+
gopher: 70,
|
77545
|
+
http: 80,
|
77546
|
+
https: 443,
|
77547
|
+
ws: 80,
|
77548
|
+
wss: 443
|
77549
|
+
};
|
77550
|
+
var stringEndsWith = String.prototype.endsWith || function(s) {
|
77551
|
+
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
77552
|
+
};
|
77553
|
+
function getProxyForUrl(url3) {
|
77554
|
+
var parsedUrl = typeof url3 === "string" ? parseUrl2(url3) : url3 || {};
|
77555
|
+
var proto = parsedUrl.protocol;
|
77556
|
+
var hostname2 = parsedUrl.host;
|
77557
|
+
var port = parsedUrl.port;
|
77558
|
+
if (typeof hostname2 !== "string" || !hostname2 || typeof proto !== "string") {
|
77559
|
+
return "";
|
77560
|
+
}
|
77561
|
+
proto = proto.split(":", 1)[0];
|
77562
|
+
hostname2 = hostname2.replace(/:\d*$/, "");
|
77563
|
+
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
77564
|
+
if (!shouldProxy(hostname2, port)) {
|
77565
|
+
return "";
|
77566
|
+
}
|
77567
|
+
var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
|
77568
|
+
if (proxy && proxy.indexOf("://") === -1) {
|
77569
|
+
proxy = proto + "://" + proxy;
|
77570
|
+
}
|
77571
|
+
return proxy;
|
77572
|
+
}
|
77573
|
+
function shouldProxy(hostname2, port) {
|
77574
|
+
var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
|
77575
|
+
if (!NO_PROXY) {
|
77576
|
+
return true;
|
77577
|
+
}
|
77578
|
+
if (NO_PROXY === "*") {
|
77579
|
+
return false;
|
77580
|
+
}
|
77581
|
+
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
77582
|
+
if (!proxy) {
|
77583
|
+
return true;
|
77584
|
+
}
|
77585
|
+
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
77586
|
+
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
77587
|
+
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
77588
|
+
if (parsedProxyPort && parsedProxyPort !== port) {
|
77589
|
+
return true;
|
77590
|
+
}
|
77591
|
+
if (!/^[.*]/.test(parsedProxyHostname)) {
|
77592
|
+
return hostname2 !== parsedProxyHostname;
|
77593
|
+
}
|
77594
|
+
if (parsedProxyHostname.charAt(0) === "*") {
|
77595
|
+
parsedProxyHostname = parsedProxyHostname.slice(1);
|
77596
|
+
}
|
77597
|
+
return !stringEndsWith.call(hostname2, parsedProxyHostname);
|
77598
|
+
});
|
77599
|
+
}
|
77600
|
+
function getEnv(key) {
|
77601
|
+
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
77602
|
+
}
|
77603
|
+
exports2.getProxyForUrl = getProxyForUrl;
|
77604
|
+
}
|
77605
|
+
});
|
77606
|
+
|
77607
|
+
// ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js
|
77608
|
+
var require_common2 = __commonJS2({
|
77609
|
+
"../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js"(exports2, module2) {
|
77610
|
+
function setup(env) {
|
77611
|
+
createDebug.debug = createDebug;
|
77612
|
+
createDebug.default = createDebug;
|
77613
|
+
createDebug.coerce = coerce;
|
77614
|
+
createDebug.disable = disable;
|
77615
|
+
createDebug.enable = enable;
|
77616
|
+
createDebug.enabled = enabled;
|
77617
|
+
createDebug.humanize = require_ms2();
|
77618
|
+
createDebug.destroy = destroy;
|
77619
|
+
Object.keys(env).forEach((key) => {
|
77620
|
+
createDebug[key] = env[key];
|
77621
|
+
});
|
77622
|
+
createDebug.names = [];
|
77623
|
+
createDebug.skips = [];
|
77624
|
+
createDebug.formatters = {};
|
77625
|
+
function selectColor(namespace) {
|
77626
|
+
let hash = 0;
|
77627
|
+
for (let i = 0; i < namespace.length; i++) {
|
77628
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
77629
|
+
hash |= 0;
|
77630
|
+
}
|
77631
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
77632
|
+
}
|
77633
|
+
createDebug.selectColor = selectColor;
|
77634
|
+
function createDebug(namespace) {
|
77635
|
+
let prevTime;
|
77636
|
+
let enableOverride = null;
|
77637
|
+
let namespacesCache;
|
77638
|
+
let enabledCache;
|
77639
|
+
function debug3(...args2) {
|
77640
|
+
if (!debug3.enabled) {
|
77641
|
+
return;
|
77642
|
+
}
|
77643
|
+
const self2 = debug3;
|
77644
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
77645
|
+
const ms30 = curr - (prevTime || curr);
|
77646
|
+
self2.diff = ms30;
|
77647
|
+
self2.prev = prevTime;
|
77648
|
+
self2.curr = curr;
|
77649
|
+
prevTime = curr;
|
77650
|
+
args2[0] = createDebug.coerce(args2[0]);
|
77651
|
+
if (typeof args2[0] !== "string") {
|
77652
|
+
args2.unshift("%O");
|
77653
|
+
}
|
77654
|
+
let index = 0;
|
77655
|
+
args2[0] = args2[0].replace(/%([a-zA-Z%])/g, (match, format2) => {
|
77656
|
+
if (match === "%%") {
|
77657
|
+
return "%";
|
77658
|
+
}
|
77659
|
+
index++;
|
77660
|
+
const formatter = createDebug.formatters[format2];
|
77661
|
+
if (typeof formatter === "function") {
|
77662
|
+
const val = args2[index];
|
77663
|
+
match = formatter.call(self2, val);
|
77664
|
+
args2.splice(index, 1);
|
77665
|
+
index--;
|
77666
|
+
}
|
77667
|
+
return match;
|
77668
|
+
});
|
77669
|
+
createDebug.formatArgs.call(self2, args2);
|
77670
|
+
const logFn = self2.log || createDebug.log;
|
77671
|
+
logFn.apply(self2, args2);
|
77672
|
+
}
|
77673
|
+
debug3.namespace = namespace;
|
77674
|
+
debug3.useColors = createDebug.useColors();
|
77675
|
+
debug3.color = createDebug.selectColor(namespace);
|
77676
|
+
debug3.extend = extend;
|
77677
|
+
debug3.destroy = createDebug.destroy;
|
77678
|
+
Object.defineProperty(debug3, "enabled", {
|
77679
|
+
enumerable: true,
|
77680
|
+
configurable: false,
|
77681
|
+
get: () => {
|
77682
|
+
if (enableOverride !== null) {
|
77683
|
+
return enableOverride;
|
77684
|
+
}
|
77685
|
+
if (namespacesCache !== createDebug.namespaces) {
|
77686
|
+
namespacesCache = createDebug.namespaces;
|
77687
|
+
enabledCache = createDebug.enabled(namespace);
|
77688
|
+
}
|
77689
|
+
return enabledCache;
|
77690
|
+
},
|
77691
|
+
set: (v) => {
|
77692
|
+
enableOverride = v;
|
77693
|
+
}
|
77694
|
+
});
|
77695
|
+
if (typeof createDebug.init === "function") {
|
77696
|
+
createDebug.init(debug3);
|
77697
|
+
}
|
77698
|
+
return debug3;
|
77699
|
+
}
|
77700
|
+
function extend(namespace, delimiter3) {
|
77701
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter3 === "undefined" ? ":" : delimiter3) + namespace);
|
77702
|
+
newDebug.log = this.log;
|
77703
|
+
return newDebug;
|
77704
|
+
}
|
77705
|
+
function enable(namespaces) {
|
77706
|
+
createDebug.save(namespaces);
|
77707
|
+
createDebug.namespaces = namespaces;
|
77708
|
+
createDebug.names = [];
|
77709
|
+
createDebug.skips = [];
|
77710
|
+
let i;
|
77711
|
+
const split2 = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
77712
|
+
const len = split2.length;
|
77713
|
+
for (i = 0; i < len; i++) {
|
77714
|
+
if (!split2[i]) {
|
77715
|
+
continue;
|
77716
|
+
}
|
77717
|
+
namespaces = split2[i].replace(/\*/g, ".*?");
|
77718
|
+
if (namespaces[0] === "-") {
|
77719
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
77720
|
+
} else {
|
77721
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
77722
|
+
}
|
77723
|
+
}
|
77724
|
+
}
|
77725
|
+
function disable() {
|
77726
|
+
const namespaces = [
|
77727
|
+
...createDebug.names.map(toNamespace),
|
77728
|
+
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
|
77729
|
+
].join(",");
|
77730
|
+
createDebug.enable("");
|
77731
|
+
return namespaces;
|
77732
|
+
}
|
77733
|
+
function enabled(name) {
|
77734
|
+
if (name[name.length - 1] === "*") {
|
77735
|
+
return true;
|
77736
|
+
}
|
77737
|
+
let i;
|
77738
|
+
let len;
|
77739
|
+
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
77740
|
+
if (createDebug.skips[i].test(name)) {
|
77741
|
+
return false;
|
77742
|
+
}
|
77743
|
+
}
|
77744
|
+
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
77745
|
+
if (createDebug.names[i].test(name)) {
|
77746
|
+
return true;
|
77747
|
+
}
|
77748
|
+
}
|
77749
|
+
return false;
|
77750
|
+
}
|
77751
|
+
function toNamespace(regexp) {
|
77752
|
+
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
77753
|
+
}
|
77754
|
+
function coerce(val) {
|
77755
|
+
if (val instanceof Error) {
|
77756
|
+
return val.stack || val.message;
|
77757
|
+
}
|
77758
|
+
return val;
|
77759
|
+
}
|
77760
|
+
function destroy() {
|
77761
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
77762
|
+
}
|
77763
|
+
createDebug.enable(createDebug.load());
|
77764
|
+
return createDebug;
|
77765
|
+
}
|
77766
|
+
module2.exports = setup;
|
77767
|
+
}
|
77768
|
+
});
|
77769
|
+
|
77770
|
+
// ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js
|
77771
|
+
var require_browser4 = __commonJS2({
|
77772
|
+
"../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js"(exports2, module2) {
|
77773
|
+
exports2.formatArgs = formatArgs;
|
77774
|
+
exports2.save = save;
|
77775
|
+
exports2.load = load3;
|
77776
|
+
exports2.useColors = useColors;
|
77777
|
+
exports2.storage = localstorage();
|
77778
|
+
exports2.destroy = (() => {
|
77779
|
+
let warned = false;
|
77780
|
+
return () => {
|
77781
|
+
if (!warned) {
|
77782
|
+
warned = true;
|
77783
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
77784
|
+
}
|
77785
|
+
};
|
77786
|
+
})();
|
77787
|
+
exports2.colors = [
|
77788
|
+
"#0000CC",
|
77789
|
+
"#0000FF",
|
77790
|
+
"#0033CC",
|
77791
|
+
"#0033FF",
|
77792
|
+
"#0066CC",
|
77793
|
+
"#0066FF",
|
77794
|
+
"#0099CC",
|
77795
|
+
"#0099FF",
|
77796
|
+
"#00CC00",
|
77797
|
+
"#00CC33",
|
77798
|
+
"#00CC66",
|
77799
|
+
"#00CC99",
|
77800
|
+
"#00CCCC",
|
77801
|
+
"#00CCFF",
|
77802
|
+
"#3300CC",
|
77803
|
+
"#3300FF",
|
77804
|
+
"#3333CC",
|
77805
|
+
"#3333FF",
|
77806
|
+
"#3366CC",
|
77807
|
+
"#3366FF",
|
77808
|
+
"#3399CC",
|
77809
|
+
"#3399FF",
|
77810
|
+
"#33CC00",
|
77811
|
+
"#33CC33",
|
77812
|
+
"#33CC66",
|
77813
|
+
"#33CC99",
|
77814
|
+
"#33CCCC",
|
77815
|
+
"#33CCFF",
|
77816
|
+
"#6600CC",
|
77817
|
+
"#6600FF",
|
77818
|
+
"#6633CC",
|
77819
|
+
"#6633FF",
|
77820
|
+
"#66CC00",
|
77821
|
+
"#66CC33",
|
77822
|
+
"#9900CC",
|
77823
|
+
"#9900FF",
|
77824
|
+
"#9933CC",
|
77825
|
+
"#9933FF",
|
77826
|
+
"#99CC00",
|
77827
|
+
"#99CC33",
|
77828
|
+
"#CC0000",
|
77829
|
+
"#CC0033",
|
77830
|
+
"#CC0066",
|
77831
|
+
"#CC0099",
|
77832
|
+
"#CC00CC",
|
77833
|
+
"#CC00FF",
|
77834
|
+
"#CC3300",
|
77835
|
+
"#CC3333",
|
77836
|
+
"#CC3366",
|
77837
|
+
"#CC3399",
|
77838
|
+
"#CC33CC",
|
77839
|
+
"#CC33FF",
|
77840
|
+
"#CC6600",
|
77841
|
+
"#CC6633",
|
77842
|
+
"#CC9900",
|
77843
|
+
"#CC9933",
|
77844
|
+
"#CCCC00",
|
77845
|
+
"#CCCC33",
|
77846
|
+
"#FF0000",
|
77847
|
+
"#FF0033",
|
77848
|
+
"#FF0066",
|
77849
|
+
"#FF0099",
|
77850
|
+
"#FF00CC",
|
77851
|
+
"#FF00FF",
|
77852
|
+
"#FF3300",
|
77853
|
+
"#FF3333",
|
77854
|
+
"#FF3366",
|
77855
|
+
"#FF3399",
|
77856
|
+
"#FF33CC",
|
77857
|
+
"#FF33FF",
|
77858
|
+
"#FF6600",
|
77859
|
+
"#FF6633",
|
77860
|
+
"#FF9900",
|
77861
|
+
"#FF9933",
|
77862
|
+
"#FFCC00",
|
77863
|
+
"#FFCC33"
|
77864
|
+
];
|
77865
|
+
function useColors() {
|
77866
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
77867
|
+
return true;
|
77868
|
+
}
|
77869
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
77870
|
+
return false;
|
77871
|
+
}
|
77872
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
77873
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
77874
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
77875
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
77876
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
77877
|
+
}
|
77878
|
+
function formatArgs(args2) {
|
77879
|
+
args2[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args2[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
77880
|
+
if (!this.useColors) {
|
77881
|
+
return;
|
77882
|
+
}
|
77883
|
+
const c = "color: " + this.color;
|
77884
|
+
args2.splice(1, 0, c, "color: inherit");
|
77885
|
+
let index = 0;
|
77886
|
+
let lastC = 0;
|
77887
|
+
args2[0].replace(/%[a-zA-Z%]/g, (match) => {
|
77888
|
+
if (match === "%%") {
|
77889
|
+
return;
|
77890
|
+
}
|
77891
|
+
index++;
|
77892
|
+
if (match === "%c") {
|
77893
|
+
lastC = index;
|
77894
|
+
}
|
77895
|
+
});
|
77896
|
+
args2.splice(lastC, 0, c);
|
77897
|
+
}
|
77898
|
+
exports2.log = console.debug || console.log || (() => {
|
77899
|
+
});
|
77900
|
+
function save(namespaces) {
|
77901
|
+
try {
|
77902
|
+
if (namespaces) {
|
77903
|
+
exports2.storage.setItem("debug", namespaces);
|
77904
|
+
} else {
|
77905
|
+
exports2.storage.removeItem("debug");
|
77906
|
+
}
|
77907
|
+
} catch (error5) {
|
77908
|
+
}
|
77909
|
+
}
|
77910
|
+
function load3() {
|
77911
|
+
let r;
|
77912
|
+
try {
|
77913
|
+
r = exports2.storage.getItem("debug");
|
77914
|
+
} catch (error5) {
|
77915
|
+
}
|
77916
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
77917
|
+
r = process.env.DEBUG;
|
77918
|
+
}
|
77919
|
+
return r;
|
77920
|
+
}
|
77921
|
+
function localstorage() {
|
77922
|
+
try {
|
77923
|
+
return localStorage;
|
77924
|
+
} catch (error5) {
|
77925
|
+
}
|
77926
|
+
}
|
77927
|
+
module2.exports = require_common2()(exports2);
|
77928
|
+
var { formatters } = module2.exports;
|
77929
|
+
formatters.j = function(v) {
|
77930
|
+
try {
|
77931
|
+
return JSON.stringify(v);
|
77932
|
+
} catch (error5) {
|
77933
|
+
return "[UnexpectedJSONParseError]: " + error5.message;
|
77934
|
+
}
|
77935
|
+
};
|
77936
|
+
}
|
77937
|
+
});
|
77938
|
+
|
77939
|
+
// ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js
|
77940
|
+
var require_node4 = __commonJS2({
|
77941
|
+
"../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js"(exports2, module2) {
|
77942
|
+
var tty = require("tty");
|
77943
|
+
var util = require("util");
|
77944
|
+
exports2.init = init3;
|
77945
|
+
exports2.log = log2;
|
77946
|
+
exports2.formatArgs = formatArgs;
|
77947
|
+
exports2.save = save;
|
77948
|
+
exports2.load = load3;
|
77949
|
+
exports2.useColors = useColors;
|
77950
|
+
exports2.destroy = util.deprecate(
|
77951
|
+
() => {
|
77952
|
+
},
|
77953
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
77954
|
+
);
|
77955
|
+
exports2.colors = [6, 2, 3, 4, 5, 1];
|
77956
|
+
try {
|
77957
|
+
const supportsColor = require_supports_color();
|
77958
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
77959
|
+
exports2.colors = [
|
77960
|
+
20,
|
77961
|
+
21,
|
77962
|
+
26,
|
77963
|
+
27,
|
77964
|
+
32,
|
77965
|
+
33,
|
77966
|
+
38,
|
77967
|
+
39,
|
77968
|
+
40,
|
77969
|
+
41,
|
77970
|
+
42,
|
77971
|
+
43,
|
77972
|
+
44,
|
77973
|
+
45,
|
77974
|
+
56,
|
77975
|
+
57,
|
77976
|
+
62,
|
77977
|
+
63,
|
77978
|
+
68,
|
77979
|
+
69,
|
77980
|
+
74,
|
77981
|
+
75,
|
77982
|
+
76,
|
77983
|
+
77,
|
77984
|
+
78,
|
77985
|
+
79,
|
77986
|
+
80,
|
77987
|
+
81,
|
77988
|
+
92,
|
77989
|
+
93,
|
77990
|
+
98,
|
77991
|
+
99,
|
77992
|
+
112,
|
77993
|
+
113,
|
77994
|
+
128,
|
77995
|
+
129,
|
77996
|
+
134,
|
77997
|
+
135,
|
77998
|
+
148,
|
77999
|
+
149,
|
78000
|
+
160,
|
78001
|
+
161,
|
78002
|
+
162,
|
78003
|
+
163,
|
78004
|
+
164,
|
78005
|
+
165,
|
78006
|
+
166,
|
78007
|
+
167,
|
78008
|
+
168,
|
78009
|
+
169,
|
78010
|
+
170,
|
78011
|
+
171,
|
78012
|
+
172,
|
78013
|
+
173,
|
78014
|
+
178,
|
78015
|
+
179,
|
78016
|
+
184,
|
78017
|
+
185,
|
78018
|
+
196,
|
78019
|
+
197,
|
78020
|
+
198,
|
78021
|
+
199,
|
78022
|
+
200,
|
78023
|
+
201,
|
78024
|
+
202,
|
78025
|
+
203,
|
78026
|
+
204,
|
78027
|
+
205,
|
78028
|
+
206,
|
78029
|
+
207,
|
78030
|
+
208,
|
78031
|
+
209,
|
78032
|
+
214,
|
78033
|
+
215,
|
78034
|
+
220,
|
78035
|
+
221
|
78036
|
+
];
|
78037
|
+
}
|
78038
|
+
} catch (error5) {
|
78039
|
+
}
|
78040
|
+
exports2.inspectOpts = Object.keys(process.env).filter((key) => {
|
78041
|
+
return /^debug_/i.test(key);
|
78042
|
+
}).reduce((obj, key) => {
|
78043
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
78044
|
+
return k.toUpperCase();
|
78045
|
+
});
|
78046
|
+
let val = process.env[key];
|
78047
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
78048
|
+
val = true;
|
78049
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
78050
|
+
val = false;
|
78051
|
+
} else if (val === "null") {
|
78052
|
+
val = null;
|
78053
|
+
} else {
|
78054
|
+
val = Number(val);
|
78055
|
+
}
|
78056
|
+
obj[prop] = val;
|
78057
|
+
return obj;
|
78058
|
+
}, {});
|
78059
|
+
function useColors() {
|
78060
|
+
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
78061
|
+
}
|
78062
|
+
function formatArgs(args2) {
|
78063
|
+
const { namespace: name, useColors: useColors2 } = this;
|
78064
|
+
if (useColors2) {
|
78065
|
+
const c = this.color;
|
78066
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
78067
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
78068
|
+
args2[0] = prefix + args2[0].split("\n").join("\n" + prefix);
|
78069
|
+
args2.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
78070
|
+
} else {
|
78071
|
+
args2[0] = getDate() + name + " " + args2[0];
|
78072
|
+
}
|
78073
|
+
}
|
78074
|
+
function getDate() {
|
78075
|
+
if (exports2.inspectOpts.hideDate) {
|
78076
|
+
return "";
|
78077
|
+
}
|
78078
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
78079
|
+
}
|
78080
|
+
function log2(...args2) {
|
78081
|
+
return process.stderr.write(util.formatWithOptions(exports2.inspectOpts, ...args2) + "\n");
|
77488
78082
|
}
|
77489
78083
|
function save(namespaces) {
|
77490
78084
|
if (namespaces) {
|
@@ -77503,7 +78097,7 @@ var require_node3 = __commonJS2({
|
|
77503
78097
|
debug3.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
77504
78098
|
}
|
77505
78099
|
}
|
77506
|
-
module2.exports =
|
78100
|
+
module2.exports = require_common2()(exports2);
|
77507
78101
|
var { formatters } = module2.exports;
|
77508
78102
|
formatters.o = function(v) {
|
77509
78103
|
this.inspectOpts.colors = this.useColors;
|
@@ -77516,87 +78110,17 @@ var require_node3 = __commonJS2({
|
|
77516
78110
|
}
|
77517
78111
|
});
|
77518
78112
|
|
77519
|
-
// ../../node_modules/.pnpm/debug@4.3.
|
77520
|
-
var
|
77521
|
-
"../../node_modules/.pnpm/debug@4.3.
|
78113
|
+
// ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/index.js
|
78114
|
+
var require_src3 = __commonJS2({
|
78115
|
+
"../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/index.js"(exports2, module2) {
|
77522
78116
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
77523
|
-
module2.exports =
|
78117
|
+
module2.exports = require_browser4();
|
77524
78118
|
} else {
|
77525
|
-
module2.exports =
|
78119
|
+
module2.exports = require_node4();
|
77526
78120
|
}
|
77527
78121
|
}
|
77528
78122
|
});
|
77529
78123
|
|
77530
|
-
// ../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js
|
77531
|
-
var require_proxy_from_env = __commonJS2({
|
77532
|
-
"../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js"(exports2) {
|
77533
|
-
"use strict";
|
77534
|
-
var parseUrl2 = require("url").parse;
|
77535
|
-
var DEFAULT_PORTS = {
|
77536
|
-
ftp: 21,
|
77537
|
-
gopher: 70,
|
77538
|
-
http: 80,
|
77539
|
-
https: 443,
|
77540
|
-
ws: 80,
|
77541
|
-
wss: 443
|
77542
|
-
};
|
77543
|
-
var stringEndsWith = String.prototype.endsWith || function(s) {
|
77544
|
-
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
77545
|
-
};
|
77546
|
-
function getProxyForUrl(url3) {
|
77547
|
-
var parsedUrl = typeof url3 === "string" ? parseUrl2(url3) : url3 || {};
|
77548
|
-
var proto = parsedUrl.protocol;
|
77549
|
-
var hostname2 = parsedUrl.host;
|
77550
|
-
var port = parsedUrl.port;
|
77551
|
-
if (typeof hostname2 !== "string" || !hostname2 || typeof proto !== "string") {
|
77552
|
-
return "";
|
77553
|
-
}
|
77554
|
-
proto = proto.split(":", 1)[0];
|
77555
|
-
hostname2 = hostname2.replace(/:\d*$/, "");
|
77556
|
-
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
77557
|
-
if (!shouldProxy(hostname2, port)) {
|
77558
|
-
return "";
|
77559
|
-
}
|
77560
|
-
var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
|
77561
|
-
if (proxy && proxy.indexOf("://") === -1) {
|
77562
|
-
proxy = proto + "://" + proxy;
|
77563
|
-
}
|
77564
|
-
return proxy;
|
77565
|
-
}
|
77566
|
-
function shouldProxy(hostname2, port) {
|
77567
|
-
var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
|
77568
|
-
if (!NO_PROXY) {
|
77569
|
-
return true;
|
77570
|
-
}
|
77571
|
-
if (NO_PROXY === "*") {
|
77572
|
-
return false;
|
77573
|
-
}
|
77574
|
-
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
77575
|
-
if (!proxy) {
|
77576
|
-
return true;
|
77577
|
-
}
|
77578
|
-
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
77579
|
-
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
77580
|
-
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
77581
|
-
if (parsedProxyPort && parsedProxyPort !== port) {
|
77582
|
-
return true;
|
77583
|
-
}
|
77584
|
-
if (!/^[.*]/.test(parsedProxyHostname)) {
|
77585
|
-
return hostname2 !== parsedProxyHostname;
|
77586
|
-
}
|
77587
|
-
if (parsedProxyHostname.charAt(0) === "*") {
|
77588
|
-
parsedProxyHostname = parsedProxyHostname.slice(1);
|
77589
|
-
}
|
77590
|
-
return !stringEndsWith.call(hostname2, parsedProxyHostname);
|
77591
|
-
});
|
77592
|
-
}
|
77593
|
-
function getEnv(key) {
|
77594
|
-
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
77595
|
-
}
|
77596
|
-
exports2.getProxyForUrl = getProxyForUrl;
|
77597
|
-
}
|
77598
|
-
});
|
77599
|
-
|
77600
78124
|
// ../../node_modules/.pnpm/http-proxy-agent@7.0.0/node_modules/http-proxy-agent/dist/index.js
|
77601
78125
|
var require_dist14 = __commonJS2({
|
77602
78126
|
"../../node_modules/.pnpm/http-proxy-agent@7.0.0/node_modules/http-proxy-agent/dist/index.js"(exports2) {
|
@@ -77640,7 +78164,7 @@ var require_dist14 = __commonJS2({
|
|
77640
78164
|
exports2.HttpProxyAgent = void 0;
|
77641
78165
|
var net = __importStar3(require("net"));
|
77642
78166
|
var tls = __importStar3(require("tls"));
|
77643
|
-
var debug_1 = __importDefault3(
|
78167
|
+
var debug_1 = __importDefault3(require_src3());
|
77644
78168
|
var events_1 = require("events");
|
77645
78169
|
var agent_base_1 = require_dist13();
|
77646
78170
|
var debug3 = (0, debug_1.default)("http-proxy-agent");
|
@@ -77740,7 +78264,7 @@ var require_parse_proxy_response = __commonJS2({
|
|
77740
78264
|
};
|
77741
78265
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
77742
78266
|
exports2.parseProxyResponse = void 0;
|
77743
|
-
var debug_1 = __importDefault3(
|
78267
|
+
var debug_1 = __importDefault3(require_src3());
|
77744
78268
|
var debug3 = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
|
77745
78269
|
function parseProxyResponse(socket) {
|
77746
78270
|
return new Promise((resolve12, reject) => {
|
@@ -77871,7 +78395,7 @@ var require_dist15 = __commonJS2({
|
|
77871
78395
|
var net = __importStar3(require("net"));
|
77872
78396
|
var tls = __importStar3(require("tls"));
|
77873
78397
|
var assert_1 = __importDefault3(require("assert"));
|
77874
|
-
var debug_1 = __importDefault3(
|
78398
|
+
var debug_1 = __importDefault3(require_src3());
|
77875
78399
|
var agent_base_1 = require_dist13();
|
77876
78400
|
var parse_proxy_response_1 = require_parse_proxy_response();
|
77877
78401
|
var debug3 = (0, debug_1.default)("https-proxy-agent");
|
@@ -80525,7 +81049,7 @@ var require_dist16 = __commonJS2({
|
|
80525
81049
|
exports2.SocksProxyAgent = void 0;
|
80526
81050
|
var socks_1 = require_build();
|
80527
81051
|
var agent_base_1 = require_dist13();
|
80528
|
-
var debug_1 = __importDefault3(
|
81052
|
+
var debug_1 = __importDefault3(require_src3());
|
80529
81053
|
var dns2 = __importStar3(require("dns"));
|
80530
81054
|
var net = __importStar3(require("net"));
|
80531
81055
|
var tls = __importStar3(require("tls"));
|
@@ -80737,7 +81261,7 @@ var require_data3 = __commonJS2({
|
|
80737
81261
|
};
|
80738
81262
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
80739
81263
|
exports2.data = void 0;
|
80740
|
-
var debug_1 = __importDefault3(
|
81264
|
+
var debug_1 = __importDefault3(require_src3());
|
80741
81265
|
var stream_1 = require("stream");
|
80742
81266
|
var crypto_1 = require("crypto");
|
80743
81267
|
var data_uri_to_buffer_1 = __importDefault3(require_dist17());
|
@@ -82643,7 +83167,7 @@ var require_file4 = __commonJS2({
|
|
82643
83167
|
};
|
82644
83168
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
82645
83169
|
exports2.file = void 0;
|
82646
|
-
var debug_1 = __importDefault3(
|
83170
|
+
var debug_1 = __importDefault3(require_src3());
|
82647
83171
|
var fs_1 = require("fs");
|
82648
83172
|
var fs_extra_1 = require_lib19();
|
82649
83173
|
var notfound_1 = __importDefault3(require_notfound());
|
@@ -84639,7 +85163,7 @@ var require_ftp = __commonJS2({
|
|
84639
85163
|
var basic_ftp_1 = require_dist18();
|
84640
85164
|
var stream_1 = require("stream");
|
84641
85165
|
var path_1 = require("path");
|
84642
|
-
var debug_1 = __importDefault3(
|
85166
|
+
var debug_1 = __importDefault3(require_src3());
|
84643
85167
|
var notfound_1 = __importDefault3(require_notfound());
|
84644
85168
|
var notmodified_1 = __importDefault3(require_notmodified());
|
84645
85169
|
var debug3 = (0, debug_1.default)("get-uri:ftp");
|
@@ -84671,9 +85195,9 @@ var require_ftp = __commonJS2({
|
|
84671
85195
|
}
|
84672
85196
|
}
|
84673
85197
|
if (!lastModified) {
|
84674
|
-
const
|
85198
|
+
const list6 = await client2.list((0, path_1.dirname)(filepath));
|
84675
85199
|
const name = (0, path_1.basename)(filepath);
|
84676
|
-
const entry =
|
85200
|
+
const entry = list6.find((e2) => e2.name === name);
|
84677
85201
|
if (entry) {
|
84678
85202
|
lastModified = entry.modifiedAt;
|
84679
85203
|
}
|
@@ -84737,7 +85261,7 @@ var require_http3 = __commonJS2({
|
|
84737
85261
|
var http_1 = __importDefault3(require("http"));
|
84738
85262
|
var https_1 = __importDefault3(require("https"));
|
84739
85263
|
var events_1 = require("events");
|
84740
|
-
var debug_1 = __importDefault3(
|
85264
|
+
var debug_1 = __importDefault3(require_src3());
|
84741
85265
|
var http_error_1 = __importDefault3(require_http_error());
|
84742
85266
|
var notfound_1 = __importDefault3(require_notfound());
|
84743
85267
|
var notmodified_1 = __importDefault3(require_notmodified());
|
@@ -84905,7 +85429,7 @@ var require_dist19 = __commonJS2({
|
|
84905
85429
|
};
|
84906
85430
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
84907
85431
|
exports2.getUri = exports2.isValidProtocol = exports2.protocols = void 0;
|
84908
|
-
var debug_1 = __importDefault3(
|
85432
|
+
var debug_1 = __importDefault3(require_src3());
|
84909
85433
|
var data_1 = require_data3();
|
84910
85434
|
var file_1 = require_file4();
|
84911
85435
|
var ftp_1 = require_ftp();
|
@@ -92837,15 +93361,15 @@ var require_esprima = __commonJS2({
|
|
92837
93361
|
this.context.isAssignmentTarget = false;
|
92838
93362
|
this.context.isBindingElement = false;
|
92839
93363
|
var isAsync = expr.async;
|
92840
|
-
var
|
92841
|
-
if (
|
93364
|
+
var list6 = this.reinterpretAsCoverFormalsList(expr);
|
93365
|
+
if (list6) {
|
92842
93366
|
if (this.hasLineTerminator) {
|
92843
93367
|
this.tolerateUnexpectedToken(this.lookahead);
|
92844
93368
|
}
|
92845
93369
|
this.context.firstCoverInitializedNameError = null;
|
92846
93370
|
var previousStrict = this.context.strict;
|
92847
93371
|
var previousAllowStrictDirective = this.context.allowStrictDirective;
|
92848
|
-
this.context.allowStrictDirective =
|
93372
|
+
this.context.allowStrictDirective = list6.simple;
|
92849
93373
|
var previousAllowYield = this.context.allowYield;
|
92850
93374
|
var previousAwait = this.context.await;
|
92851
93375
|
this.context.allowYield = true;
|
@@ -92862,13 +93386,13 @@ var require_esprima = __commonJS2({
|
|
92862
93386
|
body = this.isolateCoverGrammar(this.parseAssignmentExpression);
|
92863
93387
|
}
|
92864
93388
|
var expression = body.type !== syntax_1.Syntax.BlockStatement;
|
92865
|
-
if (this.context.strict &&
|
92866
|
-
this.throwUnexpectedToken(
|
93389
|
+
if (this.context.strict && list6.firstRestricted) {
|
93390
|
+
this.throwUnexpectedToken(list6.firstRestricted, list6.message);
|
92867
93391
|
}
|
92868
|
-
if (this.context.strict &&
|
92869
|
-
this.tolerateUnexpectedToken(
|
93392
|
+
if (this.context.strict && list6.stricted) {
|
93393
|
+
this.tolerateUnexpectedToken(list6.stricted, list6.message);
|
92870
93394
|
}
|
92871
|
-
expr = isAsync ? this.finalize(node, new Node.AsyncArrowFunctionExpression(
|
93395
|
+
expr = isAsync ? this.finalize(node, new Node.AsyncArrowFunctionExpression(list6.params, body, expression)) : this.finalize(node, new Node.ArrowFunctionExpression(list6.params, body, expression));
|
92872
93396
|
this.context.strict = previousStrict;
|
92873
93397
|
this.context.allowStrictDirective = previousAllowStrictDirective;
|
92874
93398
|
this.context.allowYield = previousAllowYield;
|
@@ -92999,12 +93523,12 @@ var require_esprima = __commonJS2({
|
|
92999
93523
|
return this.finalize(node, new Node.VariableDeclarator(id, init3));
|
93000
93524
|
};
|
93001
93525
|
Parser2.prototype.parseBindingList = function(kind, options) {
|
93002
|
-
var
|
93526
|
+
var list6 = [this.parseLexicalBinding(kind, options)];
|
93003
93527
|
while (this.match(",")) {
|
93004
93528
|
this.nextToken();
|
93005
|
-
|
93529
|
+
list6.push(this.parseLexicalBinding(kind, options));
|
93006
93530
|
}
|
93007
|
-
return
|
93531
|
+
return list6;
|
93008
93532
|
};
|
93009
93533
|
Parser2.prototype.isLexicalDeclaration = function() {
|
93010
93534
|
var state = this.scanner.saveState();
|
@@ -93166,13 +93690,13 @@ var require_esprima = __commonJS2({
|
|
93166
93690
|
};
|
93167
93691
|
Parser2.prototype.parseVariableDeclarationList = function(options) {
|
93168
93692
|
var opt = { inFor: options.inFor };
|
93169
|
-
var
|
93170
|
-
|
93693
|
+
var list6 = [];
|
93694
|
+
list6.push(this.parseVariableDeclaration(opt));
|
93171
93695
|
while (this.match(",")) {
|
93172
93696
|
this.nextToken();
|
93173
|
-
|
93697
|
+
list6.push(this.parseVariableDeclaration(opt));
|
93174
93698
|
}
|
93175
|
-
return
|
93699
|
+
return list6;
|
93176
93700
|
};
|
93177
93701
|
Parser2.prototype.parseVariableStatement = function() {
|
93178
93702
|
var node = this.createNode();
|
@@ -97145,28 +97669,28 @@ var require_types3 = __commonJS2({
|
|
97145
97669
|
};
|
97146
97670
|
builders[wrapperName] = builder;
|
97147
97671
|
}
|
97148
|
-
function populateSupertypeList(typeName,
|
97149
|
-
|
97150
|
-
|
97672
|
+
function populateSupertypeList(typeName, list6) {
|
97673
|
+
list6.length = 0;
|
97674
|
+
list6.push(typeName);
|
97151
97675
|
var lastSeen = /* @__PURE__ */ Object.create(null);
|
97152
|
-
for (var pos = 0; pos <
|
97153
|
-
typeName =
|
97676
|
+
for (var pos = 0; pos < list6.length; ++pos) {
|
97677
|
+
typeName = list6[pos];
|
97154
97678
|
var d = defCache[typeName];
|
97155
97679
|
if (d.finalized !== true) {
|
97156
97680
|
throw new Error("");
|
97157
97681
|
}
|
97158
97682
|
if (hasOwn.call(lastSeen, typeName)) {
|
97159
|
-
delete
|
97683
|
+
delete list6[lastSeen[typeName]];
|
97160
97684
|
}
|
97161
97685
|
lastSeen[typeName] = pos;
|
97162
|
-
|
97686
|
+
list6.push.apply(list6, d.baseNames);
|
97163
97687
|
}
|
97164
|
-
for (var to = 0, from = to, len =
|
97165
|
-
if (hasOwn.call(
|
97166
|
-
|
97688
|
+
for (var to = 0, from = to, len = list6.length; from < len; ++from) {
|
97689
|
+
if (hasOwn.call(list6, from)) {
|
97690
|
+
list6[to++] = list6[from];
|
97167
97691
|
}
|
97168
97692
|
}
|
97169
|
-
|
97693
|
+
list6.length = to;
|
97170
97694
|
}
|
97171
97695
|
function extend(into, from) {
|
97172
97696
|
Object.keys(from).forEach(function(name) {
|
@@ -103733,7 +104257,7 @@ var require_dist23 = __commonJS2({
|
|
103733
104257
|
var tls = __importStar3(require("tls"));
|
103734
104258
|
var crypto2 = __importStar3(require("crypto"));
|
103735
104259
|
var events_1 = require("events");
|
103736
|
-
var debug_1 = __importDefault3(
|
104260
|
+
var debug_1 = __importDefault3(require_src3());
|
103737
104261
|
var url_1 = require("url");
|
103738
104262
|
var agent_base_1 = require_dist13();
|
103739
104263
|
var http_proxy_agent_1 = require_dist14();
|
@@ -112617,7 +113141,7 @@ var require_minimatch2 = __commonJS2({
|
|
112617
113141
|
minimatch5.filter = filter;
|
112618
113142
|
function filter(pattern, options) {
|
112619
113143
|
options = options || {};
|
112620
|
-
return function(p, i,
|
113144
|
+
return function(p, i, list6) {
|
112621
113145
|
return minimatch5(p, pattern, options);
|
112622
113146
|
};
|
112623
113147
|
}
|
@@ -112658,8 +113182,8 @@ var require_minimatch2 = __commonJS2({
|
|
112658
113182
|
m.braceExpand = function braceExpand2(pattern, options) {
|
112659
113183
|
return orig.braceExpand(pattern, ext(def, options));
|
112660
113184
|
};
|
112661
|
-
m.match = function(
|
112662
|
-
return orig.match(
|
113185
|
+
m.match = function(list6, pattern, options) {
|
113186
|
+
return orig.match(list6, pattern, ext(def, options));
|
112663
113187
|
};
|
112664
113188
|
return m;
|
112665
113189
|
};
|
@@ -113039,16 +113563,16 @@ var require_minimatch2 = __commonJS2({
|
|
113039
113563
|
}
|
113040
113564
|
return this.regexp;
|
113041
113565
|
}
|
113042
|
-
minimatch5.match = function(
|
113566
|
+
minimatch5.match = function(list6, pattern, options) {
|
113043
113567
|
options = options || {};
|
113044
113568
|
var mm = new Minimatch(pattern, options);
|
113045
|
-
|
113569
|
+
list6 = list6.filter(function(f) {
|
113046
113570
|
return mm.match(f);
|
113047
113571
|
});
|
113048
|
-
if (mm.options.nonull && !
|
113049
|
-
|
113572
|
+
if (mm.options.nonull && !list6.length) {
|
113573
|
+
list6.push(pattern);
|
113050
113574
|
}
|
113051
|
-
return
|
113575
|
+
return list6;
|
113052
113576
|
};
|
113053
113577
|
Minimatch.prototype.match = function match(f, partial) {
|
113054
113578
|
if (typeof partial === "undefined")
|
@@ -113170,7 +113694,7 @@ var require_minimatch2 = __commonJS2({
|
|
113170
113694
|
});
|
113171
113695
|
|
113172
113696
|
// ../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/common.js
|
113173
|
-
var
|
113697
|
+
var require_common3 = __commonJS2({
|
113174
113698
|
"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/common.js"(exports2, module2) {
|
113175
113699
|
"use strict";
|
113176
113700
|
function isNothing(subject) {
|
@@ -113250,7 +113774,7 @@ var require_exception = __commonJS2({
|
|
113250
113774
|
var require_mark = __commonJS2({
|
113251
113775
|
"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/mark.js"(exports2, module2) {
|
113252
113776
|
"use strict";
|
113253
|
-
var common =
|
113777
|
+
var common = require_common3();
|
113254
113778
|
function Mark(name, buffer, position, line, column) {
|
113255
113779
|
this.name = name;
|
113256
113780
|
this.buffer = buffer;
|
@@ -113368,7 +113892,7 @@ var require_type = __commonJS2({
|
|
113368
113892
|
var require_schema = __commonJS2({
|
113369
113893
|
"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/schema.js"(exports2, module2) {
|
113370
113894
|
"use strict";
|
113371
|
-
var common =
|
113895
|
+
var common = require_common3();
|
113372
113896
|
var YAMLException = require_exception();
|
113373
113897
|
var Type = require_type();
|
113374
113898
|
function compileList(schema, name, result) {
|
@@ -113592,7 +114116,7 @@ var require_bool = __commonJS2({
|
|
113592
114116
|
var require_int = __commonJS2({
|
113593
114117
|
"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/type/int.js"(exports2, module2) {
|
113594
114118
|
"use strict";
|
113595
|
-
var common =
|
114119
|
+
var common = require_common3();
|
113596
114120
|
var Type = require_type();
|
113597
114121
|
function isHexCode(c) {
|
113598
114122
|
return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
|
@@ -113743,7 +114267,7 @@ var require_int = __commonJS2({
|
|
113743
114267
|
var require_float = __commonJS2({
|
113744
114268
|
"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/type/float.js"(exports2, module2) {
|
113745
114269
|
"use strict";
|
113746
|
-
var common =
|
114270
|
+
var common = require_common3();
|
113747
114271
|
var Type = require_type();
|
113748
114272
|
var YAML_FLOAT_PATTERN = new RegExp(
|
113749
114273
|
// 2.5e4, 2.5 and integers
|
@@ -114343,7 +114867,7 @@ var require_default_full = __commonJS2({
|
|
114343
114867
|
var require_loader = __commonJS2({
|
114344
114868
|
"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/loader.js"(exports2, module2) {
|
114345
114869
|
"use strict";
|
114346
|
-
var common =
|
114870
|
+
var common = require_common3();
|
114347
114871
|
var YAMLException = require_exception();
|
114348
114872
|
var Mark = require_mark();
|
114349
114873
|
var DEFAULT_SAFE_SCHEMA = require_default_safe();
|
@@ -115443,7 +115967,7 @@ var require_loader = __commonJS2({
|
|
115443
115967
|
var require_dumper = __commonJS2({
|
115444
115968
|
"../../node_modules/.pnpm/js-yaml@3.13.1/node_modules/js-yaml/lib/js-yaml/dumper.js"(exports2, module2) {
|
115445
115969
|
"use strict";
|
115446
|
-
var common =
|
115970
|
+
var common = require_common3();
|
115447
115971
|
var YAMLException = require_exception();
|
115448
115972
|
var DEFAULT_FULL_SCHEMA = require_default_full();
|
115449
115973
|
var DEFAULT_SAFE_SCHEMA = require_default_safe();
|
@@ -120628,14 +121152,14 @@ var require_semver2 = __commonJS2({
|
|
120628
121152
|
return compare(b, a, loose);
|
120629
121153
|
}
|
120630
121154
|
exports2.sort = sort;
|
120631
|
-
function sort(
|
120632
|
-
return
|
121155
|
+
function sort(list6, loose) {
|
121156
|
+
return list6.sort(function(a, b) {
|
120633
121157
|
return exports2.compareBuild(a, b, loose);
|
120634
121158
|
});
|
120635
121159
|
}
|
120636
121160
|
exports2.rsort = rsort;
|
120637
|
-
function rsort(
|
120638
|
-
return
|
121161
|
+
function rsort(list6, loose) {
|
121162
|
+
return list6.sort(function(a, b) {
|
120639
121163
|
return exports2.compareBuild(b, a, loose);
|
120640
121164
|
});
|
120641
121165
|
}
|
@@ -122996,7 +123520,7 @@ var require_get_workspaces = __commonJS2({
|
|
122996
123520
|
});
|
122997
123521
|
|
122998
123522
|
// ../../node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/common.js
|
122999
|
-
var
|
123523
|
+
var require_common4 = __commonJS2({
|
123000
123524
|
"../../node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/common.js"(exports2, module2) {
|
123001
123525
|
"use strict";
|
123002
123526
|
function isNothing(subject) {
|
@@ -123084,7 +123608,7 @@ var require_exception2 = __commonJS2({
|
|
123084
123608
|
var require_snippet = __commonJS2({
|
123085
123609
|
"../../node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/snippet.js"(exports2, module2) {
|
123086
123610
|
"use strict";
|
123087
|
-
var common =
|
123611
|
+
var common = require_common4();
|
123088
123612
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
123089
123613
|
var head = "";
|
123090
123614
|
var tail = "";
|
@@ -123466,7 +123990,7 @@ var require_bool2 = __commonJS2({
|
|
123466
123990
|
var require_int2 = __commonJS2({
|
123467
123991
|
"../../node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/type/int.js"(exports2, module2) {
|
123468
123992
|
"use strict";
|
123469
|
-
var common =
|
123993
|
+
var common = require_common4();
|
123470
123994
|
var Type = require_type2();
|
123471
123995
|
function isHexCode(c) {
|
123472
123996
|
return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
|
@@ -123605,7 +124129,7 @@ var require_int2 = __commonJS2({
|
|
123605
124129
|
var require_float2 = __commonJS2({
|
123606
124130
|
"../../node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/type/float.js"(exports2, module2) {
|
123607
124131
|
"use strict";
|
123608
|
-
var common =
|
124132
|
+
var common = require_common4();
|
123609
124133
|
var Type = require_type2();
|
123610
124134
|
var YAML_FLOAT_PATTERN = new RegExp(
|
123611
124135
|
// 2.5e4, 2.5 and integers
|
@@ -124015,7 +124539,7 @@ var require_default = __commonJS2({
|
|
124015
124539
|
var require_loader2 = __commonJS2({
|
124016
124540
|
"../../node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/loader.js"(exports2, module2) {
|
124017
124541
|
"use strict";
|
124018
|
-
var common =
|
124542
|
+
var common = require_common4();
|
124019
124543
|
var YAMLException = require_exception2();
|
124020
124544
|
var makeSnippet = require_snippet();
|
124021
124545
|
var DEFAULT_SCHEMA = require_default();
|
@@ -125183,7 +125707,7 @@ var require_loader2 = __commonJS2({
|
|
125183
125707
|
var require_dumper2 = __commonJS2({
|
125184
125708
|
"../../node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/dumper.js"(exports2, module2) {
|
125185
125709
|
"use strict";
|
125186
|
-
var common =
|
125710
|
+
var common = require_common4();
|
125187
125711
|
var YAMLException = require_exception2();
|
125188
125712
|
var DEFAULT_SCHEMA = require_default();
|
125189
125713
|
var _toString = Object.prototype.toString;
|
@@ -126174,7 +126698,7 @@ var require_minimatch3 = __commonJS2({
|
|
126174
126698
|
var reSpecials = charSet("().*{}+?[]^$\\!");
|
126175
126699
|
var addPatternStartSet = charSet("[.(");
|
126176
126700
|
var slashSplit = /\/+/;
|
126177
|
-
minimatch5.filter = (pattern, options = {}) => (p, i,
|
126701
|
+
minimatch5.filter = (pattern, options = {}) => (p, i, list6) => minimatch5(p, pattern, options);
|
126178
126702
|
var ext = (a, b = {}) => {
|
126179
126703
|
const t = {};
|
126180
126704
|
Object.keys(a).forEach((k) => t[k] = a[k]);
|
@@ -126197,7 +126721,7 @@ var require_minimatch3 = __commonJS2({
|
|
126197
126721
|
m.defaults = (options) => orig.defaults(ext(def, options));
|
126198
126722
|
m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options));
|
126199
126723
|
m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options));
|
126200
|
-
m.match = (
|
126724
|
+
m.match = (list6, pattern, options) => orig.match(list6, pattern, ext(def, options));
|
126201
126725
|
return m;
|
126202
126726
|
};
|
126203
126727
|
minimatch5.braceExpand = (pattern, options) => braceExpand(pattern, options);
|
@@ -126219,13 +126743,13 @@ var require_minimatch3 = __commonJS2({
|
|
126219
126743
|
};
|
126220
126744
|
var SUBPARSE = Symbol("subparse");
|
126221
126745
|
minimatch5.makeRe = (pattern, options) => new Minimatch(pattern, options || {}).makeRe();
|
126222
|
-
minimatch5.match = (
|
126746
|
+
minimatch5.match = (list6, pattern, options = {}) => {
|
126223
126747
|
const mm = new Minimatch(pattern, options);
|
126224
|
-
|
126225
|
-
if (mm.options.nonull && !
|
126226
|
-
|
126748
|
+
list6 = list6.filter((f) => mm.match(f));
|
126749
|
+
if (mm.options.nonull && !list6.length) {
|
126750
|
+
list6.push(pattern);
|
126227
126751
|
}
|
126228
|
-
return
|
126752
|
+
return list6;
|
126229
126753
|
};
|
126230
126754
|
var globUnescape = (s) => s.replace(/\\(.)/g, "$1");
|
126231
126755
|
var charUnescape = (s) => s.replace(/\\([^-\]])/g, "$1");
|
@@ -126690,7 +127214,7 @@ var require_minimatch3 = __commonJS2({
|
|
126690
127214
|
});
|
126691
127215
|
|
126692
127216
|
// ../../node_modules/.pnpm/glob@8.0.3/node_modules/glob/common.js
|
126693
|
-
var
|
127217
|
+
var require_common5 = __commonJS2({
|
126694
127218
|
"../../node_modules/.pnpm/glob@8.0.3/node_modules/glob/common.js"(exports2) {
|
126695
127219
|
exports2.setopts = setopts;
|
126696
127220
|
exports2.ownProp = ownProp;
|
@@ -126897,7 +127421,7 @@ var require_sync = __commonJS2({
|
|
126897
127421
|
var path11 = require("path");
|
126898
127422
|
var assert = require("assert");
|
126899
127423
|
var isAbsolute2 = require("path").isAbsolute;
|
126900
|
-
var common =
|
127424
|
+
var common = require_common5();
|
126901
127425
|
var setopts = common.setopts;
|
126902
127426
|
var ownProp = common.ownProp;
|
126903
127427
|
var childrenIgnored = common.childrenIgnored;
|
@@ -127296,7 +127820,7 @@ var require_glob = __commonJS2({
|
|
127296
127820
|
var assert = require("assert");
|
127297
127821
|
var isAbsolute2 = require("path").isAbsolute;
|
127298
127822
|
var globSync = require_sync();
|
127299
|
-
var common =
|
127823
|
+
var common = require_common5();
|
127300
127824
|
var setopts = common.setopts;
|
127301
127825
|
var ownProp = common.ownProp;
|
127302
127826
|
var inflight = require_inflight();
|
@@ -141336,7 +141860,7 @@ async function staticFiles(path11, { output: output2, src }) {
|
|
141336
141860
|
}
|
141337
141861
|
async function explode(paths, { accepts, output: output2 }) {
|
141338
141862
|
const { debug: debug3 } = output2;
|
141339
|
-
const
|
141863
|
+
const list6 = async (file) => {
|
141340
141864
|
let path11 = file;
|
141341
141865
|
let s;
|
141342
141866
|
if (!accepts(file)) {
|
@@ -141364,7 +141888,7 @@ async function explode(paths, { accepts, output: output2 }) {
|
|
141364
141888
|
}
|
141365
141889
|
return path11;
|
141366
141890
|
};
|
141367
|
-
const many = (all) => Promise.all(all.map((file) =>
|
141891
|
+
const many = (all) => Promise.all(all.map((file) => list6(file)));
|
141368
141892
|
const arrayOfArrays = await many(paths);
|
141369
141893
|
return flatten(arrayOfArrays).filter(notNull);
|
141370
141894
|
}
|
@@ -142905,18 +143429,18 @@ var require_events_intercept = __commonJS2({
|
|
142905
143429
|
return ret;
|
142906
143430
|
}
|
142907
143431
|
function removeInterceptor(type, interceptor) {
|
142908
|
-
var
|
143432
|
+
var list6, position, length, i;
|
142909
143433
|
if (typeof interceptor !== "function") {
|
142910
143434
|
throw new TypeError("interceptor must be a function");
|
142911
143435
|
}
|
142912
143436
|
if (!this._interceptors || !this._interceptors[type]) {
|
142913
143437
|
return this;
|
142914
143438
|
}
|
142915
|
-
|
142916
|
-
length =
|
143439
|
+
list6 = this._interceptors[type];
|
143440
|
+
length = list6.length;
|
142917
143441
|
position = -1;
|
142918
143442
|
for (i = length - 1; i >= 0; i--) {
|
142919
|
-
if (
|
143443
|
+
if (list6[i] === interceptor) {
|
142920
143444
|
position = i;
|
142921
143445
|
break;
|
142922
143446
|
}
|
@@ -142927,7 +143451,7 @@ var require_events_intercept = __commonJS2({
|
|
142927
143451
|
if (length === 1) {
|
142928
143452
|
delete this._interceptors[type];
|
142929
143453
|
} else {
|
142930
|
-
|
143454
|
+
list6.splice(position, 1);
|
142931
143455
|
}
|
142932
143456
|
this.emit("removeInterceptor", type, interceptor);
|
142933
143457
|
return this;
|
@@ -146834,22 +147358,13 @@ var init_get_prebuilt_json = __esm({
|
|
146834
147358
|
// src/util/deploy/parse-target.ts
|
146835
147359
|
function parseTarget(output2, targetArg, prodArg) {
|
146836
147360
|
if (targetArg) {
|
146837
|
-
|
146838
|
-
if (!["staging", "production"].includes(deprecatedTarget)) {
|
146839
|
-
output2.error(
|
146840
|
-
`The specified ${param("--target")} ${code(
|
146841
|
-
deprecatedTarget
|
146842
|
-
)} is not valid`
|
146843
|
-
);
|
146844
|
-
return 1;
|
146845
|
-
}
|
146846
|
-
if (deprecatedTarget === "production") {
|
147361
|
+
if (targetArg === "production") {
|
146847
147362
|
output2.warn(
|
146848
147363
|
"We recommend using the much shorter `--prod` option instead of `--target production` (deprecated)"
|
146849
147364
|
);
|
146850
147365
|
}
|
146851
|
-
output2.debug(`Setting target to ${
|
146852
|
-
return
|
147366
|
+
output2.debug(`Setting target to ${targetArg}`);
|
147367
|
+
return targetArg;
|
146853
147368
|
}
|
146854
147369
|
if (prodArg) {
|
146855
147370
|
output2.debug("Setting target to production");
|
@@ -146860,8 +147375,6 @@ function parseTarget(output2, targetArg, prodArg) {
|
|
146860
147375
|
var init_parse_target = __esm({
|
146861
147376
|
"src/util/deploy/parse-target.ts"() {
|
146862
147377
|
"use strict";
|
146863
|
-
init_param();
|
146864
|
-
init_code();
|
146865
147378
|
}
|
146866
147379
|
});
|
146867
147380
|
|
@@ -147080,7 +147593,7 @@ var init_command7 = __esm({
|
|
147080
147593
|
shorthand: null,
|
147081
147594
|
type: Boolean,
|
147082
147595
|
deprecated: false,
|
147083
|
-
description: "Create a production deployment"
|
147596
|
+
description: "Create a production deployment (shorthand for `--target=production`)"
|
147084
147597
|
},
|
147085
147598
|
{
|
147086
147599
|
name: "archive",
|
@@ -147135,7 +147648,7 @@ var init_command7 = __esm({
|
|
147135
147648
|
name: "target",
|
147136
147649
|
shorthand: null,
|
147137
147650
|
type: String,
|
147138
|
-
deprecated:
|
147651
|
+
deprecated: false,
|
147139
147652
|
description: "Specify the target deployment environment"
|
147140
147653
|
},
|
147141
147654
|
{
|
@@ -152444,7 +152957,7 @@ var require_requires_port = __commonJS2({
|
|
152444
152957
|
});
|
152445
152958
|
|
152446
152959
|
// ../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/common.js
|
152447
|
-
var
|
152960
|
+
var require_common6 = __commonJS2({
|
152448
152961
|
"../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/common.js"(exports2) {
|
152449
152962
|
var common = exports2;
|
152450
152963
|
var url3 = require("url");
|
@@ -152557,7 +153070,7 @@ var require_common5 = __commonJS2({
|
|
152557
153070
|
var require_web_outgoing = __commonJS2({
|
152558
153071
|
"../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js"(exports2, module2) {
|
152559
153072
|
var url3 = require("url");
|
152560
|
-
var common =
|
153073
|
+
var common = require_common6();
|
152561
153074
|
var redirectRegex = /^201|30(1|2|7|8)$/;
|
152562
153075
|
module2.exports = {
|
152563
153076
|
// <--
|
@@ -153150,7 +153663,7 @@ var require_web_incoming = __commonJS2({
|
|
153150
153663
|
var httpNative = require("http");
|
153151
153664
|
var httpsNative = require("https");
|
153152
153665
|
var web_o = require_web_outgoing();
|
153153
|
-
var common =
|
153666
|
+
var common = require_common6();
|
153154
153667
|
var followRedirects = require_follow_redirects();
|
153155
153668
|
web_o = Object.keys(web_o).map(function(pass) {
|
153156
153669
|
return web_o[pass];
|
@@ -153303,7 +153816,7 @@ var require_ws_incoming = __commonJS2({
|
|
153303
153816
|
"../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js"(exports2, module2) {
|
153304
153817
|
var http3 = require("http");
|
153305
153818
|
var https = require("https");
|
153306
|
-
var common =
|
153819
|
+
var common = require_common6();
|
153307
153820
|
module2.exports = {
|
153308
153821
|
/**
|
153309
153822
|
* WebSocket requests must have the `GET` method and
|
@@ -154430,7 +154943,7 @@ var require_minimatch4 = __commonJS2({
|
|
154430
154943
|
minimatch5.filter = filter;
|
154431
154944
|
function filter(pattern, options) {
|
154432
154945
|
options = options || {};
|
154433
|
-
return function(p, i,
|
154946
|
+
return function(p, i, list6) {
|
154434
154947
|
return minimatch5(p, pattern, options);
|
154435
154948
|
};
|
154436
154949
|
}
|
@@ -154833,16 +155346,16 @@ var require_minimatch4 = __commonJS2({
|
|
154833
155346
|
}
|
154834
155347
|
return this.regexp;
|
154835
155348
|
}
|
154836
|
-
minimatch5.match = function(
|
155349
|
+
minimatch5.match = function(list6, pattern, options) {
|
154837
155350
|
options = options || {};
|
154838
155351
|
var mm = new Minimatch(pattern, options);
|
154839
|
-
|
155352
|
+
list6 = list6.filter(function(f) {
|
154840
155353
|
return mm.match(f);
|
154841
155354
|
});
|
154842
|
-
if (mm.options.nonull && !
|
154843
|
-
|
155355
|
+
if (mm.options.nonull && !list6.length) {
|
155356
|
+
list6.push(pattern);
|
154844
155357
|
}
|
154845
|
-
return
|
155358
|
+
return list6;
|
154846
155359
|
};
|
154847
155360
|
Minimatch.prototype.match = match;
|
154848
155361
|
function match(f, partial) {
|
@@ -162748,7 +163261,7 @@ var require_error4 = __commonJS2({
|
|
162748
163261
|
});
|
162749
163262
|
|
162750
163263
|
// ../../node_modules/.pnpm/serve-handler@6.1.1/node_modules/serve-handler/src/index.js
|
162751
|
-
var
|
163264
|
+
var require_src4 = __commonJS2({
|
162752
163265
|
"../../node_modules/.pnpm/serve-handler@6.1.1/node_modules/serve-handler/src/index.js"(exports2, module2) {
|
162753
163266
|
var { promisify: promisify3 } = require("util");
|
162754
163267
|
var path11 = require("path");
|
@@ -164869,7 +165382,7 @@ var init_server = __esm({
|
|
164869
165382
|
import_minimatch4 = __toESM3(require_minimatch2());
|
164870
165383
|
import_http_proxy = __toESM3(require_http_proxy3());
|
164871
165384
|
import_crypto3 = require("crypto");
|
164872
|
-
import_serve_handler = __toESM3(
|
165385
|
+
import_serve_handler = __toESM3(require_src4());
|
164873
165386
|
import_chokidar = require("chokidar");
|
164874
165387
|
import_dotenv2 = __toESM3(require_main3());
|
164875
165388
|
import_path36 = __toESM3(require("path"));
|
@@ -171129,8 +171642,8 @@ var require_jaro_winkler = __commonJS2({
|
|
171129
171642
|
});
|
171130
171643
|
|
171131
171644
|
// src/util/init/did-you-mean.ts
|
171132
|
-
function didYouMean(input,
|
171133
|
-
const rated =
|
171645
|
+
function didYouMean(input, list6, threshold = 0.5) {
|
171646
|
+
const rated = list6.map((item) => [dashAwareDistance(input, item), item]);
|
171134
171647
|
const found = rated.filter((item) => item[0] > threshold);
|
171135
171648
|
if (found.length) {
|
171136
171649
|
const highestRated = found.reduce((accu, curr) => {
|
@@ -171502,8 +172015,8 @@ var init_builds = __esm({
|
|
171502
172015
|
}
|
171503
172016
|
}
|
171504
172017
|
const corner = isLast ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500";
|
171505
|
-
const
|
171506
|
-
return `${import_chalk88.default.grey(corner)} ${color(
|
172018
|
+
const main15 = prefix + path11 + finalSize + finalRegion;
|
172019
|
+
return `${import_chalk88.default.grey(corner)} ${color(main15)}`;
|
171507
172020
|
};
|
171508
172021
|
getDirPath = (path11, level = 0, highestLevel = null) => {
|
171509
172022
|
const parts = path11.split("/").slice(0, -1);
|
@@ -171931,7 +172444,7 @@ async function printDetails({
|
|
171931
172444
|
readyState,
|
171932
172445
|
alias: aliases
|
171933
172446
|
} = deployment;
|
171934
|
-
const { print } = client2.output;
|
172447
|
+
const { print, link: link4 } = client2.output;
|
171935
172448
|
const { builds } = deployment.version === 2 ? await client2.fetch(`/v11/deployments/${id}/builds`) : { builds: [] };
|
171936
172449
|
print("\n");
|
171937
172450
|
print(import_chalk90.default.bold(" General\n\n"));
|
@@ -171939,6 +172452,18 @@ async function printDetails({
|
|
171939
172452
|
`);
|
171940
172453
|
print(` ${import_chalk90.default.cyan("name")} ${name}
|
171941
172454
|
`);
|
172455
|
+
const customEnvironmentName = deployment.customEnvironment?.name;
|
172456
|
+
const target = customEnvironmentName ?? deployment.target ?? "preview";
|
172457
|
+
print(` ${import_chalk90.default.cyan("target")} `);
|
172458
|
+
print(
|
172459
|
+
deployment.customEnvironment && deployment.team?.slug ? `${link4(
|
172460
|
+
`${target}`,
|
172461
|
+
`https://vercel.com/${deployment.team.slug}/${name}/settings/environments/${deployment.customEnvironment.id}`,
|
172462
|
+
{ fallback: () => target, color: false }
|
172463
|
+
)}
|
172464
|
+
` : `${target}
|
172465
|
+
`
|
172466
|
+
);
|
171942
172467
|
print(` ${import_chalk90.default.cyan("status")} ${stateString(readyState)}
|
171943
172468
|
`);
|
171944
172469
|
print(` ${import_chalk90.default.cyan("url")} https://${url3}
|
@@ -174873,23 +175398,23 @@ async function run({ output: output2, contextName, currentTeam, client: client2
|
|
174873
175398
|
);
|
174874
175399
|
return 1;
|
174875
175400
|
}
|
174876
|
-
const { secrets:
|
175401
|
+
const { secrets: list6, pagination } = await secrets.ls(
|
174877
175402
|
nextTimestamp,
|
174878
175403
|
testWarningFlag
|
174879
175404
|
);
|
174880
175405
|
const elapsed2 = (0, import_ms28.default)(Date.now() - start);
|
174881
175406
|
output2.print(
|
174882
|
-
`${
|
175407
|
+
`${list6.length > 0 ? "Secrets" : "No secrets"} found under ${import_chalk105.default.bold(
|
174883
175408
|
contextName
|
174884
175409
|
)} ${import_chalk105.default.gray(`[${elapsed2}]`)}
|
174885
175410
|
`
|
174886
175411
|
);
|
174887
|
-
if (
|
175412
|
+
if (list6.length > 0) {
|
174888
175413
|
const cur = Date.now();
|
174889
175414
|
const header = [["", "name", "created"].map((s) => import_chalk105.default.dim(s))];
|
174890
175415
|
const out = table(
|
174891
175416
|
header.concat(
|
174892
|
-
|
175417
|
+
list6.map((secret) => [
|
174893
175418
|
"",
|
174894
175419
|
import_chalk105.default.bold(secret.name),
|
174895
175420
|
import_chalk105.default.gray(`${(0, import_ms28.default)(cur - new Date(secret.created))} ago`)
|
@@ -175114,8 +175639,214 @@ var init_secrets2 = __esm({
|
|
175114
175639
|
}
|
175115
175640
|
});
|
175116
175641
|
|
175642
|
+
// src/commands/target/list.ts
|
175643
|
+
async function list4(client2, argv2, args2, link4) {
|
175644
|
+
const { output: output2 } = client2;
|
175645
|
+
if (args2.length !== 0) {
|
175646
|
+
output2.error(
|
175647
|
+
`Invalid number of arguments. Usage: ${import_chalk106.default.cyan(
|
175648
|
+
`${getCommandName("target ls")}`
|
175649
|
+
)}`
|
175650
|
+
);
|
175651
|
+
return 2;
|
175652
|
+
}
|
175653
|
+
const start = Date.now();
|
175654
|
+
const projectUrl = `https://vercel.com/${link4.org.slug}/${link4.project.name}`;
|
175655
|
+
const projectSlugLink = output2.link(
|
175656
|
+
import_chalk106.default.bold(`${link4.org.slug}/${link4.project.name}`),
|
175657
|
+
projectUrl,
|
175658
|
+
{
|
175659
|
+
fallback: () => import_chalk106.default.bold(`${link4.org.slug}/${link4.project.name}`),
|
175660
|
+
color: false
|
175661
|
+
}
|
175662
|
+
);
|
175663
|
+
output2.spinner(`Fetching custom environments for ${projectSlugLink}`);
|
175664
|
+
const url3 = `/projects/${encodeURIComponent(
|
175665
|
+
link4.project.id
|
175666
|
+
)}/custom-environments`;
|
175667
|
+
let { environments: result } = await client2.fetch(url3, {
|
175668
|
+
method: "GET",
|
175669
|
+
accountId: link4.org.id
|
175670
|
+
});
|
175671
|
+
output2.stopSpinner();
|
175672
|
+
const elapsed2 = (0, import_ms29.default)(Date.now() - start);
|
175673
|
+
result = withDefaultEnvironmentsIncluded(result);
|
175674
|
+
output2.log(
|
175675
|
+
`${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk106.default.gray(`[${elapsed2}]`)}`
|
175676
|
+
);
|
175677
|
+
const tablePrint = table(
|
175678
|
+
[
|
175679
|
+
["Target Name", "Target Slug", "Target ID", "Type", "Updated"].map(
|
175680
|
+
(header) => import_chalk106.default.bold(import_chalk106.default.cyan(header))
|
175681
|
+
),
|
175682
|
+
...result.map((target) => {
|
175683
|
+
const boldName = import_chalk106.default.bold(target.name);
|
175684
|
+
const type = target.type === "production" ? "Production" : target.type === "development" ? "Development" : "Preview";
|
175685
|
+
return [
|
175686
|
+
[
|
175687
|
+
output2.link(
|
175688
|
+
boldName,
|
175689
|
+
`${projectUrl}/settings/environments/${target.id}`,
|
175690
|
+
{ fallback: () => boldName, color: false }
|
175691
|
+
),
|
175692
|
+
target.slug,
|
175693
|
+
target.id,
|
175694
|
+
type,
|
175695
|
+
import_chalk106.default.gray(
|
175696
|
+
target.updatedAt > 0 ? (0, import_ms29.default)(Date.now() - target.updatedAt) : "-"
|
175697
|
+
)
|
175698
|
+
]
|
175699
|
+
];
|
175700
|
+
}).flat()
|
175701
|
+
],
|
175702
|
+
{ hsep: 3 }
|
175703
|
+
).replace(/^/gm, " ");
|
175704
|
+
output2.print(`
|
175705
|
+
${tablePrint}
|
175706
|
+
|
175707
|
+
`);
|
175708
|
+
return 0;
|
175709
|
+
}
|
175710
|
+
function withDefaultEnvironmentsIncluded(environments) {
|
175711
|
+
return [
|
175712
|
+
{
|
175713
|
+
id: "production",
|
175714
|
+
slug: "production",
|
175715
|
+
createdAt: 0,
|
175716
|
+
updatedAt: 0,
|
175717
|
+
type: "production",
|
175718
|
+
description: "",
|
175719
|
+
name: "Production",
|
175720
|
+
domains: []
|
175721
|
+
},
|
175722
|
+
{
|
175723
|
+
id: "preview",
|
175724
|
+
slug: "preview",
|
175725
|
+
createdAt: 0,
|
175726
|
+
updatedAt: 0,
|
175727
|
+
type: "preview",
|
175728
|
+
description: "",
|
175729
|
+
name: "Preview",
|
175730
|
+
domains: []
|
175731
|
+
},
|
175732
|
+
...environments,
|
175733
|
+
{
|
175734
|
+
id: "development",
|
175735
|
+
slug: "development",
|
175736
|
+
createdAt: 0,
|
175737
|
+
updatedAt: 0,
|
175738
|
+
type: "development",
|
175739
|
+
description: "",
|
175740
|
+
name: "Development",
|
175741
|
+
domains: []
|
175742
|
+
}
|
175743
|
+
];
|
175744
|
+
}
|
175745
|
+
var import_chalk106, import_ms29;
|
175746
|
+
var init_list4 = __esm({
|
175747
|
+
"src/commands/target/list.ts"() {
|
175748
|
+
"use strict";
|
175749
|
+
import_chalk106 = __toESM3(require_source());
|
175750
|
+
import_ms29 = __toESM3(require_ms2());
|
175751
|
+
init_table();
|
175752
|
+
init_pkg_name();
|
175753
|
+
}
|
175754
|
+
});
|
175755
|
+
|
175756
|
+
// src/commands/target/command.ts
|
175757
|
+
var targetCommand;
|
175758
|
+
var init_command25 = __esm({
|
175759
|
+
"src/commands/target/command.ts"() {
|
175760
|
+
"use strict";
|
175761
|
+
init_pkg_name();
|
175762
|
+
targetCommand = {
|
175763
|
+
name: "targets",
|
175764
|
+
description: `Manage your Vercel Project's "targets" (custom environments).`,
|
175765
|
+
arguments: [
|
175766
|
+
{
|
175767
|
+
name: "command",
|
175768
|
+
required: true
|
175769
|
+
}
|
175770
|
+
],
|
175771
|
+
subcommands: [
|
175772
|
+
{
|
175773
|
+
name: "ls",
|
175774
|
+
description: "Show all targets in the current project",
|
175775
|
+
arguments: [],
|
175776
|
+
options: [],
|
175777
|
+
examples: []
|
175778
|
+
}
|
175779
|
+
],
|
175780
|
+
options: [],
|
175781
|
+
examples: [
|
175782
|
+
{
|
175783
|
+
name: "List all targets for the current project",
|
175784
|
+
value: `${packageName} target ls my-project`
|
175785
|
+
}
|
175786
|
+
]
|
175787
|
+
};
|
175788
|
+
}
|
175789
|
+
});
|
175790
|
+
|
175791
|
+
// src/commands/target/index.ts
|
175792
|
+
var target_exports = {};
|
175793
|
+
__export3(target_exports, {
|
175794
|
+
default: () => main12
|
175795
|
+
});
|
175796
|
+
async function main12(client2) {
|
175797
|
+
let subcommand2;
|
175798
|
+
const argv2 = getArgs(client2.argv.slice(2), {
|
175799
|
+
"--next": Number,
|
175800
|
+
"-N": "--next"
|
175801
|
+
});
|
175802
|
+
if (argv2["--help"]) {
|
175803
|
+
client2.output.print(
|
175804
|
+
help2(targetCommand, { columns: client2.stderr.columns })
|
175805
|
+
);
|
175806
|
+
return 2;
|
175807
|
+
}
|
175808
|
+
argv2._ = argv2._.slice(1);
|
175809
|
+
subcommand2 = argv2._[0] || "list";
|
175810
|
+
const args2 = argv2._.slice(1);
|
175811
|
+
const { cwd, output: output2 } = client2;
|
175812
|
+
const link4 = await getLinkedProject(client2, cwd);
|
175813
|
+
if (link4.status === "error") {
|
175814
|
+
return link4.exitCode;
|
175815
|
+
}
|
175816
|
+
if (link4.status === "not_linked") {
|
175817
|
+
output2.error("Project not linked");
|
175818
|
+
return 1;
|
175819
|
+
}
|
175820
|
+
switch (subcommand2) {
|
175821
|
+
case "ls":
|
175822
|
+
case "list":
|
175823
|
+
return await list4(client2, argv2, args2, link4);
|
175824
|
+
default:
|
175825
|
+
output2.error(getInvalidSubcommand(COMMAND_CONFIG10));
|
175826
|
+
client2.output.print(
|
175827
|
+
help2(targetCommand, { columns: client2.stderr.columns })
|
175828
|
+
);
|
175829
|
+
return 2;
|
175830
|
+
}
|
175831
|
+
}
|
175832
|
+
var COMMAND_CONFIG10;
|
175833
|
+
var init_target = __esm({
|
175834
|
+
"src/commands/target/index.ts"() {
|
175835
|
+
"use strict";
|
175836
|
+
init_get_args();
|
175837
|
+
init_get_invalid_subcommand();
|
175838
|
+
init_help();
|
175839
|
+
init_list4();
|
175840
|
+
init_command25();
|
175841
|
+
init_link2();
|
175842
|
+
COMMAND_CONFIG10 = {
|
175843
|
+
ls: ["ls", "list"]
|
175844
|
+
};
|
175845
|
+
}
|
175846
|
+
});
|
175847
|
+
|
175117
175848
|
// src/commands/teams/list.ts
|
175118
|
-
async function
|
175849
|
+
async function list5(client2) {
|
175119
175850
|
const { config: config3, output: output2 } = client2;
|
175120
175851
|
const argv2 = getArgs(client2.argv.slice(2), {
|
175121
175852
|
"--since": String,
|
@@ -175170,7 +175901,7 @@ async function list4(client2) {
|
|
175170
175901
|
client2.stdout.write("\n");
|
175171
175902
|
const teamTable = table(
|
175172
175903
|
[
|
175173
|
-
["id", "email / name"].map((str) => (0,
|
175904
|
+
["id", "email / name"].map((str) => (0, import_chalk107.gray)(str)),
|
175174
175905
|
...teamList.map((team) => [team.value, team.name])
|
175175
175906
|
],
|
175176
175907
|
{ hsep: 5 }
|
@@ -175187,13 +175918,13 @@ async function list4(client2) {
|
|
175187
175918
|
}
|
175188
175919
|
return 0;
|
175189
175920
|
}
|
175190
|
-
var
|
175191
|
-
var
|
175921
|
+
var import_chalk107;
|
175922
|
+
var init_list5 = __esm({
|
175192
175923
|
"src/commands/teams/list.ts"() {
|
175193
175924
|
"use strict";
|
175194
175925
|
init_chars();
|
175195
175926
|
init_table();
|
175196
|
-
|
175927
|
+
import_chalk107 = __toESM3(require_source());
|
175197
175928
|
init_get_user();
|
175198
175929
|
init_get_teams();
|
175199
175930
|
init_pkg_name();
|
@@ -175250,7 +175981,7 @@ Please select a team scope using ${getCommandName(
|
|
175250
175981
|
return 1;
|
175251
175982
|
}
|
175252
175983
|
output2.log(
|
175253
|
-
introMsg || `Inviting team members to ${
|
175984
|
+
introMsg || `Inviting team members to ${import_chalk108.default.bold(currentTeam.name)}`
|
175254
175985
|
);
|
175255
175986
|
if (emails.length > 0) {
|
175256
175987
|
for (const email3 of emails) {
|
@@ -175269,10 +176000,10 @@ Please select a team scope using ${getCommandName(
|
|
175269
176000
|
throw err;
|
175270
176001
|
}
|
175271
176002
|
output2.log(
|
175272
|
-
`${
|
176003
|
+
`${import_chalk108.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
|
175273
176004
|
);
|
175274
176005
|
} else {
|
175275
|
-
output2.log(`${
|
176006
|
+
output2.log(`${import_chalk108.default.red(`\u2716 ${email3}`)} ${import_chalk108.default.gray("[invalid]")}`);
|
175276
176007
|
}
|
175277
176008
|
}
|
175278
176009
|
return 0;
|
@@ -175306,15 +176037,15 @@ Please select a team scope using ${getCommandName(
|
|
175306
176037
|
);
|
175307
176038
|
email2 = `${email2}${username ? ` (${username})` : ""} ${elapsed2()}`;
|
175308
176039
|
emails.push(email2);
|
175309
|
-
output2.log(`${
|
176040
|
+
output2.log(`${import_chalk108.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
|
175310
176041
|
if (hasError) {
|
175311
176042
|
hasError = false;
|
175312
176043
|
process.stderr.write(eraseLines(emails.length + 2));
|
175313
176044
|
output2.log(
|
175314
|
-
introMsg || `Inviting team members to ${
|
176045
|
+
introMsg || `Inviting team members to ${import_chalk108.default.bold(currentTeam.name)}`
|
175315
176046
|
);
|
175316
176047
|
for (const email3 of emails) {
|
175317
|
-
output2.log(`${
|
176048
|
+
output2.log(`${import_chalk108.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
|
175318
176049
|
}
|
175319
176050
|
}
|
175320
176051
|
} catch (err) {
|
@@ -175323,7 +176054,7 @@ Please select a team scope using ${getCommandName(
|
|
175323
176054
|
output2.error((0, import_error_utils31.errorToString)(err));
|
175324
176055
|
hasError = true;
|
175325
176056
|
for (const email3 of emails) {
|
175326
|
-
output2.log(`${
|
176057
|
+
output2.log(`${import_chalk108.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
|
175327
176058
|
}
|
175328
176059
|
}
|
175329
176060
|
}
|
@@ -175336,16 +176067,16 @@ Please select a team scope using ${getCommandName(
|
|
175336
176067
|
} else {
|
175337
176068
|
output2.success(`Invited ${n} teammate${n > 1 ? "s" : ""}`);
|
175338
176069
|
for (const email3 of emails) {
|
175339
|
-
output2.log(`${
|
176070
|
+
output2.log(`${import_chalk108.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
|
175340
176071
|
}
|
175341
176072
|
}
|
175342
176073
|
return 0;
|
175343
176074
|
}
|
175344
|
-
var
|
176075
|
+
var import_chalk108, import_error_utils31, validateEmail2, domains, emailAutoComplete;
|
175345
176076
|
var init_invite = __esm({
|
175346
176077
|
"src/commands/teams/invite.ts"() {
|
175347
176078
|
"use strict";
|
175348
|
-
|
176079
|
+
import_chalk108 = __toESM3(require_source());
|
175349
176080
|
init_cmd();
|
175350
176081
|
init_stamp();
|
175351
176082
|
init_param();
|
@@ -175434,7 +176165,7 @@ async function add7(client2) {
|
|
175434
176165
|
let elapsed2;
|
175435
176166
|
const { output: output2 } = client2;
|
175436
176167
|
output2.log(
|
175437
|
-
`Pick a team identifier for its URL (e.g.: ${
|
176168
|
+
`Pick a team identifier for its URL (e.g.: ${import_chalk109.default.cyan(
|
175438
176169
|
"`vercel.com/acme`"
|
175439
176170
|
)})`
|
175440
176171
|
);
|
@@ -175467,7 +176198,7 @@ async function add7(client2) {
|
|
175467
176198
|
output2.stopSpinner();
|
175468
176199
|
process.stdout.write(eraseLines(2));
|
175469
176200
|
output2.success(`Team created ${elapsed2()}`);
|
175470
|
-
output2.log(`${
|
176201
|
+
output2.log(`${import_chalk109.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
|
175471
176202
|
`);
|
175472
176203
|
output2.log("Pick a display name for your team");
|
175473
176204
|
let name;
|
@@ -175490,7 +176221,7 @@ async function add7(client2) {
|
|
175490
176221
|
process.stdout.write(eraseLines(2));
|
175491
176222
|
team = Object.assign(team, res);
|
175492
176223
|
output2.success(`Team name saved ${elapsed2()}`);
|
175493
|
-
output2.log(`${
|
176224
|
+
output2.log(`${import_chalk109.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
|
175494
176225
|
`);
|
175495
176226
|
output2.spinner("Saving");
|
175496
176227
|
client2.config.currentTeam = team.id;
|
@@ -175504,11 +176235,11 @@ async function add7(client2) {
|
|
175504
176235
|
});
|
175505
176236
|
return 0;
|
175506
176237
|
}
|
175507
|
-
var
|
176238
|
+
var import_chalk109, import_error_utils32, validateSlugKeypress, validateNameKeypress, teamUrlPrefix, teamNamePrefix;
|
175508
176239
|
var init_add6 = __esm({
|
175509
176240
|
"src/commands/teams/add.ts"() {
|
175510
176241
|
"use strict";
|
175511
|
-
|
176242
|
+
import_chalk109 = __toESM3(require_source());
|
175512
176243
|
init_stamp();
|
175513
176244
|
init_erase_lines();
|
175514
176245
|
init_chars();
|
@@ -175529,13 +176260,13 @@ var init_add6 = __esm({
|
|
175529
176260
|
// should be fixed on utils/input/text.js
|
175530
176261
|
/^[ a-zA-Z0-9_-]+$/.test(value + data)
|
175531
176262
|
);
|
175532
|
-
teamUrlPrefix = "Team URL".padEnd(14) +
|
176263
|
+
teamUrlPrefix = "Team URL".padEnd(14) + import_chalk109.default.gray("vercel.com/");
|
175533
176264
|
teamNamePrefix = "Team Name".padEnd(14);
|
175534
176265
|
}
|
175535
176266
|
});
|
175536
176267
|
|
175537
176268
|
// src/commands/teams/switch.ts
|
175538
|
-
async function
|
176269
|
+
async function main13(client2, desiredSlug) {
|
175539
176270
|
const { config: config3, output: output2 } = client2;
|
175540
176271
|
const personalScopeSelected = !config3.currentTeam;
|
175541
176272
|
output2.spinner("Fetching teams information");
|
@@ -175552,7 +176283,7 @@ async function main12(client2, desiredSlug) {
|
|
175552
176283
|
let title7 = `${team.name} (${team.slug})`;
|
175553
176284
|
const selected = team.id === currentTeam?.id;
|
175554
176285
|
if (selected) {
|
175555
|
-
title7 += ` ${
|
176286
|
+
title7 += ` ${import_chalk110.default.bold("(current)")}`;
|
175556
176287
|
}
|
175557
176288
|
if (team.limited) {
|
175558
176289
|
title7 += ` ${emoji("locked")}`;
|
@@ -175564,7 +176295,7 @@ async function main12(client2, desiredSlug) {
|
|
175564
176295
|
selected
|
175565
176296
|
};
|
175566
176297
|
});
|
175567
|
-
let suffix = personalScopeSelected ? ` ${
|
176298
|
+
let suffix = personalScopeSelected ? ` ${import_chalk110.default.bold("(current)")}` : "";
|
175568
176299
|
if (user.limited) {
|
175569
176300
|
suffix += ` ${emoji("locked")}`;
|
175570
176301
|
}
|
@@ -175610,14 +176341,14 @@ async function main12(client2, desiredSlug) {
|
|
175610
176341
|
}
|
175611
176342
|
updateCurrentTeam(config3);
|
175612
176343
|
output2.success(
|
175613
|
-
`Your account (${
|
176344
|
+
`Your account (${import_chalk110.default.bold(user.username)}) is now active!`
|
175614
176345
|
);
|
175615
176346
|
return 0;
|
175616
176347
|
}
|
175617
176348
|
const newTeam = teams.find((team) => team.slug === desiredSlug);
|
175618
176349
|
if (!newTeam) {
|
175619
176350
|
output2.error(
|
175620
|
-
`You do not have permission to access scope ${
|
176351
|
+
`You do not have permission to access scope ${import_chalk110.default.bold(desiredSlug)}.`
|
175621
176352
|
);
|
175622
176353
|
return 1;
|
175623
176354
|
}
|
@@ -175635,15 +176366,15 @@ async function main12(client2, desiredSlug) {
|
|
175635
176366
|
}
|
175636
176367
|
updateCurrentTeam(config3, newTeam);
|
175637
176368
|
output2.success(
|
175638
|
-
`The team ${
|
176369
|
+
`The team ${import_chalk110.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
|
175639
176370
|
);
|
175640
176371
|
return 0;
|
175641
176372
|
}
|
175642
|
-
var
|
176373
|
+
var import_chalk110, updateCurrentTeam;
|
175643
176374
|
var init_switch = __esm({
|
175644
176375
|
"src/commands/teams/switch.ts"() {
|
175645
176376
|
"use strict";
|
175646
|
-
|
176377
|
+
import_chalk110 = __toESM3(require_source());
|
175647
176378
|
init_emoji();
|
175648
176379
|
init_get_user();
|
175649
176380
|
init_get_teams();
|
@@ -175662,7 +176393,7 @@ var init_switch = __esm({
|
|
175662
176393
|
|
175663
176394
|
// src/commands/teams/command.ts
|
175664
176395
|
var teamsCommand;
|
175665
|
-
var
|
176396
|
+
var init_command26 = __esm({
|
175666
176397
|
"src/commands/teams/command.ts"() {
|
175667
176398
|
"use strict";
|
175668
176399
|
init_pkg_name();
|
@@ -175752,12 +176483,12 @@ var init_teams = __esm({
|
|
175752
176483
|
"src/commands/teams/index.ts"() {
|
175753
176484
|
"use strict";
|
175754
176485
|
init_error();
|
175755
|
-
|
176486
|
+
init_list5();
|
175756
176487
|
init_add6();
|
175757
176488
|
init_switch();
|
175758
176489
|
init_invite();
|
175759
176490
|
init_get_args();
|
175760
|
-
|
176491
|
+
init_command26();
|
175761
176492
|
init_help();
|
175762
176493
|
teams_default = async (client2) => {
|
175763
176494
|
let subcommand2;
|
@@ -175777,12 +176508,12 @@ var init_teams = __esm({
|
|
175777
176508
|
switch (subcommand2) {
|
175778
176509
|
case "list":
|
175779
176510
|
case "ls": {
|
175780
|
-
exitCode2 = await
|
176511
|
+
exitCode2 = await list5(client2);
|
175781
176512
|
break;
|
175782
176513
|
}
|
175783
176514
|
case "switch":
|
175784
176515
|
case "change": {
|
175785
|
-
exitCode2 = await
|
176516
|
+
exitCode2 = await main13(client2, argv2._[0]);
|
175786
176517
|
break;
|
175787
176518
|
}
|
175788
176519
|
case "add":
|
@@ -175813,7 +176544,7 @@ var init_teams = __esm({
|
|
175813
176544
|
|
175814
176545
|
// src/commands/whoami/command.ts
|
175815
176546
|
var whoamiCommand;
|
175816
|
-
var
|
176547
|
+
var init_command27 = __esm({
|
175817
176548
|
"src/commands/whoami/command.ts"() {
|
175818
176549
|
"use strict";
|
175819
176550
|
init_pkg_name();
|
@@ -175858,7 +176589,7 @@ var init_whoami = __esm({
|
|
175858
176589
|
"src/commands/whoami/index.ts"() {
|
175859
176590
|
"use strict";
|
175860
176591
|
init_help();
|
175861
|
-
|
176592
|
+
init_command27();
|
175862
176593
|
init_get_scope();
|
175863
176594
|
init_get_args();
|
175864
176595
|
}
|
@@ -175869,7 +176600,7 @@ var import_error_utils33 = __toESM3(require_dist2());
|
|
175869
176600
|
var import_path43 = require("path");
|
175870
176601
|
var import_fs9 = require("fs");
|
175871
176602
|
var import_fs_extra23 = __toESM3(require_lib());
|
175872
|
-
var
|
176603
|
+
var import_chalk111 = __toESM3(require_source());
|
175873
176604
|
var import_epipebomb = __toESM3(require_epipebomb());
|
175874
176605
|
|
175875
176606
|
// src/util/get-latest-version/index.ts
|
@@ -176008,6 +176739,8 @@ var commands_default = /* @__PURE__ */ new Map([
|
|
176008
176739
|
["secret", "secrets"],
|
176009
176740
|
["secrets", "secrets"],
|
176010
176741
|
["switch", "teams"],
|
176742
|
+
["target", "target"],
|
176743
|
+
["targets", "target"],
|
176011
176744
|
["team", "teams"],
|
176012
176745
|
["teams", "teams"],
|
176013
176746
|
["whoami", "whoami"]
|
@@ -176190,14 +176923,14 @@ ${action}: ${link_default(details)}` : "")
|
|
176190
176923
|
/**
|
176191
176924
|
* Returns an ANSI formatted hyperlink when support has been enabled.
|
176192
176925
|
*/
|
176193
|
-
this.link = (text2, url3, { fallback } = {}) => {
|
176926
|
+
this.link = (text2, url3, { fallback, color = import_chalk3.default.cyan } = {}) => {
|
176194
176927
|
if (!this.supportsHyperlink) {
|
176195
176928
|
if (fallback === false) {
|
176196
176929
|
return link_default(text2);
|
176197
176930
|
}
|
176198
176931
|
return typeof fallback === "function" ? fallback() : `${text2} (${link_default(url3)})`;
|
176199
176932
|
}
|
176200
|
-
return ansiEscapes2.link(
|
176933
|
+
return ansiEscapes2.link(color ? color(text2) : text2, url3);
|
176201
176934
|
};
|
176202
176935
|
this.stream = stream;
|
176203
176936
|
this.debugEnabled = debugEnabled;
|
@@ -176608,7 +177341,7 @@ var { isTTY: isTTY2 } = process.stdout;
|
|
176608
177341
|
var debug2 = () => {
|
176609
177342
|
};
|
176610
177343
|
var apiUrl = "https://api.vercel.com";
|
176611
|
-
var
|
177344
|
+
var main14 = async () => {
|
176612
177345
|
if (process.env.FORCE_TTY === "1") {
|
176613
177346
|
isTTY2 = true;
|
176614
177347
|
process.stdout.isTTY = true;
|
@@ -176668,13 +177401,13 @@ var main13 = async () => {
|
|
176668
177401
|
const betaCommands = [];
|
176669
177402
|
if (betaCommands.includes(targetOrSubcommand)) {
|
176670
177403
|
output.print(
|
176671
|
-
`${
|
177404
|
+
`${import_chalk111.default.grey(
|
176672
177405
|
`${getTitleName()} CLI ${pkg_default.version} ${targetOrSubcommand} (beta) \u2014 https://vercel.com/feedback`
|
176673
177406
|
)}
|
176674
177407
|
`
|
176675
177408
|
);
|
176676
177409
|
} else {
|
176677
|
-
output.print(`${
|
177410
|
+
output.print(`${import_chalk111.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
|
176678
177411
|
`);
|
176679
177412
|
}
|
176680
177413
|
if (!targetOrSubcommand && argv2["--version"]) {
|
@@ -176861,9 +177594,9 @@ var main13 = async () => {
|
|
176861
177594
|
)} instead.`
|
176862
177595
|
);
|
176863
177596
|
}
|
176864
|
-
let
|
177597
|
+
let targetCommand2 = typeof subcommand2 === "string" ? commands_default.get(subcommand2) : void 0;
|
176865
177598
|
const scope = argv2["--scope"] || argv2["--team"] || localConfig?.scope;
|
176866
|
-
if (typeof scope === "string" &&
|
177599
|
+
if (typeof scope === "string" && targetCommand2 !== "login" && targetCommand2 !== "build" && !(targetCommand2 === "teams" && subSubCommand !== "invite")) {
|
176867
177600
|
let user = null;
|
176868
177601
|
try {
|
176869
177602
|
user = await getUser(client);
|
@@ -176924,18 +177657,18 @@ var main13 = async () => {
|
|
176924
177657
|
const eventCategory = "Exit Code";
|
176925
177658
|
try {
|
176926
177659
|
const start = Date.now();
|
176927
|
-
if (!
|
176928
|
-
|
177660
|
+
if (!targetCommand2) {
|
177661
|
+
targetCommand2 = argv2._[2];
|
176929
177662
|
try {
|
176930
177663
|
exitCode2 = await execExtension(
|
176931
177664
|
client,
|
176932
|
-
|
177665
|
+
targetCommand2,
|
176933
177666
|
argv2._.slice(3),
|
176934
177667
|
cwd
|
176935
177668
|
);
|
176936
177669
|
} catch (err) {
|
176937
177670
|
if ((0, import_error_utils33.isErrnoException)(err) && err.code === "ENOENT") {
|
176938
|
-
|
177671
|
+
targetCommand2 = subcommand2 = "deploy";
|
176939
177672
|
} else {
|
176940
177673
|
throw err;
|
176941
177674
|
}
|
@@ -176943,7 +177676,7 @@ var main13 = async () => {
|
|
176943
177676
|
}
|
176944
177677
|
if (subcommand2) {
|
176945
177678
|
let func;
|
176946
|
-
switch (
|
177679
|
+
switch (targetCommand2) {
|
176947
177680
|
case "alias":
|
176948
177681
|
func = (init_alias(), __toCommonJS3(alias_exports)).default;
|
176949
177682
|
break;
|
@@ -177016,6 +177749,9 @@ var main13 = async () => {
|
|
177016
177749
|
case "secrets":
|
177017
177750
|
func = (init_secrets2(), __toCommonJS3(secrets_exports)).default;
|
177018
177751
|
break;
|
177752
|
+
case "target":
|
177753
|
+
func = (init_target(), __toCommonJS3(target_exports)).default;
|
177754
|
+
break;
|
177019
177755
|
case "teams":
|
177020
177756
|
func = (init_teams(), __toCommonJS3(teams_exports)).default;
|
177021
177757
|
break;
|
@@ -177026,7 +177762,7 @@ var main13 = async () => {
|
|
177026
177762
|
func = null;
|
177027
177763
|
break;
|
177028
177764
|
}
|
177029
|
-
if (!func || !
|
177765
|
+
if (!func || !targetCommand2) {
|
177030
177766
|
const sub = param(subcommand2);
|
177031
177767
|
output.error(`The ${sub} subcommand does not exist`);
|
177032
177768
|
return 1;
|
@@ -177041,7 +177777,7 @@ var main13 = async () => {
|
|
177041
177777
|
const category = "Command Invocation";
|
177042
177778
|
if (!metric2)
|
177043
177779
|
metric2 = metrics();
|
177044
|
-
metric2.timing(category,
|
177780
|
+
metric2.timing(category, targetCommand2, end, pkg_default.version).event(category, targetCommand2, pkg_default.version).send();
|
177045
177781
|
}
|
177046
177782
|
} catch (err) {
|
177047
177783
|
if ((0, import_error_utils33.isErrnoException)(err) && err.code === "ENOTFOUND") {
|
@@ -177131,7 +177867,7 @@ ${err.stack}`));
|
|
177131
177867
|
};
|
177132
177868
|
process.on("unhandledRejection", handleRejection);
|
177133
177869
|
process.on("uncaughtException", handleUnexpected);
|
177134
|
-
|
177870
|
+
main14().then(async (exitCode2) => {
|
177135
177871
|
if (isTTY2 && !process.env.NO_UPDATE_NOTIFIER) {
|
177136
177872
|
const latest = getLatestVersion({
|
177137
177873
|
output,
|
@@ -177139,20 +177875,20 @@ main13().then(async (exitCode2) => {
|
|
177139
177875
|
});
|
177140
177876
|
if (latest) {
|
177141
177877
|
const changelog = "https://github.com/vercel/vercel/releases";
|
177142
|
-
const errorMsg = exitCode2 && exitCode2 !== 2 ?
|
177878
|
+
const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk111.default.magenta(
|
177143
177879
|
`
|
177144
177880
|
|
177145
|
-
The latest update ${
|
177881
|
+
The latest update ${import_chalk111.default.italic(
|
177146
177882
|
"may"
|
177147
177883
|
)} fix any errors that occurred.`
|
177148
177884
|
) : "";
|
177149
177885
|
output.print(
|
177150
177886
|
box(
|
177151
|
-
`Update available! ${
|
177887
|
+
`Update available! ${import_chalk111.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk111.default.green(
|
177152
177888
|
`v${latest}`
|
177153
177889
|
)}
|
177154
177890
|
Changelog: ${output.link(changelog, changelog, { fallback: false })}
|
177155
|
-
Run ${
|
177891
|
+
Run ${import_chalk111.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
|
177156
177892
|
)
|
177157
177893
|
);
|
177158
177894
|
output.print("\n\n");
|