vercel 43.3.0 → 44.1.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 +858 -369
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -4071,14 +4071,14 @@ var require_templates = __commonJS2({
|
|
4071
4071
|
}
|
4072
4072
|
return results;
|
4073
4073
|
}
|
4074
|
-
function buildStyle(
|
4074
|
+
function buildStyle(chalk124, styles) {
|
4075
4075
|
const enabled = {};
|
4076
4076
|
for (const layer of styles) {
|
4077
4077
|
for (const style of layer.styles) {
|
4078
4078
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
4079
4079
|
}
|
4080
4080
|
}
|
4081
|
-
let current =
|
4081
|
+
let current = chalk124;
|
4082
4082
|
for (const [styleName, styles2] of Object.entries(enabled)) {
|
4083
4083
|
if (!Array.isArray(styles2)) {
|
4084
4084
|
continue;
|
@@ -4090,7 +4090,7 @@ var require_templates = __commonJS2({
|
|
4090
4090
|
}
|
4091
4091
|
return current;
|
4092
4092
|
}
|
4093
|
-
module2.exports = (
|
4093
|
+
module2.exports = (chalk124, temporary) => {
|
4094
4094
|
const styles = [];
|
4095
4095
|
const chunks = [];
|
4096
4096
|
let chunk = [];
|
@@ -4100,13 +4100,13 @@ var require_templates = __commonJS2({
|
|
4100
4100
|
} else if (style) {
|
4101
4101
|
const string = chunk.join("");
|
4102
4102
|
chunk = [];
|
4103
|
-
chunks.push(styles.length === 0 ? string : buildStyle(
|
4103
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk124, styles)(string));
|
4104
4104
|
styles.push({ inverse, styles: parseStyle(style) });
|
4105
4105
|
} else if (close2) {
|
4106
4106
|
if (styles.length === 0) {
|
4107
4107
|
throw new Error("Found extraneous } in Chalk template literal");
|
4108
4108
|
}
|
4109
|
-
chunks.push(buildStyle(
|
4109
|
+
chunks.push(buildStyle(chalk124, styles)(chunk.join("")));
|
4110
4110
|
chunk = [];
|
4111
4111
|
styles.pop();
|
4112
4112
|
} else {
|
@@ -4154,16 +4154,16 @@ var require_source = __commonJS2({
|
|
4154
4154
|
}
|
4155
4155
|
};
|
4156
4156
|
var chalkFactory = (options) => {
|
4157
|
-
const
|
4158
|
-
applyOptions(
|
4159
|
-
|
4160
|
-
Object.setPrototypeOf(
|
4161
|
-
Object.setPrototypeOf(
|
4162
|
-
|
4157
|
+
const chalk125 = {};
|
4158
|
+
applyOptions(chalk125, options);
|
4159
|
+
chalk125.template = (...arguments_) => chalkTag(chalk125.template, ...arguments_);
|
4160
|
+
Object.setPrototypeOf(chalk125, Chalk.prototype);
|
4161
|
+
Object.setPrototypeOf(chalk125.template, chalk125);
|
4162
|
+
chalk125.template.constructor = () => {
|
4163
4163
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
4164
4164
|
};
|
4165
|
-
|
4166
|
-
return
|
4165
|
+
chalk125.template.Instance = ChalkClass;
|
4166
|
+
return chalk125.template;
|
4167
4167
|
};
|
4168
4168
|
function Chalk(options) {
|
4169
4169
|
return chalkFactory(options);
|
@@ -4274,7 +4274,7 @@ var require_source = __commonJS2({
|
|
4274
4274
|
return openAll + string + closeAll;
|
4275
4275
|
};
|
4276
4276
|
var template;
|
4277
|
-
var chalkTag = (
|
4277
|
+
var chalkTag = (chalk125, ...strings) => {
|
4278
4278
|
const [firstString] = strings;
|
4279
4279
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
4280
4280
|
return strings.join(" ");
|
@@ -4290,14 +4290,14 @@ var require_source = __commonJS2({
|
|
4290
4290
|
if (template === void 0) {
|
4291
4291
|
template = require_templates();
|
4292
4292
|
}
|
4293
|
-
return template(
|
4293
|
+
return template(chalk125, parts.join(""));
|
4294
4294
|
};
|
4295
4295
|
Object.defineProperties(Chalk.prototype, styles);
|
4296
|
-
var
|
4297
|
-
|
4298
|
-
|
4299
|
-
|
4300
|
-
module2.exports =
|
4296
|
+
var chalk124 = Chalk();
|
4297
|
+
chalk124.supportsColor = stdoutColor;
|
4298
|
+
chalk124.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
4299
|
+
chalk124.stderr.supportsColor = stderrColor;
|
4300
|
+
module2.exports = chalk124;
|
4301
4301
|
}
|
4302
4302
|
});
|
4303
4303
|
|
@@ -7208,14 +7208,14 @@ var require_templates2 = __commonJS2({
|
|
7208
7208
|
}
|
7209
7209
|
return results;
|
7210
7210
|
}
|
7211
|
-
function buildStyle(
|
7211
|
+
function buildStyle(chalk124, styles) {
|
7212
7212
|
const enabled = {};
|
7213
7213
|
for (const layer of styles) {
|
7214
7214
|
for (const style of layer.styles) {
|
7215
7215
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
7216
7216
|
}
|
7217
7217
|
}
|
7218
|
-
let current =
|
7218
|
+
let current = chalk124;
|
7219
7219
|
for (const styleName of Object.keys(enabled)) {
|
7220
7220
|
if (Array.isArray(enabled[styleName])) {
|
7221
7221
|
if (!(styleName in current)) {
|
@@ -7230,7 +7230,7 @@ var require_templates2 = __commonJS2({
|
|
7230
7230
|
}
|
7231
7231
|
return current;
|
7232
7232
|
}
|
7233
|
-
module2.exports = (
|
7233
|
+
module2.exports = (chalk124, tmp) => {
|
7234
7234
|
const styles = [];
|
7235
7235
|
const chunks = [];
|
7236
7236
|
let chunk = [];
|
@@ -7240,13 +7240,13 @@ var require_templates2 = __commonJS2({
|
|
7240
7240
|
} else if (style) {
|
7241
7241
|
const str = chunk.join("");
|
7242
7242
|
chunk = [];
|
7243
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
7243
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk124, styles)(str));
|
7244
7244
|
styles.push({ inverse, styles: parseStyle(style) });
|
7245
7245
|
} else if (close2) {
|
7246
7246
|
if (styles.length === 0) {
|
7247
7247
|
throw new Error("Found extraneous } in Chalk template literal");
|
7248
7248
|
}
|
7249
|
-
chunks.push(buildStyle(
|
7249
|
+
chunks.push(buildStyle(chalk124, styles)(chunk.join("")));
|
7250
7250
|
chunk = [];
|
7251
7251
|
styles.pop();
|
7252
7252
|
} else {
|
@@ -7283,16 +7283,16 @@ var require_chalk = __commonJS2({
|
|
7283
7283
|
}
|
7284
7284
|
function Chalk(options) {
|
7285
7285
|
if (!this || !(this instanceof Chalk) || this.template) {
|
7286
|
-
const
|
7287
|
-
applyOptions(
|
7288
|
-
|
7286
|
+
const chalk124 = {};
|
7287
|
+
applyOptions(chalk124, options);
|
7288
|
+
chalk124.template = function() {
|
7289
7289
|
const args2 = [].slice.call(arguments);
|
7290
|
-
return chalkTag.apply(null, [
|
7290
|
+
return chalkTag.apply(null, [chalk124.template].concat(args2));
|
7291
7291
|
};
|
7292
|
-
Object.setPrototypeOf(
|
7293
|
-
Object.setPrototypeOf(
|
7294
|
-
|
7295
|
-
return
|
7292
|
+
Object.setPrototypeOf(chalk124, Chalk.prototype);
|
7293
|
+
Object.setPrototypeOf(chalk124.template, chalk124);
|
7294
|
+
chalk124.template.constructor = Chalk;
|
7295
|
+
return chalk124.template;
|
7296
7296
|
}
|
7297
7297
|
applyOptions(this, options);
|
7298
7298
|
}
|
@@ -7411,7 +7411,7 @@ var require_chalk = __commonJS2({
|
|
7411
7411
|
ansiStyles.dim.open = originalDim;
|
7412
7412
|
return str;
|
7413
7413
|
}
|
7414
|
-
function chalkTag(
|
7414
|
+
function chalkTag(chalk124, strings) {
|
7415
7415
|
if (!Array.isArray(strings)) {
|
7416
7416
|
return [].slice.call(arguments, 1).join(" ");
|
7417
7417
|
}
|
@@ -7421,7 +7421,7 @@ var require_chalk = __commonJS2({
|
|
7421
7421
|
parts.push(String(args2[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
7422
7422
|
parts.push(String(strings.raw[i]));
|
7423
7423
|
}
|
7424
|
-
return template(
|
7424
|
+
return template(chalk124, parts.join(""));
|
7425
7425
|
}
|
7426
7426
|
Object.defineProperties(Chalk.prototype, styles);
|
7427
7427
|
module2.exports = Chalk();
|
@@ -9372,21 +9372,21 @@ var require_cli_spinners = __commonJS2({
|
|
9372
9372
|
var require_log_symbols = __commonJS2({
|
9373
9373
|
"../../node_modules/.pnpm/log-symbols@2.2.0/node_modules/log-symbols/index.js"(exports2, module2) {
|
9374
9374
|
"use strict";
|
9375
|
-
var
|
9375
|
+
var chalk124 = require_chalk();
|
9376
9376
|
var isSupported = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color";
|
9377
|
-
var
|
9378
|
-
info:
|
9379
|
-
success:
|
9380
|
-
warning:
|
9381
|
-
error:
|
9377
|
+
var main16 = {
|
9378
|
+
info: chalk124.blue("\u2139"),
|
9379
|
+
success: chalk124.green("\u2714"),
|
9380
|
+
warning: chalk124.yellow("\u26A0"),
|
9381
|
+
error: chalk124.red("\u2716")
|
9382
9382
|
};
|
9383
9383
|
var fallbacks = {
|
9384
|
-
info:
|
9385
|
-
success:
|
9386
|
-
warning:
|
9387
|
-
error:
|
9384
|
+
info: chalk124.blue("i"),
|
9385
|
+
success: chalk124.green("\u221A"),
|
9386
|
+
warning: chalk124.yellow("\u203C"),
|
9387
|
+
error: chalk124.red("\xD7")
|
9388
9388
|
};
|
9389
|
-
module2.exports = isSupported ?
|
9389
|
+
module2.exports = isSupported ? main16 : fallbacks;
|
9390
9390
|
}
|
9391
9391
|
});
|
9392
9392
|
|
@@ -9780,7 +9780,7 @@ var require_wcwidth = __commonJS2({
|
|
9780
9780
|
var require_ora = __commonJS2({
|
9781
9781
|
"../../node_modules/.pnpm/ora@3.4.0/node_modules/ora/index.js"(exports2, module2) {
|
9782
9782
|
"use strict";
|
9783
|
-
var
|
9783
|
+
var chalk124 = require_chalk();
|
9784
9784
|
var cliCursor = require_cli_cursor();
|
9785
9785
|
var cliSpinners = require_cli_spinners();
|
9786
9786
|
var logSymbols = require_log_symbols();
|
@@ -9869,7 +9869,7 @@ var require_ora = __commonJS2({
|
|
9869
9869
|
const { frames } = this.spinner;
|
9870
9870
|
let frame = frames[this.frameIndex];
|
9871
9871
|
if (this.color) {
|
9872
|
-
frame =
|
9872
|
+
frame = chalk124[this.color](frame);
|
9873
9873
|
}
|
9874
9874
|
this.frameIndex = ++this.frameIndex % frames.length;
|
9875
9875
|
const fullPrefixText = typeof this.prefixText === "string" ? this.prefixText + " " : "";
|
@@ -12422,7 +12422,7 @@ var require_path = __commonJS2({
|
|
12422
12422
|
function isAbsolute2(path11) {
|
12423
12423
|
return path11.charAt(0) === "/";
|
12424
12424
|
}
|
12425
|
-
function
|
12425
|
+
function join24(...args2) {
|
12426
12426
|
return normalizePath6(args2.join("/"));
|
12427
12427
|
}
|
12428
12428
|
function dirname8(path11) {
|
@@ -12447,7 +12447,7 @@ var require_path = __commonJS2({
|
|
12447
12447
|
exports2.basename = basename9;
|
12448
12448
|
exports2.dirname = dirname8;
|
12449
12449
|
exports2.isAbsolute = isAbsolute2;
|
12450
|
-
exports2.join =
|
12450
|
+
exports2.join = join24;
|
12451
12451
|
exports2.normalizePath = normalizePath6;
|
12452
12452
|
exports2.relative = relative7;
|
12453
12453
|
exports2.resolve = resolve13;
|
@@ -31901,9 +31901,16 @@ var init_command5 = __esm({
|
|
31901
31901
|
name: "logs",
|
31902
31902
|
shorthand: "l",
|
31903
31903
|
type: Boolean,
|
31904
|
-
deprecated:
|
31904
|
+
deprecated: true,
|
31905
31905
|
description: "Print the build logs"
|
31906
31906
|
},
|
31907
|
+
{
|
31908
|
+
name: "no-logs",
|
31909
|
+
shorthand: null,
|
31910
|
+
type: Boolean,
|
31911
|
+
deprecated: false,
|
31912
|
+
description: "Do not print the build logs"
|
31913
|
+
},
|
31907
31914
|
{
|
31908
31915
|
name: "name",
|
31909
31916
|
shorthand: "n",
|
@@ -33321,9 +33328,52 @@ var init_command20 = __esm({
|
|
33321
33328
|
}
|
33322
33329
|
});
|
33323
33330
|
|
33331
|
+
// src/commands/microfrontends/command.ts
|
33332
|
+
var pullSubcommand2, microfrontendsCommand;
|
33333
|
+
var init_command21 = __esm({
|
33334
|
+
"src/commands/microfrontends/command.ts"() {
|
33335
|
+
"use strict";
|
33336
|
+
init_pkg_name();
|
33337
|
+
pullSubcommand2 = {
|
33338
|
+
name: "pull",
|
33339
|
+
aliases: [],
|
33340
|
+
description: "Pull a Vercel Microfrontends configuration into your project",
|
33341
|
+
arguments: [],
|
33342
|
+
options: [
|
33343
|
+
{
|
33344
|
+
name: "dpl",
|
33345
|
+
shorthand: null,
|
33346
|
+
deprecated: false,
|
33347
|
+
type: String,
|
33348
|
+
description: "The deploymentId to use for pulling the microfrontends configuration"
|
33349
|
+
}
|
33350
|
+
],
|
33351
|
+
examples: [
|
33352
|
+
{
|
33353
|
+
name: "Pull a microfrontends configuration",
|
33354
|
+
value: `${packageName} microfrontends pull`
|
33355
|
+
},
|
33356
|
+
{
|
33357
|
+
name: "Pull a microfrontends configuration for a specific deployment",
|
33358
|
+
value: `${packageName} microfrontends pull --dpl=<deployment-id>`
|
33359
|
+
}
|
33360
|
+
]
|
33361
|
+
};
|
33362
|
+
microfrontendsCommand = {
|
33363
|
+
name: "microfrontends",
|
33364
|
+
aliases: ["mf"],
|
33365
|
+
description: "Manages your microfrontends",
|
33366
|
+
arguments: [],
|
33367
|
+
subcommands: [pullSubcommand2],
|
33368
|
+
options: [],
|
33369
|
+
examples: []
|
33370
|
+
};
|
33371
|
+
}
|
33372
|
+
});
|
33373
|
+
|
33324
33374
|
// src/commands/project/command.ts
|
33325
33375
|
var addSubcommand6, inspectSubcommand2, listSubcommand7, removeSubcommand8, projectCommand;
|
33326
|
-
var
|
33376
|
+
var init_command22 = __esm({
|
33327
33377
|
"src/commands/project/command.ts"() {
|
33328
33378
|
"use strict";
|
33329
33379
|
init_pkg_name();
|
@@ -33423,7 +33473,7 @@ var init_command21 = __esm({
|
|
33423
33473
|
|
33424
33474
|
// src/commands/promote/command.ts
|
33425
33475
|
var statusSubcommand, promoteCommand;
|
33426
|
-
var
|
33476
|
+
var init_command23 = __esm({
|
33427
33477
|
"src/commands/promote/command.ts"() {
|
33428
33478
|
"use strict";
|
33429
33479
|
init_pkg_name();
|
@@ -33492,7 +33542,7 @@ var init_command22 = __esm({
|
|
33492
33542
|
|
33493
33543
|
// src/commands/pull/command.ts
|
33494
33544
|
var pullCommand;
|
33495
|
-
var
|
33545
|
+
var init_command24 = __esm({
|
33496
33546
|
"src/commands/pull/command.ts"() {
|
33497
33547
|
"use strict";
|
33498
33548
|
init_pkg_name();
|
@@ -33564,7 +33614,7 @@ var init_command23 = __esm({
|
|
33564
33614
|
|
33565
33615
|
// src/commands/redeploy/command.ts
|
33566
33616
|
var redeployCommand;
|
33567
|
-
var
|
33617
|
+
var init_command25 = __esm({
|
33568
33618
|
"src/commands/redeploy/command.ts"() {
|
33569
33619
|
"use strict";
|
33570
33620
|
init_pkg_name();
|
@@ -33615,7 +33665,7 @@ var init_command24 = __esm({
|
|
33615
33665
|
|
33616
33666
|
// src/commands/remove/command.ts
|
33617
33667
|
var removeCommand;
|
33618
|
-
var
|
33668
|
+
var init_command26 = __esm({
|
33619
33669
|
"src/commands/remove/command.ts"() {
|
33620
33670
|
"use strict";
|
33621
33671
|
init_pkg_name();
|
@@ -33665,7 +33715,7 @@ var init_command25 = __esm({
|
|
33665
33715
|
|
33666
33716
|
// src/commands/rollback/command.ts
|
33667
33717
|
var statusSubcommand2, rollbackCommand;
|
33668
|
-
var
|
33718
|
+
var init_command27 = __esm({
|
33669
33719
|
"src/commands/rollback/command.ts"() {
|
33670
33720
|
"use strict";
|
33671
33721
|
init_pkg_name();
|
@@ -33726,7 +33776,7 @@ var init_command26 = __esm({
|
|
33726
33776
|
|
33727
33777
|
// src/commands/rolling-release/command.ts
|
33728
33778
|
var configureSubcommand, startSubcommand, approveSubcommand, abortSubcommand, completeSubcommand, fetchSubcommand, rollingReleaseCommand;
|
33729
|
-
var
|
33779
|
+
var init_command28 = __esm({
|
33730
33780
|
"src/commands/rolling-release/command.ts"() {
|
33731
33781
|
"use strict";
|
33732
33782
|
init_arg_common();
|
@@ -33920,7 +33970,7 @@ var init_command27 = __esm({
|
|
33920
33970
|
|
33921
33971
|
// src/commands/target/command.ts
|
33922
33972
|
var listSubcommand8, targetCommand;
|
33923
|
-
var
|
33973
|
+
var init_command29 = __esm({
|
33924
33974
|
"src/commands/target/command.ts"() {
|
33925
33975
|
"use strict";
|
33926
33976
|
init_pkg_name();
|
@@ -33951,7 +34001,7 @@ var init_command28 = __esm({
|
|
33951
34001
|
|
33952
34002
|
// src/commands/teams/command.ts
|
33953
34003
|
var addSubcommand7, listSubcommand9, switchSubcommand, inviteSubcommand, teamsCommand;
|
33954
|
-
var
|
34004
|
+
var init_command30 = __esm({
|
33955
34005
|
"src/commands/teams/command.ts"() {
|
33956
34006
|
"use strict";
|
33957
34007
|
init_pkg_name();
|
@@ -34042,7 +34092,7 @@ var init_command29 = __esm({
|
|
34042
34092
|
|
34043
34093
|
// src/commands/telemetry/command.ts
|
34044
34094
|
var statusSubcommand3, enableSubcommand, flushSubcommand, disableSubcommand, telemetryCommand;
|
34045
|
-
var
|
34095
|
+
var init_command31 = __esm({
|
34046
34096
|
"src/commands/telemetry/command.ts"() {
|
34047
34097
|
"use strict";
|
34048
34098
|
statusSubcommand3 = {
|
@@ -34097,7 +34147,7 @@ var init_command30 = __esm({
|
|
34097
34147
|
|
34098
34148
|
// src/commands/whoami/command.ts
|
34099
34149
|
var whoamiCommand;
|
34100
|
-
var
|
34150
|
+
var init_command32 = __esm({
|
34101
34151
|
"src/commands/whoami/command.ts"() {
|
34102
34152
|
"use strict";
|
34103
34153
|
init_pkg_name();
|
@@ -34119,7 +34169,7 @@ var init_command31 = __esm({
|
|
34119
34169
|
|
34120
34170
|
// src/commands/blob/command.ts
|
34121
34171
|
var listSubcommand10, putSubcommand, delSubcommand, copySubcommand, addStoreSubcommand, removeStoreSubcommand, getStoreSubcommand, storeSubcommand, blobCommand;
|
34122
|
-
var
|
34172
|
+
var init_command33 = __esm({
|
34123
34173
|
"src/commands/blob/command.ts"() {
|
34124
34174
|
"use strict";
|
34125
34175
|
listSubcommand10 = {
|
@@ -34396,6 +34446,7 @@ var init_commands = __esm({
|
|
34396
34446
|
init_command30();
|
34397
34447
|
init_command31();
|
34398
34448
|
init_command32();
|
34449
|
+
init_command33();
|
34399
34450
|
init_output_manager();
|
34400
34451
|
commandsStructs = [
|
34401
34452
|
aliasCommand,
|
@@ -34419,6 +34470,7 @@ var init_commands = __esm({
|
|
34419
34470
|
loginCommand,
|
34420
34471
|
logoutCommand,
|
34421
34472
|
logsCommand,
|
34473
|
+
microfrontendsCommand,
|
34422
34474
|
projectCommand,
|
34423
34475
|
promoteCommand,
|
34424
34476
|
pullCommand,
|
@@ -35742,14 +35794,14 @@ var require_templates3 = __commonJS2({
|
|
35742
35794
|
}
|
35743
35795
|
return results;
|
35744
35796
|
}
|
35745
|
-
function buildStyle(
|
35797
|
+
function buildStyle(chalk124, styles) {
|
35746
35798
|
const enabled = {};
|
35747
35799
|
for (const layer of styles) {
|
35748
35800
|
for (const style of layer.styles) {
|
35749
35801
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
35750
35802
|
}
|
35751
35803
|
}
|
35752
|
-
let current =
|
35804
|
+
let current = chalk124;
|
35753
35805
|
for (const [styleName, styles2] of Object.entries(enabled)) {
|
35754
35806
|
if (!Array.isArray(styles2)) {
|
35755
35807
|
continue;
|
@@ -35761,7 +35813,7 @@ var require_templates3 = __commonJS2({
|
|
35761
35813
|
}
|
35762
35814
|
return current;
|
35763
35815
|
}
|
35764
|
-
module2.exports = (
|
35816
|
+
module2.exports = (chalk124, temporary) => {
|
35765
35817
|
const styles = [];
|
35766
35818
|
const chunks = [];
|
35767
35819
|
let chunk = [];
|
@@ -35771,13 +35823,13 @@ var require_templates3 = __commonJS2({
|
|
35771
35823
|
} else if (style) {
|
35772
35824
|
const string = chunk.join("");
|
35773
35825
|
chunk = [];
|
35774
|
-
chunks.push(styles.length === 0 ? string : buildStyle(
|
35826
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk124, styles)(string));
|
35775
35827
|
styles.push({ inverse, styles: parseStyle(style) });
|
35776
35828
|
} else if (close2) {
|
35777
35829
|
if (styles.length === 0) {
|
35778
35830
|
throw new Error("Found extraneous } in Chalk template literal");
|
35779
35831
|
}
|
35780
|
-
chunks.push(buildStyle(
|
35832
|
+
chunks.push(buildStyle(chalk124, styles)(chunk.join("")));
|
35781
35833
|
chunk = [];
|
35782
35834
|
styles.pop();
|
35783
35835
|
} else {
|
@@ -35825,16 +35877,16 @@ var require_source2 = __commonJS2({
|
|
35825
35877
|
}
|
35826
35878
|
};
|
35827
35879
|
var chalkFactory = (options) => {
|
35828
|
-
const
|
35829
|
-
applyOptions(
|
35830
|
-
|
35831
|
-
Object.setPrototypeOf(
|
35832
|
-
Object.setPrototypeOf(
|
35833
|
-
|
35880
|
+
const chalk125 = {};
|
35881
|
+
applyOptions(chalk125, options);
|
35882
|
+
chalk125.template = (...arguments_) => chalkTag(chalk125.template, ...arguments_);
|
35883
|
+
Object.setPrototypeOf(chalk125, Chalk.prototype);
|
35884
|
+
Object.setPrototypeOf(chalk125.template, chalk125);
|
35885
|
+
chalk125.template.constructor = () => {
|
35834
35886
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
35835
35887
|
};
|
35836
|
-
|
35837
|
-
return
|
35888
|
+
chalk125.template.Instance = ChalkClass;
|
35889
|
+
return chalk125.template;
|
35838
35890
|
};
|
35839
35891
|
function Chalk(options) {
|
35840
35892
|
return chalkFactory(options);
|
@@ -35945,7 +35997,7 @@ var require_source2 = __commonJS2({
|
|
35945
35997
|
return openAll + string + closeAll;
|
35946
35998
|
};
|
35947
35999
|
var template;
|
35948
|
-
var chalkTag = (
|
36000
|
+
var chalkTag = (chalk125, ...strings) => {
|
35949
36001
|
const [firstString] = strings;
|
35950
36002
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
35951
36003
|
return strings.join(" ");
|
@@ -35961,14 +36013,14 @@ var require_source2 = __commonJS2({
|
|
35961
36013
|
if (template === void 0) {
|
35962
36014
|
template = require_templates3();
|
35963
36015
|
}
|
35964
|
-
return template(
|
36016
|
+
return template(chalk125, parts.join(""));
|
35965
36017
|
};
|
35966
36018
|
Object.defineProperties(Chalk.prototype, styles);
|
35967
|
-
var
|
35968
|
-
|
35969
|
-
|
35970
|
-
|
35971
|
-
module2.exports =
|
36019
|
+
var chalk124 = Chalk();
|
36020
|
+
chalk124.supportsColor = stdoutColor;
|
36021
|
+
chalk124.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
36022
|
+
chalk124.stderr.supportsColor = stderrColor;
|
36023
|
+
module2.exports = chalk124;
|
35972
36024
|
}
|
35973
36025
|
});
|
35974
36026
|
|
@@ -37447,7 +37499,7 @@ var require_figures = __commonJS2({
|
|
37447
37499
|
"use strict";
|
37448
37500
|
var escapeStringRegexp = require_escape_string_regexp();
|
37449
37501
|
var { platform } = process;
|
37450
|
-
var
|
37502
|
+
var main16 = {
|
37451
37503
|
tick: "\u2714",
|
37452
37504
|
cross: "\u2716",
|
37453
37505
|
star: "\u2605",
|
@@ -37533,12 +37585,12 @@ var require_figures = __commonJS2({
|
|
37533
37585
|
hamburger: "\u2261",
|
37534
37586
|
smiley: "\u263A",
|
37535
37587
|
mustache: "\u250C\u2500\u2510",
|
37536
|
-
heart:
|
37588
|
+
heart: main16.heart,
|
37537
37589
|
nodejs: "\u2666",
|
37538
|
-
arrowUp:
|
37539
|
-
arrowDown:
|
37540
|
-
arrowLeft:
|
37541
|
-
arrowRight:
|
37590
|
+
arrowUp: main16.arrowUp,
|
37591
|
+
arrowDown: main16.arrowDown,
|
37592
|
+
arrowLeft: main16.arrowLeft,
|
37593
|
+
arrowRight: main16.arrowRight,
|
37542
37594
|
radioOn: "(*)",
|
37543
37595
|
radioOff: "( )",
|
37544
37596
|
checkboxOn: "[\xD7]",
|
@@ -37566,14 +37618,14 @@ var require_figures = __commonJS2({
|
|
37566
37618
|
sevenEighths: "7/8"
|
37567
37619
|
};
|
37568
37620
|
if (platform === "linux") {
|
37569
|
-
|
37621
|
+
main16.questionMarkPrefix = "?";
|
37570
37622
|
}
|
37571
|
-
var figures4 = platform === "win32" ? windows :
|
37623
|
+
var figures4 = platform === "win32" ? windows : main16;
|
37572
37624
|
var fn2 = (string) => {
|
37573
|
-
if (figures4 ===
|
37625
|
+
if (figures4 === main16) {
|
37574
37626
|
return string;
|
37575
37627
|
}
|
37576
|
-
for (const [key, value] of Object.entries(
|
37628
|
+
for (const [key, value] of Object.entries(main16)) {
|
37577
37629
|
if (value === figures4[key]) {
|
37578
37630
|
continue;
|
37579
37631
|
}
|
@@ -37582,7 +37634,7 @@ var require_figures = __commonJS2({
|
|
37582
37634
|
return string;
|
37583
37635
|
};
|
37584
37636
|
module2.exports = Object.assign(fn2, figures4);
|
37585
|
-
module2.exports.main =
|
37637
|
+
module2.exports.main = main16;
|
37586
37638
|
module2.exports.windows = windows;
|
37587
37639
|
}
|
37588
37640
|
});
|
@@ -43862,7 +43914,7 @@ var require_write_json_file = __commonJS2({
|
|
43862
43914
|
};
|
43863
43915
|
var readFile6 = (fp) => pify(fs15.readFile)(fp, "utf8").catch(() => {
|
43864
43916
|
});
|
43865
|
-
var
|
43917
|
+
var main16 = (fp, data, opts) => {
|
43866
43918
|
return (opts.detectIndent ? readFile6(fp) : Promise.resolve()).then((str) => {
|
43867
43919
|
const indent = str ? detectIndent(str).indent : opts.indent;
|
43868
43920
|
const json = JSON.stringify(data, opts.replacer, indent);
|
@@ -43887,7 +43939,7 @@ var require_write_json_file = __commonJS2({
|
|
43887
43939
|
`, { mode: opts.mode });
|
43888
43940
|
};
|
43889
43941
|
module2.exports = (fp, data, opts) => {
|
43890
|
-
return makeDir(path11.dirname(fp), { fs: fs15 }).then(() => init3(
|
43942
|
+
return makeDir(path11.dirname(fp), { fs: fs15 }).then(() => init3(main16, fp, data, opts));
|
43891
43943
|
};
|
43892
43944
|
module2.exports.sync = (fp, data, opts) => {
|
43893
43945
|
makeDir.sync(path11.dirname(fp), { fs: fs15 });
|
@@ -46094,7 +46146,7 @@ var require_hashes = __commonJS2({
|
|
46094
46146
|
});
|
46095
46147
|
module2.exports = __toCommonJS4(hashes_exports);
|
46096
46148
|
var import_crypto3 = require("crypto");
|
46097
|
-
var
|
46149
|
+
var import_fs_extra25 = __toESM4(require_lib8());
|
46098
46150
|
var import_async_sema = require_lib9();
|
46099
46151
|
function hash(buf) {
|
46100
46152
|
return (0, import_crypto3.createHash)("sha1").update(buf).digest("hex");
|
@@ -46113,17 +46165,17 @@ var require_hashes = __commonJS2({
|
|
46113
46165
|
await Promise.all(
|
46114
46166
|
files.map(async (name) => {
|
46115
46167
|
await semaphore.acquire();
|
46116
|
-
const stat2 = await
|
46168
|
+
const stat2 = await import_fs_extra25.default.lstat(name);
|
46117
46169
|
const mode = stat2.mode;
|
46118
46170
|
let data;
|
46119
46171
|
const isDirectory2 = stat2.isDirectory();
|
46120
46172
|
let h;
|
46121
46173
|
if (!isDirectory2) {
|
46122
46174
|
if (stat2.isSymbolicLink()) {
|
46123
|
-
const link4 = await
|
46175
|
+
const link4 = await import_fs_extra25.default.readlink(name);
|
46124
46176
|
data = Buffer.from(link4, "utf8");
|
46125
46177
|
} else {
|
46126
|
-
data = await
|
46178
|
+
data = await import_fs_extra25.default.readFile(name);
|
46127
46179
|
}
|
46128
46180
|
h = hash(data);
|
46129
46181
|
}
|
@@ -46705,7 +46757,7 @@ var require_package = __commonJS2({
|
|
46705
46757
|
"../client/package.json"(exports2, module2) {
|
46706
46758
|
module2.exports = {
|
46707
46759
|
name: "@vercel/client",
|
46708
|
-
version: "15.3.
|
46760
|
+
version: "15.3.6",
|
46709
46761
|
main: "dist/index.js",
|
46710
46762
|
typings: "dist/index.d.ts",
|
46711
46763
|
homepage: "https://vercel.com",
|
@@ -46747,7 +46799,7 @@ var require_package = __commonJS2({
|
|
46747
46799
|
"@vercel/build-utils": "10.6.1",
|
46748
46800
|
"@vercel/error-utils": "2.0.3",
|
46749
46801
|
"@vercel/microfrontends": "1.2.2",
|
46750
|
-
"@vercel/routing-utils": "5.0.
|
46802
|
+
"@vercel/routing-utils": "5.0.8",
|
46751
46803
|
"async-retry": "1.2.3",
|
46752
46804
|
"async-sema": "3.0.0",
|
46753
46805
|
"fs-extra": "8.0.1",
|
@@ -54903,14 +54955,14 @@ var require_utils12 = __commonJS2({
|
|
54903
54955
|
});
|
54904
54956
|
module2.exports = __toCommonJS4(utils_exports);
|
54905
54957
|
var import_node_fs3 = __toESM4(require("fs"), 1);
|
54906
|
-
var
|
54958
|
+
var import_node_path6 = require("path");
|
54907
54959
|
var CONFIGURATION_FILENAMES = [
|
54908
54960
|
"microfrontends.jsonc",
|
54909
54961
|
"microfrontends.json"
|
54910
54962
|
];
|
54911
54963
|
function findConfig({ dir }) {
|
54912
54964
|
for (const filename of CONFIGURATION_FILENAMES) {
|
54913
|
-
const maybeConfig = (0,
|
54965
|
+
const maybeConfig = (0, import_node_path6.join)(dir, filename);
|
54914
54966
|
if (import_node_fs3.default.existsSync(maybeConfig)) {
|
54915
54967
|
return maybeConfig;
|
54916
54968
|
}
|
@@ -55137,7 +55189,7 @@ var require_utils13 = __commonJS2({
|
|
55137
55189
|
var import_pkg5 = require_pkg();
|
55138
55190
|
var import_build_utils18 = require("@vercel/build-utils");
|
55139
55191
|
var import_async_sema = require_lib9();
|
55140
|
-
var
|
55192
|
+
var import_fs_extra25 = require_lib8();
|
55141
55193
|
var import_readdir_recursive = __toESM4(require_readdir_recursive());
|
55142
55194
|
var import_utils4 = require_utils12();
|
55143
55195
|
var semaphore = new import_async_sema.Sema(10);
|
@@ -55176,7 +55228,7 @@ var require_utils13 = __commonJS2({
|
|
55176
55228
|
return {};
|
55177
55229
|
}
|
55178
55230
|
try {
|
55179
|
-
const jsonString = await (0,
|
55231
|
+
const jsonString = await (0, import_fs_extra25.readFile)(filePath, "utf8");
|
55180
55232
|
return JSON.parse(jsonString);
|
55181
55233
|
} catch (e2) {
|
55182
55234
|
console.error(e2);
|
@@ -55185,7 +55237,7 @@ var require_utils13 = __commonJS2({
|
|
55185
55237
|
}
|
55186
55238
|
var maybeRead = async function(path11, default_) {
|
55187
55239
|
try {
|
55188
|
-
return await (0,
|
55240
|
+
return await (0, import_fs_extra25.readFile)(path11, "utf8");
|
55189
55241
|
} catch (err) {
|
55190
55242
|
return default_;
|
55191
55243
|
}
|
@@ -55219,7 +55271,7 @@ var require_utils13 = __commonJS2({
|
|
55219
55271
|
);
|
55220
55272
|
await Promise.all(
|
55221
55273
|
vcConfigFilePaths.map(async (p) => {
|
55222
|
-
const configJson = await (0,
|
55274
|
+
const configJson = await (0, import_fs_extra25.readFile)(p, "utf8");
|
55223
55275
|
const config2 = JSON.parse(configJson);
|
55224
55276
|
if (!config2.filePathMap)
|
55225
55277
|
return;
|
@@ -56580,7 +56632,7 @@ var require_BufferList = __commonJS2({
|
|
56580
56632
|
this.head = this.tail = null;
|
56581
56633
|
this.length = 0;
|
56582
56634
|
};
|
56583
|
-
BufferList.prototype.join = function
|
56635
|
+
BufferList.prototype.join = function join24(s) {
|
56584
56636
|
if (this.length === 0)
|
56585
56637
|
return "";
|
56586
56638
|
var p = this.head;
|
@@ -60334,7 +60386,7 @@ var require_create_deployment = __commonJS2({
|
|
60334
60386
|
default: () => buildCreateDeployment
|
60335
60387
|
});
|
60336
60388
|
module2.exports = __toCommonJS4(create_deployment_exports);
|
60337
|
-
var
|
60389
|
+
var import_fs_extra25 = require_lib8();
|
60338
60390
|
var import_path41 = require("path");
|
60339
60391
|
var import_hashes = require_hashes();
|
60340
60392
|
var import_upload = require_upload();
|
@@ -60367,7 +60419,7 @@ var require_create_deployment = __commonJS2({
|
|
60367
60419
|
message: "Options object must include a `token`"
|
60368
60420
|
});
|
60369
60421
|
}
|
60370
|
-
clientOptions.isDirectory = !Array.isArray(path11) && (0,
|
60422
|
+
clientOptions.isDirectory = !Array.isArray(path11) && (0, import_fs_extra25.lstatSync)(path11).isDirectory();
|
60371
60423
|
if (Array.isArray(path11)) {
|
60372
60424
|
for (const filePath of path11) {
|
60373
60425
|
if (!(0, import_path41.isAbsolute)(filePath)) {
|
@@ -67105,7 +67157,7 @@ var require_util4 = __commonJS2({
|
|
67105
67157
|
return path11;
|
67106
67158
|
}
|
67107
67159
|
exports2.normalize = normalize4;
|
67108
|
-
function
|
67160
|
+
function join24(aRoot, aPath) {
|
67109
67161
|
if (aRoot === "") {
|
67110
67162
|
aRoot = ".";
|
67111
67163
|
}
|
@@ -67137,7 +67189,7 @@ var require_util4 = __commonJS2({
|
|
67137
67189
|
}
|
67138
67190
|
return joined;
|
67139
67191
|
}
|
67140
|
-
exports2.join =
|
67192
|
+
exports2.join = join24;
|
67141
67193
|
exports2.isAbsolute = function(aPath) {
|
67142
67194
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
67143
67195
|
};
|
@@ -67310,7 +67362,7 @@ var require_util4 = __commonJS2({
|
|
67310
67362
|
parsed.path = parsed.path.substring(0, index + 1);
|
67311
67363
|
}
|
67312
67364
|
}
|
67313
|
-
sourceURL =
|
67365
|
+
sourceURL = join24(urlGenerate(parsed), sourceURL);
|
67314
67366
|
}
|
67315
67367
|
return normalize4(sourceURL);
|
67316
67368
|
}
|
@@ -69113,7 +69165,7 @@ var require_escodegen = __commonJS2({
|
|
69113
69165
|
function noEmptySpace() {
|
69114
69166
|
return space ? space : " ";
|
69115
69167
|
}
|
69116
|
-
function
|
69168
|
+
function join24(left, right) {
|
69117
69169
|
var leftSource, rightSource, leftCharCode, rightCharCode;
|
69118
69170
|
leftSource = toSourceNodeWhenNeeded(left).toString();
|
69119
69171
|
if (leftSource.length === 0) {
|
@@ -69444,8 +69496,8 @@ var require_escodegen = __commonJS2({
|
|
69444
69496
|
} else {
|
69445
69497
|
result.push(that.generateExpression(stmt.left, Precedence.Call, E_TTT));
|
69446
69498
|
}
|
69447
|
-
result =
|
69448
|
-
result = [
|
69499
|
+
result = join24(result, operator);
|
69500
|
+
result = [join24(
|
69449
69501
|
result,
|
69450
69502
|
that.generateExpression(stmt.right, Precedence.Assignment, E_TTT)
|
69451
69503
|
), ")"];
|
@@ -69588,11 +69640,11 @@ var require_escodegen = __commonJS2({
|
|
69588
69640
|
var result, fragment;
|
69589
69641
|
result = ["class"];
|
69590
69642
|
if (stmt.id) {
|
69591
|
-
result =
|
69643
|
+
result = join24(result, this.generateExpression(stmt.id, Precedence.Sequence, E_TTT));
|
69592
69644
|
}
|
69593
69645
|
if (stmt.superClass) {
|
69594
|
-
fragment =
|
69595
|
-
result =
|
69646
|
+
fragment = join24("extends", this.generateExpression(stmt.superClass, Precedence.Unary, E_TTT));
|
69647
|
+
result = join24(result, fragment);
|
69596
69648
|
}
|
69597
69649
|
result.push(space);
|
69598
69650
|
result.push(this.generateStatement(stmt.body, S_TFFT));
|
@@ -69605,9 +69657,9 @@ var require_escodegen = __commonJS2({
|
|
69605
69657
|
return escapeDirective(stmt.directive) + this.semicolon(flags);
|
69606
69658
|
},
|
69607
69659
|
DoWhileStatement: function(stmt, flags) {
|
69608
|
-
var result =
|
69660
|
+
var result = join24("do", this.maybeBlock(stmt.body, S_TFFF));
|
69609
69661
|
result = this.maybeBlockSuffix(stmt.body, result);
|
69610
|
-
return
|
69662
|
+
return join24(result, [
|
69611
69663
|
"while" + space + "(",
|
69612
69664
|
this.generateExpression(stmt.test, Precedence.Sequence, E_TTT),
|
69613
69665
|
")" + this.semicolon(flags)
|
@@ -69643,11 +69695,11 @@ var require_escodegen = __commonJS2({
|
|
69643
69695
|
ExportDefaultDeclaration: function(stmt, flags) {
|
69644
69696
|
var result = ["export"], bodyFlags;
|
69645
69697
|
bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
|
69646
|
-
result =
|
69698
|
+
result = join24(result, "default");
|
69647
69699
|
if (isStatement(stmt.declaration)) {
|
69648
|
-
result =
|
69700
|
+
result = join24(result, this.generateStatement(stmt.declaration, bodyFlags));
|
69649
69701
|
} else {
|
69650
|
-
result =
|
69702
|
+
result = join24(result, this.generateExpression(stmt.declaration, Precedence.Assignment, E_TTT) + this.semicolon(flags));
|
69651
69703
|
}
|
69652
69704
|
return result;
|
69653
69705
|
},
|
@@ -69655,15 +69707,15 @@ var require_escodegen = __commonJS2({
|
|
69655
69707
|
var result = ["export"], bodyFlags, that = this;
|
69656
69708
|
bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
|
69657
69709
|
if (stmt.declaration) {
|
69658
|
-
return
|
69710
|
+
return join24(result, this.generateStatement(stmt.declaration, bodyFlags));
|
69659
69711
|
}
|
69660
69712
|
if (stmt.specifiers) {
|
69661
69713
|
if (stmt.specifiers.length === 0) {
|
69662
|
-
result =
|
69714
|
+
result = join24(result, "{" + space + "}");
|
69663
69715
|
} else if (stmt.specifiers[0].type === Syntax.ExportBatchSpecifier) {
|
69664
|
-
result =
|
69716
|
+
result = join24(result, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT));
|
69665
69717
|
} else {
|
69666
|
-
result =
|
69718
|
+
result = join24(result, "{");
|
69667
69719
|
withIndent(function(indent2) {
|
69668
69720
|
var i, iz;
|
69669
69721
|
result.push(newline);
|
@@ -69681,7 +69733,7 @@ var require_escodegen = __commonJS2({
|
|
69681
69733
|
result.push(base + "}");
|
69682
69734
|
}
|
69683
69735
|
if (stmt.source) {
|
69684
|
-
result =
|
69736
|
+
result = join24(result, [
|
69685
69737
|
"from" + space,
|
69686
69738
|
// ModuleSpecifier
|
69687
69739
|
this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
|
@@ -69769,7 +69821,7 @@ var require_escodegen = __commonJS2({
|
|
69769
69821
|
];
|
69770
69822
|
cursor = 0;
|
69771
69823
|
if (stmt.specifiers[cursor].type === Syntax.ImportDefaultSpecifier) {
|
69772
|
-
result =
|
69824
|
+
result = join24(result, [
|
69773
69825
|
this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT)
|
69774
69826
|
]);
|
69775
69827
|
++cursor;
|
@@ -69779,7 +69831,7 @@ var require_escodegen = __commonJS2({
|
|
69779
69831
|
result.push(",");
|
69780
69832
|
}
|
69781
69833
|
if (stmt.specifiers[cursor].type === Syntax.ImportNamespaceSpecifier) {
|
69782
|
-
result =
|
69834
|
+
result = join24(result, [
|
69783
69835
|
space,
|
69784
69836
|
this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT)
|
69785
69837
|
]);
|
@@ -69808,7 +69860,7 @@ var require_escodegen = __commonJS2({
|
|
69808
69860
|
}
|
69809
69861
|
}
|
69810
69862
|
}
|
69811
|
-
result =
|
69863
|
+
result = join24(result, [
|
69812
69864
|
"from" + space,
|
69813
69865
|
// ModuleSpecifier
|
69814
69866
|
this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
|
@@ -69862,7 +69914,7 @@ var require_escodegen = __commonJS2({
|
|
69862
69914
|
return result;
|
69863
69915
|
},
|
69864
69916
|
ThrowStatement: function(stmt, flags) {
|
69865
|
-
return [
|
69917
|
+
return [join24(
|
69866
69918
|
"throw",
|
69867
69919
|
this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
|
69868
69920
|
), this.semicolon(flags)];
|
@@ -69873,7 +69925,7 @@ var require_escodegen = __commonJS2({
|
|
69873
69925
|
result = this.maybeBlockSuffix(stmt.block, result);
|
69874
69926
|
if (stmt.handlers) {
|
69875
69927
|
for (i = 0, iz = stmt.handlers.length; i < iz; ++i) {
|
69876
|
-
result =
|
69928
|
+
result = join24(result, this.generateStatement(stmt.handlers[i], S_TFFF));
|
69877
69929
|
if (stmt.finalizer || i + 1 !== iz) {
|
69878
69930
|
result = this.maybeBlockSuffix(stmt.handlers[i].body, result);
|
69879
69931
|
}
|
@@ -69881,7 +69933,7 @@ var require_escodegen = __commonJS2({
|
|
69881
69933
|
} else {
|
69882
69934
|
guardedHandlers = stmt.guardedHandlers || [];
|
69883
69935
|
for (i = 0, iz = guardedHandlers.length; i < iz; ++i) {
|
69884
|
-
result =
|
69936
|
+
result = join24(result, this.generateStatement(guardedHandlers[i], S_TFFF));
|
69885
69937
|
if (stmt.finalizer || i + 1 !== iz) {
|
69886
69938
|
result = this.maybeBlockSuffix(guardedHandlers[i].body, result);
|
69887
69939
|
}
|
@@ -69889,13 +69941,13 @@ var require_escodegen = __commonJS2({
|
|
69889
69941
|
if (stmt.handler) {
|
69890
69942
|
if (Array.isArray(stmt.handler)) {
|
69891
69943
|
for (i = 0, iz = stmt.handler.length; i < iz; ++i) {
|
69892
|
-
result =
|
69944
|
+
result = join24(result, this.generateStatement(stmt.handler[i], S_TFFF));
|
69893
69945
|
if (stmt.finalizer || i + 1 !== iz) {
|
69894
69946
|
result = this.maybeBlockSuffix(stmt.handler[i].body, result);
|
69895
69947
|
}
|
69896
69948
|
}
|
69897
69949
|
} else {
|
69898
|
-
result =
|
69950
|
+
result = join24(result, this.generateStatement(stmt.handler, S_TFFF));
|
69899
69951
|
if (stmt.finalizer) {
|
69900
69952
|
result = this.maybeBlockSuffix(stmt.handler.body, result);
|
69901
69953
|
}
|
@@ -69903,7 +69955,7 @@ var require_escodegen = __commonJS2({
|
|
69903
69955
|
}
|
69904
69956
|
}
|
69905
69957
|
if (stmt.finalizer) {
|
69906
|
-
result =
|
69958
|
+
result = join24(result, ["finally", this.maybeBlock(stmt.finalizer, S_TFFF)]);
|
69907
69959
|
}
|
69908
69960
|
return result;
|
69909
69961
|
},
|
@@ -69937,7 +69989,7 @@ var require_escodegen = __commonJS2({
|
|
69937
69989
|
withIndent(function() {
|
69938
69990
|
if (stmt.test) {
|
69939
69991
|
result = [
|
69940
|
-
|
69992
|
+
join24("case", that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)),
|
69941
69993
|
":"
|
69942
69994
|
];
|
69943
69995
|
} else {
|
@@ -69985,9 +70037,9 @@ var require_escodegen = __commonJS2({
|
|
69985
70037
|
result.push(this.maybeBlock(stmt.consequent, S_TFFF));
|
69986
70038
|
result = this.maybeBlockSuffix(stmt.consequent, result);
|
69987
70039
|
if (stmt.alternate.type === Syntax.IfStatement) {
|
69988
|
-
result =
|
70040
|
+
result = join24(result, ["else ", this.generateStatement(stmt.alternate, bodyFlags)]);
|
69989
70041
|
} else {
|
69990
|
-
result =
|
70042
|
+
result = join24(result, join24("else", this.maybeBlock(stmt.alternate, bodyFlags)));
|
69991
70043
|
}
|
69992
70044
|
} else {
|
69993
70045
|
result.push(this.maybeBlock(stmt.consequent, bodyFlags));
|
@@ -70088,7 +70140,7 @@ var require_escodegen = __commonJS2({
|
|
70088
70140
|
},
|
70089
70141
|
ReturnStatement: function(stmt, flags) {
|
70090
70142
|
if (stmt.argument) {
|
70091
|
-
return [
|
70143
|
+
return [join24(
|
70092
70144
|
"return",
|
70093
70145
|
this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
|
70094
70146
|
), this.semicolon(flags)];
|
@@ -70177,14 +70229,14 @@ var require_escodegen = __commonJS2({
|
|
70177
70229
|
if (leftSource.charCodeAt(leftSource.length - 1) === 47 && esutils.code.isIdentifierPartES5(expr.operator.charCodeAt(0))) {
|
70178
70230
|
result = [fragment, noEmptySpace(), expr.operator];
|
70179
70231
|
} else {
|
70180
|
-
result =
|
70232
|
+
result = join24(fragment, expr.operator);
|
70181
70233
|
}
|
70182
70234
|
fragment = this.generateExpression(expr.right, rightPrecedence, flags);
|
70183
70235
|
if (expr.operator === "/" && fragment.toString().charAt(0) === "/" || expr.operator.slice(-1) === "<" && fragment.toString().slice(0, 3) === "!--") {
|
70184
70236
|
result.push(noEmptySpace());
|
70185
70237
|
result.push(fragment);
|
70186
70238
|
} else {
|
70187
|
-
result =
|
70239
|
+
result = join24(result, fragment);
|
70188
70240
|
}
|
70189
70241
|
if (expr.operator === "in" && !(flags & F_ALLOW_IN)) {
|
70190
70242
|
return ["(", result, ")"];
|
@@ -70224,7 +70276,7 @@ var require_escodegen = __commonJS2({
|
|
70224
70276
|
var result, length, i, iz, itemFlags;
|
70225
70277
|
length = expr["arguments"].length;
|
70226
70278
|
itemFlags = flags & F_ALLOW_UNPARATH_NEW && !parentheses && length === 0 ? E_TFT : E_TFF;
|
70227
|
-
result =
|
70279
|
+
result = join24(
|
70228
70280
|
"new",
|
70229
70281
|
this.generateExpression(expr.callee, Precedence.New, itemFlags)
|
70230
70282
|
);
|
@@ -70274,11 +70326,11 @@ var require_escodegen = __commonJS2({
|
|
70274
70326
|
var result, fragment, rightCharCode, leftSource, leftCharCode;
|
70275
70327
|
fragment = this.generateExpression(expr.argument, Precedence.Unary, E_TTT);
|
70276
70328
|
if (space === "") {
|
70277
|
-
result =
|
70329
|
+
result = join24(expr.operator, fragment);
|
70278
70330
|
} else {
|
70279
70331
|
result = [expr.operator];
|
70280
70332
|
if (expr.operator.length > 2) {
|
70281
|
-
result =
|
70333
|
+
result = join24(result, fragment);
|
70282
70334
|
} else {
|
70283
70335
|
leftSource = toSourceNodeWhenNeeded(result).toString();
|
70284
70336
|
leftCharCode = leftSource.charCodeAt(leftSource.length - 1);
|
@@ -70301,7 +70353,7 @@ var require_escodegen = __commonJS2({
|
|
70301
70353
|
result = "yield";
|
70302
70354
|
}
|
70303
70355
|
if (expr.argument) {
|
70304
|
-
result =
|
70356
|
+
result = join24(
|
70305
70357
|
result,
|
70306
70358
|
this.generateExpression(expr.argument, Precedence.Yield, E_TTT)
|
70307
70359
|
);
|
@@ -70309,7 +70361,7 @@ var require_escodegen = __commonJS2({
|
|
70309
70361
|
return parenthesize(result, Precedence.Yield, precedence);
|
70310
70362
|
},
|
70311
70363
|
AwaitExpression: function(expr, precedence, flags) {
|
70312
|
-
var result =
|
70364
|
+
var result = join24(
|
70313
70365
|
expr.all ? "await*" : "await",
|
70314
70366
|
this.generateExpression(expr.argument, Precedence.Await, E_TTT)
|
70315
70367
|
);
|
@@ -70392,11 +70444,11 @@ var require_escodegen = __commonJS2({
|
|
70392
70444
|
var result, fragment;
|
70393
70445
|
result = ["class"];
|
70394
70446
|
if (expr.id) {
|
70395
|
-
result =
|
70447
|
+
result = join24(result, this.generateExpression(expr.id, Precedence.Sequence, E_TTT));
|
70396
70448
|
}
|
70397
70449
|
if (expr.superClass) {
|
70398
|
-
fragment =
|
70399
|
-
result =
|
70450
|
+
fragment = join24("extends", this.generateExpression(expr.superClass, Precedence.Unary, E_TTT));
|
70451
|
+
result = join24(result, fragment);
|
70400
70452
|
}
|
70401
70453
|
result.push(space);
|
70402
70454
|
result.push(this.generateStatement(expr.body, S_TFFT));
|
@@ -70411,7 +70463,7 @@ var require_escodegen = __commonJS2({
|
|
70411
70463
|
}
|
70412
70464
|
if (expr.kind === "get" || expr.kind === "set") {
|
70413
70465
|
fragment = [
|
70414
|
-
|
70466
|
+
join24(expr.kind, this.generatePropertyKey(expr.key, expr.computed)),
|
70415
70467
|
this.generateFunctionBody(expr.value)
|
70416
70468
|
];
|
70417
70469
|
} else {
|
@@ -70421,7 +70473,7 @@ var require_escodegen = __commonJS2({
|
|
70421
70473
|
this.generateFunctionBody(expr.value)
|
70422
70474
|
];
|
70423
70475
|
}
|
70424
|
-
return
|
70476
|
+
return join24(result, fragment);
|
70425
70477
|
},
|
70426
70478
|
Property: function(expr, precedence, flags) {
|
70427
70479
|
if (expr.kind === "get" || expr.kind === "set") {
|
@@ -70616,7 +70668,7 @@ var require_escodegen = __commonJS2({
|
|
70616
70668
|
for (i = 0, iz = expr.blocks.length; i < iz; ++i) {
|
70617
70669
|
fragment = that.generateExpression(expr.blocks[i], Precedence.Sequence, E_TTT);
|
70618
70670
|
if (i > 0 || extra.moz.comprehensionExpressionStartsWithAssignment) {
|
70619
|
-
result =
|
70671
|
+
result = join24(result, fragment);
|
70620
70672
|
} else {
|
70621
70673
|
result.push(fragment);
|
70622
70674
|
}
|
@@ -70624,13 +70676,13 @@ var require_escodegen = __commonJS2({
|
|
70624
70676
|
});
|
70625
70677
|
}
|
70626
70678
|
if (expr.filter) {
|
70627
|
-
result =
|
70679
|
+
result = join24(result, "if" + space);
|
70628
70680
|
fragment = this.generateExpression(expr.filter, Precedence.Sequence, E_TTT);
|
70629
|
-
result =
|
70681
|
+
result = join24(result, ["(", fragment, ")"]);
|
70630
70682
|
}
|
70631
70683
|
if (!extra.moz.comprehensionExpressionStartsWithAssignment) {
|
70632
70684
|
fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT);
|
70633
|
-
result =
|
70685
|
+
result = join24(result, fragment);
|
70634
70686
|
}
|
70635
70687
|
result.push(expr.type === Syntax.GeneratorExpression ? ")" : "]");
|
70636
70688
|
return result;
|
@@ -70646,8 +70698,8 @@ var require_escodegen = __commonJS2({
|
|
70646
70698
|
} else {
|
70647
70699
|
fragment = this.generateExpression(expr.left, Precedence.Call, E_TTT);
|
70648
70700
|
}
|
70649
|
-
fragment =
|
70650
|
-
fragment =
|
70701
|
+
fragment = join24(fragment, expr.of ? "of" : "in");
|
70702
|
+
fragment = join24(fragment, this.generateExpression(expr.right, Precedence.Sequence, E_TTT));
|
70651
70703
|
return ["for" + space + "(", fragment, ")"];
|
70652
70704
|
},
|
70653
70705
|
SpreadElement: function(expr, precedence, flags) {
|
@@ -91066,7 +91118,7 @@ var require_isexe = __commonJS2({
|
|
91066
91118
|
var require_lib11 = __commonJS2({
|
91067
91119
|
"../../node_modules/.pnpm/which@3.0.0/node_modules/which/lib/index.js"(exports2, module2) {
|
91068
91120
|
var isexe = require_isexe();
|
91069
|
-
var { join:
|
91121
|
+
var { join: join24, delimiter: delimiter3, sep: sep3, posix: posix2 } = require("path");
|
91070
91122
|
var isWindows = process.platform === "win32";
|
91071
91123
|
var rSlash = new RegExp(`[${posix2.sep}${sep3 === posix2.sep ? "" : sep3}]`.replace(/(\\)/g, "\\$1"));
|
91072
91124
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
@@ -91095,7 +91147,7 @@ var require_lib11 = __commonJS2({
|
|
91095
91147
|
var getPathPart = (raw, cmd2) => {
|
91096
91148
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
91097
91149
|
const prefix = !pathPart && rRel.test(cmd2) ? cmd2.slice(0, 2) : "";
|
91098
|
-
return prefix +
|
91150
|
+
return prefix + join24(pathPart, cmd2);
|
91099
91151
|
};
|
91100
91152
|
var which2 = async (cmd2, opt = {}) => {
|
91101
91153
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd2, opt);
|
@@ -100566,7 +100618,7 @@ var init_list4 = __esm({
|
|
100566
100618
|
init_get_command_flags();
|
100567
100619
|
init_get_args();
|
100568
100620
|
init_get_flags_specification();
|
100569
|
-
|
100621
|
+
init_command33();
|
100570
100622
|
init_pkg_name();
|
100571
100623
|
init_list3();
|
100572
100624
|
init_error2();
|
@@ -100776,7 +100828,7 @@ var init_put2 = __esm({
|
|
100776
100828
|
blob2 = __toESM3(require("@vercel/blob"));
|
100777
100829
|
init_get_args();
|
100778
100830
|
init_get_flags_specification();
|
100779
|
-
|
100831
|
+
init_command33();
|
100780
100832
|
import_node_fs = require("fs");
|
100781
100833
|
import_error_utils12 = __toESM3(require_dist2());
|
100782
100834
|
import_node_path = require("path");
|
@@ -100849,7 +100901,7 @@ var init_del2 = __esm({
|
|
100849
100901
|
blob3 = __toESM3(require("@vercel/blob"));
|
100850
100902
|
init_get_args();
|
100851
100903
|
init_get_flags_specification();
|
100852
|
-
|
100904
|
+
init_command33();
|
100853
100905
|
init_del();
|
100854
100906
|
init_error2();
|
100855
100907
|
init_pkg_name();
|
@@ -100968,7 +101020,7 @@ var init_copy2 = __esm({
|
|
100968
101020
|
blob4 = __toESM3(require("@vercel/blob"));
|
100969
101021
|
init_get_args();
|
100970
101022
|
init_get_flags_specification();
|
100971
|
-
|
101023
|
+
init_command33();
|
100972
101024
|
init_copy();
|
100973
101025
|
init_pkg_name();
|
100974
101026
|
}
|
@@ -115438,6 +115490,7 @@ var require_frameworks = __commonJS2({
|
|
115438
115490
|
website: "https://nuxtjs.org",
|
115439
115491
|
sort: 2,
|
115440
115492
|
envPrefix: "NUXT_ENV_",
|
115493
|
+
supersedes: ["nitro"],
|
115441
115494
|
detectors: {
|
115442
115495
|
some: [
|
115443
115496
|
{
|
@@ -116098,6 +116151,35 @@ var require_frameworks = __commonJS2({
|
|
116098
116151
|
},
|
116099
116152
|
getOutputDirName: async () => "storybook-static"
|
116100
116153
|
},
|
116154
|
+
{
|
116155
|
+
name: "Nitro",
|
116156
|
+
slug: "nitro",
|
116157
|
+
logo: "https://api-frameworks.vercel.sh/framework-logos/nitro.svg",
|
116158
|
+
demo: "https://nitro-template.vercel.app",
|
116159
|
+
tagline: "Nitro is a next generation server toolkit.",
|
116160
|
+
description: "Nitro lets you create web servers that run on multiple platforms.",
|
116161
|
+
website: "https://nitro.build/",
|
116162
|
+
detectors: {
|
116163
|
+
every: [{ matchPackage: "nitropack" }]
|
116164
|
+
},
|
116165
|
+
settings: {
|
116166
|
+
installCommand: {
|
116167
|
+
placeholder: "`yarn install`, `pnpm install`, `npm install`, or `bun install`"
|
116168
|
+
},
|
116169
|
+
buildCommand: {
|
116170
|
+
placeholder: "`npm run build` or `nitro build`",
|
116171
|
+
value: "nitro build"
|
116172
|
+
},
|
116173
|
+
devCommand: {
|
116174
|
+
value: "nitro dev"
|
116175
|
+
},
|
116176
|
+
outputDirectory: {
|
116177
|
+
value: "dist"
|
116178
|
+
}
|
116179
|
+
},
|
116180
|
+
dependency: "nitropack",
|
116181
|
+
getOutputDirName: () => Promise
|
116182
|
+
},
|
116101
116183
|
{
|
116102
116184
|
name: "Other",
|
116103
116185
|
slug: null,
|
@@ -118885,7 +118967,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
118885
118967
|
});
|
118886
118968
|
module2.exports = __toCommonJS4(detect_file_system_api_exports);
|
118887
118969
|
var import_semver4 = __toESM4(require_semver2());
|
118888
|
-
var
|
118970
|
+
var import__93 = require_dist20();
|
118889
118971
|
async function detectFileSystemAPI2({
|
118890
118972
|
files,
|
118891
118973
|
projectSettings,
|
@@ -118951,7 +119033,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
118951
119033
|
};
|
118952
119034
|
}
|
118953
119035
|
const invalidBuilder = builders.find(({ use }) => {
|
118954
|
-
const valid = (0,
|
119036
|
+
const valid = (0, import__93.isOfficialRuntime)("go", use) || (0, import__93.isOfficialRuntime)("python", use) || (0, import__93.isOfficialRuntime)("ruby", use) || (0, import__93.isOfficialRuntime)("node", use) || (0, import__93.isOfficialRuntime)("next", use) || (0, import__93.isOfficialRuntime)("static", use) || (0, import__93.isOfficialRuntime)("static-build", use);
|
118955
119037
|
return !valid;
|
118956
119038
|
});
|
118957
119039
|
if (invalidBuilder) {
|
@@ -118964,7 +119046,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
118964
119046
|
for (const lang of ["go", "python", "ruby"]) {
|
118965
119047
|
for (const { use } of builders) {
|
118966
119048
|
const plugin = "vercel-plugin-" + lang;
|
118967
|
-
if ((0,
|
119049
|
+
if ((0, import__93.isOfficialRuntime)(lang, use) && !deps[plugin]) {
|
118968
119050
|
return {
|
118969
119051
|
metadata,
|
118970
119052
|
fsApiBuilder: null,
|
@@ -119021,7 +119103,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
119021
119103
|
}
|
119022
119104
|
}
|
119023
119105
|
const frontendBuilder = builders.find(
|
119024
|
-
({ use }) => (0,
|
119106
|
+
({ use }) => (0, import__93.isOfficialRuntime)("next", use) || (0, import__93.isOfficialRuntime)("static", use) || (0, import__93.isOfficialRuntime)("static-build", use)
|
119025
119107
|
);
|
119026
119108
|
const config2 = frontendBuilder?.config || {};
|
119027
119109
|
const withTag = tag ? `@${tag}` : "";
|
@@ -126772,7 +126854,7 @@ var init_store_add2 = __esm({
|
|
126772
126854
|
init_pkg_name();
|
126773
126855
|
init_get_flags_specification();
|
126774
126856
|
init_get_args();
|
126775
|
-
|
126857
|
+
init_command33();
|
126776
126858
|
init_store_add();
|
126777
126859
|
init_error2();
|
126778
126860
|
}
|
@@ -126848,7 +126930,7 @@ var init_store_remove = __esm({
|
|
126848
126930
|
init_error2();
|
126849
126931
|
init_output_manager();
|
126850
126932
|
init_get_flags_specification();
|
126851
|
-
|
126933
|
+
init_command33();
|
126852
126934
|
init_get_args();
|
126853
126935
|
init_link2();
|
126854
126936
|
}
|
@@ -129269,7 +129351,7 @@ var init_store_get2 = __esm({
|
|
129269
129351
|
init_get_args();
|
129270
129352
|
init_get_flags_specification();
|
129271
129353
|
init_link2();
|
129272
|
-
|
129354
|
+
init_command33();
|
129273
129355
|
import_date_fns = __toESM3(require_date_fns());
|
129274
129356
|
import_chalk40 = __toESM3(require_source());
|
129275
129357
|
init_store_get();
|
@@ -129348,7 +129430,7 @@ var init_store2 = __esm({
|
|
129348
129430
|
init_get_invalid_subcommand();
|
129349
129431
|
init_get_subcommand();
|
129350
129432
|
init_help();
|
129351
|
-
|
129433
|
+
init_command33();
|
129352
129434
|
init_get_flags_specification();
|
129353
129435
|
init_output_manager();
|
129354
129436
|
init_commands();
|
@@ -129506,7 +129588,7 @@ var init_token = __esm({
|
|
129506
129588
|
import_node_path2 = require("path");
|
129507
129589
|
init_diff_env_files();
|
129508
129590
|
init_get_flags_specification();
|
129509
|
-
|
129591
|
+
init_command33();
|
129510
129592
|
init_get_args();
|
129511
129593
|
init_pkg_name();
|
129512
129594
|
init_cmd();
|
@@ -129624,7 +129706,7 @@ var init_blob2 = __esm({
|
|
129624
129706
|
init_get_subcommand();
|
129625
129707
|
init_help();
|
129626
129708
|
init_list4();
|
129627
|
-
|
129709
|
+
init_command33();
|
129628
129710
|
init_get_flags_specification();
|
129629
129711
|
init_output_manager();
|
129630
129712
|
init_commands();
|
@@ -131215,6 +131297,195 @@ var require_schemas = __commonJS2({
|
|
131215
131297
|
]
|
131216
131298
|
}
|
131217
131299
|
};
|
131300
|
+
var transformsSchema = {
|
131301
|
+
description: "A list of transform rules to adjust the query parameters of a request or HTTP headers of request or response",
|
131302
|
+
type: "array",
|
131303
|
+
minItems: 1,
|
131304
|
+
items: {
|
131305
|
+
type: "object",
|
131306
|
+
additionalProperties: false,
|
131307
|
+
required: ["type", "op", "target"],
|
131308
|
+
properties: {
|
131309
|
+
type: {
|
131310
|
+
description: "The scope of the transform to apply",
|
131311
|
+
type: "string",
|
131312
|
+
enum: ["request.headers", "request.query", "response.headers"]
|
131313
|
+
},
|
131314
|
+
op: {
|
131315
|
+
description: "The operation to perform on the target",
|
131316
|
+
type: "string",
|
131317
|
+
enum: ["append", "set", "delete"]
|
131318
|
+
},
|
131319
|
+
target: {
|
131320
|
+
description: "The target of the transform",
|
131321
|
+
type: "object",
|
131322
|
+
required: ["key"],
|
131323
|
+
properties: {
|
131324
|
+
// re is not supported for transforms. Once supported, replace target.key with matchableValueSchema
|
131325
|
+
key: {
|
131326
|
+
description: "A value to match against. Can be a string or a condition operation object (without regex support)",
|
131327
|
+
anyOf: [
|
131328
|
+
{
|
131329
|
+
description: "A valid header name (letters, numbers, hyphens, underscores)",
|
131330
|
+
type: "string",
|
131331
|
+
maxLength: 4096
|
131332
|
+
},
|
131333
|
+
{
|
131334
|
+
description: "A condition operation object",
|
131335
|
+
type: "object",
|
131336
|
+
additionalProperties: false,
|
131337
|
+
minProperties: 1,
|
131338
|
+
properties: {
|
131339
|
+
eq: {
|
131340
|
+
description: "Equal to",
|
131341
|
+
anyOf: [
|
131342
|
+
{
|
131343
|
+
type: "string",
|
131344
|
+
maxLength: 4096
|
131345
|
+
},
|
131346
|
+
{
|
131347
|
+
type: "number"
|
131348
|
+
}
|
131349
|
+
]
|
131350
|
+
},
|
131351
|
+
neq: {
|
131352
|
+
description: "Not equal",
|
131353
|
+
type: "string",
|
131354
|
+
maxLength: 4096
|
131355
|
+
},
|
131356
|
+
inc: {
|
131357
|
+
description: "In array",
|
131358
|
+
type: "array",
|
131359
|
+
items: {
|
131360
|
+
type: "string",
|
131361
|
+
maxLength: 4096
|
131362
|
+
}
|
131363
|
+
},
|
131364
|
+
ninc: {
|
131365
|
+
description: "Not in array",
|
131366
|
+
type: "array",
|
131367
|
+
items: {
|
131368
|
+
type: "string",
|
131369
|
+
maxLength: 4096
|
131370
|
+
}
|
131371
|
+
},
|
131372
|
+
pre: {
|
131373
|
+
description: "Starts with",
|
131374
|
+
type: "string",
|
131375
|
+
maxLength: 4096
|
131376
|
+
},
|
131377
|
+
suf: {
|
131378
|
+
description: "Ends with",
|
131379
|
+
type: "string",
|
131380
|
+
maxLength: 4096
|
131381
|
+
},
|
131382
|
+
gt: {
|
131383
|
+
description: "Greater than",
|
131384
|
+
type: "number"
|
131385
|
+
},
|
131386
|
+
gte: {
|
131387
|
+
description: "Greater than or equal to",
|
131388
|
+
type: "number"
|
131389
|
+
},
|
131390
|
+
lt: {
|
131391
|
+
description: "Less than",
|
131392
|
+
type: "number"
|
131393
|
+
},
|
131394
|
+
lte: {
|
131395
|
+
description: "Less than or equal to",
|
131396
|
+
type: "number"
|
131397
|
+
}
|
131398
|
+
}
|
131399
|
+
}
|
131400
|
+
]
|
131401
|
+
}
|
131402
|
+
}
|
131403
|
+
},
|
131404
|
+
args: {
|
131405
|
+
description: "The arguments to the operation",
|
131406
|
+
anyOf: [
|
131407
|
+
{
|
131408
|
+
type: "string",
|
131409
|
+
maxLength: 4096
|
131410
|
+
},
|
131411
|
+
{
|
131412
|
+
type: "array",
|
131413
|
+
minItems: 1,
|
131414
|
+
items: {
|
131415
|
+
type: "string",
|
131416
|
+
maxLength: 4096
|
131417
|
+
}
|
131418
|
+
}
|
131419
|
+
]
|
131420
|
+
}
|
131421
|
+
},
|
131422
|
+
allOf: [
|
131423
|
+
{
|
131424
|
+
if: {
|
131425
|
+
properties: {
|
131426
|
+
op: {
|
131427
|
+
enum: ["append", "set"]
|
131428
|
+
}
|
131429
|
+
}
|
131430
|
+
},
|
131431
|
+
then: {
|
131432
|
+
required: ["args"]
|
131433
|
+
}
|
131434
|
+
},
|
131435
|
+
{
|
131436
|
+
if: {
|
131437
|
+
allOf: [
|
131438
|
+
{
|
131439
|
+
properties: {
|
131440
|
+
type: {
|
131441
|
+
enum: ["request.headers", "response.headers"]
|
131442
|
+
}
|
131443
|
+
}
|
131444
|
+
},
|
131445
|
+
{
|
131446
|
+
properties: {
|
131447
|
+
op: {
|
131448
|
+
enum: ["set", "append"]
|
131449
|
+
}
|
131450
|
+
}
|
131451
|
+
}
|
131452
|
+
]
|
131453
|
+
},
|
131454
|
+
then: {
|
131455
|
+
properties: {
|
131456
|
+
target: {
|
131457
|
+
properties: {
|
131458
|
+
key: {
|
131459
|
+
if: {
|
131460
|
+
type: "string"
|
131461
|
+
},
|
131462
|
+
then: {
|
131463
|
+
pattern: "^[a-zA-Z0-9_-]+$"
|
131464
|
+
}
|
131465
|
+
}
|
131466
|
+
}
|
131467
|
+
},
|
131468
|
+
args: {
|
131469
|
+
anyOf: [
|
131470
|
+
{
|
131471
|
+
type: "string",
|
131472
|
+
pattern: "^[a-zA-Z0-9_ :;.,\"'?!(){}\\[\\]@<>=+*#$&`|~\\^%/-]+$"
|
131473
|
+
},
|
131474
|
+
{
|
131475
|
+
type: "array",
|
131476
|
+
items: {
|
131477
|
+
type: "string",
|
131478
|
+
pattern: "^[a-zA-Z0-9_ :;.,\"'?!(){}\\[\\]@<>=+*#$&`|~\\^%/-]+$"
|
131479
|
+
}
|
131480
|
+
}
|
131481
|
+
]
|
131482
|
+
}
|
131483
|
+
}
|
131484
|
+
}
|
131485
|
+
}
|
131486
|
+
]
|
131487
|
+
}
|
131488
|
+
};
|
131218
131489
|
var routesSchema2 = {
|
131219
131490
|
type: "array",
|
131220
131491
|
maxItems: 2048,
|
@@ -131327,7 +131598,8 @@ var require_schemas = __commonJS2({
|
|
131327
131598
|
},
|
131328
131599
|
has: hasSchema,
|
131329
131600
|
missing: hasSchema,
|
131330
|
-
mitigate: mitigateSchema
|
131601
|
+
mitigate: mitigateSchema,
|
131602
|
+
transforms: transformsSchema
|
131331
131603
|
}
|
131332
131604
|
},
|
131333
131605
|
{
|
@@ -145010,7 +145282,7 @@ var init_pull4 = __esm({
|
|
145010
145282
|
init_ensure_link();
|
145011
145283
|
init_humanize_path();
|
145012
145284
|
init_help();
|
145013
|
-
|
145285
|
+
init_command24();
|
145014
145286
|
init_parse_target();
|
145015
145287
|
init_get_flags_specification();
|
145016
145288
|
init_error2();
|
@@ -148204,6 +148476,11 @@ var init_deploy = __esm({
|
|
148204
148476
|
this.trackCliFlag("logs");
|
148205
148477
|
}
|
148206
148478
|
}
|
148479
|
+
trackCliFlagNoLogs(flag) {
|
148480
|
+
if (flag) {
|
148481
|
+
this.trackCliFlag("no-logs");
|
148482
|
+
}
|
148483
|
+
}
|
148207
148484
|
trackCliFlagNoClipboard(flag) {
|
148208
148485
|
if (flag) {
|
148209
148486
|
this.trackCliFlag("no-clipboard");
|
@@ -148385,6 +148662,7 @@ var init_deploy2 = __esm({
|
|
148385
148662
|
);
|
148386
148663
|
telemetryClient.trackCliFlagPublic(parsedArguments.flags["--public"]);
|
148387
148664
|
telemetryClient.trackCliFlagLogs(parsedArguments.flags["--logs"]);
|
148665
|
+
telemetryClient.trackCliFlagNoLogs(parsedArguments.flags["--no-logs"]);
|
148388
148666
|
telemetryClient.trackCliFlagForce(parsedArguments.flags["--force"]);
|
148389
148667
|
telemetryClient.trackCliFlagWithCache(
|
148390
148668
|
parsedArguments.flags["--with-cache"]
|
@@ -148394,6 +148672,9 @@ var init_deploy2 = __esm({
|
|
148394
148672
|
output_manager_default.warn("`--confirm` is deprecated, please use `--yes` instead");
|
148395
148673
|
parsedArguments.flags["--yes"] = parsedArguments.flags["--confirm"];
|
148396
148674
|
}
|
148675
|
+
if ("--logs" in parsedArguments.flags) {
|
148676
|
+
output_manager_default.warn("`--logs` is deprecated and now the default behavior.");
|
148677
|
+
}
|
148397
148678
|
} catch (error4) {
|
148398
148679
|
printError(error4);
|
148399
148680
|
return 1;
|
@@ -148648,6 +148929,7 @@ var init_deploy2 = __esm({
|
|
148648
148929
|
const deployStamp = stamp_default();
|
148649
148930
|
let deployment = null;
|
148650
148931
|
const noWait = !!parsedArguments.flags["--no-wait"];
|
148932
|
+
const withLogs = "--no-logs" in parsedArguments.flags ? false : true;
|
148651
148933
|
const localConfigurationOverrides = pickOverrides(localConfig);
|
148652
148934
|
const name = project.name;
|
148653
148935
|
if (!name) {
|
@@ -148683,7 +148965,7 @@ var init_deploy2 = __esm({
|
|
148683
148965
|
target,
|
148684
148966
|
skipAutoDetectionConfirmation: autoConfirm,
|
148685
148967
|
noWait,
|
148686
|
-
withLogs
|
148968
|
+
withLogs,
|
148687
148969
|
autoAssignCustomDomains
|
148688
148970
|
};
|
148689
148971
|
if (!localConfig.builds || localConfig.builds.length === 0) {
|
@@ -173723,8 +174005,8 @@ var init_builds = __esm({
|
|
173723
174005
|
}
|
173724
174006
|
}
|
173725
174007
|
const corner = isLast ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500";
|
173726
|
-
const
|
173727
|
-
return `${import_chalk92.default.grey(corner)} ${color(
|
174008
|
+
const main16 = prefix + path11 + finalSize + finalRegion;
|
174009
|
+
return `${import_chalk92.default.grey(corner)} ${color(main16)}`;
|
173728
174010
|
};
|
173729
174011
|
getDirPath = (path11, level = 0, highestLevel = null) => {
|
173730
174012
|
const parts = path11.split("/").slice(0, -1);
|
@@ -177995,6 +178277,202 @@ var init_logout2 = __esm({
|
|
177995
178277
|
}
|
177996
178278
|
});
|
177997
178279
|
|
178280
|
+
// src/commands/microfrontends/pull.ts
|
178281
|
+
async function pull2(client2) {
|
178282
|
+
const link4 = await ensureLink("microfrontends", client2, client2.cwd);
|
178283
|
+
if (typeof link4 === "number") {
|
178284
|
+
return link4;
|
178285
|
+
}
|
178286
|
+
const { project, org, repoRoot } = link4;
|
178287
|
+
let currentDirectory;
|
178288
|
+
if (repoRoot) {
|
178289
|
+
currentDirectory = (0, import_node_path5.join)(repoRoot, project.rootDirectory || "");
|
178290
|
+
} else {
|
178291
|
+
currentDirectory = client2.cwd;
|
178292
|
+
}
|
178293
|
+
client2.config.currentTeam = org.type === "team" ? org.id : void 0;
|
178294
|
+
const { contextName } = await getScope(client2);
|
178295
|
+
output_manager_default.spinner(
|
178296
|
+
`Fetching microfrontends configuration in ${import_chalk107.default.bold(contextName)}`
|
178297
|
+
);
|
178298
|
+
let parsedArgs;
|
178299
|
+
const flagsSpecification = getFlagsSpecification(pullSubcommand2.options);
|
178300
|
+
try {
|
178301
|
+
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification, {
|
178302
|
+
permissive: true
|
178303
|
+
});
|
178304
|
+
} catch (error3) {
|
178305
|
+
printError(error3);
|
178306
|
+
return 1;
|
178307
|
+
}
|
178308
|
+
const dpl = parsedArgs.flags["--dpl"] ?? project.targets?.production?.id ?? project.latestDeployments?.[0]?.id;
|
178309
|
+
if (!dpl) {
|
178310
|
+
output_manager_default.stopSpinner();
|
178311
|
+
output_manager_default.error(`No deployment found for project ${import_chalk107.default.bold(project.name)}`);
|
178312
|
+
return 1;
|
178313
|
+
}
|
178314
|
+
const microfrontendsConfigUrl = `/v1/microfrontends/${dpl}/config`;
|
178315
|
+
try {
|
178316
|
+
const { config: config2 } = await client2.fetch(microfrontendsConfigUrl, {
|
178317
|
+
method: "GET"
|
178318
|
+
});
|
178319
|
+
const sanitizedConfig = {
|
178320
|
+
...config2,
|
178321
|
+
applications: Object.fromEntries(
|
178322
|
+
Object.entries(config2.applications).map(([name, app]) => [
|
178323
|
+
name,
|
178324
|
+
{
|
178325
|
+
...app,
|
178326
|
+
projectId: void 0
|
178327
|
+
// remove projectId
|
178328
|
+
}
|
178329
|
+
])
|
178330
|
+
)
|
178331
|
+
};
|
178332
|
+
output_manager_default.stopSpinner();
|
178333
|
+
const path11 = (0, import_node_path5.join)(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS);
|
178334
|
+
await (0, import_fs_extra23.outputJSON)(path11, sanitizedConfig, {
|
178335
|
+
spaces: 2
|
178336
|
+
});
|
178337
|
+
const microfrontendsStamp = stamp_default();
|
178338
|
+
output_manager_default.print(
|
178339
|
+
`${prependEmoji(
|
178340
|
+
`Downloaded microfrontends configuration to ${import_chalk107.default.bold(
|
178341
|
+
humanizePath(
|
178342
|
+
(0, import_node_path5.join)(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS)
|
178343
|
+
)
|
178344
|
+
)} ${import_chalk107.default.gray(microfrontendsStamp())}`,
|
178345
|
+
emoji("success")
|
178346
|
+
)}
|
178347
|
+
`
|
178348
|
+
);
|
178349
|
+
return 0;
|
178350
|
+
} catch (error3) {
|
178351
|
+
output_manager_default.stopSpinner();
|
178352
|
+
printError(error3);
|
178353
|
+
return 1;
|
178354
|
+
}
|
178355
|
+
}
|
178356
|
+
var import_chalk107, import_node_path5, import_fs_extra23, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS;
|
178357
|
+
var init_pull5 = __esm({
|
178358
|
+
"src/commands/microfrontends/pull.ts"() {
|
178359
|
+
"use strict";
|
178360
|
+
import_chalk107 = __toESM3(require_source());
|
178361
|
+
import_node_path5 = require("path");
|
178362
|
+
init_output_manager();
|
178363
|
+
init_get_scope();
|
178364
|
+
init_ensure_link();
|
178365
|
+
init_emoji();
|
178366
|
+
init_humanize_path();
|
178367
|
+
init_stamp();
|
178368
|
+
import_fs_extra23 = __toESM3(require_lib());
|
178369
|
+
init_command21();
|
178370
|
+
init_get_flags_specification();
|
178371
|
+
init_get_args();
|
178372
|
+
init_error2();
|
178373
|
+
VERCEL_DIR3 = ".vercel";
|
178374
|
+
VERCEL_DIR_MICROFRONTENDS = "microfrontends.json";
|
178375
|
+
}
|
178376
|
+
});
|
178377
|
+
|
178378
|
+
// src/util/telemetry/commands/microfrontends/index.ts
|
178379
|
+
var MicrofrontendsTelemetryClient;
|
178380
|
+
var init_microfrontends = __esm({
|
178381
|
+
"src/util/telemetry/commands/microfrontends/index.ts"() {
|
178382
|
+
"use strict";
|
178383
|
+
init_telemetry();
|
178384
|
+
MicrofrontendsTelemetryClient = class extends TelemetryClient {
|
178385
|
+
trackCliSubcommandPull(actual) {
|
178386
|
+
this.trackCliSubcommand({
|
178387
|
+
subcommand: "pull",
|
178388
|
+
value: actual
|
178389
|
+
});
|
178390
|
+
}
|
178391
|
+
};
|
178392
|
+
}
|
178393
|
+
});
|
178394
|
+
|
178395
|
+
// src/commands/microfrontends/index.ts
|
178396
|
+
var microfrontends_exports = {};
|
178397
|
+
__export3(microfrontends_exports, {
|
178398
|
+
default: () => main12
|
178399
|
+
});
|
178400
|
+
async function main12(client2) {
|
178401
|
+
const telemetry2 = new MicrofrontendsTelemetryClient({
|
178402
|
+
opts: {
|
178403
|
+
store: client2.telemetryEventStore
|
178404
|
+
}
|
178405
|
+
});
|
178406
|
+
let parsedArgs;
|
178407
|
+
const flagsSpecification = getFlagsSpecification(
|
178408
|
+
microfrontendsCommand.options
|
178409
|
+
);
|
178410
|
+
try {
|
178411
|
+
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification, {
|
178412
|
+
permissive: true
|
178413
|
+
});
|
178414
|
+
} catch (error3) {
|
178415
|
+
printError(error3);
|
178416
|
+
return 1;
|
178417
|
+
}
|
178418
|
+
let { subcommand, subcommandOriginal } = getSubcommand(
|
178419
|
+
parsedArgs.args.slice(1),
|
178420
|
+
COMMAND_CONFIG13
|
178421
|
+
);
|
178422
|
+
const needHelp = parsedArgs.flags["--help"];
|
178423
|
+
if (!subcommand && needHelp) {
|
178424
|
+
telemetry2.trackCliFlagHelp("microfrontends");
|
178425
|
+
output_manager_default.print(
|
178426
|
+
help2(microfrontendsCommand, { columns: client2.stderr.columns })
|
178427
|
+
);
|
178428
|
+
return 2;
|
178429
|
+
}
|
178430
|
+
function printHelp(command) {
|
178431
|
+
output_manager_default.print(
|
178432
|
+
help2(command, {
|
178433
|
+
parent: microfrontendsCommand,
|
178434
|
+
columns: client2.stderr.columns
|
178435
|
+
})
|
178436
|
+
);
|
178437
|
+
return 2;
|
178438
|
+
}
|
178439
|
+
switch (subcommand) {
|
178440
|
+
case "pull":
|
178441
|
+
if (needHelp) {
|
178442
|
+
telemetry2.trackCliFlagHelp("microfrontends", subcommandOriginal);
|
178443
|
+
return printHelp(pullSubcommand2);
|
178444
|
+
}
|
178445
|
+
telemetry2.trackCliSubcommandPull(subcommandOriginal);
|
178446
|
+
return pull2(client2);
|
178447
|
+
default:
|
178448
|
+
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG13));
|
178449
|
+
output_manager_default.print(
|
178450
|
+
help2(microfrontendsCommand, { columns: client2.stderr.columns })
|
178451
|
+
);
|
178452
|
+
return 2;
|
178453
|
+
}
|
178454
|
+
}
|
178455
|
+
var COMMAND_CONFIG13;
|
178456
|
+
var init_microfrontends2 = __esm({
|
178457
|
+
"src/commands/microfrontends/index.ts"() {
|
178458
|
+
"use strict";
|
178459
|
+
init_get_args();
|
178460
|
+
init_get_invalid_subcommand();
|
178461
|
+
init_error2();
|
178462
|
+
init_help();
|
178463
|
+
init_pull5();
|
178464
|
+
init_command21();
|
178465
|
+
init_get_flags_specification();
|
178466
|
+
init_output_manager();
|
178467
|
+
init_commands();
|
178468
|
+
init_get_subcommand();
|
178469
|
+
init_microfrontends();
|
178470
|
+
COMMAND_CONFIG13 = {
|
178471
|
+
pull: getCommandAliases(pullSubcommand2)
|
178472
|
+
};
|
178473
|
+
}
|
178474
|
+
});
|
178475
|
+
|
177998
178476
|
// src/util/telemetry/commands/project/add.ts
|
177999
178477
|
var ProjectAddTelemetryClient;
|
178000
178478
|
var init_add11 = __esm({
|
@@ -178032,12 +178510,12 @@ async function add6(client2, argv) {
|
|
178032
178510
|
const { args: args2 } = parsedArgs;
|
178033
178511
|
if (args2.length !== 1) {
|
178034
178512
|
output_manager_default.error(
|
178035
|
-
`Invalid number of arguments. Usage: ${
|
178513
|
+
`Invalid number of arguments. Usage: ${import_chalk108.default.cyan(
|
178036
178514
|
`${getCommandName("project add <name>")}`
|
178037
178515
|
)}`
|
178038
178516
|
);
|
178039
178517
|
if (args2.length > 1) {
|
178040
|
-
const example =
|
178518
|
+
const example = import_chalk108.default.cyan(
|
178041
178519
|
`${getCommandName(`project add "${args2.join(" ")}"`)}`
|
178042
178520
|
);
|
178043
178521
|
output_manager_default.log(
|
@@ -178065,24 +178543,24 @@ async function add6(client2, argv) {
|
|
178065
178543
|
const elapsed2 = (0, import_ms22.default)(Date.now() - start);
|
178066
178544
|
const { contextName } = await getScope(client2);
|
178067
178545
|
output_manager_default.log(
|
178068
|
-
`${
|
178546
|
+
`${import_chalk108.default.cyan("Success!")} Project ${import_chalk108.default.bold(
|
178069
178547
|
name.toLowerCase()
|
178070
|
-
)} added (${
|
178548
|
+
)} added (${import_chalk108.default.bold(contextName)}) ${import_chalk108.default.gray(`[${elapsed2}]`)}`
|
178071
178549
|
);
|
178072
178550
|
return 0;
|
178073
178551
|
}
|
178074
|
-
var
|
178552
|
+
var import_chalk108, import_ms22;
|
178075
178553
|
var init_add12 = __esm({
|
178076
178554
|
"src/commands/project/add.ts"() {
|
178077
178555
|
"use strict";
|
178078
|
-
|
178556
|
+
import_chalk108 = __toESM3(require_source());
|
178079
178557
|
import_ms22 = __toESM3(require_ms());
|
178080
178558
|
init_errors_ts();
|
178081
178559
|
init_pkg_name();
|
178082
178560
|
init_create_project();
|
178083
178561
|
init_output_manager();
|
178084
178562
|
init_add11();
|
178085
|
-
|
178563
|
+
init_command22();
|
178086
178564
|
init_get_args();
|
178087
178565
|
init_get_flags_specification();
|
178088
178566
|
init_error2();
|
@@ -178174,7 +178652,7 @@ async function inspect4(client2, argv) {
|
|
178174
178652
|
telemetry2.trackCliFlagYes(parsedArgs.flags["--yes"]);
|
178175
178653
|
if (args2.length !== 0 && args2.length !== 1) {
|
178176
178654
|
output_manager_default.error(
|
178177
|
-
`Invalid number of arguments. Usage: ${
|
178655
|
+
`Invalid number of arguments. Usage: ${import_chalk109.default.cyan(
|
178178
178656
|
`${getCommandName("project inspect <name>")}`
|
178179
178657
|
)}`
|
178180
178658
|
);
|
@@ -178189,57 +178667,57 @@ async function inspect4(client2, argv) {
|
|
178189
178667
|
});
|
178190
178668
|
const org = await getTeamById(client2, project.accountId);
|
178191
178669
|
const projectSlugLink = formatProject(org.slug, project.name);
|
178192
|
-
output_manager_default.log(`Found Project ${projectSlugLink} ${
|
178670
|
+
output_manager_default.log(`Found Project ${projectSlugLink} ${import_chalk109.default.gray(inspectStamp())}`);
|
178193
178671
|
output_manager_default.print("\n");
|
178194
|
-
output_manager_default.print(
|
178195
|
-
output_manager_default.print(` ${
|
178672
|
+
output_manager_default.print(import_chalk109.default.bold(" General\n\n"));
|
178673
|
+
output_manager_default.print(` ${import_chalk109.default.cyan("ID")} ${project.id}
|
178196
178674
|
`);
|
178197
|
-
output_manager_default.print(` ${
|
178675
|
+
output_manager_default.print(` ${import_chalk109.default.cyan("Name")} ${project.name}
|
178198
178676
|
`);
|
178199
|
-
output_manager_default.print(` ${
|
178677
|
+
output_manager_default.print(` ${import_chalk109.default.cyan("Owner")} ${org.name}
|
178200
178678
|
`);
|
178201
178679
|
output_manager_default.print(
|
178202
|
-
` ${
|
178680
|
+
` ${import_chalk109.default.cyan("Created At")} ${formatDate(project.createdAt)}
|
178203
178681
|
`
|
178204
178682
|
);
|
178205
178683
|
output_manager_default.print(
|
178206
|
-
` ${
|
178684
|
+
` ${import_chalk109.default.cyan("Root Directory")} ${project.rootDirectory ?? "."}
|
178207
178685
|
`
|
178208
178686
|
);
|
178209
178687
|
output_manager_default.print(
|
178210
|
-
` ${
|
178688
|
+
` ${import_chalk109.default.cyan("Node.js Version")} ${project.nodeVersion}
|
178211
178689
|
`
|
178212
178690
|
);
|
178213
178691
|
const framework = import_frameworks7.frameworkList.find((f) => f.slug === project.framework);
|
178214
178692
|
output_manager_default.print("\n");
|
178215
|
-
output_manager_default.print(
|
178216
|
-
output_manager_default.print(` ${
|
178693
|
+
output_manager_default.print(import_chalk109.default.bold(" Framework Settings\n\n"));
|
178694
|
+
output_manager_default.print(` ${import_chalk109.default.cyan("Framework Preset")} ${framework?.name}
|
178217
178695
|
`);
|
178218
178696
|
output_manager_default.print(
|
178219
|
-
` ${
|
178697
|
+
` ${import_chalk109.default.cyan("Build Command")} ${project.buildCommand ?? import_chalk109.default.dim(framework?.settings?.buildCommand.placeholder ?? "None")}
|
178220
178698
|
`
|
178221
178699
|
);
|
178222
178700
|
output_manager_default.print(
|
178223
|
-
` ${
|
178701
|
+
` ${import_chalk109.default.cyan("Output Directory")} ${project.outputDirectory ?? import_chalk109.default.dim(framework?.settings?.outputDirectory.placeholder ?? "None")}
|
178224
178702
|
`
|
178225
178703
|
);
|
178226
178704
|
output_manager_default.print(
|
178227
|
-
` ${
|
178705
|
+
` ${import_chalk109.default.cyan("Install Command")} ${project.installCommand ?? import_chalk109.default.dim(framework?.settings?.installCommand.placeholder ?? "None")}
|
178228
178706
|
`
|
178229
178707
|
);
|
178230
178708
|
output_manager_default.print("\n");
|
178231
178709
|
return 0;
|
178232
178710
|
}
|
178233
|
-
var
|
178711
|
+
var import_chalk109, import_frameworks7;
|
178234
178712
|
var init_inspect6 = __esm({
|
178235
178713
|
"src/commands/project/inspect.ts"() {
|
178236
178714
|
"use strict";
|
178237
|
-
|
178715
|
+
import_chalk109 = __toESM3(require_source());
|
178238
178716
|
import_frameworks7 = __toESM3(require_frameworks());
|
178239
178717
|
init_pkg_name();
|
178240
178718
|
init_inspect5();
|
178241
178719
|
init_output_manager();
|
178242
|
-
|
178720
|
+
init_command22();
|
178243
178721
|
init_get_args();
|
178244
178722
|
init_get_flags_specification();
|
178245
178723
|
init_error2();
|
@@ -178293,7 +178771,7 @@ async function list6(client2, argv) {
|
|
178293
178771
|
const { args: args2, flags: opts } = parsedArgs;
|
178294
178772
|
if (args2.length !== 0) {
|
178295
178773
|
output_manager_default.error(
|
178296
|
-
`Invalid number of arguments. Usage: ${
|
178774
|
+
`Invalid number of arguments. Usage: ${import_chalk110.default.cyan(
|
178297
178775
|
`${getCommandName("project ls")}`
|
178298
178776
|
)}`
|
178299
178777
|
);
|
@@ -178301,7 +178779,7 @@ async function list6(client2, argv) {
|
|
178301
178779
|
}
|
178302
178780
|
const start = Date.now();
|
178303
178781
|
const { contextName } = await getScope(client2);
|
178304
|
-
output_manager_default.spinner(`Fetching projects in ${
|
178782
|
+
output_manager_default.spinner(`Fetching projects in ${import_chalk110.default.bold(contextName)}`);
|
178305
178783
|
let projectsUrl = "/v9/projects?limit=20";
|
178306
178784
|
const deprecated = opts["--update-required"] || false;
|
178307
178785
|
telemetryClient.trackCliFlagUpdateRequired(deprecated);
|
@@ -178322,7 +178800,7 @@ async function list6(client2, argv) {
|
|
178322
178800
|
output_manager_default.stopSpinner();
|
178323
178801
|
const elapsed2 = (0, import_ms23.default)(Date.now() - start);
|
178324
178802
|
output_manager_default.log(
|
178325
|
-
`${projectList.length > 0 ? "Projects" : "No projects"} found under ${
|
178803
|
+
`${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk110.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk110.default.gray(`[${elapsed2}]`)}`
|
178326
178804
|
);
|
178327
178805
|
if (projectList.length > 0) {
|
178328
178806
|
const tablePrint = table(
|
@@ -178332,12 +178810,12 @@ async function list6(client2, argv) {
|
|
178332
178810
|
"Latest Production URL",
|
178333
178811
|
"Updated",
|
178334
178812
|
"Node Version"
|
178335
|
-
].map((header) =>
|
178813
|
+
].map((header) => import_chalk110.default.bold(import_chalk110.default.cyan(header))),
|
178336
178814
|
...projectList.flatMap((project) => [
|
178337
178815
|
[
|
178338
|
-
|
178816
|
+
import_chalk110.default.bold(project.name),
|
178339
178817
|
getLatestProdUrl(project),
|
178340
|
-
|
178818
|
+
import_chalk110.default.gray((0, import_ms23.default)(Date.now() - project.updatedAt)),
|
178341
178819
|
project.nodeVersion ?? ""
|
178342
178820
|
]
|
178343
178821
|
])
|
@@ -178362,18 +178840,18 @@ function getLatestProdUrl(project) {
|
|
178362
178840
|
return `https://${alias2}`;
|
178363
178841
|
return "--";
|
178364
178842
|
}
|
178365
|
-
var import_ms23,
|
178843
|
+
var import_ms23, import_chalk110;
|
178366
178844
|
var init_list10 = __esm({
|
178367
178845
|
"src/commands/project/list.ts"() {
|
178368
178846
|
"use strict";
|
178369
178847
|
import_ms23 = __toESM3(require_ms());
|
178370
|
-
|
178848
|
+
import_chalk110 = __toESM3(require_source());
|
178371
178849
|
init_table();
|
178372
178850
|
init_get_command_flags();
|
178373
178851
|
init_pkg_name();
|
178374
178852
|
init_list9();
|
178375
178853
|
init_output_manager();
|
178376
|
-
|
178854
|
+
init_command22();
|
178377
178855
|
init_get_args();
|
178378
178856
|
init_get_flags_specification();
|
178379
178857
|
init_error2();
|
@@ -178418,7 +178896,7 @@ async function rm6(client2, argv) {
|
|
178418
178896
|
const { args: args2 } = parsedArgs;
|
178419
178897
|
if (args2.length !== 1) {
|
178420
178898
|
output_manager_default.error(
|
178421
|
-
`Invalid number of arguments. Usage: ${
|
178899
|
+
`Invalid number of arguments. Usage: ${import_chalk111.default.cyan(
|
178422
178900
|
`${getCommandName("project rm <name>")}`
|
178423
178901
|
)}`
|
178424
178902
|
);
|
@@ -178448,7 +178926,7 @@ async function rm6(client2, argv) {
|
|
178448
178926
|
}
|
178449
178927
|
const elapsed2 = (0, import_ms24.default)(Date.now() - start);
|
178450
178928
|
output_manager_default.log(
|
178451
|
-
`${
|
178929
|
+
`${import_chalk111.default.cyan("Success!")} Project ${import_chalk111.default.bold(name)} removed ${import_chalk111.default.gray(
|
178452
178930
|
`[${elapsed2}]`
|
178453
178931
|
)}`
|
178454
178932
|
);
|
@@ -178457,22 +178935,22 @@ async function rm6(client2, argv) {
|
|
178457
178935
|
async function readConfirmation3(client2, projectName) {
|
178458
178936
|
output_manager_default.print(
|
178459
178937
|
prependEmoji(
|
178460
|
-
`The project ${
|
178938
|
+
`The project ${import_chalk111.default.bold(projectName)} will be removed permanently.
|
178461
178939
|
It will also delete everything under the project including deployments.
|
178462
178940
|
`,
|
178463
178941
|
emoji("warning")
|
178464
178942
|
)
|
178465
178943
|
);
|
178466
178944
|
return await client2.input.confirm(
|
178467
|
-
`${
|
178945
|
+
`${import_chalk111.default.bold.red("Are you sure?")}`,
|
178468
178946
|
false
|
178469
178947
|
);
|
178470
178948
|
}
|
178471
|
-
var
|
178949
|
+
var import_chalk111, import_ms24, e;
|
178472
178950
|
var init_rm10 = __esm({
|
178473
178951
|
"src/commands/project/rm.ts"() {
|
178474
178952
|
"use strict";
|
178475
|
-
|
178953
|
+
import_chalk111 = __toESM3(require_source());
|
178476
178954
|
import_ms24 = __toESM3(require_ms());
|
178477
178955
|
init_emoji();
|
178478
178956
|
init_errors_ts();
|
@@ -178482,7 +178960,7 @@ var init_rm10 = __esm({
|
|
178482
178960
|
init_get_args();
|
178483
178961
|
init_get_flags_specification();
|
178484
178962
|
init_error2();
|
178485
|
-
|
178963
|
+
init_command22();
|
178486
178964
|
e = encodeURIComponent;
|
178487
178965
|
}
|
178488
178966
|
});
|
@@ -178525,9 +179003,9 @@ var init_project = __esm({
|
|
178525
179003
|
// src/commands/project/index.ts
|
178526
179004
|
var project_exports = {};
|
178527
179005
|
__export3(project_exports, {
|
178528
|
-
default: () =>
|
179006
|
+
default: () => main13
|
178529
179007
|
});
|
178530
|
-
async function
|
179008
|
+
async function main13(client2) {
|
178531
179009
|
const telemetry2 = new ProjectTelemetryClient({
|
178532
179010
|
opts: {
|
178533
179011
|
store: client2.telemetryEventStore
|
@@ -178545,7 +179023,7 @@ async function main12(client2) {
|
|
178545
179023
|
}
|
178546
179024
|
let { subcommand, args: args2, subcommandOriginal } = getSubcommand(
|
178547
179025
|
parsedArgs.args.slice(1),
|
178548
|
-
|
179026
|
+
COMMAND_CONFIG14
|
178549
179027
|
);
|
178550
179028
|
const needHelp = parsedArgs.flags["--help"];
|
178551
179029
|
if (!subcommand && needHelp) {
|
@@ -178592,12 +179070,12 @@ async function main12(client2) {
|
|
178592
179070
|
telemetry2.trackCliSubcommandRemove(subcommandOriginal);
|
178593
179071
|
return rm6(client2, args2);
|
178594
179072
|
default:
|
178595
|
-
output_manager_default.error(getInvalidSubcommand(
|
179073
|
+
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG14));
|
178596
179074
|
output_manager_default.print(help2(projectCommand, { columns: client2.stderr.columns }));
|
178597
179075
|
return 2;
|
178598
179076
|
}
|
178599
179077
|
}
|
178600
|
-
var
|
179078
|
+
var COMMAND_CONFIG14;
|
178601
179079
|
var init_project2 = __esm({
|
178602
179080
|
"src/commands/project/index.ts"() {
|
178603
179081
|
"use strict";
|
@@ -178609,13 +179087,13 @@ var init_project2 = __esm({
|
|
178609
179087
|
init_inspect6();
|
178610
179088
|
init_list10();
|
178611
179089
|
init_rm10();
|
178612
|
-
|
179090
|
+
init_command22();
|
178613
179091
|
init_get_flags_specification();
|
178614
179092
|
init_project();
|
178615
179093
|
init_output_manager();
|
178616
179094
|
init_commands();
|
178617
179095
|
init_get_subcommand();
|
178618
|
-
|
179096
|
+
COMMAND_CONFIG14 = {
|
178619
179097
|
inspect: getCommandAliases(inspectSubcommand2),
|
178620
179098
|
list: getCommandAliases(listSubcommand7),
|
178621
179099
|
add: getCommandAliases(addSubcommand6),
|
@@ -178640,7 +179118,7 @@ async function getProjectByDeployment({
|
|
178640
179118
|
let team;
|
178641
179119
|
try {
|
178642
179120
|
output_manager_default?.spinner(
|
178643
|
-
`Fetching deployment "${deployId}" in ${
|
179121
|
+
`Fetching deployment "${deployId}" in ${import_chalk112.default.bold(contextName)}\u2026`
|
178644
179122
|
);
|
178645
179123
|
const [teamResult, deploymentResult] = await Promise.allSettled([
|
178646
179124
|
config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
|
@@ -178657,12 +179135,12 @@ async function getProjectByDeployment({
|
|
178657
179135
|
team = teamResult.value;
|
178658
179136
|
deployment = deploymentResult.value;
|
178659
179137
|
output_manager_default?.log(
|
178660
|
-
`Fetching deployment "${deployId}" in ${
|
179138
|
+
`Fetching deployment "${deployId}" in ${import_chalk112.default.bold(contextName)}\u2026`
|
178661
179139
|
);
|
178662
179140
|
if (deployment.team?.id) {
|
178663
179141
|
if (!team || deployment.team.id !== team.id) {
|
178664
179142
|
const err = new Error(
|
178665
|
-
team ? `Deployment doesn't belong to current team ${
|
179143
|
+
team ? `Deployment doesn't belong to current team ${import_chalk112.default.bold(
|
178666
179144
|
contextName
|
178667
179145
|
)}` : `Deployment belongs to a different team`
|
178668
179146
|
);
|
@@ -178671,7 +179149,7 @@ async function getProjectByDeployment({
|
|
178671
179149
|
}
|
178672
179150
|
} else if (team) {
|
178673
179151
|
const err = new Error(
|
178674
|
-
`Deployment doesn't belong to current team ${
|
179152
|
+
`Deployment doesn't belong to current team ${import_chalk112.default.bold(contextName)}`
|
178675
179153
|
);
|
178676
179154
|
err.code = "ERR_INVALID_TEAM";
|
178677
179155
|
throw err;
|
@@ -178692,11 +179170,11 @@ async function getProjectByDeployment({
|
|
178692
179170
|
output_manager_default?.stopSpinner();
|
178693
179171
|
}
|
178694
179172
|
}
|
178695
|
-
var
|
179173
|
+
var import_chalk112;
|
178696
179174
|
var init_get_project_by_deployment = __esm({
|
178697
179175
|
"src/util/projects/get-project-by-deployment.ts"() {
|
178698
179176
|
"use strict";
|
178699
|
-
|
179177
|
+
import_chalk112 = __toESM3(require_source());
|
178700
179178
|
init_get_deployment();
|
178701
179179
|
init_get_project_by_id_or_name();
|
178702
179180
|
init_get_scope();
|
@@ -178710,21 +179188,21 @@ var init_get_project_by_deployment = __esm({
|
|
178710
179188
|
// src/util/alias/render-alias-status.ts
|
178711
179189
|
function renderAliasStatus(status2) {
|
178712
179190
|
if (status2 === "completed") {
|
178713
|
-
return
|
179191
|
+
return import_chalk113.default.green(status2);
|
178714
179192
|
}
|
178715
179193
|
if (status2 === "failed") {
|
178716
|
-
return
|
179194
|
+
return import_chalk113.default.red(status2);
|
178717
179195
|
}
|
178718
179196
|
if (status2 === "skipped") {
|
178719
|
-
return
|
179197
|
+
return import_chalk113.default.gray(status2);
|
178720
179198
|
}
|
178721
|
-
return
|
179199
|
+
return import_chalk113.default.yellow(status2);
|
178722
179200
|
}
|
178723
|
-
var
|
179201
|
+
var import_chalk113;
|
178724
179202
|
var init_render_alias_status = __esm({
|
178725
179203
|
"src/util/alias/render-alias-status.ts"() {
|
178726
179204
|
"use strict";
|
178727
|
-
|
179205
|
+
import_chalk113 = __toESM3(require_source());
|
178728
179206
|
}
|
178729
179207
|
});
|
178730
179208
|
|
@@ -178831,7 +179309,7 @@ async function promoteStatus({
|
|
178831
179309
|
}
|
178832
179310
|
if (requestedAt < recentThreshold || Date.now() >= promoteTimeout) {
|
178833
179311
|
output_manager_default.log(
|
178834
|
-
`The promotion exceeded its deadline - rerun ${
|
179312
|
+
`The promotion exceeded its deadline - rerun ${import_chalk114.default.bold(
|
178835
179313
|
`${packageName} promote ${toDeploymentId}`
|
178836
179314
|
)} to try again`
|
178837
179315
|
);
|
@@ -178895,26 +179373,26 @@ async function renderJobSucceeded({
|
|
178895
179373
|
let deploymentInfo = "";
|
178896
179374
|
try {
|
178897
179375
|
const deployment = await getDeployment(client2, contextName, toDeploymentId);
|
178898
|
-
deploymentInfo = `${
|
179376
|
+
deploymentInfo = `${import_chalk114.default.bold(deployment.url)} (${toDeploymentId})`;
|
178899
179377
|
} catch (err) {
|
178900
179378
|
output_manager_default.debug(
|
178901
179379
|
`Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
|
178902
179380
|
);
|
178903
|
-
deploymentInfo =
|
179381
|
+
deploymentInfo = import_chalk114.default.bold(toDeploymentId);
|
178904
179382
|
}
|
178905
179383
|
const duration = performingPromote ? elapsed(Date.now() - requestedAt) : "";
|
178906
179384
|
output_manager_default.log(
|
178907
|
-
`Success! ${
|
179385
|
+
`Success! ${import_chalk114.default.bold(
|
178908
179386
|
project.name
|
178909
179387
|
)} was promoted to ${deploymentInfo} ${duration}`
|
178910
179388
|
);
|
178911
179389
|
return 0;
|
178912
179390
|
}
|
178913
|
-
var
|
179391
|
+
var import_chalk114, import_ms25;
|
178914
179392
|
var init_status = __esm({
|
178915
179393
|
"src/commands/promote/status.ts"() {
|
178916
179394
|
"use strict";
|
178917
|
-
|
179395
|
+
import_chalk114 = __toESM3(require_source());
|
178918
179396
|
init_elapsed();
|
178919
179397
|
init_format_date();
|
178920
179398
|
init_get_deployment();
|
@@ -178971,7 +179449,7 @@ async function requestPromote({
|
|
178971
179449
|
}
|
178972
179450
|
);
|
178973
179451
|
output_manager_default.log(
|
178974
|
-
`Successfully created new deployment of ${
|
179452
|
+
`Successfully created new deployment of ${import_chalk115.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
|
178975
179453
|
);
|
178976
179454
|
return 0;
|
178977
179455
|
}
|
@@ -178992,7 +179470,7 @@ async function requestPromote({
|
|
178992
179470
|
}
|
178993
179471
|
if (timeout !== void 0 && (0, import_ms26.default)(timeout) === 0) {
|
178994
179472
|
output_manager_default.log(
|
178995
|
-
`Successfully requested promote of ${
|
179473
|
+
`Successfully requested promote of ${import_chalk115.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
|
178996
179474
|
);
|
178997
179475
|
output_manager_default.log(`To check promote status, run ${getCommandName("promote")}.`);
|
178998
179476
|
return 0;
|
@@ -179005,11 +179483,11 @@ async function requestPromote({
|
|
179005
179483
|
timeout
|
179006
179484
|
});
|
179007
179485
|
}
|
179008
|
-
var
|
179486
|
+
var import_chalk115, import_ms26;
|
179009
179487
|
var init_request_promote = __esm({
|
179010
179488
|
"src/commands/promote/request-promote.ts"() {
|
179011
179489
|
"use strict";
|
179012
|
-
|
179490
|
+
import_chalk115 = __toESM3(require_source());
|
179013
179491
|
init_pkg_name();
|
179014
179492
|
init_get_project_by_deployment();
|
179015
179493
|
import_ms26 = __toESM3(require_ms());
|
@@ -179072,7 +179550,7 @@ var init_promote2 = __esm({
|
|
179072
179550
|
import_error_utils33 = __toESM3(require_dist2());
|
179073
179551
|
init_request_promote();
|
179074
179552
|
init_status();
|
179075
|
-
|
179553
|
+
init_command23();
|
179076
179554
|
init_help();
|
179077
179555
|
init_get_flags_specification();
|
179078
179556
|
init_promote();
|
@@ -179170,7 +179648,7 @@ async function getDeploymentByIdOrURL({
|
|
179170
179648
|
let team;
|
179171
179649
|
try {
|
179172
179650
|
output_manager_default.spinner(
|
179173
|
-
`Fetching deployment "${deployIdOrUrl}" in ${
|
179651
|
+
`Fetching deployment "${deployIdOrUrl}" in ${import_chalk116.default.bold(contextName)}\u2026`
|
179174
179652
|
);
|
179175
179653
|
const [teamResult, deploymentResult] = await Promise.allSettled([
|
179176
179654
|
config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
|
@@ -179187,7 +179665,7 @@ async function getDeploymentByIdOrURL({
|
|
179187
179665
|
team = teamResult.value;
|
179188
179666
|
deployment = deploymentResult.value;
|
179189
179667
|
output_manager_default.log(
|
179190
|
-
`Fetching deployment "${deployIdOrUrl}" in ${
|
179668
|
+
`Fetching deployment "${deployIdOrUrl}" in ${import_chalk116.default.bold(contextName)}\u2026`
|
179191
179669
|
);
|
179192
179670
|
} finally {
|
179193
179671
|
output_manager_default.stopSpinner();
|
@@ -179195,7 +179673,7 @@ async function getDeploymentByIdOrURL({
|
|
179195
179673
|
if (deployment.team?.id) {
|
179196
179674
|
if (!team || deployment.team.id !== team.id) {
|
179197
179675
|
const err = new Error(
|
179198
|
-
team ? `Deployment doesn't belong to current team ${
|
179676
|
+
team ? `Deployment doesn't belong to current team ${import_chalk116.default.bold(
|
179199
179677
|
contextName
|
179200
179678
|
)}` : `Deployment belongs to a different team`
|
179201
179679
|
);
|
@@ -179204,18 +179682,18 @@ async function getDeploymentByIdOrURL({
|
|
179204
179682
|
}
|
179205
179683
|
} else if (team) {
|
179206
179684
|
const err = new Error(
|
179207
|
-
`Deployment doesn't belong to current team ${
|
179685
|
+
`Deployment doesn't belong to current team ${import_chalk116.default.bold(contextName)}`
|
179208
179686
|
);
|
179209
179687
|
err.code = "ERR_INVALID_TEAM";
|
179210
179688
|
throw err;
|
179211
179689
|
}
|
179212
179690
|
return deployment;
|
179213
179691
|
}
|
179214
|
-
var
|
179692
|
+
var import_chalk116;
|
179215
179693
|
var init_get_deployment_by_id_or_url = __esm({
|
179216
179694
|
"src/util/deploy/get-deployment-by-id-or-url.ts"() {
|
179217
179695
|
"use strict";
|
179218
|
-
|
179696
|
+
import_chalk116 = __toESM3(require_source());
|
179219
179697
|
init_get_deployment();
|
179220
179698
|
init_get_team_by_id();
|
179221
179699
|
init_is_valid_name();
|
@@ -179354,14 +179832,14 @@ async function redeploy(client2) {
|
|
179354
179832
|
}
|
179355
179833
|
output_manager_default.print(
|
179356
179834
|
`${prependEmoji(
|
179357
|
-
`Inspect: ${
|
179835
|
+
`Inspect: ${import_chalk117.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
|
179358
179836
|
emoji("inspect")
|
179359
179837
|
)}
|
179360
179838
|
`
|
179361
179839
|
);
|
179362
179840
|
output_manager_default.print(
|
179363
179841
|
prependEmoji(
|
179364
|
-
`${isProdDeployment ? "Production" : "Preview"}: ${
|
179842
|
+
`${isProdDeployment ? "Production" : "Preview"}: ${import_chalk117.default.bold(
|
179365
179843
|
previewUrl
|
179366
179844
|
)} ${deployStamp()}`,
|
179367
179845
|
emoji("success")
|
@@ -179431,17 +179909,17 @@ async function redeploy(client2) {
|
|
179431
179909
|
output_manager_default.prettyError(err);
|
179432
179910
|
if ((0, import_error_utils34.isErrnoException)(err) && err.code === "ERR_INVALID_TEAM") {
|
179433
179911
|
output_manager_default.error(
|
179434
|
-
`Use ${
|
179912
|
+
`Use ${import_chalk117.default.bold("vc switch")} to change your current team`
|
179435
179913
|
);
|
179436
179914
|
}
|
179437
179915
|
return 1;
|
179438
179916
|
}
|
179439
179917
|
}
|
179440
|
-
var
|
179918
|
+
var import_chalk117, import_client13, import_error_utils34;
|
179441
179919
|
var init_redeploy2 = __esm({
|
179442
179920
|
"src/commands/redeploy/index.ts"() {
|
179443
179921
|
"use strict";
|
179444
|
-
|
179922
|
+
import_chalk117 = __toESM3(require_source());
|
179445
179923
|
import_client13 = __toESM3(require_dist7());
|
179446
179924
|
init_emoji();
|
179447
179925
|
init_get_args();
|
@@ -179455,7 +179933,7 @@ var init_redeploy2 = __esm({
|
|
179455
179933
|
init_stamp();
|
179456
179934
|
init_ua();
|
179457
179935
|
init_help();
|
179458
|
-
|
179936
|
+
init_command25();
|
179459
179937
|
init_get_flags_specification();
|
179460
179938
|
init_output_manager();
|
179461
179939
|
init_redeploy();
|
@@ -179648,7 +180126,7 @@ async function remove5(client2) {
|
|
179648
180126
|
}
|
179649
180127
|
const { contextName } = await getScope(client2);
|
179650
180128
|
output_manager_default.spinner(
|
179651
|
-
`Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${
|
180129
|
+
`Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk118.default.bold(contextName)}`
|
179652
180130
|
);
|
179653
180131
|
let aliases;
|
179654
180132
|
let projects;
|
@@ -179714,7 +180192,7 @@ async function remove5(client2) {
|
|
179714
180192
|
});
|
179715
180193
|
if (deployments.length === 0 && projects.length === 0) {
|
179716
180194
|
const safeUnaliased = parsedArgs.flags["--safe"] ? "unaliased" : "any";
|
179717
|
-
const stylizedIds = ids.map((id) =>
|
180195
|
+
const stylizedIds = ids.map((id) => import_chalk118.default.bold(`"${id}"`)).join(", ");
|
179718
180196
|
const commandName = getCommandName("projects ls");
|
179719
180197
|
log2(
|
179720
180198
|
`Could not find ${safeUnaliased} deployments or projects matching ${stylizedIds}. Run ${commandName} to list.`
|
@@ -179722,7 +180200,7 @@ async function remove5(client2) {
|
|
179722
180200
|
return 1;
|
179723
180201
|
}
|
179724
180202
|
log2(
|
179725
|
-
`Found ${deploymentsAndProjects(deployments, projects)} for removal in ${
|
180203
|
+
`Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk118.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
|
179726
180204
|
);
|
179727
180205
|
if (deployments.length > 200) {
|
179728
180206
|
output_manager_default.warn(
|
@@ -179749,11 +180227,11 @@ async function remove5(client2) {
|
|
179749
180227
|
`Removed ${deploymentsAndProjects(deployments, projects)} ${elapsed(Date.now() - start)}`
|
179750
180228
|
);
|
179751
180229
|
deployments.forEach((depl) => {
|
179752
|
-
output_manager_default.print(`${
|
180230
|
+
output_manager_default.print(`${import_chalk118.default.gray("-")} ${import_chalk118.default.bold(depl.url)}
|
179753
180231
|
`);
|
179754
180232
|
});
|
179755
180233
|
projects.forEach((project) => {
|
179756
|
-
output_manager_default.print(`${
|
180234
|
+
output_manager_default.print(`${import_chalk118.default.gray("-")} ${import_chalk118.default.bold(project.name)}
|
179757
180235
|
`);
|
179758
180236
|
});
|
179759
180237
|
return 0;
|
@@ -179770,8 +180248,8 @@ function readConfirmation4(deployments, projects) {
|
|
179770
180248
|
);
|
179771
180249
|
const deploymentTable = table(
|
179772
180250
|
deployments.map((depl) => {
|
179773
|
-
const time =
|
179774
|
-
const url3 = depl.url ?
|
180251
|
+
const time = import_chalk118.default.gray(`${(0, import_ms28.default)(Date.now() - depl.createdAt)} ago`);
|
180252
|
+
const url3 = depl.url ? import_chalk118.default.underline(`https://${depl.url}`) : "";
|
179775
180253
|
return [` ${depl.id}`, url3, time];
|
179776
180254
|
}),
|
179777
180255
|
{ align: ["l", "r", "l"], hsep: 6 }
|
@@ -179782,7 +180260,7 @@ function readConfirmation4(deployments, projects) {
|
|
179782
180260
|
for (const depl of deployments) {
|
179783
180261
|
for (const { alias: alias2 } of depl.aliases) {
|
179784
180262
|
output_manager_default.warn(
|
179785
|
-
`${
|
180263
|
+
`${import_chalk118.default.underline(`https://${alias2}`)} is an alias for ${import_chalk118.default.bold(depl.url)} and will be removed`
|
179786
180264
|
);
|
179787
180265
|
}
|
179788
180266
|
}
|
@@ -179796,12 +180274,12 @@ function readConfirmation4(deployments, projects) {
|
|
179796
180274
|
`
|
179797
180275
|
);
|
179798
180276
|
for (const project of projects) {
|
179799
|
-
output_manager_default.print(`${
|
180277
|
+
output_manager_default.print(`${import_chalk118.default.gray("-")} ${import_chalk118.default.bold(project.name)}
|
179800
180278
|
`);
|
179801
180279
|
}
|
179802
180280
|
}
|
179803
180281
|
output_manager_default.print(
|
179804
|
-
`${
|
180282
|
+
`${import_chalk118.default.bold.red("> Are you sure?")} ${import_chalk118.default.gray("(y/N) ")}`
|
179805
180283
|
);
|
179806
180284
|
process.stdin.on("data", (d) => {
|
179807
180285
|
process.stdin.pause();
|
@@ -179818,11 +180296,11 @@ function deploymentsAndProjects(deployments, projects, conjunction = "and") {
|
|
179818
180296
|
}
|
179819
180297
|
return `${(0, import_pluralize11.default)("deployment", deployments.length, true)} ${conjunction} ${(0, import_pluralize11.default)("project", projects.length, true)}`;
|
179820
180298
|
}
|
179821
|
-
var
|
180299
|
+
var import_chalk118, import_ms28, import_pluralize11;
|
179822
180300
|
var init_remove6 = __esm({
|
179823
180301
|
"src/commands/remove/index.ts"() {
|
179824
180302
|
"use strict";
|
179825
|
-
|
180303
|
+
import_chalk118 = __toESM3(require_source());
|
179826
180304
|
import_ms28 = __toESM3(require_ms());
|
179827
180305
|
import_pluralize11 = __toESM3(require_pluralize());
|
179828
180306
|
init_table();
|
@@ -179841,7 +180319,7 @@ var init_remove6 = __esm({
|
|
179841
180319
|
init_error2();
|
179842
180320
|
init_now_error();
|
179843
180321
|
init_help();
|
179844
|
-
|
180322
|
+
init_command26();
|
179845
180323
|
init_get_flags_specification();
|
179846
180324
|
init_remove5();
|
179847
180325
|
init_output_manager();
|
@@ -179918,7 +180396,7 @@ async function rollbackStatus({
|
|
179918
180396
|
}
|
179919
180397
|
if (requestedAt < recentThreshold || Date.now() >= rollbackTimeout) {
|
179920
180398
|
output_manager_default.log(
|
179921
|
-
`The rollback exceeded its deadline - rerun ${
|
180399
|
+
`The rollback exceeded its deadline - rerun ${import_chalk119.default.bold(
|
179922
180400
|
`${packageName} rollback ${toDeploymentId}`
|
179923
180401
|
)} to try again`
|
179924
180402
|
);
|
@@ -179982,26 +180460,26 @@ async function renderJobSucceeded2({
|
|
179982
180460
|
let deploymentInfo = "";
|
179983
180461
|
try {
|
179984
180462
|
const deployment = await getDeployment(client2, contextName, toDeploymentId);
|
179985
|
-
deploymentInfo = `${
|
180463
|
+
deploymentInfo = `${import_chalk119.default.bold(deployment.url)} (${toDeploymentId})`;
|
179986
180464
|
} catch (err) {
|
179987
180465
|
output_manager_default.debug(
|
179988
180466
|
`Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
|
179989
180467
|
);
|
179990
|
-
deploymentInfo =
|
180468
|
+
deploymentInfo = import_chalk119.default.bold(toDeploymentId);
|
179991
180469
|
}
|
179992
180470
|
const duration = performingRollback ? elapsed(Date.now() - requestedAt) : "";
|
179993
180471
|
output_manager_default.log(
|
179994
|
-
`Success! ${
|
180472
|
+
`Success! ${import_chalk119.default.bold(
|
179995
180473
|
project.name
|
179996
180474
|
)} was rolled back to ${deploymentInfo} ${duration}`
|
179997
180475
|
);
|
179998
180476
|
return 0;
|
179999
180477
|
}
|
180000
|
-
var
|
180478
|
+
var import_chalk119, import_ms29;
|
180001
180479
|
var init_status2 = __esm({
|
180002
180480
|
"src/commands/rollback/status.ts"() {
|
180003
180481
|
"use strict";
|
180004
|
-
|
180482
|
+
import_chalk119 = __toESM3(require_source());
|
180005
180483
|
init_elapsed();
|
180006
180484
|
init_format_date();
|
180007
180485
|
init_get_deployment();
|
@@ -180033,7 +180511,7 @@ async function requestRollback({
|
|
180033
180511
|
});
|
180034
180512
|
if (timeout !== void 0 && (0, import_ms30.default)(timeout) === 0) {
|
180035
180513
|
output_manager_default.log(
|
180036
|
-
`Successfully requested rollback of ${
|
180514
|
+
`Successfully requested rollback of ${import_chalk120.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
|
180037
180515
|
);
|
180038
180516
|
output_manager_default.log(`To check rollback status, run ${getCommandName("rollback")}.`);
|
180039
180517
|
return 0;
|
@@ -180046,11 +180524,11 @@ async function requestRollback({
|
|
180046
180524
|
timeout
|
180047
180525
|
});
|
180048
180526
|
}
|
180049
|
-
var
|
180527
|
+
var import_chalk120, import_ms30;
|
180050
180528
|
var init_request_rollback = __esm({
|
180051
180529
|
"src/commands/rollback/request-rollback.ts"() {
|
180052
180530
|
"use strict";
|
180053
|
-
|
180531
|
+
import_chalk120 = __toESM3(require_source());
|
180054
180532
|
init_pkg_name();
|
180055
180533
|
init_get_project_by_deployment();
|
180056
180534
|
import_ms30 = __toESM3(require_ms());
|
@@ -180114,7 +180592,7 @@ var init_rollback2 = __esm({
|
|
180114
180592
|
init_request_rollback();
|
180115
180593
|
init_status2();
|
180116
180594
|
init_help();
|
180117
|
-
|
180595
|
+
init_command27();
|
180118
180596
|
init_get_flags_specification();
|
180119
180597
|
init_rollback();
|
180120
180598
|
init_output_manager();
|
@@ -180481,7 +180959,7 @@ async function rollingRelease(client2) {
|
|
180481
180959
|
subcommand,
|
180482
180960
|
args: subcommandArgs,
|
180483
180961
|
subcommandOriginal
|
180484
|
-
} = getSubcommand(client2.argv.slice(3),
|
180962
|
+
} = getSubcommand(client2.argv.slice(3), COMMAND_CONFIG15);
|
180485
180963
|
const needHelp = client2.argv.includes("--help") || client2.argv.includes("-h");
|
180486
180964
|
if (!subcommand && needHelp) {
|
180487
180965
|
telemetry2.trackCliFlagHelp("rolling-release");
|
@@ -180670,7 +181148,7 @@ async function rollingRelease(client2) {
|
|
180670
181148
|
}
|
180671
181149
|
default: {
|
180672
181150
|
output_manager_default.debug(`Invalid subcommand: ${subcommand}`);
|
180673
|
-
output_manager_default.error(getInvalidSubcommand(
|
181151
|
+
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG15));
|
180674
181152
|
output_manager_default.print(
|
180675
181153
|
help2(rollingReleaseCommand, { columns: client2.stderr.columns })
|
180676
181154
|
);
|
@@ -180683,14 +181161,14 @@ async function rollingRelease(client2) {
|
|
180683
181161
|
return 1;
|
180684
181162
|
}
|
180685
181163
|
}
|
180686
|
-
var
|
181164
|
+
var COMMAND_CONFIG15;
|
180687
181165
|
var init_rolling_release2 = __esm({
|
180688
181166
|
"src/commands/rolling-release/index.ts"() {
|
180689
181167
|
"use strict";
|
180690
181168
|
init_get_args();
|
180691
181169
|
init_get_flags_specification();
|
180692
181170
|
init_help();
|
180693
|
-
|
181171
|
+
init_command28();
|
180694
181172
|
init_request_rolling_release();
|
180695
181173
|
init_start_rolling_release();
|
180696
181174
|
init_configure_rolling_release();
|
@@ -180704,7 +181182,7 @@ var init_rolling_release2 = __esm({
|
|
180704
181182
|
init_get_subcommand();
|
180705
181183
|
init_commands();
|
180706
181184
|
init_get_invalid_subcommand();
|
180707
|
-
|
181185
|
+
COMMAND_CONFIG15 = {
|
180708
181186
|
configure: getCommandAliases(configureSubcommand),
|
180709
181187
|
start: getCommandAliases(startSubcommand),
|
180710
181188
|
approve: getCommandAliases(approveSubcommand),
|
@@ -180720,17 +181198,17 @@ function formatBranchMatcher(branchMatcher) {
|
|
180720
181198
|
if (branchMatcher?.type === "equals") {
|
180721
181199
|
return branchMatcher.pattern;
|
180722
181200
|
} else if (branchMatcher?.type === "startsWith") {
|
180723
|
-
return `${branchMatcher.pattern}${
|
181201
|
+
return `${branchMatcher.pattern}${import_chalk121.default.dim("*")}`;
|
180724
181202
|
} else if (branchMatcher?.type === "endsWith") {
|
180725
|
-
return `${
|
181203
|
+
return `${import_chalk121.default.dim("*")}${branchMatcher.pattern}`;
|
180726
181204
|
}
|
180727
|
-
return
|
181205
|
+
return import_chalk121.default.dim("No branch configuration");
|
180728
181206
|
}
|
180729
181207
|
async function list7(client2, argv) {
|
180730
181208
|
const { cwd } = client2;
|
180731
181209
|
if (argv.length !== 0) {
|
180732
181210
|
output_manager_default.error(
|
180733
|
-
`Invalid number of arguments. Usage: ${
|
181211
|
+
`Invalid number of arguments. Usage: ${import_chalk121.default.cyan(
|
180734
181212
|
`${getCommandName("target ls")}`
|
180735
181213
|
)}`
|
180736
181214
|
);
|
@@ -180754,12 +181232,12 @@ async function list7(client2, argv) {
|
|
180754
181232
|
const elapsed2 = (0, import_ms32.default)(Date.now() - start);
|
180755
181233
|
result = withDefaultEnvironmentsIncluded(result);
|
180756
181234
|
output_manager_default.log(
|
180757
|
-
`${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${
|
181235
|
+
`${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk121.default.gray(`[${elapsed2}]`)}`
|
180758
181236
|
);
|
180759
181237
|
const tablePrint = table(
|
180760
181238
|
[
|
180761
181239
|
["Target Name", "Branch Tracking", "Type", "Updated"].map(
|
180762
|
-
(header) =>
|
181240
|
+
(header) => import_chalk121.default.bold(import_chalk121.default.cyan(header))
|
180763
181241
|
),
|
180764
181242
|
...result.flatMap((target) => {
|
180765
181243
|
return [
|
@@ -180767,7 +181245,7 @@ async function list7(client2, argv) {
|
|
180767
181245
|
formatEnvironment(link4.org.slug, link4.project.name, target),
|
180768
181246
|
BRANCH_TRACKING_MAP[target.type](link4.project, target),
|
180769
181247
|
TYPE_MAP[target.type],
|
180770
|
-
|
181248
|
+
import_chalk121.default.gray(
|
180771
181249
|
target.updatedAt > 0 ? (0, import_ms32.default)(Date.now() - target.updatedAt) : "-"
|
180772
181250
|
)
|
180773
181251
|
]
|
@@ -180814,15 +181292,15 @@ function withDefaultEnvironmentsIncluded(environments) {
|
|
180814
181292
|
...environments.slice().sort((a, b) => a.slug.localeCompare(b.slug))
|
180815
181293
|
];
|
180816
181294
|
}
|
180817
|
-
var import_ms32,
|
181295
|
+
var import_ms32, import_chalk121, TYPE_MAP, BRANCH_TRACKING_MAP;
|
180818
181296
|
var init_list11 = __esm({
|
180819
181297
|
"src/commands/target/list.ts"() {
|
180820
181298
|
"use strict";
|
180821
181299
|
import_ms32 = __toESM3(require_ms());
|
180822
|
-
|
181300
|
+
import_chalk121 = __toESM3(require_source());
|
180823
181301
|
init_table();
|
180824
181302
|
init_output_manager();
|
180825
|
-
|
181303
|
+
init_command29();
|
180826
181304
|
init_pkg_name();
|
180827
181305
|
init_ensure_link();
|
180828
181306
|
init_format_project();
|
@@ -180834,8 +181312,8 @@ var init_list11 = __esm({
|
|
180834
181312
|
};
|
180835
181313
|
BRANCH_TRACKING_MAP = {
|
180836
181314
|
production: (project) => project.link?.productionBranch ?? "main",
|
180837
|
-
preview: (_, env) => env.slug === "preview" ?
|
180838
|
-
development: () =>
|
181315
|
+
preview: (_, env) => env.slug === "preview" ? import_chalk121.default.dim("All unassigned git branches") : formatBranchMatcher(env.branchMatcher),
|
181316
|
+
development: () => import_chalk121.default.dim("Accessible via CLI")
|
180839
181317
|
};
|
180840
181318
|
}
|
180841
181319
|
});
|
@@ -180860,9 +181338,9 @@ var init_target = __esm({
|
|
180860
181338
|
// src/commands/target/index.ts
|
180861
181339
|
var target_exports = {};
|
180862
181340
|
__export3(target_exports, {
|
180863
|
-
default: () =>
|
181341
|
+
default: () => main14
|
180864
181342
|
});
|
180865
|
-
async function
|
181343
|
+
async function main14(client2) {
|
180866
181344
|
let parsedArgs;
|
180867
181345
|
const flagsSpecification = getFlagsSpecification(targetCommand.options);
|
180868
181346
|
try {
|
@@ -180902,12 +181380,12 @@ async function main13(client2) {
|
|
180902
181380
|
telemetry2.trackCliSubcommandList(subcommand);
|
180903
181381
|
return await list7(client2, args2);
|
180904
181382
|
default:
|
180905
|
-
output_manager_default.error(getInvalidSubcommand(
|
181383
|
+
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG16));
|
180906
181384
|
output_manager_default.print(help2(targetCommand, { columns: client2.stderr.columns }));
|
180907
181385
|
return 2;
|
180908
181386
|
}
|
180909
181387
|
}
|
180910
|
-
var
|
181388
|
+
var COMMAND_CONFIG16;
|
180911
181389
|
var init_target2 = __esm({
|
180912
181390
|
"src/commands/target/index.ts"() {
|
180913
181391
|
"use strict";
|
@@ -180915,13 +181393,13 @@ var init_target2 = __esm({
|
|
180915
181393
|
init_get_invalid_subcommand();
|
180916
181394
|
init_help();
|
180917
181395
|
init_list11();
|
180918
|
-
|
181396
|
+
init_command29();
|
180919
181397
|
init_get_flags_specification();
|
180920
181398
|
init_error2();
|
180921
181399
|
init_output_manager();
|
180922
181400
|
init_target();
|
180923
181401
|
init_commands();
|
180924
|
-
|
181402
|
+
COMMAND_CONFIG16 = {
|
180925
181403
|
ls: getCommandAliases(listSubcommand8)
|
180926
181404
|
};
|
180927
181405
|
}
|
@@ -181030,7 +181508,7 @@ async function list8(client2, argv) {
|
|
181030
181508
|
client2.stdout.write("\n");
|
181031
181509
|
const teamTable = table(
|
181032
181510
|
[
|
181033
|
-
["id", "email / name"].map((str) => (0,
|
181511
|
+
["id", "email / name"].map((str) => (0, import_chalk122.gray)(str)),
|
181034
181512
|
...teamList.map((team) => [team.value, team.name])
|
181035
181513
|
],
|
181036
181514
|
{ hsep: 5 }
|
@@ -181047,13 +181525,13 @@ async function list8(client2, argv) {
|
|
181047
181525
|
}
|
181048
181526
|
return 0;
|
181049
181527
|
}
|
181050
|
-
var
|
181528
|
+
var import_chalk122;
|
181051
181529
|
var init_list13 = __esm({
|
181052
181530
|
"src/commands/teams/list.ts"() {
|
181053
181531
|
"use strict";
|
181054
181532
|
init_chars();
|
181055
181533
|
init_table();
|
181056
|
-
|
181534
|
+
import_chalk122 = __toESM3(require_source());
|
181057
181535
|
init_get_user();
|
181058
181536
|
init_get_teams();
|
181059
181537
|
init_pkg_name();
|
@@ -181062,7 +181540,7 @@ var init_list13 = __esm({
|
|
181062
181540
|
init_get_args();
|
181063
181541
|
init_error2();
|
181064
181542
|
init_get_flags_specification();
|
181065
|
-
|
181543
|
+
init_command30();
|
181066
181544
|
init_output_manager();
|
181067
181545
|
init_list12();
|
181068
181546
|
}
|
@@ -181148,7 +181626,7 @@ Please select a team scope using ${getCommandName(
|
|
181148
181626
|
return 1;
|
181149
181627
|
}
|
181150
181628
|
output_manager_default.log(
|
181151
|
-
introMsg || `Inviting team members to ${
|
181629
|
+
introMsg || `Inviting team members to ${import_chalk123.default.bold(currentTeam.name)}`
|
181152
181630
|
);
|
181153
181631
|
telemetry2.trackCliArgumentEmail(emails);
|
181154
181632
|
if (emails.length > 0) {
|
@@ -181168,10 +181646,10 @@ Please select a team scope using ${getCommandName(
|
|
181168
181646
|
throw err;
|
181169
181647
|
}
|
181170
181648
|
output_manager_default.log(
|
181171
|
-
`${
|
181649
|
+
`${import_chalk123.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
|
181172
181650
|
);
|
181173
181651
|
} else {
|
181174
|
-
output_manager_default.log(`${
|
181652
|
+
output_manager_default.log(`${import_chalk123.default.red(`\u2716 ${email3}`)} ${import_chalk123.default.gray("[invalid]")}`);
|
181175
181653
|
}
|
181176
181654
|
}
|
181177
181655
|
return 0;
|
@@ -181204,15 +181682,15 @@ Please select a team scope using ${getCommandName(
|
|
181204
181682
|
);
|
181205
181683
|
email2 = `${email2}${username ? ` (${username})` : ""} ${elapsed2()}`;
|
181206
181684
|
emails.push(email2);
|
181207
|
-
output_manager_default.log(`${
|
181685
|
+
output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
|
181208
181686
|
if (hasError) {
|
181209
181687
|
hasError = false;
|
181210
181688
|
process.stderr.write(eraseLines(emails.length + 2));
|
181211
181689
|
output_manager_default.log(
|
181212
|
-
introMsg || `Inviting team members to ${
|
181690
|
+
introMsg || `Inviting team members to ${import_chalk123.default.bold(currentTeam.name)}`
|
181213
181691
|
);
|
181214
181692
|
for (const email3 of emails) {
|
181215
|
-
output_manager_default.log(`${
|
181693
|
+
output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
|
181216
181694
|
}
|
181217
181695
|
}
|
181218
181696
|
} catch (err) {
|
@@ -181221,7 +181699,7 @@ Please select a team scope using ${getCommandName(
|
|
181221
181699
|
output_manager_default.error((0, import_error_utils36.errorToString)(err));
|
181222
181700
|
hasError = true;
|
181223
181701
|
for (const email3 of emails) {
|
181224
|
-
output_manager_default.log(`${
|
181702
|
+
output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
|
181225
181703
|
}
|
181226
181704
|
}
|
181227
181705
|
}
|
@@ -181234,16 +181712,16 @@ Please select a team scope using ${getCommandName(
|
|
181234
181712
|
} else {
|
181235
181713
|
output_manager_default.success(`Invited ${n} teammate${n > 1 ? "s" : ""}`);
|
181236
181714
|
for (const email3 of emails) {
|
181237
|
-
output_manager_default.log(`${
|
181715
|
+
output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
|
181238
181716
|
}
|
181239
181717
|
}
|
181240
181718
|
return 0;
|
181241
181719
|
}
|
181242
|
-
var
|
181720
|
+
var import_chalk123, import_error_utils36, validateEmail2, domains;
|
181243
181721
|
var init_invite2 = __esm({
|
181244
181722
|
"src/commands/teams/invite.ts"() {
|
181245
181723
|
"use strict";
|
181246
|
-
|
181724
|
+
import_chalk123 = __toESM3(require_source());
|
181247
181725
|
init_cmd();
|
181248
181726
|
init_stamp();
|
181249
181727
|
init_param();
|
@@ -181261,7 +181739,7 @@ var init_invite2 = __esm({
|
|
181261
181739
|
init_get_args();
|
181262
181740
|
init_get_flags_specification();
|
181263
181741
|
init_error2();
|
181264
|
-
|
181742
|
+
init_command30();
|
181265
181743
|
validateEmail2 = (data) => email.test(data.trim()) || data.length === 0;
|
181266
181744
|
domains = Array.from(
|
181267
181745
|
/* @__PURE__ */ new Set([
|
@@ -181319,7 +181797,7 @@ async function add7(client2) {
|
|
181319
181797
|
let team;
|
181320
181798
|
let elapsed2;
|
181321
181799
|
output_manager_default.log(
|
181322
|
-
`Pick a team identifier for its URL (e.g.: ${
|
181800
|
+
`Pick a team identifier for its URL (e.g.: ${import_chalk124.default.cyan(
|
181323
181801
|
"`vercel.com/acme`"
|
181324
181802
|
)})`
|
181325
181803
|
);
|
@@ -181350,7 +181828,7 @@ async function add7(client2) {
|
|
181350
181828
|
output_manager_default.stopSpinner();
|
181351
181829
|
process.stdout.write(eraseLines(2));
|
181352
181830
|
output_manager_default.success(`Team created ${elapsed2()}`);
|
181353
|
-
output_manager_default.log(`${
|
181831
|
+
output_manager_default.log(`${import_chalk124.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
|
181354
181832
|
`);
|
181355
181833
|
output_manager_default.log("Pick a display name for your team");
|
181356
181834
|
let name;
|
@@ -181373,7 +181851,7 @@ async function add7(client2) {
|
|
181373
181851
|
process.stdout.write(eraseLines(2));
|
181374
181852
|
team = Object.assign(team, res);
|
181375
181853
|
output_manager_default.success(`Team name saved ${elapsed2()}`);
|
181376
|
-
output_manager_default.log(`${
|
181854
|
+
output_manager_default.log(`${import_chalk124.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
|
181377
181855
|
`);
|
181378
181856
|
output_manager_default.spinner("Saving");
|
181379
181857
|
client2.config.currentTeam = team.id;
|
@@ -181387,11 +181865,11 @@ async function add7(client2) {
|
|
181387
181865
|
});
|
181388
181866
|
return 0;
|
181389
181867
|
}
|
181390
|
-
var
|
181868
|
+
var import_chalk124, import_error_utils37, validateSlug, validateName, teamUrlPrefix, teamNamePrefix;
|
181391
181869
|
var init_add13 = __esm({
|
181392
181870
|
"src/commands/teams/add.ts"() {
|
181393
181871
|
"use strict";
|
181394
|
-
|
181872
|
+
import_chalk124 = __toESM3(require_source());
|
181395
181873
|
init_stamp();
|
181396
181874
|
init_erase_lines();
|
181397
181875
|
init_chars();
|
@@ -181404,7 +181882,7 @@ var init_add13 = __esm({
|
|
181404
181882
|
init_output_manager();
|
181405
181883
|
validateSlug = (value) => /^[a-z]+[a-z0-9_-]*$/.test(value);
|
181406
181884
|
validateName = (value) => /^[ a-zA-Z0-9_-]+$/.test(value);
|
181407
|
-
teamUrlPrefix = "Team URL".padEnd(14) +
|
181885
|
+
teamUrlPrefix = "Team URL".padEnd(14) + import_chalk124.default.gray("vercel.com/");
|
181408
181886
|
teamNamePrefix = "Team Name".padEnd(14);
|
181409
181887
|
}
|
181410
181888
|
});
|
@@ -181463,7 +181941,7 @@ async function change(client2, argv) {
|
|
181463
181941
|
let title9 = `${team.name} (${team.slug})`;
|
181464
181942
|
const selected = team.id === currentTeam?.id;
|
181465
181943
|
if (selected) {
|
181466
|
-
title9 += ` ${
|
181944
|
+
title9 += ` ${import_chalk125.default.bold("(current)")}`;
|
181467
181945
|
}
|
181468
181946
|
if (team.limited) {
|
181469
181947
|
title9 += ` ${emoji("locked")}`;
|
@@ -181475,7 +181953,7 @@ async function change(client2, argv) {
|
|
181475
181953
|
selected
|
181476
181954
|
};
|
181477
181955
|
});
|
181478
|
-
let suffix = personalScopeSelected ? ` ${
|
181956
|
+
let suffix = personalScopeSelected ? ` ${import_chalk125.default.bold("(current)")}` : "";
|
181479
181957
|
if (user.limited) {
|
181480
181958
|
suffix += ` ${emoji("locked")}`;
|
181481
181959
|
}
|
@@ -181521,14 +181999,14 @@ async function change(client2, argv) {
|
|
181521
181999
|
}
|
181522
182000
|
updateCurrentTeam(config2);
|
181523
182001
|
output_manager_default.success(
|
181524
|
-
`Your account (${
|
182002
|
+
`Your account (${import_chalk125.default.bold(user.username)}) is now active!`
|
181525
182003
|
);
|
181526
182004
|
return 0;
|
181527
182005
|
}
|
181528
182006
|
const newTeam = teams2.find((team) => team.slug === desiredSlug);
|
181529
182007
|
if (!newTeam) {
|
181530
182008
|
output_manager_default.error(
|
181531
|
-
`You do not have permission to access scope ${
|
182009
|
+
`You do not have permission to access scope ${import_chalk125.default.bold(desiredSlug)}.`
|
181532
182010
|
);
|
181533
182011
|
return 1;
|
181534
182012
|
}
|
@@ -181546,15 +182024,15 @@ async function change(client2, argv) {
|
|
181546
182024
|
}
|
181547
182025
|
updateCurrentTeam(config2, newTeam);
|
181548
182026
|
output_manager_default.success(
|
181549
|
-
`The team ${
|
182027
|
+
`The team ${import_chalk125.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
|
181550
182028
|
);
|
181551
182029
|
return 0;
|
181552
182030
|
}
|
181553
|
-
var
|
182031
|
+
var import_chalk125, updateCurrentTeam;
|
181554
182032
|
var init_switch2 = __esm({
|
181555
182033
|
"src/commands/teams/switch.ts"() {
|
181556
182034
|
"use strict";
|
181557
|
-
|
182035
|
+
import_chalk125 = __toESM3(require_source());
|
181558
182036
|
init_emoji();
|
181559
182037
|
init_get_user();
|
181560
182038
|
init_get_teams();
|
@@ -181562,7 +182040,7 @@ var init_switch2 = __esm({
|
|
181562
182040
|
init_files();
|
181563
182041
|
init_output_manager();
|
181564
182042
|
init_switch();
|
181565
|
-
|
182043
|
+
init_command30();
|
181566
182044
|
init_get_args();
|
181567
182045
|
init_get_flags_specification();
|
181568
182046
|
init_error2();
|
@@ -181646,7 +182124,7 @@ async function teams(client2) {
|
|
181646
182124
|
}
|
181647
182125
|
const { subcommand, args: args2, subcommandOriginal } = getSubcommand(
|
181648
182126
|
parsedArgs.args.slice(1),
|
181649
|
-
|
182127
|
+
COMMAND_CONFIG17
|
181650
182128
|
);
|
181651
182129
|
const needHelp = parsedArgs.flags["--help"];
|
181652
182130
|
if (!subcommand && needHelp) {
|
@@ -181705,7 +182183,7 @@ async function teams(client2) {
|
|
181705
182183
|
}
|
181706
182184
|
}
|
181707
182185
|
}
|
181708
|
-
var
|
182186
|
+
var COMMAND_CONFIG17;
|
181709
182187
|
var init_teams2 = __esm({
|
181710
182188
|
"src/commands/teams/index.ts"() {
|
181711
182189
|
"use strict";
|
@@ -181714,14 +182192,14 @@ var init_teams2 = __esm({
|
|
181714
182192
|
init_switch2();
|
181715
182193
|
init_invite2();
|
181716
182194
|
init_get_args();
|
181717
|
-
|
182195
|
+
init_command30();
|
181718
182196
|
init_help();
|
181719
182197
|
init_get_flags_specification();
|
181720
182198
|
init_error2();
|
181721
182199
|
init_teams();
|
181722
182200
|
init_output_manager();
|
181723
182201
|
init_get_subcommand();
|
181724
|
-
|
182202
|
+
COMMAND_CONFIG17 = {
|
181725
182203
|
list: ["ls", "list"],
|
181726
182204
|
switch: ["switch", "change"],
|
181727
182205
|
add: ["create", "add"],
|
@@ -181733,13 +182211,13 @@ var init_teams2 = __esm({
|
|
181733
182211
|
// src/commands/telemetry/status.ts
|
181734
182212
|
async function status(client2) {
|
181735
182213
|
const enabled = client2.config.telemetry?.enabled !== false;
|
181736
|
-
const status2 = enabled ?
|
182214
|
+
const status2 = enabled ? import_chalk126.default.green("Enabled") : import_chalk126.default.red("Disabled");
|
181737
182215
|
output_manager_default.print("\n");
|
181738
|
-
output_manager_default.log(`${
|
182216
|
+
output_manager_default.log(`${import_chalk126.default.bold("Telemetry status")}: ${status2}
|
181739
182217
|
`);
|
181740
182218
|
const learnMoreMessage = `
|
181741
182219
|
|
181742
|
-
Learn more: ${
|
182220
|
+
Learn more: ${import_chalk126.default.cyan("https://vercel.com/docs/cli/about-telemetry")}`;
|
181743
182221
|
if (enabled) {
|
181744
182222
|
output_manager_default.log(`You have opted in to Vercel CLI telemetry${learnMoreMessage}`);
|
181745
182223
|
} else {
|
@@ -181750,11 +182228,11 @@ Learn more: ${import_chalk125.default.cyan("https://vercel.com/docs/cli/about-te
|
|
181750
182228
|
}
|
181751
182229
|
return 0;
|
181752
182230
|
}
|
181753
|
-
var
|
182231
|
+
var import_chalk126;
|
181754
182232
|
var init_status3 = __esm({
|
181755
182233
|
"src/commands/telemetry/status.ts"() {
|
181756
182234
|
"use strict";
|
181757
|
-
|
182235
|
+
import_chalk126 = __toESM3(require_source());
|
181758
182236
|
init_output_manager();
|
181759
182237
|
}
|
181760
182238
|
});
|
@@ -181890,7 +182368,7 @@ async function telemetry(client2) {
|
|
181890
182368
|
}
|
181891
182369
|
const { subcommand, args: args2, subcommandOriginal } = getSubcommand(
|
181892
182370
|
parsedArguments.args.slice(1),
|
181893
|
-
|
182371
|
+
COMMAND_CONFIG18
|
181894
182372
|
);
|
181895
182373
|
const needHelp = parsedArguments.flags["--help"];
|
181896
182374
|
function printHelp(command) {
|
@@ -181935,7 +182413,7 @@ async function telemetry(client2) {
|
|
181935
182413
|
default: {
|
181936
182414
|
const errorMessage = parsedArguments.args.length !== 2 ? "Invalid number of arguments" : "Invalid subcommand";
|
181937
182415
|
output_manager_default.print(
|
181938
|
-
`${
|
182416
|
+
`${import_chalk127.default.red("Error")}: ${errorMessage}. See help instructions for usage:
|
181939
182417
|
`
|
181940
182418
|
);
|
181941
182419
|
output_manager_default.print(help2(telemetryCommand, { columns: client2.stderr.columns }));
|
@@ -181943,7 +182421,7 @@ async function telemetry(client2) {
|
|
181943
182421
|
}
|
181944
182422
|
}
|
181945
182423
|
}
|
181946
|
-
var
|
182424
|
+
var import_chalk127, COMMAND_CONFIG18;
|
181947
182425
|
var init_telemetry3 = __esm({
|
181948
182426
|
"src/commands/telemetry/index.ts"() {
|
181949
182427
|
"use strict";
|
@@ -181955,13 +182433,13 @@ var init_telemetry3 = __esm({
|
|
181955
182433
|
init_enable();
|
181956
182434
|
init_disable();
|
181957
182435
|
init_flush();
|
181958
|
-
|
182436
|
+
init_command31();
|
181959
182437
|
init_get_flags_specification();
|
181960
182438
|
init_telemetry2();
|
181961
|
-
|
182439
|
+
import_chalk127 = __toESM3(require_source());
|
181962
182440
|
init_output_manager();
|
181963
182441
|
init_commands();
|
181964
|
-
|
182442
|
+
COMMAND_CONFIG18 = {
|
181965
182443
|
status: getCommandAliases(statusSubcommand3),
|
181966
182444
|
enable: getCommandAliases(enableSubcommand),
|
181967
182445
|
disable: getCommandAliases(disableSubcommand),
|
@@ -182018,7 +182496,7 @@ var init_whoami2 = __esm({
|
|
182018
182496
|
"src/commands/whoami/index.ts"() {
|
182019
182497
|
"use strict";
|
182020
182498
|
init_help();
|
182021
|
-
|
182499
|
+
init_command32();
|
182022
182500
|
init_get_scope();
|
182023
182501
|
init_get_args();
|
182024
182502
|
init_get_flags_specification();
|
@@ -182032,8 +182510,8 @@ var init_whoami2 = __esm({
|
|
182032
182510
|
var import_error_utils38 = __toESM3(require_dist2());
|
182033
182511
|
var import_path40 = require("path");
|
182034
182512
|
var import_fs8 = require("fs");
|
182035
|
-
var
|
182036
|
-
var
|
182513
|
+
var import_fs_extra24 = __toESM3(require_lib());
|
182514
|
+
var import_chalk128 = __toESM3(require_source());
|
182037
182515
|
var import_epipebomb = __toESM3(require_epipebomb());
|
182038
182516
|
|
182039
182517
|
// src/util/get-latest-version/index.ts
|
@@ -182567,6 +183045,12 @@ var RootTelemetryClient = class extends TelemetryClient {
|
|
182567
183045
|
value: actual
|
182568
183046
|
});
|
182569
183047
|
}
|
183048
|
+
trackCliCommandMicrofrontends(actual) {
|
183049
|
+
this.trackCliCommand({
|
183050
|
+
command: "microfrontends",
|
183051
|
+
value: actual
|
183052
|
+
});
|
183053
|
+
}
|
182570
183054
|
trackCliCommandProject(actual) {
|
182571
183055
|
this.trackCliCommand({
|
182572
183056
|
command: "project",
|
@@ -182755,6 +183239,7 @@ var help = () => `
|
|
182755
183239
|
dns [name] Manages your DNS records
|
182756
183240
|
domains [name] Manages your domain names
|
182757
183241
|
logs [url] Displays the logs for a deployment
|
183242
|
+
microfrontends Manages your microfrontends
|
182758
183243
|
projects Manages your Projects
|
182759
183244
|
rm | remove [id] Removes a deployment
|
182760
183245
|
teams Manages your teams
|
@@ -182854,7 +183339,7 @@ try {
|
|
182854
183339
|
originalError(msg);
|
182855
183340
|
};
|
182856
183341
|
}
|
182857
|
-
var
|
183342
|
+
var VERCEL_DIR4 = global_path_default();
|
182858
183343
|
var VERCEL_CONFIG_PATH = getConfigFilePath();
|
182859
183344
|
var VERCEL_AUTH_CONFIG_PATH = getAuthConfigFilePath();
|
182860
183345
|
var GLOBAL_COMMANDS = /* @__PURE__ */ new Set(["help"]);
|
@@ -182867,7 +183352,7 @@ Sentry.init({
|
|
182867
183352
|
var client;
|
182868
183353
|
var { isTTY: isTTY2 } = process.stdout;
|
182869
183354
|
var apiUrl = "https://api.vercel.com";
|
182870
|
-
var
|
183355
|
+
var main15 = async () => {
|
182871
183356
|
if (process.env.FORCE_TTY === "1") {
|
182872
183357
|
isTTY2 = true;
|
182873
183358
|
process.stdout.isTTY = true;
|
@@ -182918,13 +183403,13 @@ var main14 = async () => {
|
|
182918
183403
|
const betaCommands = [];
|
182919
183404
|
if (betaCommands.includes(targetOrSubcommand)) {
|
182920
183405
|
output_manager_default.print(
|
182921
|
-
`${
|
183406
|
+
`${import_chalk128.default.grey(
|
182922
183407
|
`${getTitleName()} CLI ${pkg_default.version} ${targetOrSubcommand} (beta) \u2014 https://vercel.com/feedback`
|
182923
183408
|
)}
|
182924
183409
|
`
|
182925
183410
|
);
|
182926
183411
|
} else {
|
182927
|
-
output_manager_default.print(`${
|
183412
|
+
output_manager_default.print(`${import_chalk128.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
|
182928
183413
|
`);
|
182929
183414
|
}
|
182930
183415
|
if (!targetOrSubcommand && parsedArgs.flags["--version"]) {
|
@@ -182938,11 +183423,11 @@ var main14 = async () => {
|
|
182938
183423
|
return 2;
|
182939
183424
|
}
|
182940
183425
|
try {
|
182941
|
-
await (0,
|
183426
|
+
await (0, import_fs_extra24.mkdirp)(VERCEL_DIR4);
|
182942
183427
|
} catch (err) {
|
182943
183428
|
output_manager_default.error(
|
182944
183429
|
`An unexpected error occurred while trying to create the global directory "${humanizePath(
|
182945
|
-
|
183430
|
+
VERCEL_DIR4
|
182946
183431
|
)}" ${(0, import_error_utils38.errorToString)(err)}`
|
182947
183432
|
);
|
182948
183433
|
return 1;
|
@@ -183106,7 +183591,7 @@ var main14 = async () => {
|
|
183106
183591
|
printError(error3);
|
183107
183592
|
return 1;
|
183108
183593
|
}
|
183109
|
-
output_manager_default.debug(`Saved credentials in "${humanizePath(
|
183594
|
+
output_manager_default.debug(`Saved credentials in "${humanizePath(VERCEL_DIR4)}"`);
|
183110
183595
|
} else {
|
183111
183596
|
output_manager_default.prettyError({
|
183112
183597
|
message: `No existing credentials found. Please run ${getCommandName("login")} or pass ${param("--token")}`,
|
@@ -183322,6 +183807,10 @@ var main14 = async () => {
|
|
183322
183807
|
telemetry2.trackCliCommandLogout(userSuppliedSubCommand);
|
183323
183808
|
func = (init_logout2(), __toCommonJS3(logout_exports)).default;
|
183324
183809
|
break;
|
183810
|
+
case "microfrontends":
|
183811
|
+
telemetry2.trackCliCommandMicrofrontends(userSuppliedSubCommand);
|
183812
|
+
func = (init_microfrontends2(), __toCommonJS3(microfrontends_exports)).default;
|
183813
|
+
break;
|
183325
183814
|
case "project":
|
183326
183815
|
telemetry2.trackCliCommandProject(userSuppliedSubCommand);
|
183327
183816
|
func = (init_project2(), __toCommonJS3(project_exports)).default;
|
@@ -183461,27 +183950,27 @@ ${err.stack}`);
|
|
183461
183950
|
};
|
183462
183951
|
process.on("unhandledRejection", handleRejection);
|
183463
183952
|
process.on("uncaughtException", handleUnexpected);
|
183464
|
-
|
183953
|
+
main15().then(async (exitCode2) => {
|
183465
183954
|
if (isTTY2 && !process.env.NO_UPDATE_NOTIFIER) {
|
183466
183955
|
const latest = getLatestVersion({
|
183467
183956
|
pkg: pkg_default
|
183468
183957
|
});
|
183469
183958
|
if (latest) {
|
183470
183959
|
const changelog = "https://github.com/vercel/vercel/releases";
|
183471
|
-
const errorMsg = exitCode2 && exitCode2 !== 2 ?
|
183960
|
+
const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk128.default.magenta(
|
183472
183961
|
`
|
183473
183962
|
|
183474
|
-
The latest update ${
|
183963
|
+
The latest update ${import_chalk128.default.italic(
|
183475
183964
|
"may"
|
183476
183965
|
)} fix any errors that occurred.`
|
183477
183966
|
) : "";
|
183478
183967
|
output_manager_default.print(
|
183479
183968
|
box(
|
183480
|
-
`Update available! ${
|
183969
|
+
`Update available! ${import_chalk128.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk128.default.green(
|
183481
183970
|
`v${latest}`
|
183482
183971
|
)}
|
183483
183972
|
Changelog: ${output_manager_default.link(changelog, changelog, { fallback: false })}
|
183484
|
-
Run ${
|
183973
|
+
Run ${import_chalk128.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
|
183485
183974
|
)
|
183486
183975
|
);
|
183487
183976
|
output_manager_default.print("\n\n");
|