vercel 41.7.7 → 42.0.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.
Files changed (2) hide show
  1. package/dist/index.js +11 -15
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -93382,15 +93382,8 @@ var init_telemetry = __esm({
93382
93382
  value: subcommand ? `${command}:${subcommand}` : command
93383
93383
  });
93384
93384
  }
93385
- trackCliFlagFuture(command, subcommands) {
93386
- let subcommand;
93387
- if (subcommands) {
93388
- subcommand = Array.isArray(subcommands) ? subcommands[0] : subcommands;
93389
- }
93390
- this.track({
93391
- key: "flag:future",
93392
- value: subcommand ? `${command}:${subcommand}` : command
93393
- });
93385
+ trackCliFlagFuture(command) {
93386
+ this.track({ key: "flag:future", value: command });
93394
93387
  }
93395
93388
  };
93396
93389
  TelemetryEventStore = class {
@@ -139612,7 +139605,7 @@ async function pullEnvRecords(client2, projectId, source, { target, gitBranch }
139612
139605
  `Fetching Environment Variables of project ${projectId} and target ${target}`
139613
139606
  );
139614
139607
  const query = new import_url12.URLSearchParams();
139615
- let url3 = `/v2/env/pull/${projectId}`;
139608
+ let url3 = `/v3/env/pull/${projectId}`;
139616
139609
  if (target) {
139617
139610
  url3 += `/${encodeURIComponent(target)}`;
139618
139611
  if (gitBranch) {
@@ -140841,10 +140834,13 @@ async function main2(client2) {
140841
140834
  }
140842
140835
  process.env.VERCEL = "1";
140843
140836
  process.env.NOW_BUILDER = "1";
140844
- await rootSpan.child("vc.doBuild").trace(
140845
- (span) => doBuild(client2, project, buildsJson, cwd, outputDir, span)
140846
- );
140847
- await rootSpan.stop();
140837
+ try {
140838
+ await rootSpan.child("vc.doBuild").trace(
140839
+ (span) => doBuild(client2, project, buildsJson, cwd, outputDir, span)
140840
+ );
140841
+ } finally {
140842
+ await rootSpan.stop();
140843
+ }
140848
140844
  return 0;
140849
140845
  } catch (err) {
140850
140846
  output_manager_default.prettyError(err);
@@ -166429,7 +166425,7 @@ async function dev(client2, opts, args2, telemetry2) {
166429
166425
  envValues,
166430
166426
  "vercel-cli:dev"
166431
166427
  )) {
166432
- output_manager_default.log(`Refreshing ${import_chalk59.default.green(VERCEL_OIDC_TOKEN)}`);
166428
+ output_manager_default.debug(`Refreshing ${import_chalk59.default.green(VERCEL_OIDC_TOKEN)}`);
166433
166429
  envValues[VERCEL_OIDC_TOKEN] = token;
166434
166430
  await devServer.runDevCommand(true);
166435
166431
  telemetry2.trackOidcTokenRefresh(++refreshCount);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "41.7.7",
3
+ "version": "42.0.0",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -159,8 +159,8 @@
159
159
  "write-json-file": "2.2.0",
160
160
  "xdg-app-paths": "5.1.0",
161
161
  "yauzl-promise": "2.1.3",
162
- "@vercel-internals/constants": "1.0.4",
163
162
  "@vercel-internals/get-package-json": "1.0.0",
163
+ "@vercel-internals/constants": "1.0.4",
164
164
  "@vercel-internals/types": "3.0.6"
165
165
  },
166
166
  "scripts": {