vercel 37.9.0 → 37.12.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 +651 -47
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -16375,8 +16375,7 @@ var init_arg_common = __esm({
|
|
16375
16375
|
deprecated: false
|
16376
16376
|
},
|
16377
16377
|
{ name: "team", shorthand: "T", type: String, deprecated: false },
|
16378
|
-
{ name: "api", shorthand: null, type: String, deprecated: false }
|
16379
|
-
{ name: "cwd", shorthand: null, type: String, deprecated: false }
|
16378
|
+
{ name: "api", shorthand: null, type: String, deprecated: false }
|
16380
16379
|
];
|
16381
16380
|
GLOBAL_OPTIONS = getFlagsSpecification(globalCommandOptions);
|
16382
16381
|
arg_common_default = () => GLOBAL_OPTIONS;
|
@@ -69715,6 +69714,14 @@ var init_telemetry = __esm({
|
|
69715
69714
|
TelemetryClient = class {
|
69716
69715
|
constructor({ opts }) {
|
69717
69716
|
this.redactedValue = "[REDACTED]";
|
69717
|
+
this.redactedArgumentsLength = (args2) => {
|
69718
|
+
if (args2 && args2.length === 1) {
|
69719
|
+
return "ONE";
|
69720
|
+
} else if (args2.length > 1) {
|
69721
|
+
return "MANY";
|
69722
|
+
}
|
69723
|
+
return "NONE";
|
69724
|
+
};
|
69718
69725
|
this.output = opts.output;
|
69719
69726
|
this.isDebug = opts.isDebug || false;
|
69720
69727
|
this.store = opts.store;
|
@@ -69751,7 +69758,7 @@ var init_telemetry = __esm({
|
|
69751
69758
|
}
|
69752
69759
|
trackCliOption(eventData) {
|
69753
69760
|
this.track({
|
69754
|
-
key: `
|
69761
|
+
key: `option:${eventData.option}`,
|
69755
69762
|
value: eventData.value
|
69756
69763
|
});
|
69757
69764
|
}
|
@@ -69795,6 +69802,18 @@ var init_telemetry = __esm({
|
|
69795
69802
|
});
|
69796
69803
|
}
|
69797
69804
|
}
|
69805
|
+
trackDefaultDeploy() {
|
69806
|
+
this.track({
|
69807
|
+
key: "default-deploy",
|
69808
|
+
value: "TRUE"
|
69809
|
+
});
|
69810
|
+
}
|
69811
|
+
trackExtension(extension) {
|
69812
|
+
this.track({
|
69813
|
+
key: "extension",
|
69814
|
+
value: extension
|
69815
|
+
});
|
69816
|
+
}
|
69798
69817
|
trackCommandError(error3) {
|
69799
69818
|
this.output.error(error3);
|
69800
69819
|
return;
|
@@ -69805,6 +69824,7 @@ var init_telemetry = __esm({
|
|
69805
69824
|
};
|
69806
69825
|
TelemetryEventStore = class {
|
69807
69826
|
constructor(opts) {
|
69827
|
+
this.teamId = "NO_TEAM_ID";
|
69808
69828
|
this.isDebug = opts.isDebug || false;
|
69809
69829
|
this.output = opts.output;
|
69810
69830
|
this.sessionId = (0, import_node_crypto.randomUUID)();
|
@@ -69813,8 +69833,14 @@ var init_telemetry = __esm({
|
|
69813
69833
|
}
|
69814
69834
|
add(event) {
|
69815
69835
|
event.sessionId = this.sessionId;
|
69836
|
+
event.teamId = this.teamId;
|
69816
69837
|
this.events.push(event);
|
69817
69838
|
}
|
69839
|
+
updateTeamId(teamId) {
|
69840
|
+
if (teamId) {
|
69841
|
+
this.teamId = teamId;
|
69842
|
+
}
|
69843
|
+
}
|
69818
69844
|
get readonlyEvents() {
|
69819
69845
|
return Array.from(this.events);
|
69820
69846
|
}
|
@@ -69882,7 +69908,7 @@ function getSubcommand(cliArgs, config2) {
|
|
69882
69908
|
}
|
69883
69909
|
return {
|
69884
69910
|
subcommand: config2.default,
|
69885
|
-
subcommandOriginal: "",
|
69911
|
+
subcommandOriginal: "default",
|
69886
69912
|
args: cliArgs
|
69887
69913
|
};
|
69888
69914
|
}
|
@@ -71964,7 +71990,7 @@ var init_ls = __esm({
|
|
71964
71990
|
trackCliOptionLimit(limit) {
|
71965
71991
|
if (limit) {
|
71966
71992
|
this.trackCliOption({
|
71967
|
-
|
71993
|
+
option: "limit",
|
71968
71994
|
value: String(limit)
|
71969
71995
|
});
|
71970
71996
|
}
|
@@ -71972,8 +71998,8 @@ var init_ls = __esm({
|
|
71972
71998
|
trackCliOptionNext(next) {
|
71973
71999
|
if (next) {
|
71974
72000
|
this.trackCliOption({
|
71975
|
-
|
71976
|
-
value:
|
72001
|
+
option: "next",
|
72002
|
+
value: this.redactedValue
|
71977
72003
|
});
|
71978
72004
|
}
|
71979
72005
|
}
|
@@ -72101,11 +72127,43 @@ var init_is_valid_name = __esm({
|
|
72101
72127
|
}
|
72102
72128
|
});
|
72103
72129
|
|
72130
|
+
// src/util/telemetry/commands/alias/remove.ts
|
72131
|
+
var AliasRmTelemetryClient;
|
72132
|
+
var init_remove = __esm({
|
72133
|
+
"src/util/telemetry/commands/alias/remove.ts"() {
|
72134
|
+
"use strict";
|
72135
|
+
init_telemetry();
|
72136
|
+
AliasRmTelemetryClient = class extends TelemetryClient {
|
72137
|
+
trackCliArgumentAlias(alias2) {
|
72138
|
+
if (alias2) {
|
72139
|
+
this.trackCliArgument({
|
72140
|
+
arg: "alias",
|
72141
|
+
value: this.redactedValue
|
72142
|
+
});
|
72143
|
+
}
|
72144
|
+
}
|
72145
|
+
trackCliFlagYes(yes) {
|
72146
|
+
if (yes) {
|
72147
|
+
this.trackCliFlag("yes");
|
72148
|
+
}
|
72149
|
+
}
|
72150
|
+
};
|
72151
|
+
}
|
72152
|
+
});
|
72153
|
+
|
72104
72154
|
// src/commands/alias/rm.ts
|
72105
72155
|
async function rm(client2, opts, args2) {
|
72106
72156
|
const { output: output2 } = client2;
|
72107
72157
|
const { contextName } = await getScope(client2);
|
72158
|
+
const telemetryClient = new AliasRmTelemetryClient({
|
72159
|
+
opts: {
|
72160
|
+
output: client2.output,
|
72161
|
+
store: client2.telemetryEventStore
|
72162
|
+
}
|
72163
|
+
});
|
72164
|
+
telemetryClient.trackCliFlagYes(opts["--yes"]);
|
72108
72165
|
const [aliasOrId] = args2;
|
72166
|
+
telemetryClient.trackCliArgumentAlias(aliasOrId);
|
72109
72167
|
if (args2.length !== 1) {
|
72110
72168
|
output2.error(
|
72111
72169
|
`Invalid number of arguments. Usage: ${import_chalk24.default.cyan(
|
@@ -72170,6 +72228,7 @@ var init_rm = __esm({
|
|
72170
72228
|
init_find_alias_by_alias_or_id();
|
72171
72229
|
init_is_valid_name();
|
72172
72230
|
init_pkg_name();
|
72231
|
+
init_remove();
|
72173
72232
|
}
|
72174
72233
|
});
|
72175
72234
|
|
@@ -73537,11 +73596,11 @@ async function setupDomain(output2, client2, alias2, contextName) {
|
|
73537
73596
|
return addResult;
|
73538
73597
|
}
|
73539
73598
|
output2.debug(
|
73540
|
-
`Domain ${domain2}
|
73599
|
+
`Domain ${domain2} successfully added and automatically verified`
|
73541
73600
|
);
|
73542
73601
|
return addResult;
|
73543
73602
|
}
|
73544
|
-
output2.debug(`The domain ${aliasDomain} was
|
73603
|
+
output2.debug(`The domain ${aliasDomain} was successfully purchased`);
|
73545
73604
|
const purchasedDomain = await maybeGetDomainByName(
|
73546
73605
|
client2,
|
73547
73606
|
contextName,
|
@@ -73799,10 +73858,58 @@ var init_handle_cert_error = __esm({
|
|
73799
73858
|
}
|
73800
73859
|
});
|
73801
73860
|
|
73861
|
+
// src/util/telemetry/commands/alias/set.ts
|
73862
|
+
var AliasSetTelemetryClient;
|
73863
|
+
var init_set = __esm({
|
73864
|
+
"src/util/telemetry/commands/alias/set.ts"() {
|
73865
|
+
"use strict";
|
73866
|
+
init_telemetry();
|
73867
|
+
AliasSetTelemetryClient = class extends TelemetryClient {
|
73868
|
+
trackCliFlagDebug(flag) {
|
73869
|
+
if (flag) {
|
73870
|
+
this.trackCliFlag("debug");
|
73871
|
+
}
|
73872
|
+
}
|
73873
|
+
trackCliOptionLocalConfig(localConfig) {
|
73874
|
+
if (localConfig) {
|
73875
|
+
this.trackCliOption({
|
73876
|
+
option: "local-config",
|
73877
|
+
value: this.redactedValue
|
73878
|
+
});
|
73879
|
+
}
|
73880
|
+
}
|
73881
|
+
trackCliArgumentDeploymentUrl(deploymentUrl) {
|
73882
|
+
if (deploymentUrl) {
|
73883
|
+
this.trackCliArgument({
|
73884
|
+
arg: "deployment-url",
|
73885
|
+
value: this.redactedValue
|
73886
|
+
});
|
73887
|
+
}
|
73888
|
+
}
|
73889
|
+
trackCliArgumentCustomDomain(customDomain) {
|
73890
|
+
if (customDomain) {
|
73891
|
+
this.trackCliArgument({
|
73892
|
+
arg: "custom-domain",
|
73893
|
+
value: this.redactedValue
|
73894
|
+
});
|
73895
|
+
}
|
73896
|
+
}
|
73897
|
+
};
|
73898
|
+
}
|
73899
|
+
});
|
73900
|
+
|
73802
73901
|
// src/commands/alias/set.ts
|
73803
73902
|
async function set(client2, opts, args2) {
|
73804
73903
|
const setStamp = stamp_default();
|
73805
73904
|
const { output: output2, localConfig } = client2;
|
73905
|
+
const telemetryClient = new AliasSetTelemetryClient({
|
73906
|
+
opts: {
|
73907
|
+
output: client2.output,
|
73908
|
+
store: client2.telemetryEventStore
|
73909
|
+
}
|
73910
|
+
});
|
73911
|
+
telemetryClient.trackCliFlagDebug(opts["--debug"]);
|
73912
|
+
telemetryClient.trackCliOptionLocalConfig(opts["--local-config"]);
|
73806
73913
|
const { contextName, user } = await getScope(client2);
|
73807
73914
|
if (args2.length > 2) {
|
73808
73915
|
output2.error(
|
@@ -73831,6 +73938,8 @@ async function set(client2, opts, args2) {
|
|
73831
73938
|
return 1;
|
73832
73939
|
}
|
73833
73940
|
if (args2.length === 1) {
|
73941
|
+
const [aliasTarget2] = args2;
|
73942
|
+
telemetryClient.trackCliArgumentCustomDomain(aliasTarget2);
|
73834
73943
|
const deployment2 = handleCertError(
|
73835
73944
|
output2,
|
73836
73945
|
await getDeploymentForAlias(
|
@@ -73886,6 +73995,8 @@ async function set(client2, opts, args2) {
|
|
73886
73995
|
return 0;
|
73887
73996
|
}
|
73888
73997
|
const [deploymentIdOrHost, aliasTarget] = args2;
|
73998
|
+
telemetryClient.trackCliArgumentDeploymentUrl(deploymentIdOrHost);
|
73999
|
+
telemetryClient.trackCliArgumentCustomDomain(aliasTarget);
|
73889
74000
|
const deployment = handleCertError(
|
73890
74001
|
output2,
|
73891
74002
|
await getDeployment(client2, contextName, deploymentIdOrHost)
|
@@ -74075,7 +74186,7 @@ function getTargetsForAlias(args2, { alias: alias2 } = {}) {
|
|
74075
74186
|
return typeof alias2 === "string" ? [alias2] : alias2;
|
74076
74187
|
}
|
74077
74188
|
var import_chalk32;
|
74078
|
-
var
|
74189
|
+
var init_set2 = __esm({
|
74079
74190
|
"src/commands/alias/set.ts"() {
|
74080
74191
|
"use strict";
|
74081
74192
|
import_chalk32 = __toESM3(require_source());
|
@@ -74091,6 +74202,7 @@ var init_set = __esm({
|
|
74091
74202
|
init_link();
|
74092
74203
|
init_pkg_name();
|
74093
74204
|
init_to_host();
|
74205
|
+
init_set();
|
74094
74206
|
}
|
74095
74207
|
});
|
74096
74208
|
|
@@ -74194,6 +74306,18 @@ var init_alias = __esm({
|
|
74194
74306
|
value: actual
|
74195
74307
|
});
|
74196
74308
|
}
|
74309
|
+
trackCliSubcommandSet(actual) {
|
74310
|
+
this.trackCliSubcommand({
|
74311
|
+
subcommand: "set",
|
74312
|
+
value: actual
|
74313
|
+
});
|
74314
|
+
}
|
74315
|
+
trackCliSubcommandRemove(actual) {
|
74316
|
+
this.trackCliSubcommand({
|
74317
|
+
subcommand: "rm",
|
74318
|
+
value: actual
|
74319
|
+
});
|
74320
|
+
}
|
74197
74321
|
};
|
74198
74322
|
}
|
74199
74323
|
});
|
@@ -74204,7 +74328,7 @@ __export3(alias_exports, {
|
|
74204
74328
|
default: () => alias
|
74205
74329
|
});
|
74206
74330
|
async function alias(client2) {
|
74207
|
-
|
74331
|
+
const telemetryClient = new AliasTelemetryClient({
|
74208
74332
|
opts: {
|
74209
74333
|
output: client2.output,
|
74210
74334
|
store: client2.telemetryEventStore
|
@@ -74231,8 +74355,10 @@ async function alias(client2) {
|
|
74231
74355
|
telemetryClient.trackCliSubcommandLs(subcommandOriginal);
|
74232
74356
|
return ls(client2, parsedArguments.flags, args2);
|
74233
74357
|
case "rm":
|
74358
|
+
telemetryClient.trackCliSubcommandRemove(subcommandOriginal);
|
74234
74359
|
return rm(client2, parsedArguments.flags, args2);
|
74235
74360
|
default:
|
74361
|
+
telemetryClient.trackCliSubcommandSet(subcommandOriginal);
|
74236
74362
|
return set(client2, parsedArguments.flags, args2);
|
74237
74363
|
}
|
74238
74364
|
}
|
@@ -74246,7 +74372,7 @@ var init_alias2 = __esm({
|
|
74246
74372
|
init_help();
|
74247
74373
|
init_ls2();
|
74248
74374
|
init_rm();
|
74249
|
-
|
74375
|
+
init_set2();
|
74250
74376
|
init_command();
|
74251
74377
|
init_get_flags_specification();
|
74252
74378
|
init_alias();
|
@@ -85397,7 +85523,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
85397
85523
|
});
|
85398
85524
|
module2.exports = __toCommonJS4(detect_file_system_api_exports);
|
85399
85525
|
var import_semver4 = __toESM4(require_semver2());
|
85400
|
-
var
|
85526
|
+
var import__19 = require_dist27();
|
85401
85527
|
async function detectFileSystemAPI2({
|
85402
85528
|
files,
|
85403
85529
|
projectSettings,
|
@@ -85463,7 +85589,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
85463
85589
|
};
|
85464
85590
|
}
|
85465
85591
|
const invalidBuilder = builders.find(({ use }) => {
|
85466
|
-
const valid = (0,
|
85592
|
+
const valid = (0, import__19.isOfficialRuntime)("go", use) || (0, import__19.isOfficialRuntime)("python", use) || (0, import__19.isOfficialRuntime)("ruby", use) || (0, import__19.isOfficialRuntime)("node", use) || (0, import__19.isOfficialRuntime)("next", use) || (0, import__19.isOfficialRuntime)("static", use) || (0, import__19.isOfficialRuntime)("static-build", use);
|
85467
85593
|
return !valid;
|
85468
85594
|
});
|
85469
85595
|
if (invalidBuilder) {
|
@@ -85476,7 +85602,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
85476
85602
|
for (const lang of ["go", "python", "ruby"]) {
|
85477
85603
|
for (const { use } of builders) {
|
85478
85604
|
const plugin = "vercel-plugin-" + lang;
|
85479
|
-
if ((0,
|
85605
|
+
if ((0, import__19.isOfficialRuntime)(lang, use) && !deps[plugin]) {
|
85480
85606
|
return {
|
85481
85607
|
metadata,
|
85482
85608
|
fsApiBuilder: null,
|
@@ -85533,7 +85659,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
85533
85659
|
}
|
85534
85660
|
}
|
85535
85661
|
const frontendBuilder = builders.find(
|
85536
|
-
({ use }) => (0,
|
85662
|
+
({ use }) => (0, import__19.isOfficialRuntime)("next", use) || (0, import__19.isOfficialRuntime)("static", use) || (0, import__19.isOfficialRuntime)("static-build", use)
|
85537
85663
|
);
|
85538
85664
|
const config2 = frontendBuilder?.config || {};
|
85539
85665
|
const withTag = tag ? `@${tag}` : "";
|
@@ -120058,12 +120184,55 @@ var init_scrub_argv = __esm({
|
|
120058
120184
|
}
|
120059
120185
|
});
|
120060
120186
|
|
120187
|
+
// src/util/telemetry/commands/build/index.ts
|
120188
|
+
var BuildTelemetryClient;
|
120189
|
+
var init_build = __esm({
|
120190
|
+
"src/util/telemetry/commands/build/index.ts"() {
|
120191
|
+
"use strict";
|
120192
|
+
init_telemetry();
|
120193
|
+
BuildTelemetryClient = class extends TelemetryClient {
|
120194
|
+
trackCliOptionOutput(path11) {
|
120195
|
+
if (path11) {
|
120196
|
+
this.trackCliOption({
|
120197
|
+
option: "output",
|
120198
|
+
value: this.redactedValue
|
120199
|
+
});
|
120200
|
+
}
|
120201
|
+
}
|
120202
|
+
trackCliOptionTarget(option) {
|
120203
|
+
if (option) {
|
120204
|
+
this.trackCliOption({
|
120205
|
+
option: "target",
|
120206
|
+
value: option
|
120207
|
+
});
|
120208
|
+
}
|
120209
|
+
}
|
120210
|
+
trackCliFlagProd(flag) {
|
120211
|
+
if (flag) {
|
120212
|
+
this.trackCliFlag("prod");
|
120213
|
+
}
|
120214
|
+
}
|
120215
|
+
trackCliFlagYes(flag) {
|
120216
|
+
if (flag) {
|
120217
|
+
this.trackCliFlag("yes");
|
120218
|
+
}
|
120219
|
+
}
|
120220
|
+
};
|
120221
|
+
}
|
120222
|
+
});
|
120223
|
+
|
120061
120224
|
// src/commands/build/index.ts
|
120062
120225
|
var build_exports = {};
|
120063
120226
|
__export3(build_exports, {
|
120064
120227
|
default: () => main2
|
120065
120228
|
});
|
120066
120229
|
async function main2(client2) {
|
120230
|
+
const telemetryClient = new BuildTelemetryClient({
|
120231
|
+
opts: {
|
120232
|
+
output: client2.output,
|
120233
|
+
store: client2.telemetryEventStore
|
120234
|
+
}
|
120235
|
+
});
|
120067
120236
|
let { cwd } = client2;
|
120068
120237
|
const { output: output2 } = client2;
|
120069
120238
|
if (process.env.__VERCEL_BUILD_RUNNING) {
|
@@ -120085,6 +120254,10 @@ async function main2(client2) {
|
|
120085
120254
|
const flagsSpecification = getFlagsSpecification(buildCommand.options);
|
120086
120255
|
try {
|
120087
120256
|
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification);
|
120257
|
+
telemetryClient.trackCliOptionOutput(parsedArgs.flags["--output"]);
|
120258
|
+
telemetryClient.trackCliOptionTarget(parsedArgs.flags["--target"]);
|
120259
|
+
telemetryClient.trackCliFlagProd(parsedArgs.flags["--prod"]);
|
120260
|
+
telemetryClient.trackCliFlagYes(parsedArgs.flags["--yes"]);
|
120088
120261
|
} catch (error3) {
|
120089
120262
|
handleError(error3);
|
120090
120263
|
return 1;
|
@@ -120671,7 +120844,7 @@ async function getFrameworkRoutes(framework, dirPrefix) {
|
|
120671
120844
|
return routes2;
|
120672
120845
|
}
|
120673
120846
|
var import_fs_extra18, import_chalk50, import_dotenv, import_semver3, import_minimatch2, import_path28, import_frameworks4, import_build_utils12, import_fs_detectors4, import_routing_utils2, import_client8;
|
120674
|
-
var
|
120847
|
+
var init_build2 = __esm({
|
120675
120848
|
"src/commands/build/index.ts"() {
|
120676
120849
|
"use strict";
|
120677
120850
|
import_fs_extra18 = __toESM3(require_lib());
|
@@ -120710,6 +120883,7 @@ var init_build = __esm({
|
|
120710
120883
|
init_scrub_argv();
|
120711
120884
|
init_get_flags_specification();
|
120712
120885
|
init_parse_target();
|
120886
|
+
init_build();
|
120713
120887
|
}
|
120714
120888
|
});
|
120715
120889
|
|
@@ -121881,7 +122055,7 @@ var init_deploy = __esm({
|
|
121881
122055
|
trackCliOptionArchive(format4) {
|
121882
122056
|
if (format4) {
|
121883
122057
|
this.trackCliOption({
|
121884
|
-
|
122058
|
+
option: "archive",
|
121885
122059
|
value: format4
|
121886
122060
|
});
|
121887
122061
|
}
|
@@ -121889,7 +122063,7 @@ var init_deploy = __esm({
|
|
121889
122063
|
trackCliOptionBuildEnv(buildEnv) {
|
121890
122064
|
if (buildEnv && buildEnv.length > 0) {
|
121891
122065
|
this.trackCliOption({
|
121892
|
-
|
122066
|
+
option: "build-env",
|
121893
122067
|
value: this.redactedValue
|
121894
122068
|
});
|
121895
122069
|
}
|
@@ -121897,7 +122071,7 @@ var init_deploy = __esm({
|
|
121897
122071
|
trackCliOptionEnv(env) {
|
121898
122072
|
if (env && env.length > 0) {
|
121899
122073
|
this.trackCliOption({
|
121900
|
-
|
122074
|
+
option: "env",
|
121901
122075
|
value: this.redactedValue
|
121902
122076
|
});
|
121903
122077
|
}
|
@@ -121905,7 +122079,7 @@ var init_deploy = __esm({
|
|
121905
122079
|
trackCliOptionMeta(meta) {
|
121906
122080
|
if (meta && meta.length > 0) {
|
121907
122081
|
this.trackCliOption({
|
121908
|
-
|
122082
|
+
option: "meta",
|
121909
122083
|
value: this.redactedValue
|
121910
122084
|
});
|
121911
122085
|
}
|
@@ -121913,7 +122087,7 @@ var init_deploy = __esm({
|
|
121913
122087
|
trackCliOptionName(name) {
|
121914
122088
|
if (name) {
|
121915
122089
|
this.trackCliOption({
|
121916
|
-
|
122090
|
+
option: "name",
|
121917
122091
|
value: this.redactedValue
|
121918
122092
|
});
|
121919
122093
|
}
|
@@ -121921,7 +122095,7 @@ var init_deploy = __esm({
|
|
121921
122095
|
trackCliOptionRegions(regions) {
|
121922
122096
|
if (regions) {
|
121923
122097
|
this.trackCliOption({
|
121924
|
-
|
122098
|
+
option: "regions",
|
121925
122099
|
value: regions
|
121926
122100
|
});
|
121927
122101
|
}
|
@@ -121930,7 +122104,7 @@ var init_deploy = __esm({
|
|
121930
122104
|
if (target) {
|
121931
122105
|
const value = ["production", "preview"].includes(target) ? target : "CUSTOM_ID_OR_SLUG";
|
121932
122106
|
this.trackCliOption({
|
121933
|
-
|
122107
|
+
option: "target",
|
121934
122108
|
value
|
121935
122109
|
});
|
121936
122110
|
}
|
@@ -122109,7 +122283,7 @@ var init_deploy2 = __esm({
|
|
122109
122283
|
init_parse_target();
|
122110
122284
|
init_deploy();
|
122111
122285
|
deploy_default = async (client2) => {
|
122112
|
-
|
122286
|
+
const telemetryClient = new DeployTelemetryClient({
|
122113
122287
|
opts: {
|
122114
122288
|
output: client2.output,
|
122115
122289
|
store: client2.telemetryEventStore
|
@@ -143268,7 +143442,7 @@ var init_transfer_in = __esm({
|
|
143268
143442
|
trackCliOptionCode(code2) {
|
143269
143443
|
if (code2) {
|
143270
143444
|
this.trackCliOption({
|
143271
|
-
|
143445
|
+
option: "code",
|
143272
143446
|
value: this.redactedValue
|
143273
143447
|
});
|
143274
143448
|
}
|
@@ -148955,8 +149129,33 @@ var init_list4 = __esm({
|
|
148955
149129
|
}
|
148956
149130
|
});
|
148957
149131
|
|
149132
|
+
// src/util/telemetry/commands/project/rm.ts
|
149133
|
+
var ProjectRmTelemetryClient;
|
149134
|
+
var init_rm6 = __esm({
|
149135
|
+
"src/util/telemetry/commands/project/rm.ts"() {
|
149136
|
+
"use strict";
|
149137
|
+
init_telemetry();
|
149138
|
+
ProjectRmTelemetryClient = class extends TelemetryClient {
|
149139
|
+
trackCliArgumentName(name) {
|
149140
|
+
if (name) {
|
149141
|
+
this.trackCliArgument({
|
149142
|
+
arg: "name",
|
149143
|
+
value: this.redactedValue
|
149144
|
+
});
|
149145
|
+
}
|
149146
|
+
}
|
149147
|
+
};
|
149148
|
+
}
|
149149
|
+
});
|
149150
|
+
|
148958
149151
|
// src/commands/project/rm.ts
|
148959
149152
|
async function rm6(client2, args2) {
|
149153
|
+
const telemetryClient = new ProjectRmTelemetryClient({
|
149154
|
+
opts: {
|
149155
|
+
output: client2.output,
|
149156
|
+
store: client2.telemetryEventStore
|
149157
|
+
}
|
149158
|
+
});
|
148960
149159
|
if (args2.length !== 1) {
|
148961
149160
|
client2.output.error(
|
148962
149161
|
`Invalid number of arguments. Usage: ${import_chalk99.default.cyan(
|
@@ -148966,6 +149165,7 @@ async function rm6(client2, args2) {
|
|
148966
149165
|
return 1;
|
148967
149166
|
}
|
148968
149167
|
const name = args2[0];
|
149168
|
+
telemetryClient.trackCliArgumentName(name);
|
148969
149169
|
const start = Date.now();
|
148970
149170
|
const yes = await readConfirmation3(client2, name);
|
148971
149171
|
if (!yes) {
|
@@ -149006,7 +149206,7 @@ It will also delete everything under the project including deployments.
|
|
149006
149206
|
return await confirm(client2, `${import_chalk99.default.bold.red("Are you sure?")}`, false);
|
149007
149207
|
}
|
149008
149208
|
var import_chalk99, import_ms22, e;
|
149009
|
-
var
|
149209
|
+
var init_rm7 = __esm({
|
149010
149210
|
"src/commands/project/rm.ts"() {
|
149011
149211
|
"use strict";
|
149012
149212
|
import_chalk99 = __toESM3(require_source());
|
@@ -149015,6 +149215,7 @@ var init_rm6 = __esm({
|
|
149015
149215
|
init_errors_ts();
|
149016
149216
|
init_confirm();
|
149017
149217
|
init_pkg_name();
|
149218
|
+
init_rm6();
|
149018
149219
|
e = encodeURIComponent;
|
149019
149220
|
}
|
149020
149221
|
});
|
@@ -149104,12 +149305,47 @@ var init_command21 = __esm({
|
|
149104
149305
|
}
|
149105
149306
|
});
|
149106
149307
|
|
149308
|
+
// src/util/telemetry/commands/project/index.ts
|
149309
|
+
var ProjectTelemetryClient;
|
149310
|
+
var init_project = __esm({
|
149311
|
+
"src/util/telemetry/commands/project/index.ts"() {
|
149312
|
+
"use strict";
|
149313
|
+
init_telemetry();
|
149314
|
+
ProjectTelemetryClient = class extends TelemetryClient {
|
149315
|
+
trackCliSubcommandLs(actual) {
|
149316
|
+
this.trackCliSubcommand({
|
149317
|
+
subcommand: "ls",
|
149318
|
+
value: actual
|
149319
|
+
});
|
149320
|
+
}
|
149321
|
+
trackCliSubcommandAdd(actual) {
|
149322
|
+
this.trackCliSubcommand({
|
149323
|
+
subcommand: "add",
|
149324
|
+
value: actual
|
149325
|
+
});
|
149326
|
+
}
|
149327
|
+
trackCliSubcommandRm(actual) {
|
149328
|
+
this.trackCliSubcommand({
|
149329
|
+
subcommand: "rm",
|
149330
|
+
value: actual
|
149331
|
+
});
|
149332
|
+
}
|
149333
|
+
};
|
149334
|
+
}
|
149335
|
+
});
|
149336
|
+
|
149107
149337
|
// src/commands/project/index.ts
|
149108
149338
|
var project_exports = {};
|
149109
149339
|
__export3(project_exports, {
|
149110
149340
|
default: () => main11
|
149111
149341
|
});
|
149112
149342
|
async function main11(client2) {
|
149343
|
+
const telemetryClient = new ProjectTelemetryClient({
|
149344
|
+
opts: {
|
149345
|
+
output: client2.output,
|
149346
|
+
store: client2.telemetryEventStore
|
149347
|
+
}
|
149348
|
+
});
|
149113
149349
|
let subcommand;
|
149114
149350
|
let parsedArgs = null;
|
149115
149351
|
const flagsSpecification = getFlagsSpecification(projectCommand.options);
|
@@ -149131,11 +149367,14 @@ async function main11(client2) {
|
|
149131
149367
|
switch (subcommand) {
|
149132
149368
|
case "ls":
|
149133
149369
|
case "list":
|
149370
|
+
telemetryClient.trackCliSubcommandLs(subcommand);
|
149134
149371
|
return await list4(client2, parsedArgs.flags, args2, contextName);
|
149135
149372
|
case "add":
|
149373
|
+
telemetryClient.trackCliSubcommandAdd(subcommand);
|
149136
149374
|
return await add7(client2, args2, contextName);
|
149137
149375
|
case "rm":
|
149138
149376
|
case "remove":
|
149377
|
+
telemetryClient.trackCliSubcommandRm(subcommand);
|
149139
149378
|
return await rm6(client2, args2);
|
149140
149379
|
default:
|
149141
149380
|
output2.error(getInvalidSubcommand(COMMAND_CONFIG10));
|
@@ -149146,7 +149385,7 @@ async function main11(client2) {
|
|
149146
149385
|
}
|
149147
149386
|
}
|
149148
149387
|
var COMMAND_CONFIG10;
|
149149
|
-
var
|
149388
|
+
var init_project2 = __esm({
|
149150
149389
|
"src/commands/project/index.ts"() {
|
149151
149390
|
"use strict";
|
149152
149391
|
init_get_args();
|
@@ -149156,9 +149395,10 @@ var init_project = __esm({
|
|
149156
149395
|
init_help();
|
149157
149396
|
init_add6();
|
149158
149397
|
init_list4();
|
149159
|
-
|
149398
|
+
init_rm7();
|
149160
149399
|
init_command21();
|
149161
149400
|
init_get_flags_specification();
|
149401
|
+
init_project();
|
149162
149402
|
COMMAND_CONFIG10 = {
|
149163
149403
|
ls: ["ls", "list"],
|
149164
149404
|
add: ["add"],
|
@@ -149617,13 +149857,43 @@ var init_command22 = __esm({
|
|
149617
149857
|
}
|
149618
149858
|
});
|
149619
149859
|
|
149860
|
+
// src/util/telemetry/commands/promote/index.ts
|
149861
|
+
var PromoteTelemetryClient;
|
149862
|
+
var init_promote = __esm({
|
149863
|
+
"src/util/telemetry/commands/promote/index.ts"() {
|
149864
|
+
"use strict";
|
149865
|
+
init_telemetry();
|
149866
|
+
PromoteTelemetryClient = class extends TelemetryClient {
|
149867
|
+
trackCliSubcommandStatus() {
|
149868
|
+
this.trackCliSubcommand({
|
149869
|
+
subcommand: "status",
|
149870
|
+
value: "status"
|
149871
|
+
});
|
149872
|
+
}
|
149873
|
+
trackCliOptionTimeout(time) {
|
149874
|
+
if (time) {
|
149875
|
+
this.trackCliOption({
|
149876
|
+
option: "timeout",
|
149877
|
+
value: "[TIME]"
|
149878
|
+
});
|
149879
|
+
}
|
149880
|
+
}
|
149881
|
+
trackCliFlagYes(yes) {
|
149882
|
+
if (yes) {
|
149883
|
+
this.trackCliFlag("yes");
|
149884
|
+
}
|
149885
|
+
}
|
149886
|
+
};
|
149887
|
+
}
|
149888
|
+
});
|
149889
|
+
|
149620
149890
|
// src/commands/promote/index.ts
|
149621
149891
|
var promote_exports = {};
|
149622
149892
|
__export3(promote_exports, {
|
149623
149893
|
default: () => promote_default
|
149624
149894
|
});
|
149625
149895
|
var import_error_utils29, import_ms25, promote_default;
|
149626
|
-
var
|
149896
|
+
var init_promote2 = __esm({
|
149627
149897
|
"src/commands/promote/index.ts"() {
|
149628
149898
|
"use strict";
|
149629
149899
|
init_get_args();
|
@@ -149636,6 +149906,7 @@ var init_promote = __esm({
|
|
149636
149906
|
init_command22();
|
149637
149907
|
init_help();
|
149638
149908
|
init_get_flags_specification();
|
149909
|
+
init_promote();
|
149639
149910
|
promote_default = async (client2) => {
|
149640
149911
|
let parsedArgs = null;
|
149641
149912
|
const flagsSpecification = getFlagsSpecification(promoteCommand.options);
|
@@ -149646,19 +149917,28 @@ var init_promote = __esm({
|
|
149646
149917
|
return 1;
|
149647
149918
|
}
|
149648
149919
|
const { output: output2 } = client2;
|
149920
|
+
const telemetry2 = new PromoteTelemetryClient({
|
149921
|
+
opts: {
|
149922
|
+
output: client2.output,
|
149923
|
+
store: client2.telemetryEventStore
|
149924
|
+
}
|
149925
|
+
});
|
149649
149926
|
if (parsedArgs.flags["--help"]) {
|
149650
149927
|
output2.print(help2(promoteCommand, { columns: client2.stderr.columns }));
|
149651
149928
|
return 2;
|
149652
149929
|
}
|
149653
149930
|
const yes = parsedArgs.flags["--yes"] ?? false;
|
149931
|
+
telemetry2.trackCliFlagYes(parsedArgs.flags["--yes"]);
|
149654
149932
|
let timeout = parsedArgs.flags["--timeout"];
|
149655
149933
|
if (timeout && (0, import_ms25.default)(timeout) === void 0) {
|
149656
149934
|
client2.output.error(`Invalid timeout "${timeout}"`);
|
149657
149935
|
return 1;
|
149658
149936
|
}
|
149937
|
+
telemetry2.trackCliOptionTimeout(parsedArgs.flags["--timeout"]);
|
149659
149938
|
const actionOrDeployId = parsedArgs.args[1] || "status";
|
149660
149939
|
try {
|
149661
149940
|
if (actionOrDeployId === "status") {
|
149941
|
+
telemetry2.trackCliSubcommandStatus();
|
149662
149942
|
const project = await getProjectByCwdOrLink({
|
149663
149943
|
autoConfirm: Boolean(parsedArgs.flags["--yes"]),
|
149664
149944
|
client: client2,
|
@@ -150109,16 +150389,51 @@ var init_command24 = __esm({
|
|
150109
150389
|
}
|
150110
150390
|
});
|
150111
150391
|
|
150392
|
+
// src/util/telemetry/commands/remove/index.ts
|
150393
|
+
var RemoveTelemetryClient;
|
150394
|
+
var init_remove2 = __esm({
|
150395
|
+
"src/util/telemetry/commands/remove/index.ts"() {
|
150396
|
+
"use strict";
|
150397
|
+
init_telemetry();
|
150398
|
+
RemoveTelemetryClient = class extends TelemetryClient {
|
150399
|
+
trackCliFlagHard(flag) {
|
150400
|
+
if (flag) {
|
150401
|
+
this.trackCliFlag("hard");
|
150402
|
+
}
|
150403
|
+
}
|
150404
|
+
trackCliFlagSafe(flag) {
|
150405
|
+
if (flag) {
|
150406
|
+
this.trackCliFlag("safe");
|
150407
|
+
}
|
150408
|
+
}
|
150409
|
+
trackCliFlagYes(flag) {
|
150410
|
+
if (flag) {
|
150411
|
+
this.trackCliFlag("yes");
|
150412
|
+
}
|
150413
|
+
}
|
150414
|
+
};
|
150415
|
+
}
|
150416
|
+
});
|
150417
|
+
|
150112
150418
|
// src/commands/remove/index.ts
|
150113
150419
|
var remove_exports = {};
|
150114
150420
|
__export3(remove_exports, {
|
150115
150421
|
default: () => remove3
|
150116
150422
|
});
|
150117
150423
|
async function remove3(client2) {
|
150424
|
+
const telemetryClient = new RemoveTelemetryClient({
|
150425
|
+
opts: {
|
150426
|
+
output: client2.output,
|
150427
|
+
store: client2.telemetryEventStore
|
150428
|
+
}
|
150429
|
+
});
|
150118
150430
|
let parsedArgs = null;
|
150119
150431
|
const flagsSpecification = getFlagsSpecification(removeCommand.options);
|
150120
150432
|
try {
|
150121
150433
|
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification);
|
150434
|
+
telemetryClient.trackCliFlagSafe(parsedArgs.flags["--safe"]);
|
150435
|
+
telemetryClient.trackCliFlagHard(parsedArgs.flags["--hard"]);
|
150436
|
+
telemetryClient.trackCliFlagYes(parsedArgs.flags["--yes"]);
|
150122
150437
|
} catch (error4) {
|
150123
150438
|
handleError(error4);
|
150124
150439
|
return 1;
|
@@ -150319,7 +150634,7 @@ function deploymentsAndProjects(deployments, projects, conjunction = "and") {
|
|
150319
150634
|
return `${(0, import_pluralize11.default)("deployment", deployments.length, true)} ${conjunction} ${(0, import_pluralize11.default)("project", projects.length, true)}`;
|
150320
150635
|
}
|
150321
150636
|
var import_chalk106, import_ms26, import_pluralize11;
|
150322
|
-
var
|
150637
|
+
var init_remove3 = __esm({
|
150323
150638
|
"src/commands/remove/index.ts"() {
|
150324
150639
|
"use strict";
|
150325
150640
|
import_chalk106 = __toESM3(require_source());
|
@@ -150343,6 +150658,7 @@ var init_remove = __esm({
|
|
150343
150658
|
init_help();
|
150344
150659
|
init_command24();
|
150345
150660
|
init_get_flags_specification();
|
150661
|
+
init_remove2();
|
150346
150662
|
}
|
150347
150663
|
});
|
150348
150664
|
|
@@ -150636,7 +150952,7 @@ var init_rollback = __esm({
|
|
150636
150952
|
trackCliOptionTimeout(time) {
|
150637
150953
|
if (time) {
|
150638
150954
|
this.trackCliOption({
|
150639
|
-
|
150955
|
+
option: "timeout",
|
150640
150956
|
value: "[TIME]"
|
150641
150957
|
});
|
150642
150958
|
}
|
@@ -151791,12 +152107,41 @@ var init_command28 = __esm({
|
|
151791
152107
|
}
|
151792
152108
|
});
|
151793
152109
|
|
152110
|
+
// src/util/telemetry/commands/telemetry/index.ts
|
152111
|
+
var TelemetryTelemetryClient;
|
152112
|
+
var init_telemetry2 = __esm({
|
152113
|
+
"src/util/telemetry/commands/telemetry/index.ts"() {
|
152114
|
+
"use strict";
|
152115
|
+
init_telemetry();
|
152116
|
+
TelemetryTelemetryClient = class extends TelemetryClient {
|
152117
|
+
trackCliSubcommandStatus(actual) {
|
152118
|
+
this.trackCliSubcommand({
|
152119
|
+
subcommand: "status",
|
152120
|
+
value: actual
|
152121
|
+
});
|
152122
|
+
}
|
152123
|
+
trackCliSubcommandEnable(actual) {
|
152124
|
+
this.trackCliSubcommand({
|
152125
|
+
subcommand: "enable",
|
152126
|
+
value: actual
|
152127
|
+
});
|
152128
|
+
}
|
152129
|
+
};
|
152130
|
+
}
|
152131
|
+
});
|
152132
|
+
|
151794
152133
|
// src/commands/telemetry/index.ts
|
151795
152134
|
var telemetry_exports = {};
|
151796
152135
|
__export3(telemetry_exports, {
|
151797
152136
|
default: () => telemetry
|
151798
152137
|
});
|
151799
152138
|
async function telemetry(client2) {
|
152139
|
+
const telemetryClient = new TelemetryTelemetryClient({
|
152140
|
+
opts: {
|
152141
|
+
output: client2.output,
|
152142
|
+
store: client2.telemetryEventStore
|
152143
|
+
}
|
152144
|
+
});
|
151800
152145
|
let parsedArguments;
|
151801
152146
|
const flagsSpecification = getFlagsSpecification(telemetryCommand.options);
|
151802
152147
|
try {
|
@@ -151816,8 +152161,10 @@ async function telemetry(client2) {
|
|
151816
152161
|
);
|
151817
152162
|
switch (subcommand) {
|
151818
152163
|
case "status":
|
152164
|
+
telemetryClient.trackCliSubcommandStatus(subcommand);
|
151819
152165
|
return status(client2);
|
151820
152166
|
case "enable":
|
152167
|
+
telemetryClient.trackCliSubcommandEnable(subcommand);
|
151821
152168
|
return enable(client2);
|
151822
152169
|
case "disable":
|
151823
152170
|
return disable(client2);
|
@@ -151835,7 +152182,7 @@ async function telemetry(client2) {
|
|
151835
152182
|
}
|
151836
152183
|
}
|
151837
152184
|
var import_chalk115, COMMAND_CONFIG12;
|
151838
|
-
var
|
152185
|
+
var init_telemetry3 = __esm({
|
151839
152186
|
"src/commands/telemetry/index.ts"() {
|
151840
152187
|
"use strict";
|
151841
152188
|
init_error2();
|
@@ -151847,6 +152194,7 @@ var init_telemetry2 = __esm({
|
|
151847
152194
|
init_disable();
|
151848
152195
|
init_command28();
|
151849
152196
|
init_get_flags_specification();
|
152197
|
+
init_telemetry2();
|
151850
152198
|
import_chalk115 = __toESM3(require_source());
|
151851
152199
|
COMMAND_CONFIG12 = {
|
151852
152200
|
status: ["status"],
|
@@ -152561,15 +152909,37 @@ init_telemetry();
|
|
152561
152909
|
// src/util/telemetry/root.ts
|
152562
152910
|
init_telemetry();
|
152563
152911
|
var RootTelemetryClient = class extends TelemetryClient {
|
152564
|
-
|
152912
|
+
trackCliExtension(extension) {
|
152913
|
+
if (extension) {
|
152914
|
+
this.trackExtension(extension);
|
152915
|
+
}
|
152916
|
+
}
|
152917
|
+
trackCliDefaultDeploy(defaultDeploy) {
|
152918
|
+
if (defaultDeploy) {
|
152919
|
+
this.trackDefaultDeploy();
|
152920
|
+
}
|
152921
|
+
}
|
152922
|
+
trackCliCommandAlias(actual) {
|
152565
152923
|
this.trackCliCommand({
|
152566
|
-
command: "
|
152924
|
+
command: "alias",
|
152567
152925
|
value: actual
|
152568
152926
|
});
|
152569
152927
|
}
|
152570
|
-
|
152928
|
+
trackCliCommandBisect(actual) {
|
152571
152929
|
this.trackCliCommand({
|
152572
|
-
command: "
|
152930
|
+
command: "bisect",
|
152931
|
+
value: actual
|
152932
|
+
});
|
152933
|
+
}
|
152934
|
+
trackCliCommandBuild(actual) {
|
152935
|
+
this.trackCliCommand({
|
152936
|
+
command: "build",
|
152937
|
+
value: actual
|
152938
|
+
});
|
152939
|
+
}
|
152940
|
+
trackCliCommandCerts(actual) {
|
152941
|
+
this.trackCliCommand({
|
152942
|
+
command: "certs",
|
152573
152943
|
value: actual
|
152574
152944
|
});
|
152575
152945
|
}
|
@@ -152579,9 +152949,105 @@ var RootTelemetryClient = class extends TelemetryClient {
|
|
152579
152949
|
value: actual
|
152580
152950
|
});
|
152581
152951
|
}
|
152582
|
-
|
152952
|
+
trackCliCommandDev(actual) {
|
152583
152953
|
this.trackCliCommand({
|
152584
|
-
command: "
|
152954
|
+
command: "dev",
|
152955
|
+
value: actual
|
152956
|
+
});
|
152957
|
+
}
|
152958
|
+
trackCliCommandDomains(actual) {
|
152959
|
+
this.trackCliCommand({
|
152960
|
+
command: "domains",
|
152961
|
+
value: actual
|
152962
|
+
});
|
152963
|
+
}
|
152964
|
+
trackCliCommandDns(actual) {
|
152965
|
+
this.trackCliCommand({
|
152966
|
+
command: "dns",
|
152967
|
+
value: actual
|
152968
|
+
});
|
152969
|
+
}
|
152970
|
+
trackCliCommandEnv(actual) {
|
152971
|
+
this.trackCliCommand({
|
152972
|
+
command: "env",
|
152973
|
+
value: actual
|
152974
|
+
});
|
152975
|
+
}
|
152976
|
+
trackCliCommandGit(actual) {
|
152977
|
+
this.trackCliCommand({
|
152978
|
+
command: "git",
|
152979
|
+
value: actual
|
152980
|
+
});
|
152981
|
+
}
|
152982
|
+
trackCliCommandInit(actual) {
|
152983
|
+
this.trackCliCommand({
|
152984
|
+
command: "init",
|
152985
|
+
value: actual
|
152986
|
+
});
|
152987
|
+
}
|
152988
|
+
trackCliCommandInspect(actual) {
|
152989
|
+
this.trackCliCommand({
|
152990
|
+
command: "inspect",
|
152991
|
+
value: actual
|
152992
|
+
});
|
152993
|
+
}
|
152994
|
+
trackCliCommandInstall(actual) {
|
152995
|
+
this.trackCliCommand({
|
152996
|
+
command: "install",
|
152997
|
+
value: actual
|
152998
|
+
});
|
152999
|
+
}
|
153000
|
+
trackCliCommandIntegration(actual) {
|
153001
|
+
this.trackCliCommand({
|
153002
|
+
command: "integration",
|
153003
|
+
value: actual
|
153004
|
+
});
|
153005
|
+
}
|
153006
|
+
trackCliCommandLink(actual) {
|
153007
|
+
this.trackCliCommand({
|
153008
|
+
command: "link",
|
153009
|
+
value: actual
|
153010
|
+
});
|
153011
|
+
}
|
153012
|
+
trackCliCommandList(actual) {
|
153013
|
+
this.trackCliCommand({
|
153014
|
+
command: "list",
|
153015
|
+
value: actual
|
153016
|
+
});
|
153017
|
+
}
|
153018
|
+
trackCliCommandLogin(actual) {
|
153019
|
+
this.trackCliCommand({
|
153020
|
+
command: "login",
|
153021
|
+
value: actual
|
153022
|
+
});
|
153023
|
+
}
|
153024
|
+
trackCliCommandLogout(actual) {
|
153025
|
+
this.trackCliCommand({
|
153026
|
+
command: "logout",
|
153027
|
+
value: actual
|
153028
|
+
});
|
153029
|
+
}
|
153030
|
+
trackCliCommandLogs(actual) {
|
153031
|
+
this.trackCliCommand({
|
153032
|
+
command: "logs",
|
153033
|
+
value: actual
|
153034
|
+
});
|
153035
|
+
}
|
153036
|
+
trackCliCommandProject(actual) {
|
153037
|
+
this.trackCliCommand({
|
153038
|
+
command: "project",
|
153039
|
+
value: actual
|
153040
|
+
});
|
153041
|
+
}
|
153042
|
+
trackCliCommandPromote(actual) {
|
153043
|
+
this.trackCliCommand({
|
153044
|
+
command: "promote",
|
153045
|
+
value: actual
|
153046
|
+
});
|
153047
|
+
}
|
153048
|
+
trackCliCommandPull(actual) {
|
153049
|
+
this.trackCliCommand({
|
153050
|
+
command: "pull",
|
152585
153051
|
value: actual
|
152586
153052
|
});
|
152587
153053
|
}
|
@@ -152591,15 +153057,39 @@ var RootTelemetryClient = class extends TelemetryClient {
|
|
152591
153057
|
value: actual
|
152592
153058
|
});
|
152593
153059
|
}
|
153060
|
+
trackCliCommandRedeploy(actual) {
|
153061
|
+
this.trackCliCommand({
|
153062
|
+
command: "redeploy",
|
153063
|
+
value: actual
|
153064
|
+
});
|
153065
|
+
}
|
153066
|
+
trackCliCommandRemove(actual) {
|
153067
|
+
this.trackCliCommand({
|
153068
|
+
command: "remove",
|
153069
|
+
value: actual
|
153070
|
+
});
|
153071
|
+
}
|
153072
|
+
trackCliCommandTarget(actual) {
|
153073
|
+
this.trackCliCommand({
|
153074
|
+
command: "target",
|
153075
|
+
value: actual
|
153076
|
+
});
|
153077
|
+
}
|
152594
153078
|
trackCliCommandTeams(actual) {
|
152595
153079
|
this.trackCliCommand({
|
152596
153080
|
command: "teams",
|
152597
153081
|
value: actual
|
152598
153082
|
});
|
152599
153083
|
}
|
152600
|
-
|
153084
|
+
trackCliCommandTelemetry(actual) {
|
152601
153085
|
this.trackCliCommand({
|
152602
|
-
command: "
|
153086
|
+
command: "telemetry",
|
153087
|
+
value: actual
|
153088
|
+
});
|
153089
|
+
}
|
153090
|
+
trackCliCommandWhoami(actual) {
|
153091
|
+
this.trackCliCommand({
|
153092
|
+
command: "whoami",
|
152603
153093
|
value: actual
|
152604
153094
|
});
|
152605
153095
|
}
|
@@ -152618,6 +153108,69 @@ var RootTelemetryClient = class extends TelemetryClient {
|
|
152618
153108
|
trackVersion(version2) {
|
152619
153109
|
super.trackVersion(version2);
|
152620
153110
|
}
|
153111
|
+
trackCliOptionCwd(cwd) {
|
153112
|
+
if (cwd) {
|
153113
|
+
this.trackCliOption({ option: "cwd", value: this.redactedValue });
|
153114
|
+
}
|
153115
|
+
}
|
153116
|
+
trackCliOptionLocalConfig(localConfig) {
|
153117
|
+
if (localConfig) {
|
153118
|
+
this.trackCliOption({
|
153119
|
+
option: "local-config",
|
153120
|
+
value: this.redactedValue
|
153121
|
+
});
|
153122
|
+
}
|
153123
|
+
}
|
153124
|
+
trackCliOptionGlobalConfig(globalConfig) {
|
153125
|
+
if (globalConfig) {
|
153126
|
+
this.trackCliOption({
|
153127
|
+
option: "global-config",
|
153128
|
+
value: this.redactedValue
|
153129
|
+
});
|
153130
|
+
}
|
153131
|
+
}
|
153132
|
+
trackCliOptionScope(scope) {
|
153133
|
+
if (scope) {
|
153134
|
+
this.trackCliOption({
|
153135
|
+
option: "scope",
|
153136
|
+
value: this.redactedValue
|
153137
|
+
});
|
153138
|
+
}
|
153139
|
+
}
|
153140
|
+
trackCliOptionToken(token) {
|
153141
|
+
if (token) {
|
153142
|
+
this.trackCliOption({
|
153143
|
+
option: "token",
|
153144
|
+
value: this.redactedValue
|
153145
|
+
});
|
153146
|
+
}
|
153147
|
+
}
|
153148
|
+
trackCliOptionTeam(team) {
|
153149
|
+
if (team) {
|
153150
|
+
this.trackCliOption({
|
153151
|
+
option: "team",
|
153152
|
+
value: this.redactedValue
|
153153
|
+
});
|
153154
|
+
}
|
153155
|
+
}
|
153156
|
+
trackCliOptionApi(api) {
|
153157
|
+
if (api) {
|
153158
|
+
this.trackCliOption({
|
153159
|
+
option: "api",
|
153160
|
+
value: this.redactedValue
|
153161
|
+
});
|
153162
|
+
}
|
153163
|
+
}
|
153164
|
+
trackCliFlagDebug(debug3) {
|
153165
|
+
if (debug3) {
|
153166
|
+
this.trackCliFlag("debug");
|
153167
|
+
}
|
153168
|
+
}
|
153169
|
+
trackCliFlagNoColor(noColor) {
|
153170
|
+
if (noColor) {
|
153171
|
+
this.trackCliFlag("no-color");
|
153172
|
+
}
|
153173
|
+
}
|
152621
153174
|
};
|
152622
153175
|
function getContinuousIntegrationVendorName() {
|
152623
153176
|
for (const env of VENDORS) {
|
@@ -153101,6 +153654,21 @@ try {
|
|
153101
153654
|
process.exit(1);
|
153102
153655
|
}
|
153103
153656
|
}
|
153657
|
+
{
|
153658
|
+
const SILENCED_ERRORS = [
|
153659
|
+
"DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead."
|
153660
|
+
];
|
153661
|
+
const originalError = console.error;
|
153662
|
+
console.error = (msg) => {
|
153663
|
+
const isSilencedError = SILENCED_ERRORS.some(
|
153664
|
+
(error3) => typeof msg === "string" && msg.includes(error3)
|
153665
|
+
);
|
153666
|
+
if (isSilencedError) {
|
153667
|
+
return;
|
153668
|
+
}
|
153669
|
+
originalError(msg);
|
153670
|
+
};
|
153671
|
+
}
|
153104
153672
|
var VERCEL_DIR3 = global_path_default();
|
153105
153673
|
var VERCEL_CONFIG_PATH = getConfigFilePath();
|
153106
153674
|
var VERCEL_AUTH_CONFIG_PATH = getAuthConfigFilePath();
|
@@ -153267,6 +153835,15 @@ var main14 = async () => {
|
|
153267
153835
|
telemetry2.trackArch();
|
153268
153836
|
telemetry2.trackCIVendorName();
|
153269
153837
|
telemetry2.trackVersion(pkg_default.version);
|
153838
|
+
telemetry2.trackCliOptionCwd(parsedArgs.flags["--cwd"]);
|
153839
|
+
telemetry2.trackCliOptionLocalConfig(parsedArgs.flags["--local-config"]);
|
153840
|
+
telemetry2.trackCliOptionGlobalConfig(parsedArgs.flags["--global-config"]);
|
153841
|
+
telemetry2.trackCliFlagDebug(parsedArgs.flags["--debug"]);
|
153842
|
+
telemetry2.trackCliFlagNoColor(parsedArgs.flags["--no-color"]);
|
153843
|
+
telemetry2.trackCliOptionScope(parsedArgs.flags["--scope"]);
|
153844
|
+
telemetry2.trackCliOptionToken(parsedArgs.flags["--token"]);
|
153845
|
+
telemetry2.trackCliOptionTeam(parsedArgs.flags["--team"]);
|
153846
|
+
telemetry2.trackCliOptionApi(parsedArgs.flags["--api"]);
|
153270
153847
|
if (typeof parsedArgs.flags["--api"] === "string") {
|
153271
153848
|
apiUrl = parsedArgs.flags["--api"];
|
153272
153849
|
} else if (config2 && config2.api) {
|
@@ -153296,6 +153873,7 @@ var main14 = async () => {
|
|
153296
153873
|
client.cwd = parsedArgs.flags["--cwd"];
|
153297
153874
|
}
|
153298
153875
|
const { cwd } = client;
|
153876
|
+
let defaultDeploy = false;
|
153299
153877
|
let subcommand = void 0;
|
153300
153878
|
let userSuppliedSubCommand = "";
|
153301
153879
|
if (targetOrSubcommand) {
|
@@ -153317,6 +153895,7 @@ var main14 = async () => {
|
|
153317
153895
|
} else {
|
153318
153896
|
debug2("user supplied no target, defaulting to deploy");
|
153319
153897
|
subcommand = "deploy";
|
153898
|
+
defaultDeploy = true;
|
153320
153899
|
}
|
153321
153900
|
if (subcommand === "help") {
|
153322
153901
|
subcommand = subSubCommand || "deploy";
|
@@ -153442,6 +154021,7 @@ var main14 = async () => {
|
|
153442
154021
|
client.config.currentTeam = related.id;
|
153443
154022
|
}
|
153444
154023
|
}
|
154024
|
+
client.telemetryEventStore.updateTeamId(client.config.currentTeam);
|
153445
154025
|
let exitCode2;
|
153446
154026
|
try {
|
153447
154027
|
if (!targetCommand2) {
|
@@ -153453,6 +154033,7 @@ var main14 = async () => {
|
|
153453
154033
|
parsedArgs.args.slice(3),
|
153454
154034
|
cwd
|
153455
154035
|
);
|
154036
|
+
telemetry2.trackCliExtension(targetCommand2);
|
153456
154037
|
} catch (err) {
|
153457
154038
|
if ((0, import_error_utils34.isErrnoException)(err) && err.code === "ENOENT") {
|
153458
154039
|
targetCommand2 = subcommand = "deploy";
|
@@ -153469,22 +154050,28 @@ var main14 = async () => {
|
|
153469
154050
|
func = (init_alias2(), __toCommonJS3(alias_exports)).default;
|
153470
154051
|
break;
|
153471
154052
|
case "bisect":
|
154053
|
+
telemetry2.trackCliCommandBisect(userSuppliedSubCommand);
|
153472
154054
|
func = (init_bisect(), __toCommonJS3(bisect_exports)).default;
|
153473
154055
|
break;
|
153474
154056
|
case "build":
|
153475
|
-
|
154057
|
+
telemetry2.trackCliCommandBuild(userSuppliedSubCommand);
|
154058
|
+
func = (init_build2(), __toCommonJS3(build_exports)).default;
|
153476
154059
|
break;
|
153477
154060
|
case "certs":
|
154061
|
+
telemetry2.trackCliCommandCerts(userSuppliedSubCommand);
|
153478
154062
|
func = (init_certs(), __toCommonJS3(certs_exports)).default;
|
153479
154063
|
break;
|
153480
154064
|
case "deploy":
|
153481
154065
|
telemetry2.trackCliCommandDeploy(userSuppliedSubCommand);
|
154066
|
+
telemetry2.trackCliDefaultDeploy(defaultDeploy);
|
153482
154067
|
func = (init_deploy2(), __toCommonJS3(deploy_exports)).default;
|
153483
154068
|
break;
|
153484
154069
|
case "dev":
|
154070
|
+
telemetry2.trackCliCommandDev(userSuppliedSubCommand);
|
153485
154071
|
func = (init_dev2(), __toCommonJS3(dev_exports)).default;
|
153486
154072
|
break;
|
153487
154073
|
case "dns":
|
154074
|
+
telemetry2.trackCliCommandDns(userSuppliedSubCommand);
|
153488
154075
|
func = (init_dns(), __toCommonJS3(dns_exports)).default;
|
153489
154076
|
break;
|
153490
154077
|
case "domains":
|
@@ -153492,33 +154079,43 @@ var main14 = async () => {
|
|
153492
154079
|
func = (init_domains2(), __toCommonJS3(domains_exports)).default;
|
153493
154080
|
break;
|
153494
154081
|
case "env":
|
154082
|
+
telemetry2.trackCliCommandEnv(userSuppliedSubCommand);
|
153495
154083
|
func = (init_env(), __toCommonJS3(env_exports)).default;
|
153496
154084
|
break;
|
153497
154085
|
case "git":
|
154086
|
+
telemetry2.trackCliCommandGit(userSuppliedSubCommand);
|
153498
154087
|
func = (init_git(), __toCommonJS3(git_exports)).default;
|
153499
154088
|
break;
|
153500
154089
|
case "init":
|
154090
|
+
telemetry2.trackCliCommandInit(userSuppliedSubCommand);
|
153501
154091
|
func = (init_init2(), __toCommonJS3(init_exports)).default;
|
153502
154092
|
break;
|
153503
154093
|
case "inspect":
|
154094
|
+
telemetry2.trackCliCommandInspect(userSuppliedSubCommand);
|
153504
154095
|
func = (init_inspect2(), __toCommonJS3(inspect_exports)).default;
|
153505
154096
|
break;
|
153506
154097
|
case "install":
|
154098
|
+
telemetry2.trackCliCommandInstall(userSuppliedSubCommand);
|
153507
154099
|
func = (init_install(), __toCommonJS3(install_exports)).default;
|
153508
154100
|
break;
|
153509
154101
|
case "integration":
|
154102
|
+
telemetry2.trackCliCommandIntegration(userSuppliedSubCommand);
|
153510
154103
|
func = (init_integration(), __toCommonJS3(integration_exports)).default;
|
153511
154104
|
break;
|
153512
154105
|
case "link":
|
154106
|
+
telemetry2.trackCliCommandLink(userSuppliedSubCommand);
|
153513
154107
|
func = (init_link3(), __toCommonJS3(link_exports)).default;
|
153514
154108
|
break;
|
153515
154109
|
case "list":
|
154110
|
+
telemetry2.trackCliCommandList(userSuppliedSubCommand);
|
153516
154111
|
func = (init_list3(), __toCommonJS3(list_exports)).default;
|
153517
154112
|
break;
|
153518
154113
|
case "logs":
|
154114
|
+
telemetry2.trackCliCommandLogs(userSuppliedSubCommand);
|
153519
154115
|
func = (init_logs2(), __toCommonJS3(logs_exports)).default;
|
153520
154116
|
break;
|
153521
154117
|
case "login":
|
154118
|
+
telemetry2.trackCliCommandLogin(userSuppliedSubCommand);
|
153522
154119
|
func = (init_login2(), __toCommonJS3(login_exports)).default;
|
153523
154120
|
break;
|
153524
154121
|
case "logout":
|
@@ -153526,33 +154123,40 @@ var main14 = async () => {
|
|
153526
154123
|
func = (init_logout(), __toCommonJS3(logout_exports)).default;
|
153527
154124
|
break;
|
153528
154125
|
case "project":
|
153529
|
-
|
154126
|
+
telemetry2.trackCliCommandProject(userSuppliedSubCommand);
|
154127
|
+
func = (init_project2(), __toCommonJS3(project_exports)).default;
|
153530
154128
|
break;
|
153531
154129
|
case "promote":
|
153532
|
-
|
154130
|
+
telemetry2.trackCliCommandPromote(userSuppliedSubCommand);
|
154131
|
+
func = (init_promote2(), __toCommonJS3(promote_exports)).default;
|
153533
154132
|
break;
|
153534
154133
|
case "pull":
|
154134
|
+
telemetry2.trackCliCommandPull(userSuppliedSubCommand);
|
153535
154135
|
func = (init_pull2(), __toCommonJS3(pull_exports)).default;
|
153536
154136
|
break;
|
153537
154137
|
case "redeploy":
|
154138
|
+
telemetry2.trackCliCommandRedeploy(userSuppliedSubCommand);
|
153538
154139
|
func = (init_redeploy(), __toCommonJS3(redeploy_exports)).default;
|
153539
154140
|
break;
|
153540
154141
|
case "remove":
|
153541
|
-
|
154142
|
+
telemetry2.trackCliCommandRemove(userSuppliedSubCommand);
|
154143
|
+
func = (init_remove3(), __toCommonJS3(remove_exports)).default;
|
153542
154144
|
break;
|
153543
154145
|
case "rollback":
|
153544
154146
|
telemetry2.trackCliCommandRollback(userSuppliedSubCommand);
|
153545
154147
|
func = (init_rollback2(), __toCommonJS3(rollback_exports)).default;
|
153546
154148
|
break;
|
153547
154149
|
case "target":
|
154150
|
+
telemetry2.trackCliCommandTarget(userSuppliedSubCommand);
|
153548
154151
|
func = (init_target(), __toCommonJS3(target_exports)).default;
|
153549
154152
|
break;
|
153550
154153
|
case "teams":
|
154154
|
+
telemetry2.trackCliCommandTeams(userSuppliedSubCommand);
|
153551
154155
|
func = (init_teams2(), __toCommonJS3(teams_exports)).default;
|
153552
154156
|
break;
|
153553
154157
|
case "telemetry":
|
153554
|
-
telemetry2.
|
153555
|
-
func = (
|
154158
|
+
telemetry2.trackCliCommandTelemetry(userSuppliedSubCommand);
|
154159
|
+
func = (init_telemetry3(), __toCommonJS3(telemetry_exports)).default;
|
153556
154160
|
break;
|
153557
154161
|
case "whoami":
|
153558
154162
|
telemetry2.trackCliCommandWhoami(userSuppliedSubCommand);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "37.
|
3
|
+
"version": "37.12.0",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"@vercel/fun": "1.1.0",
|
26
26
|
"@vercel/go": "3.2.0",
|
27
27
|
"@vercel/hydrogen": "1.0.9",
|
28
|
-
"@vercel/next": "4.3.
|
28
|
+
"@vercel/next": "4.3.17",
|
29
29
|
"@vercel/node": "3.2.23",
|
30
30
|
"@vercel/python": "4.3.1",
|
31
31
|
"@vercel/redwood": "2.1.8",
|