vercel-cli 48.2.6__py3-none-any.whl → 48.2.9__py3-none-any.whl

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.

Potentially problematic release.


This version of vercel-cli might be problematic. Click here for more details.

@@ -2383,7 +2383,7 @@ var require_ensure = __commonJS2({
2383
2383
  // ../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
2384
2384
  var require_utils2 = __commonJS2({
2385
2385
  "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports2, module2) {
2386
- function stringify3(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
2386
+ function stringify2(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
2387
2387
  const EOF = finalEOL ? EOL : "";
2388
2388
  const str = JSON.stringify(obj, replacer, spaces);
2389
2389
  return str.replace(/\n/g, EOL) + EOF;
@@ -2393,7 +2393,7 @@ var require_utils2 = __commonJS2({
2393
2393
  content = content.toString("utf8");
2394
2394
  return content.replace(/^\uFEFF/, "");
2395
2395
  }
2396
- module2.exports = { stringify: stringify3, stripBom };
2396
+ module2.exports = { stringify: stringify2, stripBom };
2397
2397
  }
2398
2398
  });
2399
2399
 
@@ -2407,7 +2407,7 @@ var require_jsonfile = __commonJS2({
2407
2407
  _fs = require("fs");
2408
2408
  }
2409
2409
  var universalify = require_universalify();
2410
- var { stringify: stringify3, stripBom } = require_utils2();
2410
+ var { stringify: stringify2, stripBom } = require_utils2();
2411
2411
  async function _readFile(file, options = {}) {
2412
2412
  if (typeof options === "string") {
2413
2413
  options = { encoding: options };
@@ -2451,13 +2451,13 @@ var require_jsonfile = __commonJS2({
2451
2451
  }
2452
2452
  async function _writeFile(file, obj, options = {}) {
2453
2453
  const fs15 = options.fs || _fs;
2454
- const str = stringify3(obj, options);
2454
+ const str = stringify2(obj, options);
2455
2455
  await universalify.fromCallback(fs15.writeFile)(file, str, options);
2456
2456
  }
2457
2457
  var writeFile4 = universalify.fromPromise(_writeFile);
2458
2458
  function writeFileSync(file, obj, options = {}) {
2459
2459
  const fs15 = options.fs || _fs;
2460
- const str = stringify3(obj, options);
2460
+ const str = stringify2(obj, options);
2461
2461
  return fs15.writeFileSync(file, str, options);
2462
2462
  }
2463
2463
  var jsonfile = {
@@ -2531,10 +2531,10 @@ var require_output = __commonJS2({
2531
2531
  var require_output_json = __commonJS2({
2532
2532
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/json/output-json.js"(exports2, module2) {
2533
2533
  "use strict";
2534
- var { stringify: stringify3 } = require_utils2();
2534
+ var { stringify: stringify2 } = require_utils2();
2535
2535
  var { outputFile: outputFile2 } = require_output();
2536
2536
  async function outputJson2(file, data, options = {}) {
2537
- const str = stringify3(data, options);
2537
+ const str = stringify2(data, options);
2538
2538
  await outputFile2(file, str, options);
2539
2539
  }
2540
2540
  module2.exports = outputJson2;
@@ -2545,10 +2545,10 @@ var require_output_json = __commonJS2({
2545
2545
  var require_output_json_sync = __commonJS2({
2546
2546
  "../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports2, module2) {
2547
2547
  "use strict";
2548
- var { stringify: stringify3 } = require_utils2();
2548
+ var { stringify: stringify2 } = require_utils2();
2549
2549
  var { outputFileSync } = require_output();
2550
2550
  function outputJsonSync(file, data, options) {
2551
- const str = stringify3(data, options);
2551
+ const str = stringify2(data, options);
2552
2552
  outputFileSync(file, str, options);
2553
2553
  }
2554
2554
  module2.exports = outputJsonSync;
@@ -35095,7 +35095,7 @@ var init_code = __esm({
35095
35095
  function isAPIError(v) {
35096
35096
  return (0, import_error_utils2.isError)(v) && "status" in v;
35097
35097
  }
35098
- var import_bytes, import_build_utils, import_chalk8, import_error_utils2, APIError, TeamDeleted, InvalidToken, MissingUser, DomainAlreadyExists, DomainPermissionDenied, DomainExternal, SourceNotFound, InvalidTransferAuthCode, DomainRegistrationFailed, DomainNotFound, DomainNotVerified, DomainVerificationFailed, InvalidDomain, NotDomainOwner, InvalidDeploymentId, UnsupportedTLD, DomainNotAvailable, DomainServiceNotAvailable, DomainNotTransferable, UnexpectedDomainPurchaseError, DomainPaymentError, DomainPurchasePending, UserAborted, CertNotFound, CertsPermissionDenied, CertOrderNotFound, TooManyRequests, CertError, CertConfigurationError, DeploymentNotFound, DeploymentNotReady, DeploymentFailedAliasImpossible, DeploymentPermissionDenied, InvalidAlias, AliasInUse, CertMissing, CantParseJSONFile, ConflictingConfigFiles, CantFindConfig, WorkingDirectoryDoesNotExist, NoAliasInConfig, InvalidAliasInConfig, DNSPermissionDenied, DNSInvalidPort, DNSInvalidType, DNSConflictingRecord, DomainRemovalConflict, DomainMoveConflict, InvalidMoveDestination, LambdaSizeExceededError, MissingDotenvVarsError, DeploymentsRateLimited, BuildsRateLimited, ProjectNotFound, AliasDomainConfigured, MissingBuildScript, ConflictingFilePath, ConflictingPathSegment, BuildError, SchemaValidationFailed, InvalidLocalConfig;
35098
+ var import_bytes, import_build_utils, import_chalk8, import_error_utils2, APIError, TeamDeleted, InvalidToken, MissingUser, DomainAlreadyExists, DomainPermissionDenied, DomainExternal, SourceNotFound, DomainNotFound, DomainNotVerified, DomainVerificationFailed, InvalidDomain, NotDomainOwner, InvalidDeploymentId, UnsupportedTLD, TLDNotSupportedViaCLI, DomainNotAvailable, UnexpectedDomainPurchaseError, UnexpectedDomainTransferError, DomainPaymentError, DomainPurchasePending, UserAborted, CertNotFound, CertsPermissionDenied, CertOrderNotFound, TooManyRequests, CertError, CertConfigurationError, DeploymentNotFound, DeploymentNotReady, DeploymentFailedAliasImpossible, DeploymentPermissionDenied, InvalidAlias, AliasInUse, CertMissing, CantParseJSONFile, ConflictingConfigFiles, CantFindConfig, WorkingDirectoryDoesNotExist, NoAliasInConfig, InvalidAliasInConfig, DNSPermissionDenied, DNSInvalidPort, DNSInvalidType, DNSConflictingRecord, DomainRemovalConflict, DomainMoveConflict, InvalidMoveDestination, LambdaSizeExceededError, MissingDotenvVarsError, DeploymentsRateLimited, BuildsRateLimited, ProjectNotFound, AliasDomainConfigured, MissingBuildScript, ConflictingFilePath, ConflictingPathSegment, BuildError, SchemaValidationFailed, InvalidLocalConfig;
35099
35099
  var init_errors_ts = __esm({
35100
35100
  "src/util/errors-ts.ts"() {
35101
35101
  "use strict";
@@ -35195,24 +35195,6 @@ var init_errors_ts = __esm({
35195
35195
  });
35196
35196
  }
35197
35197
  };
35198
- InvalidTransferAuthCode = class extends NowError {
35199
- constructor(domain, authCode) {
35200
- super({
35201
- code: "INVALID_TRANSFER_AUTH_CODE",
35202
- meta: { domain, authCode },
35203
- message: `The provided auth code does not match with the one expected by the current registar`
35204
- });
35205
- }
35206
- };
35207
- DomainRegistrationFailed = class extends NowError {
35208
- constructor(domain, message2) {
35209
- super({
35210
- code: "DOMAIN_REGISTRATION_FAILED",
35211
- meta: { domain },
35212
- message: message2
35213
- });
35214
- }
35215
- };
35216
35198
  DomainNotFound = class extends NowError {
35217
35199
  constructor(domain, contextName) {
35218
35200
  super({
@@ -35281,39 +35263,39 @@ var init_errors_ts = __esm({
35281
35263
  });
35282
35264
  }
35283
35265
  };
35284
- DomainNotAvailable = class extends NowError {
35266
+ TLDNotSupportedViaCLI = class extends NowError {
35285
35267
  constructor(domain) {
35286
35268
  super({
35287
- code: "DOMAIN_NOT_AVAILABLE",
35269
+ code: "UNSUPPORTED_TLD_VIA_CLI",
35288
35270
  meta: { domain },
35289
- message: `The domain ${domain} is not available to be purchased.`
35271
+ message: `Purchased for the TLD for domain name ${domain} are not supported via the CLI. Use the REST API or the dashboard to purchase.`
35290
35272
  });
35291
35273
  }
35292
35274
  };
35293
- DomainServiceNotAvailable = class extends NowError {
35275
+ DomainNotAvailable = class extends NowError {
35294
35276
  constructor(domain) {
35295
35277
  super({
35296
- code: "DOMAIN_SERVICE_NOT_AVAILABLE",
35278
+ code: "DOMAIN_NOT_AVAILABLE",
35297
35279
  meta: { domain },
35298
- message: `The domain purchase is unavailable, try again later.`
35280
+ message: `The domain ${domain} is not available to be purchased.`
35299
35281
  });
35300
35282
  }
35301
35283
  };
35302
- DomainNotTransferable = class extends NowError {
35284
+ UnexpectedDomainPurchaseError = class extends NowError {
35303
35285
  constructor(domain) {
35304
35286
  super({
35305
- code: "DOMAIN_NOT_TRANSFERABLE",
35287
+ code: "UNEXPECTED_DOMAIN_PURCHASE_ERROR",
35306
35288
  meta: { domain },
35307
- message: `The domain ${domain} is not available to be transferred.`
35289
+ message: `An unexpected error happened while purchasing.`
35308
35290
  });
35309
35291
  }
35310
35292
  };
35311
- UnexpectedDomainPurchaseError = class extends NowError {
35293
+ UnexpectedDomainTransferError = class extends NowError {
35312
35294
  constructor(domain) {
35313
35295
  super({
35314
- code: "UNEXPECTED_DOMAIN_PURCHASE_ERROR",
35296
+ code: "UNEXPECTED_DOMAIN_TRANSFER_ERROR",
35315
35297
  meta: { domain },
35316
- message: `An unexpected error happened while purchasing.`
35298
+ message: `An unexpected error happened while transferring.`
35317
35299
  });
35318
35300
  }
35319
35301
  };
@@ -48405,7 +48387,7 @@ var require_jsonfile3 = __commonJS2({
48405
48387
  }
48406
48388
  }
48407
48389
  }
48408
- function stringify3(obj, options) {
48390
+ function stringify2(obj, options) {
48409
48391
  var spaces;
48410
48392
  var EOL = "\n";
48411
48393
  if (typeof options === "object" && options !== null) {
@@ -48428,7 +48410,7 @@ var require_jsonfile3 = __commonJS2({
48428
48410
  var fs15 = options.fs || _fs;
48429
48411
  var str = "";
48430
48412
  try {
48431
- str = stringify3(obj, options);
48413
+ str = stringify2(obj, options);
48432
48414
  } catch (err) {
48433
48415
  if (callback)
48434
48416
  callback(err, null);
@@ -48439,7 +48421,7 @@ var require_jsonfile3 = __commonJS2({
48439
48421
  function writeFileSync(file, obj, options) {
48440
48422
  options = options || {};
48441
48423
  var fs15 = options.fs || _fs;
48442
- var str = stringify3(obj, options);
48424
+ var str = stringify2(obj, options);
48443
48425
  return fs15.writeFileSync(file, str, options);
48444
48426
  }
48445
48427
  function stripBom(content) {
@@ -52574,7 +52556,7 @@ var require_stringify = __commonJS2({
52574
52556
  "use strict";
52575
52557
  var utils = require_utils9();
52576
52558
  module2.exports = (ast, options = {}) => {
52577
- const stringify3 = (node, parent = {}) => {
52559
+ const stringify2 = (node, parent = {}) => {
52578
52560
  const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
52579
52561
  const invalidNode = node.invalid === true && options.escapeInvalid === true;
52580
52562
  let output2 = "";
@@ -52589,12 +52571,12 @@ var require_stringify = __commonJS2({
52589
52571
  }
52590
52572
  if (node.nodes) {
52591
52573
  for (const child of node.nodes) {
52592
- output2 += stringify3(child);
52574
+ output2 += stringify2(child);
52593
52575
  }
52594
52576
  }
52595
52577
  return output2;
52596
52578
  };
52597
- return stringify3(ast);
52579
+ return stringify2(ast);
52598
52580
  };
52599
52581
  }
52600
52582
  });
@@ -52852,7 +52834,7 @@ var require_fill_range = __commonJS2({
52852
52834
  ;
52853
52835
  return index > 0;
52854
52836
  };
52855
- var stringify3 = (start, end, options) => {
52837
+ var stringify2 = (start, end, options) => {
52856
52838
  if (typeof start === "string" || typeof end === "string") {
52857
52839
  return true;
52858
52840
  }
@@ -52954,7 +52936,7 @@ var require_fill_range = __commonJS2({
52954
52936
  step = Math.max(Math.abs(step), 1);
52955
52937
  let padded = zeros(startString) || zeros(endString) || zeros(stepString);
52956
52938
  let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
52957
- let toNumber = padded === false && stringify3(start, end, options) === false;
52939
+ let toNumber = padded === false && stringify2(start, end, options) === false;
52958
52940
  let format7 = options.transform || transform(toNumber);
52959
52941
  if (options.toRegex && step === 1) {
52960
52942
  return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
@@ -53090,7 +53072,7 @@ var require_expand = __commonJS2({
53090
53072
  "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports2, module2) {
53091
53073
  "use strict";
53092
53074
  var fill = require_fill_range();
53093
- var stringify3 = require_stringify();
53075
+ var stringify2 = require_stringify();
53094
53076
  var utils = require_utils9();
53095
53077
  var append = (queue = "", stash = "", enclose = false) => {
53096
53078
  const result = [];
@@ -53127,7 +53109,7 @@ var require_expand = __commonJS2({
53127
53109
  q = p.queue;
53128
53110
  }
53129
53111
  if (node.invalid || node.dollar) {
53130
- q.push(append(q.pop(), stringify3(node, options)));
53112
+ q.push(append(q.pop(), stringify2(node, options)));
53131
53113
  return;
53132
53114
  }
53133
53115
  if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
@@ -53141,7 +53123,7 @@ var require_expand = __commonJS2({
53141
53123
  }
53142
53124
  let range = fill(...args2, options);
53143
53125
  if (range.length === 0) {
53144
- range = stringify3(node, options);
53126
+ range = stringify2(node, options);
53145
53127
  }
53146
53128
  q.push(append(q.pop(), range));
53147
53129
  node.nodes = [];
@@ -53287,7 +53269,7 @@ var require_constants3 = __commonJS2({
53287
53269
  var require_parse2 = __commonJS2({
53288
53270
  "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports2, module2) {
53289
53271
  "use strict";
53290
- var stringify3 = require_stringify();
53272
+ var stringify2 = require_stringify();
53291
53273
  var {
53292
53274
  MAX_LENGTH,
53293
53275
  CHAR_BACKSLASH,
@@ -53460,7 +53442,7 @@ var require_parse2 = __commonJS2({
53460
53442
  if (block.ranges > 0) {
53461
53443
  block.ranges = 0;
53462
53444
  const open7 = block.nodes.shift();
53463
- block.nodes = [open7, { type: "text", value: stringify3(block) }];
53445
+ block.nodes = [open7, { type: "text", value: stringify2(block) }];
53464
53446
  }
53465
53447
  push({ type: "comma", value });
53466
53448
  block.commas++;
@@ -53529,7 +53511,7 @@ var require_parse2 = __commonJS2({
53529
53511
  var require_braces = __commonJS2({
53530
53512
  "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports2, module2) {
53531
53513
  "use strict";
53532
- var stringify3 = require_stringify();
53514
+ var stringify2 = require_stringify();
53533
53515
  var compile = require_compile();
53534
53516
  var expand = require_expand();
53535
53517
  var parse11 = require_parse2();
@@ -53555,9 +53537,9 @@ var require_braces = __commonJS2({
53555
53537
  braces.parse = (input, options = {}) => parse11(input, options);
53556
53538
  braces.stringify = (input, options = {}) => {
53557
53539
  if (typeof input === "string") {
53558
- return stringify3(braces.parse(input, options), options);
53540
+ return stringify2(braces.parse(input, options), options);
53559
53541
  }
53560
- return stringify3(input, options);
53542
+ return stringify2(input, options);
53561
53543
  };
53562
53544
  braces.compile = (input, options = {}) => {
53563
53545
  if (typeof input === "string") {
@@ -98642,13 +98624,12 @@ var require_pluralize = __commonJS2({
98642
98624
  });
98643
98625
 
98644
98626
  // src/util/domains/get-domain-price.ts
98645
- async function getDomainPrice(client2, name, type) {
98627
+ async function getDomainPrice(client2, name) {
98646
98628
  try {
98647
- const querystr = type ? (0, import_querystring.stringify)({ name, type }) : (0, import_querystring.stringify)({ name });
98648
- return await client2.fetch(`/v3/domains/price?${querystr}`);
98629
+ return await client2.fetch(`/v1/registrar/domains/${name}/price`);
98649
98630
  } catch (err) {
98650
98631
  if (isAPIError(err)) {
98651
- if (err.code === "unsupported_tld") {
98632
+ if (err.code === "tld_not_supported") {
98652
98633
  return new UnsupportedTLD(name);
98653
98634
  }
98654
98635
  if (err.status < 500) {
@@ -98658,11 +98639,9 @@ async function getDomainPrice(client2, name, type) {
98658
98639
  throw err;
98659
98640
  }
98660
98641
  }
98661
- var import_querystring;
98662
98642
  var init_get_domain_price = __esm({
98663
98643
  "src/util/domains/get-domain-price.ts"() {
98664
98644
  "use strict";
98665
- import_querystring = require("querystring");
98666
98645
  init_errors_ts();
98667
98646
  }
98668
98647
  });
@@ -98670,47 +98649,147 @@ var init_get_domain_price = __esm({
98670
98649
  // src/util/domains/get-domain-status.ts
98671
98650
  async function getDomainStatus(client2, domain) {
98672
98651
  return client2.fetch(
98673
- `/v3/domains/status?${import_querystring2.default.stringify({ name: domain })}`
98652
+ `/v1/registrar/domains/${encodeURIComponent(domain)}/availability`
98674
98653
  );
98675
98654
  }
98676
- var import_querystring2;
98677
98655
  var init_get_domain_status = __esm({
98678
98656
  "src/util/domains/get-domain-status.ts"() {
98679
98657
  "use strict";
98680
- import_querystring2 = __toESM3(require("querystring"));
98658
+ }
98659
+ });
98660
+
98661
+ // src/util/domains/get-order.ts
98662
+ async function getOrder(client2, orderId) {
98663
+ const { team } = await getScope(client2);
98664
+ const teamParam = team ? `?teamId=${team.slug}` : "";
98665
+ try {
98666
+ return await client2.fetch(
98667
+ `/v1/registrar/orders/${orderId}${teamParam}`
98668
+ );
98669
+ } catch (err) {
98670
+ if (isAPIError(err)) {
98671
+ if (err.code === "not_found") {
98672
+ return null;
98673
+ }
98674
+ if (err.status < 500) {
98675
+ return err;
98676
+ }
98677
+ }
98678
+ throw err;
98679
+ }
98680
+ }
98681
+ var pollForOrder;
98682
+ var init_get_order = __esm({
98683
+ "src/util/domains/get-order.ts"() {
98684
+ "use strict";
98685
+ init_errors_ts();
98686
+ init_sleep();
98687
+ init_get_scope();
98688
+ pollForOrder = async (client2, orderId, timeoutMs = 1e4) => {
98689
+ const intervalMs = 500;
98690
+ const startTime = Date.now();
98691
+ while (Date.now() - startTime < timeoutMs) {
98692
+ const order = await getOrder(client2, orderId);
98693
+ if (order !== null && (order.status === "completed" || order.status === "failed")) {
98694
+ return order;
98695
+ }
98696
+ await sleep(intervalMs);
98697
+ }
98698
+ return null;
98699
+ };
98700
+ }
98701
+ });
98702
+
98703
+ // src/util/domains/get-domain.ts
98704
+ async function getDomain(client2, contextName, domainName) {
98705
+ output_manager_default.spinner(
98706
+ `Fetching domain ${domainName} under ${import_chalk29.default.bold(contextName)}`
98707
+ );
98708
+ try {
98709
+ const { domain } = await client2.fetch(
98710
+ `/v5/domains/${domainName}`
98711
+ );
98712
+ return domain;
98713
+ } catch (err) {
98714
+ if (isAPIError(err) && err.status < 500) {
98715
+ return err;
98716
+ }
98717
+ throw err;
98718
+ }
98719
+ }
98720
+ var import_chalk29;
98721
+ var init_get_domain = __esm({
98722
+ "src/util/domains/get-domain.ts"() {
98723
+ "use strict";
98724
+ import_chalk29 = __toESM3(require_source());
98725
+ init_errors_ts();
98726
+ init_output_manager();
98681
98727
  }
98682
98728
  });
98683
98729
 
98684
98730
  // src/util/domains/purchase-domain.ts
98685
- async function purchaseDomain(client2, name, expectedPrice, renew = true) {
98731
+ async function purchaseDomain(client2, name, expectedPrice, years, autoRenew = true) {
98732
+ const { team, contextName } = await getScope(client2);
98733
+ const teamParam = team ? `?teamId=${team.slug}` : "";
98686
98734
  try {
98687
- return await client2.fetch(`/v3/domains/buy`, {
98688
- body: { name, expectedPrice, renew },
98689
- method: "POST"
98690
- });
98735
+ const { orderId } = await client2.fetch(
98736
+ `/v1/registrar/domains/${name}/buy${teamParam}`,
98737
+ {
98738
+ body: {
98739
+ expectedPrice,
98740
+ autoRenew,
98741
+ years,
98742
+ contactInformation: {
98743
+ firstName: "Vercel",
98744
+ lastName: "Whois",
98745
+ email: "domains@registrar.vercel.com",
98746
+ phone: "+14153985463",
98747
+ address1: "100 First Street, Suite 2400",
98748
+ city: "San Fransisco",
98749
+ state: "CA",
98750
+ zip: "94105",
98751
+ country: "US",
98752
+ companyName: "Vercel Inc."
98753
+ }
98754
+ },
98755
+ method: "POST"
98756
+ }
98757
+ );
98758
+ const order = await pollForOrder(client2, orderId);
98759
+ if (order === null) {
98760
+ return new UnexpectedDomainPurchaseError(name);
98761
+ }
98762
+ if (order.status === "completed") {
98763
+ const domain = order.domains.find((domain2) => domain2.domainName === name);
98764
+ if (domain?.status === "completed") {
98765
+ const domain2 = await getDomain(client2, contextName, name);
98766
+ if (domain2 instanceof APIError) {
98767
+ throw domain2;
98768
+ }
98769
+ return domain2;
98770
+ }
98771
+ }
98772
+ if (order.error?.code === "payment_failed") {
98773
+ return new DomainPaymentError();
98774
+ }
98775
+ return new UnexpectedDomainPurchaseError(name);
98691
98776
  } catch (err) {
98692
98777
  if (isAPIError(err)) {
98693
98778
  if (err.code === "invalid_domain") {
98694
98779
  return new InvalidDomain(name);
98695
98780
  }
98696
- if (err.code === "not_available") {
98781
+ if (err.code === "domain_not_available") {
98697
98782
  return new DomainNotAvailable(name);
98698
98783
  }
98699
- if (err.code === "service_unavailabe") {
98700
- return new DomainServiceNotAvailable(name);
98701
- }
98702
- if (err.code === "unexpected_error") {
98784
+ if (err.code === "internal_server_error") {
98703
98785
  return new UnexpectedDomainPurchaseError(name);
98704
98786
  }
98705
- if (err.code === "source_not_found") {
98706
- return new SourceNotFound();
98707
- }
98708
- if (err.code === "payment_error") {
98709
- return new DomainPaymentError();
98710
- }
98711
- if (err.code === "unsupported_tld") {
98787
+ if (err.code === "tld_not_supported") {
98712
98788
  return new UnsupportedTLD(name);
98713
98789
  }
98790
+ if (err.code === "additional_contact_info_required") {
98791
+ return new TLDNotSupportedViaCLI(name);
98792
+ }
98714
98793
  }
98715
98794
  throw err;
98716
98795
  }
@@ -98719,12 +98798,15 @@ var init_purchase_domain = __esm({
98719
98798
  "src/util/domains/purchase-domain.ts"() {
98720
98799
  "use strict";
98721
98800
  init_errors_ts();
98801
+ init_get_order();
98802
+ init_get_domain();
98803
+ init_get_scope();
98722
98804
  }
98723
98805
  });
98724
98806
 
98725
98807
  // src/util/domains/purchase-domain-if-available.ts
98726
98808
  async function purchaseDomainIfAvailable(client2, domain, contextName) {
98727
- output_manager_default.spinner(`Checking status of ${import_chalk29.default.bold(domain)}`);
98809
+ output_manager_default.spinner(`Checking status of ${import_chalk30.default.bold(domain)}`);
98728
98810
  const buyDomainStamp = stamp_default();
98729
98811
  const { available } = await getDomainStatus(client2, domain);
98730
98812
  if (available) {
@@ -98741,39 +98823,44 @@ async function purchaseDomainIfAvailable(client2, domain, contextName) {
98741
98823
  if (domainPrice instanceof Error) {
98742
98824
  throw domainPrice;
98743
98825
  }
98744
- const { price, period } = domainPrice;
98826
+ const { purchasePrice, years } = domainPrice;
98827
+ if (purchasePrice === null) {
98828
+ output_manager_default.error(
98829
+ `The domain ${param(domain)} is ${import_chalk30.default.underline(
98830
+ "unavailable"
98831
+ )}! ${buyDomainStamp()}`
98832
+ );
98833
+ return new DomainNotAvailable(domain);
98834
+ }
98745
98835
  output_manager_default.log(
98746
- `Domain not found, but you can buy it under ${import_chalk29.default.bold(
98836
+ `Domain not found, but you can buy it under ${import_chalk30.default.bold(
98747
98837
  contextName
98748
98838
  )}! ${buyDomainStamp()}`
98749
98839
  );
98750
98840
  if (!await client2.input.confirm(
98751
- `Buy ${import_chalk29.default.underline(domain)} for ${import_chalk29.default.bold(
98752
- `$${price}`
98753
- )} (${(0, import_pluralize.default)("yr", period, true)})?`,
98841
+ `Buy ${import_chalk30.default.underline(domain)} for ${import_chalk30.default.bold(
98842
+ `$${purchasePrice}`
98843
+ )} (${(0, import_pluralize.default)("yr", years, true)})?`,
98754
98844
  false
98755
98845
  )) {
98756
98846
  output_manager_default.print(eraseLines(1));
98757
98847
  return new UserAborted();
98758
98848
  }
98759
98849
  output_manager_default.print(eraseLines(1));
98760
- const result = await purchaseDomain(client2, domain, price);
98850
+ const result = await purchaseDomain(client2, domain, purchasePrice, years);
98761
98851
  if (result instanceof Error) {
98762
98852
  return result;
98763
98853
  }
98764
- if (result.pending) {
98765
- return new DomainPurchasePending(domain);
98766
- }
98767
98854
  return true;
98768
98855
  }
98769
98856
  output_manager_default.debug(`Domain ${domain} is not available to be purchased`);
98770
98857
  return false;
98771
98858
  }
98772
- var import_chalk29, import_pluralize, isTTY;
98859
+ var import_chalk30, import_pluralize, isTTY;
98773
98860
  var init_purchase_domain_if_available = __esm({
98774
98861
  "src/util/domains/purchase-domain-if-available.ts"() {
98775
98862
  "use strict";
98776
- import_chalk29 = __toESM3(require_source());
98863
+ import_chalk30 = __toESM3(require_source());
98777
98864
  import_pluralize = __toESM3(require_pluralize());
98778
98865
  init_erase_lines();
98779
98866
  init_get_domain_price();
@@ -98782,6 +98869,7 @@ var init_purchase_domain_if_available = __esm({
98782
98869
  init_stamp();
98783
98870
  init_errors_ts();
98784
98871
  init_output_manager();
98872
+ init_param();
98785
98873
  isTTY = process.stdout.isTTY;
98786
98874
  }
98787
98875
  });
@@ -98955,7 +99043,7 @@ async function getAppLastDeployment(client2, appName, user, contextName) {
98955
99043
  return null;
98956
99044
  }
98957
99045
  async function getDeploymentForAlias(client2, args2, localConfigPath, user, contextName, localConfig) {
98958
- output_manager_default.spinner(`Fetching deployment to alias in ${import_chalk30.default.bold(contextName)}`);
99046
+ output_manager_default.spinner(`Fetching deployment to alias in ${import_chalk31.default.bold(contextName)}`);
98959
99047
  if (args2.length === 2) {
98960
99048
  const [deploymentId] = args2;
98961
99049
  try {
@@ -98974,12 +99062,12 @@ async function getDeploymentForAlias(client2, args2, localConfigPath, user, cont
98974
99062
  output_manager_default.stopSpinner();
98975
99063
  }
98976
99064
  }
98977
- var import_path9, import_chalk30;
99065
+ var import_path9, import_chalk31;
98978
99066
  var init_get_deployment_by_alias = __esm({
98979
99067
  "src/util/alias/get-deployment-by-alias.ts"() {
98980
99068
  "use strict";
98981
99069
  import_path9 = __toESM3(require("path"));
98982
- import_chalk30 = __toESM3(require_source());
99070
+ import_chalk31 = __toESM3(require_source());
98983
99071
  init_get_deployments_by_appname();
98984
99072
  init_get_deployment();
98985
99073
  init_output_manager();
@@ -98990,13 +99078,13 @@ var init_get_deployment_by_alias = __esm({
98990
99078
  function formatDNSTable(rows) {
98991
99079
  return table([HEADER, ...rows], { hsep: 8 });
98992
99080
  }
98993
- var import_chalk31, HEADER;
99081
+ var import_chalk32, HEADER;
98994
99082
  var init_format_dns_table = __esm({
98995
99083
  "src/util/format-dns-table.ts"() {
98996
99084
  "use strict";
98997
99085
  init_table();
98998
- import_chalk31 = __toESM3(require_source());
98999
- HEADER = ["name", "type", "value"].map((v) => (0, import_chalk31.gray)(v));
99086
+ import_chalk32 = __toESM3(require_source());
99087
+ HEADER = ["name", "type", "value"].map((v) => (0, import_chalk32.gray)(v));
99000
99088
  }
99001
99089
  });
99002
99090
 
@@ -99028,7 +99116,7 @@ function handleCertError(error3) {
99028
99116
  if (error3 instanceof CertConfigurationError) {
99029
99117
  const { external, cns } = error3.meta;
99030
99118
  output_manager_default.error(
99031
- `We couldn't verify the propagation of the DNS settings for ${error3.meta.cns.map((cn) => import_chalk32.default.underline(cn)).join(", ")}`
99119
+ `We couldn't verify the propagation of the DNS settings for ${error3.meta.cns.map((cn) => import_chalk33.default.underline(cn)).join(", ")}`
99032
99120
  );
99033
99121
  if (external) {
99034
99122
  output_manager_default.print(
@@ -99069,13 +99157,13 @@ function handleCertError(error3) {
99069
99157
  }
99070
99158
  return error3;
99071
99159
  }
99072
- var import_ms4, import_tldts3, import_chalk32;
99160
+ var import_ms4, import_tldts3, import_chalk33;
99073
99161
  var init_handle_cert_error = __esm({
99074
99162
  "src/util/certs/handle-cert-error.ts"() {
99075
99163
  "use strict";
99076
99164
  import_ms4 = __toESM3(require_ms());
99077
99165
  import_tldts3 = __toESM3(require_cjs7());
99078
- import_chalk32 = __toESM3(require_source());
99166
+ import_chalk33 = __toESM3(require_source());
99079
99167
  init_errors_ts();
99080
99168
  init_format_dns_table();
99081
99169
  init_pkg_name();
@@ -99211,7 +99299,7 @@ async function set(client2, argv) {
99211
99299
  return 1;
99212
99300
  }
99213
99301
  output_manager_default.success(
99214
- `${import_chalk33.default.bold(
99302
+ `${import_chalk34.default.bold(
99215
99303
  `${isWildcardAlias(target) ? "" : "https://"}${handleResult2.alias}`
99216
99304
  )} now points to https://${deployment2.url} ${setStamp()}`
99217
99305
  );
@@ -99247,16 +99335,16 @@ async function set(client2, argv) {
99247
99335
  }
99248
99336
  const prefix = isWildcard ? "" : "https://";
99249
99337
  output_manager_default.success(
99250
- `${import_chalk33.default.bold(`${prefix}${handleResult.alias}`)} now points to https://${deployment.url} ${setStamp()}`
99338
+ `${import_chalk34.default.bold(`${prefix}${handleResult.alias}`)} now points to https://${deployment.url} ${setStamp()}`
99251
99339
  );
99252
99340
  return 0;
99253
99341
  }
99254
99342
  function handleSetupDomainError(error3) {
99255
99343
  if (error3 instanceof DomainPermissionDenied) {
99256
99344
  output_manager_default.error(
99257
- `You don't have permissions over domain ${import_chalk33.default.underline(
99345
+ `You don't have permissions over domain ${import_chalk34.default.underline(
99258
99346
  error3.meta.domain
99259
- )} under ${import_chalk33.default.bold(error3.meta.context)}.`
99347
+ )} under ${import_chalk34.default.bold(error3.meta.context)}.`
99260
99348
  );
99261
99349
  return 1;
99262
99350
  }
@@ -99286,12 +99374,6 @@ function handleSetupDomainError(error3) {
99286
99374
  );
99287
99375
  return 1;
99288
99376
  }
99289
- if (error3 instanceof DomainServiceNotAvailable) {
99290
- output_manager_default.error(
99291
- "The domain purchase service is not available. Try again later."
99292
- );
99293
- return 1;
99294
- }
99295
99377
  if (error3 instanceof UnexpectedDomainPurchaseError) {
99296
99378
  output_manager_default.error("There was an unexpected error while purchasing the domain.");
99297
99379
  return 1;
@@ -99325,6 +99407,12 @@ function handleSetupDomainError(error3) {
99325
99407
  output_manager_default.print(" Please add a valid payment method and retry.\n");
99326
99408
  return 1;
99327
99409
  }
99410
+ if (error3 instanceof TLDNotSupportedViaCLI) {
99411
+ output_manager_default.error(
99412
+ `The TLD for domain name ${error3.meta.domain} is not supported via the CLI. Use the REST API or the dashboard to purchase.`
99413
+ );
99414
+ return 1;
99415
+ }
99328
99416
  return error3;
99329
99417
  }
99330
99418
  function handleCreateAliasError(errorOrResult) {
@@ -99334,7 +99422,7 @@ function handleCreateAliasError(errorOrResult) {
99334
99422
  }
99335
99423
  if (error3 instanceof AliasInUse) {
99336
99424
  output_manager_default.error(
99337
- `The alias ${import_chalk33.default.dim(
99425
+ `The alias ${import_chalk34.default.dim(
99338
99426
  error3.meta.alias
99339
99427
  )} is a deployment URL or it's in use by a different team.`
99340
99428
  );
@@ -99342,7 +99430,7 @@ function handleCreateAliasError(errorOrResult) {
99342
99430
  }
99343
99431
  if (error3 instanceof DeploymentNotFound) {
99344
99432
  output_manager_default.error(
99345
- `Failed to find deployment ${import_chalk33.default.dim(error3.meta.id)} under ${import_chalk33.default.bold(
99433
+ `Failed to find deployment ${import_chalk34.default.dim(error3.meta.id)} under ${import_chalk34.default.bold(
99346
99434
  error3.meta.context
99347
99435
  )}`
99348
99436
  );
@@ -99356,9 +99444,9 @@ function handleCreateAliasError(errorOrResult) {
99356
99444
  }
99357
99445
  if (error3 instanceof DeploymentPermissionDenied) {
99358
99446
  output_manager_default.error(
99359
- `No permission to access deployment ${import_chalk33.default.dim(
99447
+ `No permission to access deployment ${import_chalk34.default.dim(
99360
99448
  error3.meta.id
99361
- )} under ${import_chalk33.default.bold(error3.meta.context)}`
99449
+ )} under ${import_chalk34.default.bold(error3.meta.context)}`
99362
99450
  );
99363
99451
  return 1;
99364
99452
  }
@@ -99401,11 +99489,11 @@ function getTargetsForAlias(args2, { alias: alias2 } = {}) {
99401
99489
  }
99402
99490
  return typeof alias2 === "string" ? [alias2] : alias2;
99403
99491
  }
99404
- var import_chalk33;
99492
+ var import_chalk34;
99405
99493
  var init_set2 = __esm({
99406
99494
  "src/commands/alias/set.ts"() {
99407
99495
  "use strict";
99408
- import_chalk33 = __toESM3(require_source());
99496
+ import_chalk34 = __toESM3(require_source());
99409
99497
  init_errors_ts();
99410
99498
  init_assign_alias();
99411
99499
  init_get_deployment();
@@ -100389,30 +100477,30 @@ var require_format = __commonJS2({
100389
100477
  // src/util/format-date.ts
100390
100478
  function formatDate(dateStrOrNumber) {
100391
100479
  if (!dateStrOrNumber) {
100392
- return import_chalk34.default.gray("-");
100480
+ return import_chalk35.default.gray("-");
100393
100481
  }
100394
100482
  const date = new Date(dateStrOrNumber);
100395
100483
  const diff = date.getTime() - Date.now();
100396
- return diff < 0 ? `${(0, import_format2.default)(date, "DD MMMM YYYY HH:mm:ss")} ${import_chalk34.default.gray(
100484
+ return diff < 0 ? `${(0, import_format2.default)(date, "DD MMMM YYYY HH:mm:ss")} ${import_chalk35.default.gray(
100397
100485
  `[${(0, import_ms5.default)(-diff)} ago]`
100398
- )}` : `${(0, import_format2.default)(date, "DD MMMM YYYY HH:mm:ss")} ${import_chalk34.default.gray(
100486
+ )}` : `${(0, import_format2.default)(date, "DD MMMM YYYY HH:mm:ss")} ${import_chalk35.default.gray(
100399
100487
  `[in ${(0, import_ms5.default)(diff)}]`
100400
100488
  )}`;
100401
100489
  }
100402
100490
  function formatDateWithoutTime(dateStrOrNumber) {
100403
100491
  if (!dateStrOrNumber) {
100404
- return import_chalk34.default.gray("-");
100492
+ return import_chalk35.default.gray("-");
100405
100493
  }
100406
100494
  const date = new Date(dateStrOrNumber);
100407
100495
  const diff = date.getTime() - Date.now();
100408
- return diff < 0 ? `${(0, import_format2.default)(date, "MMM DD YYYY")} ${import_chalk34.default.gray(`[${(0, import_ms5.default)(-diff)} ago]`)}` : `${(0, import_format2.default)(date, "MMM DD YYYY")} ${import_chalk34.default.gray(`[in ${(0, import_ms5.default)(diff)}]`)}`;
100496
+ return diff < 0 ? `${(0, import_format2.default)(date, "MMM DD YYYY")} ${import_chalk35.default.gray(`[${(0, import_ms5.default)(-diff)} ago]`)}` : `${(0, import_format2.default)(date, "MMM DD YYYY")} ${import_chalk35.default.gray(`[in ${(0, import_ms5.default)(diff)}]`)}`;
100409
100497
  }
100410
- var import_ms5, import_chalk34, import_format2;
100498
+ var import_ms5, import_chalk35, import_format2;
100411
100499
  var init_format_date = __esm({
100412
100500
  "src/util/format-date.ts"() {
100413
100501
  "use strict";
100414
100502
  import_ms5 = __toESM3(require_ms());
100415
- import_chalk34 = __toESM3(require_source());
100503
+ import_chalk35 = __toESM3(require_source());
100416
100504
  import_format2 = __toESM3(require_format());
100417
100505
  }
100418
100506
  });
@@ -100533,9 +100621,9 @@ async function bisect(client2) {
100533
100621
  if (typeof parsed.path === "string" && parsed.path !== "/") {
100534
100622
  if (subpath && subpath !== parsed.path) {
100535
100623
  output_manager_default.note(
100536
- `Ignoring subpath ${import_chalk35.default.bold(
100624
+ `Ignoring subpath ${import_chalk36.default.bold(
100537
100625
  parsed.path
100538
- )} in favor of \`--path\` argument ${import_chalk35.default.bold(subpath)}`
100626
+ )} in favor of \`--path\` argument ${import_chalk36.default.bold(subpath)}`
100539
100627
  );
100540
100628
  } else {
100541
100629
  subpath = parsed.path;
@@ -100550,9 +100638,9 @@ async function bisect(client2) {
100550
100638
  good = parsed.hostname;
100551
100639
  if (typeof parsed.path === "string" && parsed.path !== "/" && subpath && subpath !== parsed.path) {
100552
100640
  output_manager_default.note(
100553
- `Ignoring subpath ${import_chalk35.default.bold(
100641
+ `Ignoring subpath ${import_chalk36.default.bold(
100554
100642
  parsed.path
100555
- )} which does not match ${import_chalk35.default.bold(subpath)}`
100643
+ )} which does not match ${import_chalk36.default.bold(subpath)}`
100556
100644
  );
100557
100645
  }
100558
100646
  if (!subpath) {
@@ -100575,7 +100663,7 @@ async function bisect(client2) {
100575
100663
  }
100576
100664
  bad = badDeployment.url;
100577
100665
  } else {
100578
- output_manager_default.error(`Failed to retrieve ${import_chalk35.default.bold("bad")} Deployment: ${bad}`);
100666
+ output_manager_default.error(`Failed to retrieve ${import_chalk36.default.bold("bad")} Deployment: ${bad}`);
100579
100667
  return 1;
100580
100668
  }
100581
100669
  const goodDeployment = await getDeployment(client2, contextName, good).catch(
@@ -100592,7 +100680,7 @@ async function bisect(client2) {
100592
100680
  good = goodDeployment.url;
100593
100681
  } else {
100594
100682
  output_manager_default.error(
100595
- `Failed to retrieve ${import_chalk35.default.bold("good")} Deployment: ${good}`
100683
+ `Failed to retrieve ${import_chalk36.default.bold("good")} Deployment: ${good}`
100596
100684
  );
100597
100685
  return 1;
100598
100686
  }
@@ -100653,21 +100741,21 @@ async function bisect(client2) {
100653
100741
  const steps = Math.floor(Math.log2(deployments.length));
100654
100742
  const pSteps = (0, import_pluralize2.default)("step", steps, true);
100655
100743
  output_manager_default.log(
100656
- import_chalk35.default.magenta(
100657
- `${import_chalk35.default.bold(
100744
+ import_chalk36.default.magenta(
100745
+ `${import_chalk36.default.bold(
100658
100746
  "Bisecting:"
100659
100747
  )} ${rem} left to test after this (roughly ${pSteps})`
100660
100748
  ),
100661
- import_chalk35.default.magenta
100749
+ import_chalk36.default.magenta
100662
100750
  );
100663
100751
  const testUrl = `https://${deployment.url}${subpath}`;
100664
- output_manager_default.log(`${import_chalk35.default.bold("Deployment URL:")} ${link_default(testUrl)}`);
100665
- output_manager_default.log(`${import_chalk35.default.bold("Date:")} ${formatDate(deployment.createdAt)}`);
100752
+ output_manager_default.log(`${import_chalk36.default.bold("Deployment URL:")} ${link_default(testUrl)}`);
100753
+ output_manager_default.log(`${import_chalk36.default.bold("Date:")} ${formatDate(deployment.createdAt)}`);
100666
100754
  const commit2 = getCommit(deployment);
100667
100755
  if (commit2) {
100668
100756
  const shortSha = commit2.sha.substring(0, 7);
100669
100757
  const firstLine = commit2.message?.split("\n")[0];
100670
- output_manager_default.log(`${import_chalk35.default.bold("Commit:")} [${shortSha}] ${firstLine}`);
100758
+ output_manager_default.log(`${import_chalk36.default.bold("Commit:")} [${shortSha}] ${firstLine}`);
100671
100759
  }
100672
100760
  let action;
100673
100761
  if (run) {
@@ -100687,17 +100775,17 @@ async function bisect(client2) {
100687
100775
  const { exitCode: exitCode2 } = proc;
100688
100776
  let color;
100689
100777
  if (exitCode2 === 0) {
100690
- color = import_chalk35.default.green;
100778
+ color = import_chalk36.default.green;
100691
100779
  action = "good";
100692
100780
  } else if (exitCode2 === 125) {
100693
100781
  action = "skip";
100694
- color = import_chalk35.default.grey;
100782
+ color = import_chalk36.default.grey;
100695
100783
  } else {
100696
100784
  action = "bad";
100697
- color = import_chalk35.default.red;
100785
+ color = import_chalk36.default.red;
100698
100786
  }
100699
100787
  output_manager_default.log(
100700
- `Run script returned exit code ${import_chalk35.default.bold(String(exitCode2))}: ${color(
100788
+ `Run script returned exit code ${import_chalk36.default.bold(String(exitCode2))}: ${color(
100701
100789
  action
100702
100790
  )}`
100703
100791
  );
@@ -100725,19 +100813,19 @@ async function bisect(client2) {
100725
100813
  }
100726
100814
  output_manager_default.print("\n");
100727
100815
  const result = [
100728
- import_chalk35.default.bold(
100816
+ import_chalk36.default.bold(
100729
100817
  `The first bad deployment is: ${link_default(`https://${lastBad.url}`)}`
100730
100818
  ),
100731
100819
  "",
100732
- ` ${import_chalk35.default.bold("Date:")} ${formatDate(lastBad.createdAt)}`
100820
+ ` ${import_chalk36.default.bold("Date:")} ${formatDate(lastBad.createdAt)}`
100733
100821
  ];
100734
100822
  const commit = getCommit(lastBad);
100735
100823
  if (commit) {
100736
100824
  const shortSha = commit.sha.substring(0, 7);
100737
100825
  const firstLine = commit.message?.split("\n")[0];
100738
- result.push(` ${import_chalk35.default.bold("Commit:")} [${shortSha}] ${firstLine}`);
100826
+ result.push(` ${import_chalk36.default.bold("Commit:")} [${shortSha}] ${firstLine}`);
100739
100827
  }
100740
- result.push(`${import_chalk35.default.bold("Inspect:")} ${link_default(lastBad.inspectorUrl)}`);
100828
+ result.push(`${import_chalk36.default.bold("Inspect:")} ${link_default(lastBad.inspectorUrl)}`);
100741
100829
  output_manager_default.print(box(result.join("\n")));
100742
100830
  output_manager_default.print("\n");
100743
100831
  return 0;
@@ -100749,7 +100837,7 @@ function getCommit(deployment) {
100749
100837
  const message2 = deployment.meta?.githubCommitMessage || deployment.meta?.gitlabCommitMessage || deployment.meta?.bitbucketCommitMessage;
100750
100838
  return { sha, message: message2 };
100751
100839
  }
100752
- var import_open2, import_execa2, import_pluralize2, import_path10, import_chalk35, import_url6;
100840
+ var import_open2, import_execa2, import_pluralize2, import_path10, import_chalk36, import_url6;
100753
100841
  var init_bisect2 = __esm({
100754
100842
  "src/commands/bisect/index.ts"() {
100755
100843
  "use strict";
@@ -100757,7 +100845,7 @@ var init_bisect2 = __esm({
100757
100845
  import_execa2 = __toESM3(require_execa());
100758
100846
  import_pluralize2 = __toESM3(require_pluralize());
100759
100847
  import_path10 = require("path");
100760
- import_chalk35 = __toESM3(require_source());
100848
+ import_chalk36 = __toESM3(require_source());
100761
100849
  import_url6 = require("url");
100762
100850
  init_box();
100763
100851
  init_format_date();
@@ -100886,7 +100974,7 @@ async function list2(client2, argv, rwToken) {
100886
100974
  const urls = [];
100887
100975
  const tablePrint = table(
100888
100976
  [
100889
- headers.map((header) => import_chalk36.default.dim(header)),
100977
+ headers.map((header) => import_chalk37.default.dim(header)),
100890
100978
  ...list9.blobs.map((blob5) => {
100891
100979
  urls.push(blob5.url);
100892
100980
  const uploadedAt = (0, import_ms6.default)(Date.now() - new Date(blob5.uploadedAt).getTime());
@@ -100913,14 +101001,14 @@ ${tablePrint}
100913
101001
  }
100914
101002
  return 0;
100915
101003
  }
100916
- var blob, import_chalk36, import_ms6;
101004
+ var blob, import_chalk37, import_ms6;
100917
101005
  var init_list3 = __esm({
100918
101006
  "src/commands/blob/list.ts"() {
100919
101007
  "use strict";
100920
101008
  init_output_manager();
100921
101009
  blob = __toESM3(require("@vercel/blob"));
100922
101010
  init_table();
100923
- import_chalk36 = __toESM3(require_source());
101011
+ import_chalk37 = __toESM3(require_source());
100924
101012
  import_ms6 = __toESM3(require_ms());
100925
101013
  init_get_command_flags();
100926
101014
  init_get_args();
@@ -101084,15 +101172,15 @@ async function put2(client2, argv, rwToken) {
101084
101172
  if (!filePath) {
101085
101173
  if (client2.stdin.isTTY) {
101086
101174
  output_manager_default.error(
101087
- `Missing input. Usage: ${import_chalk37.default.cyan(
101175
+ `Missing input. Usage: ${import_chalk38.default.cyan(
101088
101176
  `${getCommandName("blob put <file>")}`
101089
- )} or pipe data: ${import_chalk37.default.cyan("cat file.txt | vercel blob put --pathname <pathname>")}`
101177
+ )} or pipe data: ${import_chalk38.default.cyan("cat file.txt | vercel blob put --pathname <pathname>")}`
101090
101178
  );
101091
101179
  return 1;
101092
101180
  }
101093
101181
  if (!pathnameFlag) {
101094
101182
  output_manager_default.error(
101095
- `Missing pathname. When reading from stdin, you must specify --pathname. Usage: ${import_chalk37.default.cyan(
101183
+ `Missing pathname. When reading from stdin, you must specify --pathname. Usage: ${import_chalk38.default.cyan(
101096
101184
  "cat file.txt | vercel blob put --pathname <pathname>"
101097
101185
  )}`
101098
101186
  );
@@ -101125,9 +101213,9 @@ async function put2(client2, argv, rwToken) {
101125
101213
  }
101126
101214
  if (!pathname || !putBody) {
101127
101215
  output_manager_default.error(
101128
- `Missing pathname or input. Usage: ${import_chalk37.default.cyan(
101216
+ `Missing pathname or input. Usage: ${import_chalk38.default.cyan(
101129
101217
  `${getCommandName("blob put <file>")}`
101130
- )} or ${import_chalk37.default.cyan(
101218
+ )} or ${import_chalk38.default.cyan(
101131
101219
  `cat file.txt | ${getCommandName("blob put --pathname <pathname>")}`
101132
101220
  )}`
101133
101221
  );
@@ -101154,7 +101242,7 @@ async function put2(client2, argv, rwToken) {
101154
101242
  output_manager_default.success(result.url);
101155
101243
  return 0;
101156
101244
  }
101157
- var blob2, import_node_fs, import_promises, import_error_utils10, import_node_path, import_chalk37;
101245
+ var blob2, import_node_fs, import_promises, import_error_utils10, import_node_path, import_chalk38;
101158
101246
  var init_put2 = __esm({
101159
101247
  "src/commands/blob/put.ts"() {
101160
101248
  "use strict";
@@ -101168,7 +101256,7 @@ var init_put2 = __esm({
101168
101256
  import_error_utils10 = __toESM3(require_dist2());
101169
101257
  import_node_path = require("path");
101170
101258
  init_pkg_name();
101171
- import_chalk37 = __toESM3(require_source());
101259
+ import_chalk38 = __toESM3(require_source());
101172
101260
  init_put();
101173
101261
  init_error2();
101174
101262
  }
@@ -103058,7 +103146,7 @@ var require_fast_json_stable_stringify = __commonJS2({
103058
103146
  };
103059
103147
  }(opts.cmp);
103060
103148
  var seen = [];
103061
- return function stringify3(node) {
103149
+ return function stringify2(node) {
103062
103150
  if (node && node.toJSON && typeof node.toJSON === "function") {
103063
103151
  node = node.toJSON();
103064
103152
  }
@@ -103074,7 +103162,7 @@ var require_fast_json_stable_stringify = __commonJS2({
103074
103162
  for (i = 0; i < node.length; i++) {
103075
103163
  if (i)
103076
103164
  out += ",";
103077
- out += stringify3(node[i]) || "null";
103165
+ out += stringify2(node[i]) || "null";
103078
103166
  }
103079
103167
  return out + "]";
103080
103168
  }
@@ -103090,7 +103178,7 @@ var require_fast_json_stable_stringify = __commonJS2({
103090
103178
  out = "";
103091
103179
  for (i = 0; i < keys.length; i++) {
103092
103180
  var key = keys[i];
103093
- var value = stringify3(node[key]);
103181
+ var value = stringify2(node[key]);
103094
103182
  if (!value)
103095
103183
  continue;
103096
103184
  if (out)
@@ -107745,9 +107833,9 @@ var require_ajv = __commonJS2({
107745
107833
  // src/util/projects/get-project-by-id-or-name.ts
107746
107834
  async function getProjectByNameOrId(client2, projectNameOrId, accountId, includeRollbackInfo) {
107747
107835
  try {
107748
- const qs3 = includeRollbackInfo ? "?rollbackInfo=true" : "";
107836
+ const qs2 = includeRollbackInfo ? "?rollbackInfo=true" : "";
107749
107837
  const project = await client2.fetch(
107750
- `/v9/projects/${encodeURIComponent(projectNameOrId)}${qs3}`,
107838
+ `/v9/projects/${encodeURIComponent(projectNameOrId)}${qs2}`,
107751
107839
  { accountId }
107752
107840
  );
107753
107841
  return project;
@@ -113993,9 +114081,9 @@ var require_parse6 = __commonJS2({
113993
114081
  var require_stringify2 = __commonJS2({
113994
114082
  "../../node_modules/.pnpm/@iarna+toml@2.2.3/node_modules/@iarna/toml/stringify.js"(exports2, module2) {
113995
114083
  "use strict";
113996
- module2.exports = stringify3;
114084
+ module2.exports = stringify2;
113997
114085
  module2.exports.value = stringifyInline;
113998
- function stringify3(obj) {
114086
+ function stringify2(obj) {
113999
114087
  if (obj === null)
114000
114088
  throw typeError("null");
114001
114089
  if (obj === void 0)
@@ -126101,7 +126189,7 @@ var require_parse7 = __commonJS2({
126101
126189
  var require_stringify3 = __commonJS2({
126102
126190
  "../../node_modules/.pnpm/json5@2.2.2/node_modules/json5/lib/stringify.js"(exports2, module2) {
126103
126191
  var util = require_util8();
126104
- module2.exports = function stringify3(value, replacer, space) {
126192
+ module2.exports = function stringify2(value, replacer, space) {
126105
126193
  const stack2 = [];
126106
126194
  let indent = "";
126107
126195
  let propertyList;
@@ -126320,10 +126408,10 @@ var require_stringify3 = __commonJS2({
126320
126408
  var require_lib12 = __commonJS2({
126321
126409
  "../../node_modules/.pnpm/json5@2.2.2/node_modules/json5/lib/index.js"(exports2, module2) {
126322
126410
  var parse11 = require_parse7();
126323
- var stringify3 = require_stringify3();
126411
+ var stringify2 = require_stringify3();
126324
126412
  var JSON5 = {
126325
126413
  parse: parse11,
126326
- stringify: stringify3
126414
+ stringify: stringify2
126327
126415
  };
126328
126416
  module2.exports = JSON5;
126329
126417
  }
@@ -127286,13 +127374,13 @@ async function connectGitProvider(client2, projectId, type, repo) {
127286
127374
  const apiError = isAPIError(err);
127287
127375
  if (apiError && (err.action === "Install GitHub App" || err.code === "repo_not_found")) {
127288
127376
  output_manager_default.error(
127289
- `Failed to connect ${import_chalk38.default.cyan(
127377
+ `Failed to connect ${import_chalk39.default.cyan(
127290
127378
  repo
127291
127379
  )} to project. Make sure there aren't any typos and that you have access to the repository if it's private.`
127292
127380
  );
127293
127381
  } else if (apiError && err.action === "Add a Login Connection") {
127294
127382
  output_manager_default.error(
127295
- err.message.replace(repo, import_chalk38.default.cyan(repo)) + `
127383
+ err.message.replace(repo, import_chalk39.default.cyan(repo)) + `
127296
127384
  Visit ${link_default(err.link)} for more information.`
127297
127385
  );
127298
127386
  } else {
@@ -127363,7 +127451,7 @@ function parseRepoUrl(originUrl) {
127363
127451
  }
127364
127452
  function printRemoteUrls(remoteUrls) {
127365
127453
  for (const [name, url3] of Object.entries(remoteUrls)) {
127366
- output_manager_default.print(` \u2022 ${name}: ${import_chalk38.default.cyan(url3)}
127454
+ output_manager_default.print(` \u2022 ${name}: ${import_chalk39.default.cyan(url3)}
127367
127455
  `);
127368
127456
  }
127369
127457
  }
@@ -127371,7 +127459,7 @@ async function selectRemoteUrl(client2, remoteUrls) {
127371
127459
  const choices = [];
127372
127460
  for (const [urlKey, urlValue] of Object.entries(remoteUrls)) {
127373
127461
  choices.push({
127374
- name: `${urlValue} ${import_chalk38.default.gray(`(${urlKey})`)}`,
127462
+ name: `${urlValue} ${import_chalk39.default.gray(`(${urlKey})`)}`,
127375
127463
  value: urlValue,
127376
127464
  short: urlKey
127377
127465
  });
@@ -127395,7 +127483,7 @@ async function selectAndParseRemoteUrl(client2, remoteUrls) {
127395
127483
  }
127396
127484
  const repoInfo = parseRepoUrl(remoteUrl);
127397
127485
  if (!repoInfo) {
127398
- output_manager_default.log(`Connecting Git repository: ${import_chalk38.default.cyan(remoteUrl)}`);
127486
+ output_manager_default.log(`Connecting Git repository: ${import_chalk39.default.cyan(remoteUrl)}`);
127399
127487
  output_manager_default.error(
127400
127488
  `Failed to parse Git repo data from the following remote URL: ${link_default(
127401
127489
  remoteUrl
@@ -127418,7 +127506,7 @@ async function checkExistsAndConnect({
127418
127506
  }) {
127419
127507
  const displayUrl = buildRepoUrl(provider, gitOrg, repo) || repoPath;
127420
127508
  output_manager_default.log(
127421
- `Connecting ${formatProvider(provider)} repository: ${import_chalk38.default.cyan(displayUrl)}`
127509
+ `Connecting ${formatProvider(provider)} repository: ${import_chalk39.default.cyan(displayUrl)}`
127422
127510
  );
127423
127511
  if (!gitProviderLink) {
127424
127512
  const connect2 = await connectGitProvider(
@@ -127438,7 +127526,7 @@ async function checkExistsAndConnect({
127438
127526
  const isSameRepo = connectedProvider === provider && connectedOrg === gitOrg && connectedRepo === repo;
127439
127527
  if (isSameRepo) {
127440
127528
  output_manager_default.log(
127441
- `${import_chalk38.default.cyan(connectedRepoPath)} is already connected to your project.`
127529
+ `${import_chalk39.default.cyan(connectedRepoPath)} is already connected to your project.`
127442
127530
  );
127443
127531
  return 1;
127444
127532
  }
@@ -127470,7 +127558,7 @@ async function confirmRepoConnect(client2, yes, connectedProvider, connectedRepo
127470
127558
  shouldReplaceProject = await client2.input.confirm(
127471
127559
  `Looks like you already have a ${formatProvider(
127472
127560
  connectedProvider
127473
- )} repository connected: ${import_chalk38.default.cyan(
127561
+ )} repository connected: ${import_chalk39.default.cyan(
127474
127562
  connectedRepoPath
127475
127563
  )}. Do you want to replace it?`,
127476
127564
  true
@@ -127481,12 +127569,12 @@ async function confirmRepoConnect(client2, yes, connectedProvider, connectedRepo
127481
127569
  }
127482
127570
  return shouldReplaceProject;
127483
127571
  }
127484
- var import_url7, import_chalk38;
127572
+ var import_url7, import_chalk39;
127485
127573
  var init_connect_git_provider = __esm({
127486
127574
  "src/util/git/connect-git-provider.ts"() {
127487
127575
  "use strict";
127488
127576
  import_url7 = require("url");
127489
- import_chalk38 = __toESM3(require_source());
127577
+ import_chalk39 = __toESM3(require_source());
127490
127578
  init_link();
127491
127579
  init_errors_ts();
127492
127580
  init_output_manager();
@@ -127559,7 +127647,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
127559
127647
  return /* @__PURE__ */ new Map();
127560
127648
  });
127561
127649
  const shouldLink = yes || await client2.input.confirm(
127562
- `Link Git repository at ${import_chalk39.default.cyan(
127650
+ `Link Git repository at ${import_chalk40.default.cyan(
127563
127651
  `\u201C${humanizePath(rootPath)}\u201D`
127564
127652
  )} to your Project(s)?`,
127565
127653
  true
@@ -127606,7 +127694,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
127606
127694
  fallback: () => link_default(repoUrl)
127607
127695
  });
127608
127696
  output_manager_default.spinner(
127609
- `Fetching Projects for ${repoUrlLink} under ${import_chalk39.default.bold(org.slug)}\u2026`
127697
+ `Fetching Projects for ${repoUrlLink} under ${import_chalk40.default.bold(org.slug)}\u2026`
127610
127698
  );
127611
127699
  let projects = [];
127612
127700
  const query = new URLSearchParams({ repoUrl });
@@ -127615,12 +127703,12 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
127615
127703
  for await (const chunk of projectsIterator) {
127616
127704
  projects = projects.concat(chunk.projects);
127617
127705
  if (chunk.pagination.next) {
127618
- output_manager_default.spinner(`Found ${import_chalk39.default.bold(projects.length)} Projects\u2026`, 0);
127706
+ output_manager_default.spinner(`Found ${import_chalk40.default.bold(projects.length)} Projects\u2026`, 0);
127619
127707
  }
127620
127708
  }
127621
127709
  if (projects.length === 0) {
127622
127710
  output_manager_default.log(
127623
- `No Projects are linked to ${repoUrlLink} under ${import_chalk39.default.bold(
127711
+ `No Projects are linked to ${repoUrlLink} under ${import_chalk40.default.bold(
127624
127712
  org.slug
127625
127713
  )}.`
127626
127714
  );
@@ -127630,7 +127718,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
127630
127718
  "Project",
127631
127719
  projects.length,
127632
127720
  true
127633
- )} linked to ${repoUrlLink} under ${import_chalk39.default.bold(org.slug)}`
127721
+ )} linked to ${repoUrlLink} under ${import_chalk40.default.bold(org.slug)}`
127634
127722
  );
127635
127723
  }
127636
127724
  for (const project of projects) {
@@ -127746,7 +127834,7 @@ async function ensureRepoLink(client2, cwd, { yes, overwrite }) {
127746
127834
  "Project",
127747
127835
  selected.length,
127748
127836
  true
127749
- )} under ${import_chalk39.default.bold(org.slug)} (created ${VERCEL_DIR2}${isGitIgnoreUpdated ? " and added it to .gitignore" : ""})`,
127837
+ )} under ${import_chalk40.default.bold(org.slug)} (created ${VERCEL_DIR2}${isGitIgnoreUpdated ? " and added it to .gitignore" : ""})`,
127750
127838
  emoji("link")
127751
127839
  ) + "\n"
127752
127840
  );
@@ -127803,11 +127891,11 @@ function findProjectsFromPath(projects, path11) {
127803
127891
  const firstMatch = matches[0];
127804
127892
  return matches.filter((match) => match.directory === firstMatch.directory);
127805
127893
  }
127806
- var import_chalk39, import_pluralize3, import_os7, import_slugify, import_path14, import_build_utils5, import_fs_extra6, home;
127894
+ var import_chalk40, import_pluralize3, import_os7, import_slugify, import_path14, import_build_utils5, import_fs_extra6, home;
127807
127895
  var init_repo = __esm({
127808
127896
  "src/util/link/repo.ts"() {
127809
127897
  "use strict";
127810
- import_chalk39 = __toESM3(require_source());
127898
+ import_chalk40 = __toESM3(require_source());
127811
127899
  init_esm4();
127812
127900
  import_pluralize3 = __toESM3(require_pluralize());
127813
127901
  import_os7 = require("os");
@@ -128023,20 +128111,20 @@ async function linkFolderToProject(client2, path11, projectLink, projectName, or
128023
128111
  const isGitIgnoreUpdated = await addToGitIgnore(path11);
128024
128112
  output_manager_default.print(
128025
128113
  prependEmoji(
128026
- `Linked to ${import_chalk40.default.bold(
128114
+ `Linked to ${import_chalk41.default.bold(
128027
128115
  `${orgSlug}/${projectName}`
128028
128116
  )} (created ${VERCEL_DIR2}${isGitIgnoreUpdated ? " and added it to .gitignore" : ""})`,
128029
128117
  emoji(successEmoji)
128030
128118
  ) + "\n"
128031
128119
  );
128032
128120
  }
128033
- var import_fs4, import_ajv, import_chalk40, import_path15, import_fs_extra7, import_util2, import_build_utils6, import_error_utils12, readFile3, writeFile2, VERCEL_DIR2, VERCEL_DIR_FALLBACK, VERCEL_DIR_README, VERCEL_DIR_PROJECT, VERCEL_DIR_REPO, linkSchema;
128121
+ var import_fs4, import_ajv, import_chalk41, import_path15, import_fs_extra7, import_util2, import_build_utils6, import_error_utils12, readFile3, writeFile2, VERCEL_DIR2, VERCEL_DIR_FALLBACK, VERCEL_DIR_README, VERCEL_DIR_PROJECT, VERCEL_DIR_REPO, linkSchema;
128034
128122
  var init_link2 = __esm({
128035
128123
  "src/util/projects/link.ts"() {
128036
128124
  "use strict";
128037
128125
  import_fs4 = __toESM3(require("fs"));
128038
128126
  import_ajv = __toESM3(require_ajv());
128039
- import_chalk40 = __toESM3(require_source());
128127
+ import_chalk41 = __toESM3(require_source());
128040
128128
  import_path15 = require("path");
128041
128129
  import_fs_extra7 = __toESM3(require_lib());
128042
128130
  import_util2 = require("util");
@@ -128203,7 +128291,7 @@ async function addStore(client2, argv) {
128203
128291
  ]
128204
128292
  });
128205
128293
  output_manager_default.spinner(
128206
- `Connecting ${import_chalk41.default.bold(name)} to ${import_chalk41.default.bold(link4.project.name)}...`
128294
+ `Connecting ${import_chalk42.default.bold(name)} to ${import_chalk42.default.bold(link4.project.name)}...`
128207
128295
  );
128208
128296
  await connectResourceToProject(
128209
128297
  client2,
@@ -128213,7 +128301,7 @@ async function addStore(client2, argv) {
128213
128301
  link4.org.id
128214
128302
  );
128215
128303
  output_manager_default.success(
128216
- `Blob store ${import_chalk41.default.bold(name)} linked to ${import_chalk41.default.bold(
128304
+ `Blob store ${import_chalk42.default.bold(name)} linked to ${import_chalk42.default.bold(
128217
128305
  link4.project.name
128218
128306
  )}. Make sure to pull the new environment variables using ${getCommandName("env pull")}`
128219
128307
  );
@@ -128221,14 +128309,14 @@ async function addStore(client2, argv) {
128221
128309
  }
128222
128310
  return 0;
128223
128311
  }
128224
- var import_chalk41;
128312
+ var import_chalk42;
128225
128313
  var init_store_add2 = __esm({
128226
128314
  "src/commands/blob/store-add.ts"() {
128227
128315
  "use strict";
128228
128316
  init_output_manager();
128229
128317
  init_link2();
128230
128318
  init_connect_resource_to_project();
128231
- import_chalk41 = __toESM3(require_source());
128319
+ import_chalk42 = __toESM3(require_source());
128232
128320
  init_pkg_name();
128233
128321
  init_get_flags_specification();
128234
128322
  init_get_args();
@@ -130708,8 +130796,8 @@ async function getStore2(client2, argv, rwToken) {
130708
130796
  const regionInfo = store2.store.region ? `
130709
130797
  Region: ${store2.store.region}` : "";
130710
130798
  output_manager_default.print(
130711
- `Blob Store: ${import_chalk42.default.bold(store2.store.name)} (${import_chalk42.default.dim(store2.store.id)})
130712
- Billing State: ${store2.store.billingState === "active" ? import_chalk42.default.green("Active") : import_chalk42.default.red("Inactive")}
130799
+ `Blob Store: ${import_chalk43.default.bold(store2.store.name)} (${import_chalk43.default.dim(store2.store.id)})
130800
+ Billing State: ${store2.store.billingState === "active" ? import_chalk43.default.green("Active") : import_chalk43.default.red("Inactive")}
130713
130801
  Size: ${(0, import_bytes3.default)(store2.store.size)}${regionInfo}
130714
130802
  Created At: ${(0, import_date_fns.format)(new Date(store2.store.createdAt), dateTimeFormat2)}
130715
130803
  Updated At: ${(0, import_date_fns.format)(new Date(store2.store.updatedAt), dateTimeFormat2)}
@@ -130722,7 +130810,7 @@ Updated At: ${(0, import_date_fns.format)(new Date(store2.store.updatedAt), date
130722
130810
  output_manager_default.stopSpinner();
130723
130811
  return 0;
130724
130812
  }
130725
- var import_bytes3, import_date_fns, import_chalk42;
130813
+ var import_bytes3, import_date_fns, import_chalk43;
130726
130814
  var init_store_get2 = __esm({
130727
130815
  "src/commands/blob/store-get.ts"() {
130728
130816
  "use strict";
@@ -130734,7 +130822,7 @@ var init_store_get2 = __esm({
130734
130822
  init_link2();
130735
130823
  init_command36();
130736
130824
  import_date_fns = __toESM3(require_date_fns());
130737
- import_chalk42 = __toESM3(require_source());
130825
+ import_chalk43 = __toESM3(require_source());
130738
130826
  init_store_get();
130739
130827
  }
130740
130828
  });
@@ -130892,33 +130980,33 @@ function findChanges(oldEnv, newEnv) {
130892
130980
  function buildDeltaString(oldEnv, newEnv) {
130893
130981
  const { added, changed, removed } = findChanges(oldEnv, newEnv);
130894
130982
  let deltaString = "";
130895
- deltaString += import_chalk43.default.green(addDeltaSection("+", changed, true));
130896
- deltaString += import_chalk43.default.green(addDeltaSection("+", added));
130897
- deltaString += import_chalk43.default.red(addDeltaSection("-", removed));
130898
- return deltaString ? import_chalk43.default.gray("Changes:\n") + deltaString + "\n" : deltaString;
130983
+ deltaString += import_chalk44.default.green(addDeltaSection("+", changed, true));
130984
+ deltaString += import_chalk44.default.green(addDeltaSection("+", added));
130985
+ deltaString += import_chalk44.default.red(addDeltaSection("-", removed));
130986
+ return deltaString ? import_chalk44.default.gray("Changes:\n") + deltaString + "\n" : deltaString;
130899
130987
  }
130900
130988
  function addDeltaSection(prefix, arr, changed = false) {
130901
130989
  if (arr.length === 0)
130902
130990
  return "";
130903
130991
  return arr.sort().map((item) => `${prefix} ${item}${changed ? " (Updated)" : ""}`).join("\n") + "\n";
130904
130992
  }
130905
- var import_fs_extra8, import_chalk43;
130993
+ var import_fs_extra8, import_chalk44;
130906
130994
  var init_diff_env_files = __esm({
130907
130995
  "src/util/env/diff-env-files.ts"() {
130908
130996
  "use strict";
130909
130997
  import_fs_extra8 = __toESM3(require_lib());
130910
130998
  init_parse_env();
130911
- import_chalk43 = __toESM3(require_source());
130999
+ import_chalk44 = __toESM3(require_source());
130912
131000
  init_output_manager();
130913
131001
  }
130914
131002
  });
130915
131003
 
130916
131004
  // src/util/output/list-item.ts
130917
- var import_chalk44, listItem, list_item_default;
131005
+ var import_chalk45, listItem, list_item_default;
130918
131006
  var init_list_item = __esm({
130919
131007
  "src/util/output/list-item.ts"() {
130920
131008
  "use strict";
130921
- import_chalk44 = __toESM3(require_source());
131009
+ import_chalk45 = __toESM3(require_source());
130922
131010
  listItem = (msg, n) => {
130923
131011
  if (!n) {
130924
131012
  n = "-";
@@ -130926,7 +131014,7 @@ var init_list_item = __esm({
130926
131014
  if (Number(n)) {
130927
131015
  n += ".";
130928
131016
  }
130929
- return `${(0, import_chalk44.default)(n.toString())} ${msg}`;
131017
+ return `${(0, import_chalk45.default)(n.toString())} ${msg}`;
130930
131018
  };
130931
131019
  list_item_default = listItem;
130932
131020
  }
@@ -145797,18 +145885,18 @@ var init_get_env_records = __esm({
145797
145885
  function formatProject(orgSlug, projectSlug, options) {
145798
145886
  const orgProjectSlug = `${orgSlug}/${projectSlug}`;
145799
145887
  const projectUrl = `https://vercel.com/${orgProjectSlug}`;
145800
- const projectSlugLink = output_manager_default.link(import_chalk45.default.bold(orgProjectSlug), projectUrl, {
145801
- fallback: () => import_chalk45.default.bold(orgProjectSlug),
145888
+ const projectSlugLink = output_manager_default.link(import_chalk46.default.bold(orgProjectSlug), projectUrl, {
145889
+ fallback: () => import_chalk46.default.bold(orgProjectSlug),
145802
145890
  color: false,
145803
145891
  ...options
145804
145892
  });
145805
145893
  return projectSlugLink;
145806
145894
  }
145807
- var import_chalk45;
145895
+ var import_chalk46;
145808
145896
  var init_format_project = __esm({
145809
145897
  "src/util/projects/format-project.ts"() {
145810
145898
  "use strict";
145811
- import_chalk45 = __toESM3(require_source());
145899
+ import_chalk46 = __toESM3(require_source());
145812
145900
  init_output_manager();
145813
145901
  }
145814
145902
  });
@@ -145951,7 +146039,7 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
145951
146039
  const head = tryReadHeadSync(fullPath, Buffer.byteLength(CONTENTS_PREFIX));
145952
146040
  const exists = typeof head !== "undefined";
145953
146041
  if (head === CONTENTS_PREFIX) {
145954
- output_manager_default.log(`Overwriting existing ${import_chalk46.default.bold(filename)} file`);
146042
+ output_manager_default.log(`Overwriting existing ${import_chalk47.default.bold(filename)} file`);
145955
146043
  } else if (exists && !skipConfirmation && !await client2.input.confirm(
145956
146044
  `Found existing file ${param(filename)}. Do you want to overwrite?`,
145957
146045
  false
@@ -145961,7 +146049,7 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
145961
146049
  }
145962
146050
  const projectSlugLink = formatProject(link4.org.slug, link4.project.name);
145963
146051
  output_manager_default.log(
145964
- `Downloading \`${import_chalk46.default.cyan(
146052
+ `Downloading \`${import_chalk47.default.cyan(
145965
146053
  environment
145966
146054
  )}\` Environment Variables for ${projectSlugLink}`
145967
146055
  );
@@ -145994,7 +146082,7 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
145994
146082
  }
145995
146083
  output_manager_default.print(
145996
146084
  `${prependEmoji(
145997
- `${exists ? "Updated" : "Created"} ${import_chalk46.default.bold(filename)} file ${isGitIgnoreUpdated ? "and added it to .gitignore" : ""} ${import_chalk46.default.gray(pullStamp())}`,
146085
+ `${exists ? "Updated" : "Created"} ${import_chalk47.default.bold(filename)} file ${isGitIgnoreUpdated ? "and added it to .gitignore" : ""} ${import_chalk47.default.gray(pullStamp())}`,
145998
146086
  emoji("success")
145999
146087
  )}
146000
146088
  `
@@ -146003,11 +146091,11 @@ async function envPullCommandLogic(client2, filename, skipConfirmation, environm
146003
146091
  function escapeValue(value) {
146004
146092
  return value ? value.replace(new RegExp("\n", "g"), "\\n").replace(new RegExp("\r", "g"), "\\r") : "";
146005
146093
  }
146006
- var import_chalk46, import_fs_extra15, import_fs5, import_path24, import_error_utils16, import_json_parse_better_errors2, CONTENTS_PREFIX, VARIABLES_TO_IGNORE;
146094
+ var import_chalk47, import_fs_extra15, import_fs5, import_path24, import_error_utils16, import_json_parse_better_errors2, CONTENTS_PREFIX, VARIABLES_TO_IGNORE;
146007
146095
  var init_pull2 = __esm({
146008
146096
  "src/commands/env/pull.ts"() {
146009
146097
  "use strict";
146010
- import_chalk46 = __toESM3(require_source());
146098
+ import_chalk47 = __toESM3(require_source());
146011
146099
  import_fs_extra15 = __toESM3(require_lib());
146012
146100
  import_fs5 = require("fs");
146013
146101
  import_path24 = require("path");
@@ -146063,7 +146151,7 @@ async function inputProject(client2, org, detectedProjectName, autoConfirm = fal
146063
146151
  );
146064
146152
  } else {
146065
146153
  if (await client2.input.confirm(
146066
- `Found project ${import_chalk47.default.cyan(
146154
+ `Found project ${import_chalk48.default.cyan(
146067
146155
  `\u201C${org.slug}/${detectedProject.name}\u201D`
146068
146156
  )}. Link to it?`,
146069
146157
  true
@@ -146108,12 +146196,12 @@ async function inputProject(client2, org, detectedProjectName, autoConfirm = fal
146108
146196
  }
146109
146197
  });
146110
146198
  }
146111
- var import_chalk47, import_slugify2;
146199
+ var import_chalk48, import_slugify2;
146112
146200
  var init_input_project = __esm({
146113
146201
  "src/util/input/input-project.ts"() {
146114
146202
  "use strict";
146115
146203
  init_get_project_by_id_or_name();
146116
- import_chalk47 = __toESM3(require_source());
146204
+ import_chalk48 = __toESM3(require_source());
146117
146205
  init_errors_ts();
146118
146206
  import_slugify2 = __toESM3(require_slugify());
146119
146207
  init_output_manager();
@@ -146126,7 +146214,7 @@ async function validateRootDirectory(cwd, path11, errorSuffix = "") {
146126
146214
  const suffix = errorSuffix ? ` ${errorSuffix}` : "";
146127
146215
  if (!pathStat) {
146128
146216
  output_manager_default.error(
146129
- `The provided path ${import_chalk48.default.cyan(
146217
+ `The provided path ${import_chalk49.default.cyan(
146130
146218
  `\u201C${humanizePath(path11)}\u201D`
146131
146219
  )} does not exist.${suffix}`
146132
146220
  );
@@ -146134,7 +146222,7 @@ async function validateRootDirectory(cwd, path11, errorSuffix = "") {
146134
146222
  }
146135
146223
  if (!pathStat.isDirectory()) {
146136
146224
  output_manager_default.error(
146137
- `The provided path ${import_chalk48.default.cyan(
146225
+ `The provided path ${import_chalk49.default.cyan(
146138
146226
  `\u201C${humanizePath(path11)}\u201D`
146139
146227
  )} is a file, but expected a directory.${suffix}`
146140
146228
  );
@@ -146142,7 +146230,7 @@ async function validateRootDirectory(cwd, path11, errorSuffix = "") {
146142
146230
  }
146143
146231
  if (!path11.startsWith(cwd)) {
146144
146232
  output_manager_default.error(
146145
- `The provided path ${import_chalk48.default.cyan(
146233
+ `The provided path ${import_chalk49.default.cyan(
146146
146234
  `\u201C${humanizePath(path11)}\u201D`
146147
146235
  )} is outside of the project.${suffix}`
146148
146236
  );
@@ -146158,7 +146246,7 @@ async function validatePaths(client2, paths) {
146158
146246
  const path11 = paths[0];
146159
146247
  const pathStat = await (0, import_fs_extra16.lstat)(path11).catch(() => null);
146160
146248
  if (!pathStat) {
146161
- output_manager_default.error(`Could not find ${import_chalk48.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}`);
146249
+ output_manager_default.error(`Could not find ${import_chalk49.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}`);
146162
146250
  return { valid: false, exitCode: 1 };
146163
146251
  }
146164
146252
  if (!pathStat.isDirectory()) {
@@ -146181,12 +146269,12 @@ async function validatePaths(client2, paths) {
146181
146269
  }
146182
146270
  return { valid: true, path: path11 };
146183
146271
  }
146184
- var import_fs_extra16, import_chalk48, import_os8;
146272
+ var import_fs_extra16, import_chalk49, import_os8;
146185
146273
  var init_validate_paths = __esm({
146186
146274
  "src/util/validate-paths.ts"() {
146187
146275
  "use strict";
146188
146276
  import_fs_extra16 = __toESM3(require_lib());
146189
- import_chalk48 = __toESM3(require_source());
146277
+ import_chalk49 = __toESM3(require_source());
146190
146278
  import_os8 = require("os");
146191
146279
  init_humanize_path();
146192
146280
  init_output_manager();
@@ -146202,7 +146290,7 @@ async function inputRootDirectory(client2, cwd, autoConfirm = false) {
146202
146290
  const rootDirectory = await client2.input.text({
146203
146291
  message: `In which directory is your code located?`,
146204
146292
  transformer: (input) => {
146205
- return `${import_chalk49.default.dim(`./`)}${input}`;
146293
+ return `${import_chalk50.default.dim(`./`)}${input}`;
146206
146294
  }
146207
146295
  });
146208
146296
  if (!rootDirectory) {
@@ -146223,12 +146311,12 @@ async function inputRootDirectory(client2, cwd, autoConfirm = false) {
146223
146311
  return normal;
146224
146312
  }
146225
146313
  }
146226
- var import_path25, import_chalk49;
146314
+ var import_path25, import_chalk50;
146227
146315
  var init_input_root_directory = __esm({
146228
146316
  "src/util/input/input-root-directory.ts"() {
146229
146317
  "use strict";
146230
146318
  import_path25 = __toESM3(require("path"));
146231
- import_chalk49 = __toESM3(require_source());
146319
+ import_chalk50 = __toESM3(require_source());
146232
146320
  init_validate_paths();
146233
146321
  }
146234
146322
  });
@@ -146267,8 +146355,8 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
146267
146355
  const override = localConfigurationOverrides[setting];
146268
146356
  if (override) {
146269
146357
  output_manager_default.print(
146270
- `${import_chalk50.default.dim(
146271
- `- ${import_chalk50.default.bold(`${settingMap[setting]}:`)} ${override}`
146358
+ `${import_chalk51.default.dim(
146359
+ `- ${import_chalk51.default.bold(`${settingMap[setting]}:`)} ${override}`
146272
146360
  )}
146273
146361
  `
146274
146362
  );
@@ -146294,13 +146382,13 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
146294
146382
  const styledFramework = (frameworkName) => {
146295
146383
  const frameworkStyle = {
146296
146384
  text: frameworkName,
146297
- color: import_chalk50.default.blue
146385
+ color: import_chalk51.default.blue
146298
146386
  };
146299
146387
  if (frameworkName === "Hono") {
146300
146388
  frameworkStyle.text = "\u{1F525} Hono";
146301
- frameworkStyle.color = import_chalk50.default.hex("#FFA500");
146389
+ frameworkStyle.color = import_chalk51.default.hex("#FFA500");
146302
146390
  }
146303
- return import_chalk50.default.bold(frameworkStyle.color(frameworkStyle.text));
146391
+ return import_chalk51.default.bold(frameworkStyle.color(frameworkStyle.text));
146304
146392
  };
146305
146393
  output_manager_default.print(
146306
146394
  !framework.slug ? `No framework detected. Default Project Settings:
@@ -146316,8 +146404,8 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
146316
146404
  const override = localConfigurationOverrides?.[setting];
146317
146405
  if (!override && defaultSetting) {
146318
146406
  output_manager_default.print(
146319
- `${import_chalk50.default.dim(
146320
- `- ${import_chalk50.default.bold(`${settingMap[setting]}:`)} ${isSettingValue(defaultSetting) ? defaultSetting.value : import_chalk50.default.italic(`${defaultSetting.placeholder}`)}`
146407
+ `${import_chalk51.default.dim(
146408
+ `- ${import_chalk51.default.bold(`${settingMap[setting]}:`)} ${isSettingValue(defaultSetting) ? defaultSetting.value : import_chalk51.default.italic(`${defaultSetting.placeholder}`)}`
146321
146409
  )}
146322
146410
  `
146323
146411
  );
@@ -146342,16 +146430,16 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
146342
146430
  for (const setting of settingFields) {
146343
146431
  const field = settingMap[setting];
146344
146432
  settings[setting] = await client2.input.text({
146345
- message: `What's your ${import_chalk50.default.bold(field)}?`
146433
+ message: `What's your ${import_chalk51.default.bold(field)}?`
146346
146434
  });
146347
146435
  }
146348
146436
  return settings;
146349
146437
  }
146350
- var import_chalk50, import_frameworks3, settingMap, settingKeys;
146438
+ var import_chalk51, import_frameworks3, settingMap, settingKeys;
146351
146439
  var init_edit_project_settings = __esm({
146352
146440
  "src/util/input/edit-project-settings.ts"() {
146353
146441
  "use strict";
146354
- import_chalk50 = __toESM3(require_source());
146442
+ import_chalk51 = __toESM3(require_source());
146355
146443
  import_frameworks3 = __toESM3(require_frameworks());
146356
146444
  init_is_setting_value();
146357
146445
  init_output_manager();
@@ -146393,7 +146481,7 @@ async function vercelAuth(client2, {
146393
146481
  autoConfirm = false
146394
146482
  }) {
146395
146483
  if (autoConfirm || await client2.input.confirm(
146396
- `Want to use the default Deployment Protection settings? ${import_chalk51.default.dim(`(Vercel Authentication: Standard Protection)`)}`,
146484
+ `Want to use the default Deployment Protection settings? ${import_chalk52.default.dim(`(Vercel Authentication: Standard Protection)`)}`,
146397
146485
  true
146398
146486
  )) {
146399
146487
  return DEFAULT_VERCEL_AUTH_SETTING;
@@ -146401,11 +146489,11 @@ async function vercelAuth(client2, {
146401
146489
  const vercelAuth2 = await client2.input.select(OPTIONS);
146402
146490
  return vercelAuth2;
146403
146491
  }
146404
- var import_chalk51, DEFAULT_VERCEL_AUTH_SETTING, OPTIONS;
146492
+ var import_chalk52, DEFAULT_VERCEL_AUTH_SETTING, OPTIONS;
146405
146493
  var init_vercel_auth = __esm({
146406
146494
  "src/util/input/vercel-auth.ts"() {
146407
146495
  "use strict";
146408
- import_chalk51 = __toESM3(require_source());
146496
+ import_chalk52 = __toESM3(require_source());
146409
146497
  DEFAULT_VERCEL_AUTH_SETTING = "standard";
146410
146498
  OPTIONS = {
146411
146499
  message: `What setting do you want to use for Vercel Authentication?`,
@@ -146459,7 +146547,7 @@ async function setupAndLink(client2, path11, {
146459
146547
  return { status: "error", exitCode: 1, reason: "HEADLESS" };
146460
146548
  }
146461
146549
  const shouldStartSetup = autoConfirm || await client2.input.confirm(
146462
- `${setupMsg} ${import_chalk52.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}?`,
146550
+ `${setupMsg} ${import_chalk53.default.cyan(`\u201C${humanizePath(path11)}\u201D`)}?`,
146463
146551
  true
146464
146552
  );
146465
146553
  if (!shouldStartSetup) {
@@ -146625,11 +146713,11 @@ async function connectGitRepository(client2, path11, project, autoConfirm, org)
146625
146713
  output_manager_default.debug(`Failed to connect git repository: ${error3}`);
146626
146714
  }
146627
146715
  }
146628
- var import_chalk52, import_fs_extra17, import_path26, import_frameworks4;
146716
+ var import_chalk53, import_fs_extra17, import_path26, import_frameworks4;
146629
146717
  var init_setup_and_link = __esm({
146630
146718
  "src/util/link/setup-and-link.ts"() {
146631
146719
  "use strict";
146632
- import_chalk52 = __toESM3(require_source());
146720
+ import_chalk53 = __toESM3(require_source());
146633
146721
  import_fs_extra17 = __toESM3(require_lib());
146634
146722
  import_path26 = require("path");
146635
146723
  init_link2();
@@ -146833,20 +146921,20 @@ async function pullCommandLogic(client2, cwd, autoConfirm, environment, flags) {
146833
146921
  const settingsStamp = stamp_default();
146834
146922
  output_manager_default.print(
146835
146923
  `${prependEmoji(
146836
- `Downloaded project settings to ${import_chalk53.default.bold(
146924
+ `Downloaded project settings to ${import_chalk54.default.bold(
146837
146925
  humanizePath((0, import_node_path3.join)(currentDirectory, VERCEL_DIR2, VERCEL_DIR_PROJECT))
146838
- )} ${import_chalk53.default.gray(settingsStamp())}`,
146926
+ )} ${import_chalk54.default.gray(settingsStamp())}`,
146839
146927
  emoji("success")
146840
146928
  )}
146841
146929
  `
146842
146930
  );
146843
146931
  return 0;
146844
146932
  }
146845
- var import_chalk53, import_node_path3;
146933
+ var import_chalk54, import_node_path3;
146846
146934
  var init_pull4 = __esm({
146847
146935
  "src/commands/pull/index.ts"() {
146848
146936
  "use strict";
146849
- import_chalk53 = __toESM3(require_source());
146937
+ import_chalk54 = __toESM3(require_source());
146850
146938
  import_node_path3 = require("path");
146851
146939
  init_emoji();
146852
146940
  init_get_args();
@@ -147423,9 +147511,9 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
147423
147511
  const relOutputDir = (0, import_path27.relative)(cwd, outputDir);
147424
147512
  output_manager_default.print(
147425
147513
  `${prependEmoji(
147426
- `Build Completed in ${import_chalk54.default.bold(
147514
+ `Build Completed in ${import_chalk55.default.bold(
147427
147515
  relOutputDir.startsWith("..") ? outputDir : relOutputDir
147428
- )} ${import_chalk54.default.gray(buildStamp())}`,
147516
+ )} ${import_chalk55.default.gray(buildStamp())}`,
147429
147517
  emoji("success")
147430
147518
  )}
147431
147519
  `
@@ -147558,11 +147646,11 @@ async function getFrameworkRoutes(framework, dirPrefix) {
147558
147646
  }
147559
147647
  return routes2;
147560
147648
  }
147561
- var import_chalk54, import_dotenv, import_fs_extra18, import_minimatch2, import_path27, import_semver3, import_build_utils13, import_client6, import_frameworks5, import_fs_detectors4, import_routing_utils2, import_promises2, InMemoryReporter;
147649
+ var import_chalk55, import_dotenv, import_fs_extra18, import_minimatch2, import_path27, import_semver3, import_build_utils13, import_client6, import_frameworks5, import_fs_detectors4, import_routing_utils2, import_promises2, InMemoryReporter;
147562
147650
  var init_build2 = __esm({
147563
147651
  "src/commands/build/index.ts"() {
147564
147652
  "use strict";
147565
- import_chalk54 = __toESM3(require_source());
147653
+ import_chalk55 = __toESM3(require_source());
147566
147654
  import_dotenv = __toESM3(require_main3());
147567
147655
  import_fs_extra18 = __toESM3(require_lib());
147568
147656
  import_minimatch2 = __toESM3(require_minimatch2());
@@ -148213,7 +148301,7 @@ async function add(client2, argv) {
148213
148301
  `Invalid number of arguments to create a custom certificate entry. Usage:`
148214
148302
  );
148215
148303
  output_manager_default.print(
148216
- ` ${import_chalk55.default.cyan(
148304
+ ` ${import_chalk56.default.cyan(
148217
148305
  `${getCommandName(
148218
148306
  "certs add --crt <domain.crt> --key <domain.key> --ca <ca.crt>"
148219
148307
  )}`
@@ -148225,9 +148313,9 @@ async function add(client2, argv) {
148225
148313
  cert = await createCertFromFile(client2, keyPath, crtPath, caPath);
148226
148314
  } else {
148227
148315
  output_manager_default.warn(
148228
- `${import_chalk55.default.cyan(
148316
+ `${import_chalk56.default.cyan(
148229
148317
  getCommandName("certs add")
148230
- )} will be soon deprecated. Please use ${import_chalk55.default.cyan(
148318
+ )} will be soon deprecated. Please use ${import_chalk56.default.cyan(
148231
148319
  getCommandName("certs issue <cn> <cns>")
148232
148320
  )} instead`
148233
148321
  );
@@ -148236,7 +148324,7 @@ async function add(client2, argv) {
148236
148324
  `Invalid number of arguments to create a custom certificate entry. Usage:`
148237
148325
  );
148238
148326
  output_manager_default.print(
148239
- ` ${import_chalk55.default.cyan(getCommandName("certs add <cn>[, <cn>]"))}
148327
+ ` ${import_chalk56.default.cyan(getCommandName("certs add <cn>[, <cn>]"))}
148240
148328
  `
148241
148329
  );
148242
148330
  return 1;
@@ -148246,7 +148334,7 @@ async function add(client2, argv) {
148246
148334
  []
148247
148335
  );
148248
148336
  output_manager_default.spinner(
148249
- `Generating a certificate for ${import_chalk55.default.bold(cns.join(", "))}`
148337
+ `Generating a certificate for ${import_chalk56.default.bold(cns.join(", "))}`
148250
148338
  );
148251
148339
  const { contextName } = await getScope(client2);
148252
148340
  cert = await createCertForCns(client2, cns, contextName);
@@ -148257,18 +148345,18 @@ async function add(client2, argv) {
148257
148345
  return 1;
148258
148346
  } else {
148259
148347
  output_manager_default.success(
148260
- `Certificate entry for ${import_chalk55.default.bold(
148348
+ `Certificate entry for ${import_chalk56.default.bold(
148261
148349
  cert.cns.join(", ")
148262
148350
  )} created ${addStamp()}`
148263
148351
  );
148264
148352
  }
148265
148353
  return 0;
148266
148354
  }
148267
- var import_chalk55, add_default;
148355
+ var import_chalk56, add_default;
148268
148356
  var init_add2 = __esm({
148269
148357
  "src/commands/certs/add.ts"() {
148270
148358
  "use strict";
148271
- import_chalk55 = __toESM3(require_source());
148359
+ import_chalk56 = __toESM3(require_source());
148272
148360
  init_get_scope();
148273
148361
  init_stamp();
148274
148362
  init_output_manager();
@@ -148286,7 +148374,7 @@ var init_add2 = __esm({
148286
148374
 
148287
148375
  // src/util/certs/finish-cert-order.ts
148288
148376
  async function startCertOrder(client2, cns, context) {
148289
- output_manager_default.spinner(`Issuing a certificate for ${import_chalk56.default.bold(cns.join(", "))}`);
148377
+ output_manager_default.spinner(`Issuing a certificate for ${import_chalk57.default.bold(cns.join(", "))}`);
148290
148378
  try {
148291
148379
  const cert = await client2.fetch("/v3/certs", {
148292
148380
  method: "PATCH",
@@ -148309,11 +148397,11 @@ async function startCertOrder(client2, cns, context) {
148309
148397
  throw err;
148310
148398
  }
148311
148399
  }
148312
- var import_chalk56;
148400
+ var import_chalk57;
148313
148401
  var init_finish_cert_order = __esm({
148314
148402
  "src/util/certs/finish-cert-order.ts"() {
148315
148403
  "use strict";
148316
- import_chalk56 = __toESM3(require_source());
148404
+ import_chalk57 = __toESM3(require_source());
148317
148405
  init_errors_ts();
148318
148406
  init_map_cert_error();
148319
148407
  init_output_manager();
@@ -148333,9 +148421,9 @@ var init_get_cns_from_args = __esm({
148333
148421
  // src/util/certs/start-cert-order.ts
148334
148422
  async function startCertOrder2(client2, cns, contextName) {
148335
148423
  output_manager_default.spinner(
148336
- `Starting certificate issuance for ${import_chalk57.default.bold(
148424
+ `Starting certificate issuance for ${import_chalk58.default.bold(
148337
148425
  cns.join(", ")
148338
- )} under ${import_chalk57.default.bold(contextName)}`
148426
+ )} under ${import_chalk58.default.bold(contextName)}`
148339
148427
  );
148340
148428
  const order = await client2.fetch("/v3/certs", {
148341
148429
  method: "PATCH",
@@ -148346,11 +148434,11 @@ async function startCertOrder2(client2, cns, contextName) {
148346
148434
  });
148347
148435
  return order;
148348
148436
  }
148349
- var import_chalk57;
148437
+ var import_chalk58;
148350
148438
  var init_start_cert_order = __esm({
148351
148439
  "src/util/certs/start-cert-order.ts"() {
148352
148440
  "use strict";
148353
- import_chalk57 = __toESM3(require_source());
148441
+ import_chalk58 = __toESM3(require_source());
148354
148442
  init_output_manager();
148355
148443
  }
148356
148444
  });
@@ -148420,7 +148508,7 @@ async function issue(client2, argv) {
148420
148508
  `Invalid number of arguments to create a custom certificate entry. Usage:`
148421
148509
  );
148422
148510
  output_manager_default.print(
148423
- ` ${import_chalk58.default.cyan(
148511
+ ` ${import_chalk59.default.cyan(
148424
148512
  getCommandName(
148425
148513
  "certs issue --crt <domain.crt> --key <domain.key> --ca <ca.crt>"
148426
148514
  )
@@ -148435,7 +148523,7 @@ async function issue(client2, argv) {
148435
148523
  return 1;
148436
148524
  }
148437
148525
  output_manager_default.success(
148438
- `Certificate entry for ${import_chalk58.default.bold(
148526
+ `Certificate entry for ${import_chalk59.default.bold(
148439
148527
  cert.cns.join(", ")
148440
148528
  )} created ${addStamp()}`
148441
148529
  );
@@ -148446,7 +148534,7 @@ async function issue(client2, argv) {
148446
148534
  `Invalid number of arguments to create a custom certificate entry. Usage:`
148447
148535
  );
148448
148536
  output_manager_default.print(
148449
- ` ${import_chalk58.default.cyan(getCommandName("certs issue <cn>[, <cn>]"))}
148537
+ ` ${import_chalk59.default.cyan(getCommandName("certs issue <cn>[, <cn>]"))}
148450
148538
  `
148451
148539
  );
148452
148540
  return 1;
@@ -148474,14 +148562,14 @@ async function issue(client2, argv) {
148474
148562
  }
148475
148563
  if (handledResult instanceof DomainPermissionDenied) {
148476
148564
  output_manager_default.error(
148477
- `You do not have permissions over domain ${import_chalk58.default.underline(
148565
+ `You do not have permissions over domain ${import_chalk59.default.underline(
148478
148566
  handledResult.meta.domain
148479
- )} under ${import_chalk58.default.bold(handledResult.meta.context)}.`
148567
+ )} under ${import_chalk59.default.bold(handledResult.meta.context)}.`
148480
148568
  );
148481
148569
  return 1;
148482
148570
  }
148483
148571
  output_manager_default.success(
148484
- `Certificate entry for ${import_chalk58.default.bold(
148572
+ `Certificate entry for ${import_chalk59.default.bold(
148485
148573
  handledResult.cns.join(", ")
148486
148574
  )} created ${addStamp()}`
148487
148575
  );
@@ -148503,7 +148591,7 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
148503
148591
  }
148504
148592
  if (pendingChallenges.length === 0) {
148505
148593
  output_manager_default.log(
148506
- `A certificate issuance for ${import_chalk58.default.bold(
148594
+ `A certificate issuance for ${import_chalk59.default.bold(
148507
148595
  cns.join(", ")
148508
148596
  )} has been started ${stamp()}`
148509
148597
  );
@@ -148512,13 +148600,13 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
148512
148600
  `
148513
148601
  );
148514
148602
  output_manager_default.print(
148515
- ` ${import_chalk58.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
148603
+ ` ${import_chalk59.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
148516
148604
  `
148517
148605
  );
148518
148606
  return 0;
148519
148607
  }
148520
148608
  output_manager_default.log(
148521
- `A certificate issuance for ${import_chalk58.default.bold(
148609
+ `A certificate issuance for ${import_chalk59.default.bold(
148522
148610
  cns.join(", ")
148523
148611
  )} has been started ${stamp()}`
148524
148612
  );
@@ -148547,7 +148635,7 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
148547
148635
  `);
148548
148636
  output_manager_default.log(`To issue the certificate once the records are added, run:`);
148549
148637
  output_manager_default.print(
148550
- ` ${import_chalk58.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
148638
+ ` ${import_chalk59.default.cyan(getCommandName(`certs issue ${cns.join(" ")}`))}
148551
148639
  `
148552
148640
  );
148553
148641
  output_manager_default.print(
@@ -148555,11 +148643,11 @@ async function runStartOrder(client2, cns, contextName, stamp, { fallingBack = f
148555
148643
  );
148556
148644
  return 0;
148557
148645
  }
148558
- var import_chalk58, import_tldts4;
148646
+ var import_chalk59, import_tldts4;
148559
148647
  var init_issue2 = __esm({
148560
148648
  "src/commands/certs/issue.ts"() {
148561
148649
  "use strict";
148562
- import_chalk58 = __toESM3(require_source());
148650
+ import_chalk59 = __toESM3(require_source());
148563
148651
  import_tldts4 = __toESM3(require_cjs7());
148564
148652
  init_errors_ts();
148565
148653
  init_create_cert_for_cns();
@@ -148651,7 +148739,7 @@ async function ls2(client2, argv) {
148651
148739
  const lsStamp = stamp_default();
148652
148740
  if (args2.length !== 0) {
148653
148741
  output_manager_default.error(
148654
- `Invalid number of arguments. Usage: ${import_chalk59.default.cyan(
148742
+ `Invalid number of arguments. Usage: ${import_chalk60.default.cyan(
148655
148743
  `${getCommandName("certs ls")}`
148656
148744
  )}`
148657
148745
  );
@@ -148660,7 +148748,7 @@ async function ls2(client2, argv) {
148660
148748
  const { certs, pagination } = await getCerts(client2, ...paginationOptions);
148661
148749
  const { contextName } = await getScope(client2);
148662
148750
  output_manager_default.log(
148663
- `${certs.length > 0 ? "Certificates" : "No certificates"} found under ${import_chalk59.default.bold(contextName)} ${lsStamp()}`
148751
+ `${certs.length > 0 ? "Certificates" : "No certificates"} found under ${import_chalk60.default.bold(contextName)} ${lsStamp()}`
148664
148752
  );
148665
148753
  if (certs.length > 0) {
148666
148754
  client2.stdout.write(formatCertsTable(certs));
@@ -148684,11 +148772,11 @@ function formatCertsTable(certsList) {
148684
148772
  }
148685
148773
  function formatCertsTableHead() {
148686
148774
  return [
148687
- import_chalk59.default.dim("id"),
148688
- import_chalk59.default.dim("cns"),
148689
- import_chalk59.default.dim("expiration"),
148690
- import_chalk59.default.dim("renew"),
148691
- import_chalk59.default.dim("age")
148775
+ import_chalk60.default.dim("id"),
148776
+ import_chalk60.default.dim("cns"),
148777
+ import_chalk60.default.dim("expiration"),
148778
+ import_chalk60.default.dim("renew"),
148779
+ import_chalk60.default.dim("age")
148692
148780
  ];
148693
148781
  }
148694
148782
  function formatCertsTableBody(certsList) {
@@ -148707,7 +148795,7 @@ function formatCertNonFirstCn(cn, multiple) {
148707
148795
  return ["", formatCertCn(cn, multiple), "", "", ""];
148708
148796
  }
148709
148797
  function formatCertCn(cn, multiple) {
148710
- return multiple ? `${import_chalk59.default.gray("-")} ${import_chalk59.default.bold(cn)}` : import_chalk59.default.bold(cn);
148798
+ return multiple ? `${import_chalk60.default.gray("-")} ${import_chalk60.default.bold(cn)}` : import_chalk60.default.bold(cn);
148711
148799
  }
148712
148800
  function formatCertFirstCn(time, cert, cn, multiple) {
148713
148801
  return [
@@ -148715,18 +148803,18 @@ function formatCertFirstCn(time, cert, cn, multiple) {
148715
148803
  formatCertCn(cn, multiple),
148716
148804
  formatExpirationDate(new Date(cert.expiration)),
148717
148805
  cert.autoRenew ? "yes" : "no",
148718
- import_chalk59.default.gray((0, import_ms7.default)(time.getTime() - new Date(cert.created).getTime()))
148806
+ import_chalk60.default.gray((0, import_ms7.default)(time.getTime() - new Date(cert.created).getTime()))
148719
148807
  ];
148720
148808
  }
148721
148809
  function formatExpirationDate(date) {
148722
148810
  const diff = date.getTime() - Date.now();
148723
- return diff < 0 ? import_chalk59.default.gray(`${(0, import_ms7.default)(-diff)} ago`) : import_chalk59.default.gray(`in ${(0, import_ms7.default)(diff)}`);
148811
+ return diff < 0 ? import_chalk60.default.gray(`${(0, import_ms7.default)(-diff)} ago`) : import_chalk60.default.gray(`in ${(0, import_ms7.default)(diff)}`);
148724
148812
  }
148725
- var import_chalk59, import_ms7, ls_default;
148813
+ var import_chalk60, import_ms7, ls_default;
148726
148814
  var init_ls3 = __esm({
148727
148815
  "src/commands/certs/ls.ts"() {
148728
148816
  "use strict";
148729
- import_chalk59 = __toESM3(require_source());
148817
+ import_chalk60 = __toESM3(require_source());
148730
148818
  import_ms7 = __toESM3(require_ms());
148731
148819
  init_table();
148732
148820
  init_get_scope();
@@ -148779,7 +148867,7 @@ var init_get_cert_by_id = __esm({
148779
148867
  async function getCustomCertsForDomain(client2, context, domain) {
148780
148868
  try {
148781
148869
  const { certs } = await client2.fetch(
148782
- `/v5/now/certs?${(0, import_querystring3.stringify)({ domain, custom: true })}`
148870
+ `/v5/now/certs?${(0, import_querystring.stringify)({ domain, custom: true })}`
148783
148871
  );
148784
148872
  return certs;
148785
148873
  } catch (err) {
@@ -148789,11 +148877,11 @@ async function getCustomCertsForDomain(client2, context, domain) {
148789
148877
  throw err;
148790
148878
  }
148791
148879
  }
148792
- var import_querystring3;
148880
+ var import_querystring;
148793
148881
  var init_get_custom_certs_for_domain = __esm({
148794
148882
  "src/util/certs/get-custom-certs-for-domain.ts"() {
148795
148883
  "use strict";
148796
- import_querystring3 = require("querystring");
148884
+ import_querystring = require("querystring");
148797
148885
  init_errors_ts();
148798
148886
  }
148799
148887
  });
@@ -148839,7 +148927,7 @@ async function rm2(client2, argv) {
148839
148927
  telemetry2.trackCliArgumentId(id);
148840
148928
  if (args2.length !== 1) {
148841
148929
  output_manager_default.error(
148842
- `Invalid number of arguments. Usage: ${import_chalk60.default.cyan(
148930
+ `Invalid number of arguments. Usage: ${import_chalk61.default.cyan(
148843
148931
  `${getCommandName("certs rm <id or cn>")}`
148844
148932
  )}`
148845
148933
  );
@@ -148856,13 +148944,13 @@ async function rm2(client2, argv) {
148856
148944
  if (certs.length === 0) {
148857
148945
  if (id.includes(".")) {
148858
148946
  output_manager_default.error(
148859
- `No custom certificates found for "${id}" under ${import_chalk60.default.bold(
148947
+ `No custom certificates found for "${id}" under ${import_chalk61.default.bold(
148860
148948
  contextName
148861
148949
  )}`
148862
148950
  );
148863
148951
  } else {
148864
148952
  output_manager_default.error(
148865
- `No certificates found by id "${id}" under ${import_chalk60.default.bold(contextName)}`
148953
+ `No certificates found by id "${id}" under ${import_chalk61.default.bold(contextName)}`
148866
148954
  );
148867
148955
  }
148868
148956
  return 1;
@@ -148877,7 +148965,7 @@ async function rm2(client2, argv) {
148877
148965
  }
148878
148966
  await Promise.all(certs.map((cert) => deleteCertById(client2, cert.uid)));
148879
148967
  output_manager_default.success(
148880
- `${import_chalk60.default.bold(
148968
+ `${import_chalk61.default.bold(
148881
148969
  (0, import_pluralize7.default)("Certificate", certs.length, true)
148882
148970
  )} removed ${rmStamp()}`
148883
148971
  );
@@ -148905,7 +148993,7 @@ function readConfirmation(client2, msg, certs) {
148905
148993
  `
148906
148994
  );
148907
148995
  output_manager_default.print(
148908
- `${import_chalk60.default.bold.red("> Are you sure?")} ${import_chalk60.default.gray("(y/N) ")}`
148996
+ `${import_chalk61.default.bold.red("> Are you sure?")} ${import_chalk61.default.gray("(y/N) ")}`
148909
148997
  );
148910
148998
  client2.stdin.on("data", (d) => {
148911
148999
  process.stdin.pause();
@@ -148916,15 +149004,15 @@ function readConfirmation(client2, msg, certs) {
148916
149004
  function formatCertRow(cert) {
148917
149005
  return [
148918
149006
  cert.uid,
148919
- import_chalk60.default.bold(cert.cns ? cert.cns.join(", ") : "\u2013"),
148920
- ...cert.created ? [import_chalk60.default.gray(`${(0, import_ms8.default)(Date.now() - new Date(cert.created).getTime())} ago`)] : []
149007
+ import_chalk61.default.bold(cert.cns ? cert.cns.join(", ") : "\u2013"),
149008
+ ...cert.created ? [import_chalk61.default.gray(`${(0, import_ms8.default)(Date.now() - new Date(cert.created).getTime())} ago`)] : []
148921
149009
  ];
148922
149010
  }
148923
- var import_chalk60, import_ms8, import_pluralize7, rm_default;
149011
+ var import_chalk61, import_ms8, import_pluralize7, rm_default;
148924
149012
  var init_rm2 = __esm({
148925
149013
  "src/commands/certs/rm.ts"() {
148926
149014
  "use strict";
148927
- import_chalk60 = __toESM3(require_source());
149015
+ import_chalk61 = __toESM3(require_source());
148928
149016
  import_ms8 = __toESM3(require_ms());
148929
149017
  import_pluralize7 = __toESM3(require_pluralize());
148930
149018
  init_table();
@@ -149170,7 +149258,7 @@ var require_jsonlines = __commonJS2({
149170
149258
  exports2.parse = function parse11(options) {
149171
149259
  return new Parser(options);
149172
149260
  };
149173
- exports2.stringify = function stringify3() {
149261
+ exports2.stringify = function stringify2() {
149174
149262
  return new Stringifier();
149175
149263
  };
149176
149264
  }
@@ -149481,7 +149569,7 @@ async function displayRuntimeLogs(client2, options, abortController) {
149481
149569
  const timeout = setTimeout(() => {
149482
149570
  abortController.abort();
149483
149571
  warn(
149484
- `${import_chalk61.default.bold(
149572
+ `${import_chalk62.default.bold(
149485
149573
  `Command automatically interrupted after ${CommandTimeout}.`
149486
149574
  )}
149487
149575
  `
@@ -149523,7 +149611,7 @@ async function displayRuntimeLogs(client2, options, abortController) {
149523
149611
  stopSpinner();
149524
149612
  if (isRuntimeLimitDelimiter(log3)) {
149525
149613
  abortController.abort();
149526
- warn(`${import_chalk61.default.bold(log3.message)}
149614
+ warn(`${import_chalk62.default.bold(log3.message)}
149527
149615
  `);
149528
149616
  return;
149529
149617
  }
@@ -149560,7 +149648,7 @@ function printBuildLog(log2, print) {
149560
149648
  return;
149561
149649
  const date = new Date(log2.created).toISOString();
149562
149650
  for (const line of colorize(sanitize(log2), log2).split("\n")) {
149563
- print(`${import_chalk61.default.dim(date)} ${line.replace("[now-builder-debug] ", "")}
149651
+ print(`${import_chalk62.default.dim(date)} ${line.replace("[now-builder-debug] ", "")}
149564
149652
  `);
149565
149653
  }
149566
149654
  }
@@ -149585,9 +149673,9 @@ function prettyPrintLogline({
149585
149673
  const date = (0, import_date_fns2.format)(timestampInMs, dateTimeFormat);
149586
149674
  const levelIcon = getLevelIcon(level);
149587
149675
  const sourceIcon = getSourceIcon(source);
149588
- const detailsLine = `${import_chalk61.default.dim(date)} ${levelIcon} ${import_chalk61.default.bold(
149676
+ const detailsLine = `${import_chalk62.default.dim(date)} ${levelIcon} ${import_chalk62.default.bold(
149589
149677
  method
149590
- )} ${import_chalk61.default.grey(status3 <= 0 ? "---" : status3)} ${import_chalk61.default.dim(
149678
+ )} ${import_chalk62.default.grey(status3 <= 0 ? "---" : status3)} ${import_chalk62.default.dim(
149591
149679
  domain
149592
149680
  )} ${sourceIcon} ${path11}`;
149593
149681
  print(
@@ -149628,17 +149716,17 @@ function sanitize(log2) {
149628
149716
  }
149629
149717
  function colorize(text, log2) {
149630
149718
  if (log2.level === "error") {
149631
- return import_chalk61.default.red(text);
149719
+ return import_chalk62.default.red(text);
149632
149720
  } else if (log2.level === "warning") {
149633
- return import_chalk61.default.yellow(text);
149721
+ return import_chalk62.default.yellow(text);
149634
149722
  }
149635
149723
  return text;
149636
149724
  }
149637
- var import_chalk61, import_date_fns2, import_ms9, import_jsonlines2, import_split2, import_url11, runtimeLogSpinnerMessage, dateTimeFormat, moreSymbol, statusWidth;
149725
+ var import_chalk62, import_date_fns2, import_ms9, import_jsonlines2, import_split2, import_url11, runtimeLogSpinnerMessage, dateTimeFormat, moreSymbol, statusWidth;
149638
149726
  var init_logs = __esm({
149639
149727
  "src/util/logs.ts"() {
149640
149728
  "use strict";
149641
- import_chalk61 = __toESM3(require_source());
149729
+ import_chalk62 = __toESM3(require_source());
149642
149730
  import_date_fns2 = __toESM3(require_date_fns());
149643
149731
  import_ms9 = __toESM3(require_ms());
149644
149732
  import_jsonlines2 = __toESM3(require_jsonlines());
@@ -149677,7 +149765,7 @@ function printInspectUrl(inspectorUrl, deployStamp) {
149677
149765
  }
149678
149766
  output_manager_default.print(
149679
149767
  prependEmoji(
149680
- `Inspect: ${import_chalk62.default.bold(inspectorUrl)} ${deployStamp()}`,
149768
+ `Inspect: ${import_chalk63.default.bold(inspectorUrl)} ${deployStamp()}`,
149681
149769
  emoji("inspect")
149682
149770
  ) + `
149683
149771
  `
@@ -149729,7 +149817,7 @@ async function processDeployment({
149729
149817
  agent,
149730
149818
  projectName
149731
149819
  };
149732
- const deployingSpinnerVal = isSettingUpProject ? "Setting up project" : `Deploying ${import_chalk62.default.bold(`${org.slug}/${projectName}`)}`;
149820
+ const deployingSpinnerVal = isSettingUpProject ? "Setting up project" : `Deploying ${import_chalk63.default.bold(`${org.slug}/${projectName}`)}`;
149733
149821
  output_manager_default.spinner(deployingSpinnerVal, 0);
149734
149822
  const indications = [];
149735
149823
  let abortController;
@@ -149766,7 +149854,7 @@ async function processDeployment({
149766
149854
  const percent = uploadedBytes / missingSize;
149767
149855
  if (percent >= nextStep) {
149768
149856
  output_manager_default.spinner(
149769
- `Uploading ${import_chalk62.default.reset(
149857
+ `Uploading ${import_chalk63.default.reset(
149770
149858
  `[${bar}] (${uploadedHuman}/${totalSizeHuman})`
149771
149859
  )}`,
149772
149860
  0
@@ -149794,7 +149882,7 @@ async function processDeployment({
149794
149882
  const previewUrl = `https://${deployment.url}`;
149795
149883
  output_manager_default.print(
149796
149884
  prependEmoji(
149797
- `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk62.default.bold(
149885
+ `${isProdDeployment ? "Production" : "Preview"}: ${import_chalk63.default.bold(
149798
149886
  previewUrl
149799
149887
  )} ${deployStamp()}`,
149800
149888
  emoji("success")
@@ -149891,14 +149979,14 @@ ${archiveSuggestionText}`
149891
149979
  }
149892
149980
  }
149893
149981
  }
149894
- var import_client7, import_error_utils18, import_bytes4, import_chalk62, archiveSuggestionText, UploadErrorMissingArchive;
149982
+ var import_client7, import_error_utils18, import_bytes4, import_chalk63, archiveSuggestionText, UploadErrorMissingArchive;
149895
149983
  var init_process_deployment = __esm({
149896
149984
  "src/util/deploy/process-deployment.ts"() {
149897
149985
  "use strict";
149898
149986
  import_client7 = __toESM3(require_dist7());
149899
149987
  import_error_utils18 = __toESM3(require_dist2());
149900
149988
  import_bytes4 = __toESM3(require_bytes());
149901
- import_chalk62 = __toESM3(require_source());
149989
+ import_chalk63 = __toESM3(require_source());
149902
149990
  init_emoji();
149903
149991
  init_logs();
149904
149992
  init_progress();
@@ -149916,17 +150004,17 @@ var init_process_deployment = __esm({
149916
150004
  });
149917
150005
 
149918
150006
  // src/util/index.ts
149919
- var import_querystring4, import_url12, import_async_retry5, import_ms10, import_node_fetch4, import_bytes5, import_chalk63, Now;
150007
+ var import_querystring2, import_url12, import_async_retry5, import_ms10, import_node_fetch4, import_bytes5, import_chalk64, Now;
149920
150008
  var init_util = __esm({
149921
150009
  "src/util/index.ts"() {
149922
150010
  "use strict";
149923
- import_querystring4 = __toESM3(require("querystring"));
150011
+ import_querystring2 = __toESM3(require("querystring"));
149924
150012
  import_url12 = require("url");
149925
150013
  import_async_retry5 = __toESM3(require_dist5());
149926
150014
  import_ms10 = __toESM3(require_ms());
149927
150015
  import_node_fetch4 = __toESM3(require_lib7());
149928
150016
  import_bytes5 = __toESM3(require_bytes());
149929
- import_chalk63 = __toESM3(require_source());
150017
+ import_chalk64 = __toESM3(require_source());
149930
150018
  init_ua();
149931
150019
  init_process_deployment();
149932
150020
  init_error2();
@@ -150039,7 +150127,7 @@ var init_util = __esm({
150039
150127
  if (sizeExceeded > 0) {
150040
150128
  warn(`${sizeExceeded} of the files exceeded the limit for your plan.`);
150041
150129
  log2(
150042
- `Please upgrade your plan here: ${import_chalk63.default.cyan(
150130
+ `Please upgrade your plan here: ${import_chalk64.default.cyan(
150043
150131
  "https://vercel.com/account/plan"
150044
150132
  )}`
150045
150133
  );
@@ -150139,7 +150227,7 @@ ${err.stack}`);
150139
150227
  const parsedUrl = (0, import_url12.parse)(_url, true);
150140
150228
  const query = parsedUrl.query;
150141
150229
  query.teamId = this.currentTeam;
150142
- _url = `${parsedUrl.pathname}?${import_querystring4.default.stringify(query)}`;
150230
+ _url = `${parsedUrl.pathname}?${import_querystring2.default.stringify(query)}`;
150143
150231
  delete opts.useCurrentTeam;
150144
150232
  }
150145
150233
  opts.headers = new import_node_fetch4.Headers(opts.headers);
@@ -150377,7 +150465,7 @@ var init_is_deploying = __esm({
150377
150465
  // src/util/suggest-next-commands.ts
150378
150466
  function suggestNextCommands(commands2) {
150379
150467
  output_manager_default.print(
150380
- import_chalk64.default.dim(
150468
+ import_chalk65.default.dim(
150381
150469
  [
150382
150470
  `Common next commands:`,
150383
150471
  ...commands2.map((command) => `- ${command}`)
@@ -150386,12 +150474,12 @@ function suggestNextCommands(commands2) {
150386
150474
  );
150387
150475
  output_manager_default.print("\n");
150388
150476
  }
150389
- var import_chalk64;
150477
+ var import_chalk65;
150390
150478
  var init_suggest_next_commands = __esm({
150391
150479
  "src/util/suggest-next-commands.ts"() {
150392
150480
  "use strict";
150393
150481
  init_output_manager();
150394
- import_chalk64 = __toESM3(require_source());
150482
+ import_chalk65 = __toESM3(require_source());
150395
150483
  }
150396
150484
  });
150397
150485
 
@@ -150438,10 +150526,10 @@ async function printDeploymentStatus({
150438
150526
  }
150439
150527
  const newline = "\n";
150440
150528
  for (const indication of indications) {
150441
- const message2 = prependEmoji(import_chalk65.default.dim(indication.payload), emoji(indication.type)) + newline;
150529
+ const message2 = prependEmoji(import_chalk66.default.dim(indication.payload), emoji(indication.type)) + newline;
150442
150530
  let link4 = "";
150443
150531
  if (indication.link)
150444
- link4 = import_chalk65.default.dim(
150532
+ link4 = import_chalk66.default.dim(
150445
150533
  `${indication.action || "Learn More"}: ${link_default(indication.link)}`
150446
150534
  ) + newline;
150447
150535
  output_manager_default.print(message2 + link4);
@@ -150458,11 +150546,11 @@ async function printDeploymentStatus({
150458
150546
  }
150459
150547
  return 0;
150460
150548
  }
150461
- var import_chalk65;
150549
+ var import_chalk66;
150462
150550
  var init_print_deployment_status = __esm({
150463
150551
  "src/util/deploy/print-deployment-status.ts"() {
150464
150552
  "use strict";
150465
- import_chalk65 = __toESM3(require_source());
150553
+ import_chalk66 = __toESM3(require_source());
150466
150554
  init_is_deploying();
150467
150555
  init_link();
150468
150556
  init_emoji();
@@ -150687,7 +150775,7 @@ function handleCreateDeployError(error3, localConfig) {
150687
150775
  }
150688
150776
  if (error3 instanceof DomainVerificationFailed) {
150689
150777
  output_manager_default.error(
150690
- `The domain used as a suffix ${import_chalk66.default.underline(
150778
+ `The domain used as a suffix ${import_chalk67.default.underline(
150691
150779
  error3.meta.domain
150692
150780
  )} is not verified and can't be used as custom suffix.`
150693
150781
  );
@@ -150695,7 +150783,7 @@ function handleCreateDeployError(error3, localConfig) {
150695
150783
  }
150696
150784
  if (error3 instanceof DomainPermissionDenied) {
150697
150785
  output_manager_default.error(
150698
- `You don't have permissions to access the domain used as a suffix ${import_chalk66.default.underline(
150786
+ `You don't have permissions to access the domain used as a suffix ${import_chalk67.default.underline(
150699
150787
  error3.meta.domain
150700
150788
  )}.`
150701
150789
  );
@@ -150721,7 +150809,7 @@ function handleCreateDeployError(error3, localConfig) {
150721
150809
  }
150722
150810
  if (error3 instanceof DomainNotVerified) {
150723
150811
  output_manager_default.error(
150724
- `The domain used as an alias ${import_chalk66.default.underline(
150812
+ `The domain used as an alias ${import_chalk67.default.underline(
150725
150813
  error3.meta.domain
150726
150814
  )} is not verified yet. Please verify it.`
150727
150815
  );
@@ -150740,7 +150828,7 @@ function handleCreateDeployError(error3, localConfig) {
150740
150828
  }
150741
150829
  return error3;
150742
150830
  }
150743
- var import_build_utils14, import_client11, import_error_utils19, import_bytes6, import_chalk66, import_fs_extra20, import_ms11, import_path31, import_detect_agent, deploy_default, addProcessEnv;
150831
+ var import_build_utils14, import_client11, import_error_utils19, import_bytes6, import_chalk67, import_fs_extra20, import_ms11, import_path31, import_detect_agent, deploy_default, addProcessEnv;
150744
150832
  var init_deploy2 = __esm({
150745
150833
  "src/commands/deploy/index.ts"() {
150746
150834
  "use strict";
@@ -150748,7 +150836,7 @@ var init_deploy2 = __esm({
150748
150836
  import_client11 = __toESM3(require_dist7());
150749
150837
  import_error_utils19 = __toESM3(require_dist2());
150750
150838
  import_bytes6 = __toESM3(require_bytes());
150751
- import_chalk66 = __toESM3(require_source());
150839
+ import_chalk67 = __toESM3(require_source());
150752
150840
  import_fs_extra20 = __toESM3(require_lib());
150753
150841
  import_ms11 = __toESM3(require_ms());
150754
150842
  import_path31 = require("path");
@@ -151280,15 +151368,15 @@ ${err.stack}`);
151280
151368
  val = process.env[key];
151281
151369
  if (typeof val === "string") {
151282
151370
  log2(
151283
- `Reading ${import_chalk66.default.bold(
151284
- `"${import_chalk66.default.bold(key)}"`
151371
+ `Reading ${import_chalk67.default.bold(
151372
+ `"${import_chalk67.default.bold(key)}"`
151285
151373
  )} from your env (as no value was specified)`
151286
151374
  );
151287
151375
  env[key] = val.replace(/^@/, "\\@");
151288
151376
  } else {
151289
151377
  throw new Error(
151290
- `No value specified for env variable ${import_chalk66.default.bold(
151291
- `"${import_chalk66.default.bold(key)}"`
151378
+ `No value specified for env variable ${import_chalk67.default.bold(
151379
+ `"${import_chalk67.default.bold(key)}"`
151292
151380
  )} and it was not found in your env. If you meant to specify an environment to deploy to, use ${param("--target")}`
151293
151381
  );
151294
151382
  }
@@ -169044,7 +169132,7 @@ function buildMatchEquals(a, b) {
169044
169132
  return false;
169045
169133
  return true;
169046
169134
  }
169047
- var import_url15, import_http3, import_fs_extra21, import_ms13, import_chalk67, import_node_fetch6, import_pluralize9, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy, import_crypto2, import_serve_handler, import_chokidar, import_dotenv2, import_path35, import_once, import_directory, import_get_port, import_is_port_reachable, import_fast_deep_equal, import_npm_package_arg2, import_json_parse_better_errors3, import_client12, import_routing_utils5, import_build_utils17, import_fs_detectors6, import_frameworks6, import_error_utils20, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
169135
+ var import_url15, import_http3, import_fs_extra21, import_ms13, import_chalk68, import_node_fetch6, import_pluralize9, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy, import_crypto2, import_serve_handler, import_chokidar, import_dotenv2, import_path35, import_once, import_directory, import_get_port, import_is_port_reachable, import_fast_deep_equal, import_npm_package_arg2, import_json_parse_better_errors3, import_client12, import_routing_utils5, import_build_utils17, import_fs_detectors6, import_frameworks6, import_error_utils20, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
169048
169136
  var init_server = __esm({
169049
169137
  "src/util/dev/server.ts"() {
169050
169138
  "use strict";
@@ -169052,7 +169140,7 @@ var init_server = __esm({
169052
169140
  import_http3 = __toESM3(require("http"));
169053
169141
  import_fs_extra21 = __toESM3(require_lib());
169054
169142
  import_ms13 = __toESM3(require_ms());
169055
- import_chalk67 = __toESM3(require_source());
169143
+ import_chalk68 = __toESM3(require_source());
169056
169144
  import_node_fetch6 = __toESM3(require_lib7());
169057
169145
  import_pluralize9 = __toESM3(require_pluralize());
169058
169146
  import_raw_body = __toESM3(require_raw_body());
@@ -169130,7 +169218,7 @@ var init_server = __esm({
169130
169218
  return;
169131
169219
  }
169132
169220
  const method = req.method || "GET";
169133
- output_manager_default.debug(`${import_chalk67.default.bold(method)} ${req.url}`);
169221
+ output_manager_default.debug(`${import_chalk68.default.bold(method)} ${req.url}`);
169134
169222
  try {
169135
169223
  const vercelConfig = await this.getVercelConfig();
169136
169224
  await this.serveProjectAsNowV2(req, res, requestId, vercelConfig);
@@ -169332,7 +169420,7 @@ var init_server = __esm({
169332
169420
  }
169333
169421
  } catch (err) {
169334
169422
  if ((0, import_error_utils20.isSpawnError)(err) && err.code === "ENOENT") {
169335
- err.message = `Command not found: ${import_chalk67.default.cyan(
169423
+ err.message = `Command not found: ${import_chalk68.default.cyan(
169336
169424
  err.path,
169337
169425
  ...err.spawnargs
169338
169426
  )}
@@ -169589,7 +169677,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
169589
169677
  });
169590
169678
  } catch (err) {
169591
169679
  if ((0, import_error_utils20.isSpawnError)(err) && err.code === "ENOENT") {
169592
- err.message = `Command not found: ${import_chalk67.default.cyan(
169680
+ err.message = `Command not found: ${import_chalk68.default.cyan(
169593
169681
  err.path,
169594
169682
  ...err.spawnargs
169595
169683
  )}
@@ -170289,10 +170377,10 @@ Please ensure that ${cmd(err.path)} is properly installed`;
170289
170377
  */
170290
170378
  async _start(...listenSpec) {
170291
170379
  if (!import_fs_extra21.default.existsSync(this.cwd)) {
170292
- throw new Error(`${import_chalk67.default.bold(this.cwd)} doesn't exist`);
170380
+ throw new Error(`${import_chalk68.default.bold(this.cwd)} doesn't exist`);
170293
170381
  }
170294
170382
  if (!import_fs_extra21.default.lstatSync(this.cwd).isDirectory()) {
170295
- throw new Error(`${import_chalk67.default.bold(this.cwd)} is not a directory`);
170383
+ throw new Error(`${import_chalk68.default.bold(this.cwd)} is not a directory`);
170296
170384
  }
170297
170385
  const { ig } = await (0, import_client12.getVercelIgnore)(this.cwd);
170298
170386
  this.filter = ig.createFilter();
@@ -170306,14 +170394,14 @@ Please ensure that ${cmd(err.path)} is properly installed`;
170306
170394
  if (err.code === "EADDRINUSE") {
170307
170395
  if (typeof listenSpec[0] === "number") {
170308
170396
  output_manager_default.note(
170309
- `Requested port ${import_chalk67.default.yellow(
170397
+ `Requested port ${import_chalk68.default.yellow(
170310
170398
  String(listenSpec[0])
170311
170399
  )} is already in use`
170312
170400
  );
170313
170401
  listenSpec[0]++;
170314
170402
  } else {
170315
170403
  output_manager_default.error(
170316
- `Requested socket ${import_chalk67.default.cyan(
170404
+ `Requested socket ${import_chalk68.default.cyan(
170317
170405
  listenSpec[0]
170318
170406
  )} is already in use`
170319
170407
  );
@@ -170705,7 +170793,7 @@ ${error_code}
170705
170793
  if (this.devProcess) {
170706
170794
  await treeKill(this.devProcess.pid);
170707
170795
  }
170708
- output_manager_default.log(`Running Dev Command ${import_chalk67.default.cyan.bold(`\u201C${devCommand2}\u201D`)}`);
170796
+ output_manager_default.log(`Running Dev Command ${import_chalk68.default.cyan.bold(`\u201C${devCommand2}\u201D`)}`);
170709
170797
  const port = await (0, import_get_port.default)();
170710
170798
  const env = (0, import_build_utils17.cloneEnv)(
170711
170799
  {
@@ -170944,7 +171032,7 @@ async function dev(client2, opts, args2, telemetry2) {
170944
171032
  envValues,
170945
171033
  "vercel-cli:dev"
170946
171034
  )) {
170947
- output_manager_default.debug(`Refreshing ${import_chalk68.default.green(VERCEL_OIDC_TOKEN)}`);
171035
+ output_manager_default.debug(`Refreshing ${import_chalk69.default.green(VERCEL_OIDC_TOKEN)}`);
170948
171036
  envValues[VERCEL_OIDC_TOKEN] = token;
170949
171037
  await devServer.runDevCommand(true);
170950
171038
  telemetry2.trackOidcTokenRefresh(++refreshCount);
@@ -170975,11 +171063,11 @@ async function dev(client2, opts, args2, telemetry2) {
170975
171063
  controller.abort();
170976
171064
  }
170977
171065
  }
170978
- var import_chalk68, import_path36, import_fs_extra22;
171066
+ var import_chalk69, import_path36, import_fs_extra22;
170979
171067
  var init_dev = __esm({
170980
171068
  "src/commands/dev/dev.ts"() {
170981
171069
  "use strict";
170982
- import_chalk68 = __toESM3(require_source());
171070
+ import_chalk69 = __toESM3(require_source());
170983
171071
  import_path36 = require("path");
170984
171072
  import_fs_extra22 = __toESM3(require_lib());
170985
171073
  init_server();
@@ -171152,17 +171240,17 @@ async function main6(client2) {
171152
171240
  function stringifyError(err) {
171153
171241
  if (err instanceof NowError) {
171154
171242
  const errMeta = JSON.stringify(err.meta, null, 2).replace(/\\n/g, "\n");
171155
- return `${import_chalk69.default.red(err.code)} ${err.message}
171243
+ return `${import_chalk70.default.red(err.code)} ${err.message}
171156
171244
  ${errMeta}`;
171157
171245
  }
171158
171246
  return err.stack;
171159
171247
  }
171160
- var import_path37, import_chalk69, import_error_utils21, COMMAND_CONFIG6;
171248
+ var import_path37, import_chalk70, import_error_utils21, COMMAND_CONFIG6;
171161
171249
  var init_dev3 = __esm({
171162
171250
  "src/commands/dev/index.ts"() {
171163
171251
  "use strict";
171164
171252
  import_path37 = __toESM3(require("path"));
171165
- import_chalk69 = __toESM3(require_source());
171253
+ import_chalk70 = __toESM3(require_source());
171166
171254
  init_get_args();
171167
171255
  init_get_subcommand();
171168
171256
  init_now_error();
@@ -171304,9 +171392,9 @@ async function getDNSData(client2, data) {
171304
171392
  const port = await getNumber(client2, `- ${type} port: `);
171305
171393
  const target = await getTrimmedString(client2, `- ${type} target: `);
171306
171394
  output_manager_default.log(
171307
- `${import_chalk70.default.cyan(name)} ${import_chalk70.default.bold(type)} ${import_chalk70.default.cyan(
171395
+ `${import_chalk71.default.cyan(name)} ${import_chalk71.default.bold(type)} ${import_chalk71.default.cyan(
171308
171396
  `${priority}`
171309
- )} ${import_chalk70.default.cyan(`${weight}`)} ${import_chalk70.default.cyan(`${port}`)} ${import_chalk70.default.cyan(
171397
+ )} ${import_chalk71.default.cyan(`${weight}`)} ${import_chalk71.default.cyan(`${port}`)} ${import_chalk71.default.cyan(
171310
171398
  target
171311
171399
  )}.`
171312
171400
  );
@@ -171325,9 +171413,9 @@ async function getDNSData(client2, data) {
171325
171413
  const mxPriority = await getNumber(client2, `- ${type} priority: `);
171326
171414
  const value2 = await getTrimmedString(client2, `- ${type} host: `);
171327
171415
  output_manager_default.log(
171328
- `${import_chalk70.default.cyan(name)} ${import_chalk70.default.bold(type)} ${import_chalk70.default.cyan(
171416
+ `${import_chalk71.default.cyan(name)} ${import_chalk71.default.bold(type)} ${import_chalk71.default.cyan(
171329
171417
  `${mxPriority}`
171330
- )} ${import_chalk70.default.cyan(value2)}`
171418
+ )} ${import_chalk71.default.cyan(value2)}`
171331
171419
  );
171332
171420
  return await verifyData(client2) ? {
171333
171421
  name,
@@ -171337,7 +171425,7 @@ async function getDNSData(client2, data) {
171337
171425
  } : null;
171338
171426
  }
171339
171427
  const value = await getTrimmedString(client2, `- ${type} value: `);
171340
- output_manager_default.log(`${import_chalk70.default.cyan(name)} ${import_chalk70.default.bold(type)} ${import_chalk70.default.cyan(value)}`);
171428
+ output_manager_default.log(`${import_chalk71.default.cyan(name)} ${import_chalk71.default.bold(type)} ${import_chalk71.default.cyan(value)}`);
171341
171429
  return await verifyData(client2) ? {
171342
171430
  name,
171343
171431
  type,
@@ -171371,11 +171459,11 @@ async function getTrimmedString(client2, label) {
171371
171459
  });
171372
171460
  return res.trim();
171373
171461
  }
171374
- var import_chalk70, RECORD_TYPES;
171462
+ var import_chalk71, RECORD_TYPES;
171375
171463
  var init_get_dns_data = __esm({
171376
171464
  "src/util/dns/get-dns-data.ts"() {
171377
171465
  "use strict";
171378
- import_chalk70 = __toESM3(require_source());
171466
+ import_chalk71 = __toESM3(require_source());
171379
171467
  init_output_manager();
171380
171468
  RECORD_TYPES = ["A", "AAAA", "ALIAS", "CAA", "CNAME", "MX", "SRV", "TXT"];
171381
171469
  }
@@ -171448,7 +171536,7 @@ async function add2(client2, argv) {
171448
171536
  const parsedParams = parseAddArgs(args2);
171449
171537
  if (!parsedParams) {
171450
171538
  output_manager_default.error(
171451
- `Invalid number of arguments. See: ${import_chalk71.default.cyan(
171539
+ `Invalid number of arguments. See: ${import_chalk72.default.cyan(
171452
171540
  `${getCommandName("dns --help")}`
171453
171541
  )} for usage.`
171454
171542
  );
@@ -171475,23 +171563,23 @@ async function add2(client2, argv) {
171475
171563
  const record = await addDNSRecord(client2, domain, data);
171476
171564
  if (record instanceof DomainNotFound) {
171477
171565
  output_manager_default.error(
171478
- `The domain ${domain} can't be found under ${import_chalk71.default.bold(
171566
+ `The domain ${domain} can't be found under ${import_chalk72.default.bold(
171479
171567
  contextName
171480
- )} ${import_chalk71.default.gray(addStamp())}`
171568
+ )} ${import_chalk72.default.gray(addStamp())}`
171481
171569
  );
171482
171570
  return 1;
171483
171571
  }
171484
171572
  if (record instanceof DNSPermissionDenied) {
171485
171573
  output_manager_default.error(
171486
- `You don't have permissions to add records to domain ${domain} under ${import_chalk71.default.bold(
171574
+ `You don't have permissions to add records to domain ${domain} under ${import_chalk72.default.bold(
171487
171575
  contextName
171488
- )} ${import_chalk71.default.gray(addStamp())}`
171576
+ )} ${import_chalk72.default.gray(addStamp())}`
171489
171577
  );
171490
171578
  return 1;
171491
171579
  }
171492
171580
  if (record instanceof DNSInvalidPort) {
171493
171581
  output_manager_default.error(
171494
- `Invalid <port> parameter. A number was expected ${import_chalk71.default.gray(
171582
+ `Invalid <port> parameter. A number was expected ${import_chalk72.default.gray(
171495
171583
  addStamp()
171496
171584
  )}`
171497
171585
  );
@@ -171499,7 +171587,7 @@ async function add2(client2, argv) {
171499
171587
  }
171500
171588
  if (record instanceof DNSInvalidType) {
171501
171589
  output_manager_default.error(
171502
- `Invalid <type> parameter "${record.meta.type}". Expected one of A, AAAA, ALIAS, CAA, CNAME, MX, SRV, TXT ${import_chalk71.default.gray(
171590
+ `Invalid <type> parameter "${record.meta.type}". Expected one of A, AAAA, ALIAS, CAA, CNAME, MX, SRV, TXT ${import_chalk72.default.gray(
171503
171591
  addStamp()
171504
171592
  )}`
171505
171593
  );
@@ -171510,17 +171598,17 @@ async function add2(client2, argv) {
171510
171598
  return 1;
171511
171599
  }
171512
171600
  output_manager_default.success(
171513
- `DNS record for domain ${import_chalk71.default.bold(domain)} ${import_chalk71.default.gray(
171601
+ `DNS record for domain ${import_chalk72.default.bold(domain)} ${import_chalk72.default.gray(
171514
171602
  `(${record.uid})`
171515
- )} created under ${import_chalk71.default.bold(contextName)} ${import_chalk71.default.gray(addStamp())}`
171603
+ )} created under ${import_chalk72.default.bold(contextName)} ${import_chalk72.default.gray(addStamp())}`
171516
171604
  );
171517
171605
  return 0;
171518
171606
  }
171519
- var import_chalk71;
171607
+ var import_chalk72;
171520
171608
  var init_add4 = __esm({
171521
171609
  "src/commands/dns/add.ts"() {
171522
171610
  "use strict";
171523
- import_chalk71 = __toESM3(require_source());
171611
+ import_chalk72 = __toESM3(require_source());
171524
171612
  init_errors_ts();
171525
171613
  init_add_dns_record();
171526
171614
  init_get_scope();
@@ -171540,7 +171628,7 @@ var init_add4 = __esm({
171540
171628
  // src/util/dns/import-zonefile.ts
171541
171629
  async function importZonefile(client2, contextName, domain, zonefilePath) {
171542
171630
  output_manager_default.spinner(
171543
- `Importing Zone file for domain ${domain} under ${import_chalk72.default.bold(contextName)}`
171631
+ `Importing Zone file for domain ${domain} under ${import_chalk73.default.bold(contextName)}`
171544
171632
  );
171545
171633
  const zonefile = (0, import_fs7.readFileSync)((0, import_path38.resolve)(zonefilePath), "utf8");
171546
171634
  try {
@@ -171567,11 +171655,11 @@ async function importZonefile(client2, contextName, domain, zonefilePath) {
171567
171655
  throw err;
171568
171656
  }
171569
171657
  }
171570
- var import_chalk72, import_fs7, import_path38;
171658
+ var import_chalk73, import_fs7, import_path38;
171571
171659
  var init_import_zonefile = __esm({
171572
171660
  "src/util/dns/import-zonefile.ts"() {
171573
171661
  "use strict";
171574
- import_chalk72 = __toESM3(require_source());
171662
+ import_chalk73 = __toESM3(require_source());
171575
171663
  import_fs7 = require("fs");
171576
171664
  import_path38 = require("path");
171577
171665
  init_errors_ts();
@@ -171626,7 +171714,7 @@ async function importZone(client2, argv) {
171626
171714
  });
171627
171715
  if (args2.length !== 2) {
171628
171716
  output_manager_default.error(
171629
- `Invalid number of arguments. Usage: ${import_chalk73.default.cyan(
171717
+ `Invalid number of arguments. Usage: ${import_chalk74.default.cyan(
171630
171718
  `${getCommandName("dns import <domain> <zonefile>")}`
171631
171719
  )}`
171632
171720
  );
@@ -171644,32 +171732,32 @@ async function importZone(client2, argv) {
171644
171732
  );
171645
171733
  if (recordIds instanceof DomainNotFound) {
171646
171734
  output_manager_default.error(
171647
- `The domain ${domain} can't be found under ${import_chalk73.default.bold(
171735
+ `The domain ${domain} can't be found under ${import_chalk74.default.bold(
171648
171736
  contextName
171649
- )} ${import_chalk73.default.gray(addStamp())}`
171737
+ )} ${import_chalk74.default.gray(addStamp())}`
171650
171738
  );
171651
171739
  return 1;
171652
171740
  }
171653
171741
  if (recordIds instanceof InvalidDomain) {
171654
171742
  output_manager_default.error(
171655
- `The domain ${domain} doesn't match with the one found in the Zone file ${import_chalk73.default.gray(
171743
+ `The domain ${domain} doesn't match with the one found in the Zone file ${import_chalk74.default.gray(
171656
171744
  addStamp()
171657
171745
  )}`
171658
171746
  );
171659
171747
  return 1;
171660
171748
  }
171661
171749
  output_manager_default.success(
171662
- `${recordIds.length} DNS records for domain ${import_chalk73.default.bold(
171750
+ `${recordIds.length} DNS records for domain ${import_chalk74.default.bold(
171663
171751
  domain
171664
- )} created under ${import_chalk73.default.bold(contextName)} ${import_chalk73.default.gray(addStamp())}`
171752
+ )} created under ${import_chalk74.default.bold(contextName)} ${import_chalk74.default.gray(addStamp())}`
171665
171753
  );
171666
171754
  return 0;
171667
171755
  }
171668
- var import_chalk73;
171756
+ var import_chalk74;
171669
171757
  var init_import2 = __esm({
171670
171758
  "src/commands/dns/import.ts"() {
171671
171759
  "use strict";
171672
- import_chalk73 = __toESM3(require_source());
171760
+ import_chalk74 = __toESM3(require_source());
171673
171761
  init_get_scope();
171674
171762
  init_errors_ts();
171675
171763
  init_stamp();
@@ -171712,7 +171800,7 @@ function formatTable(header, align, blocks) {
171712
171800
  out += `${block.name}
171713
171801
  `;
171714
171802
  }
171715
- const rows = [header.map((s) => import_chalk74.default.dim(s))].concat(block.rows);
171803
+ const rows = [header.map((s) => import_chalk75.default.dim(s))].concat(block.rows);
171716
171804
  if (rows.length > 0) {
171717
171805
  rows[0][0] = ` ${rows[0][0]}`;
171718
171806
  for (let i = 1; i < rows.length; i++) {
@@ -171732,11 +171820,11 @@ function formatTable(header, align, blocks) {
171732
171820
  }
171733
171821
  return out.slice(0, -1);
171734
171822
  }
171735
- var import_chalk74;
171823
+ var import_chalk75;
171736
171824
  var init_format_table = __esm({
171737
171825
  "src/util/format-table.ts"() {
171738
171826
  "use strict";
171739
- import_chalk74 = __toESM3(require_source());
171827
+ import_chalk75 = __toESM3(require_source());
171740
171828
  init_table();
171741
171829
  init_strlen();
171742
171830
  }
@@ -171820,18 +171908,18 @@ function getAddDomainName(domainNames) {
171820
171908
  ];
171821
171909
  }
171822
171910
  async function getDomainNames(client2, contextName, next) {
171823
- output_manager_default.spinner(`Fetching domains under ${import_chalk75.default.bold(contextName)}`);
171911
+ output_manager_default.spinner(`Fetching domains under ${import_chalk76.default.bold(contextName)}`);
171824
171912
  const { domains: domains2, pagination } = await getDomains(client2, next);
171825
171913
  return { domainNames: domains2.map((domain) => domain.name), pagination };
171826
171914
  }
171827
- var import_chalk75;
171915
+ var import_chalk76;
171828
171916
  var init_get_dns_records = __esm({
171829
171917
  "src/util/dns/get-dns-records.ts"() {
171830
171918
  "use strict";
171831
171919
  init_errors_ts();
171832
171920
  init_get_domain_dns_records();
171833
171921
  init_get_domains();
171834
- import_chalk75 = __toESM3(require_source());
171922
+ import_chalk76 = __toESM3(require_source());
171835
171923
  init_output_manager();
171836
171924
  }
171837
171925
  });
@@ -171896,7 +171984,7 @@ async function ls3(client2, argv) {
171896
171984
  telemetry2.trackCliOptionNext(opts["--next"]);
171897
171985
  if (args2.length > 1) {
171898
171986
  output_manager_default.error(
171899
- `Invalid number of arguments. Usage: ${import_chalk76.default.cyan(
171987
+ `Invalid number of arguments. Usage: ${import_chalk77.default.cyan(
171900
171988
  `${getCommandName("dns ls [domain]")}`
171901
171989
  )}`
171902
171990
  );
@@ -171918,15 +172006,15 @@ async function ls3(client2, argv) {
171918
172006
  );
171919
172007
  if (data instanceof DomainNotFound) {
171920
172008
  output_manager_default.error(
171921
- `The domain ${domainName} can't be found under ${import_chalk76.default.bold(
172009
+ `The domain ${domainName} can't be found under ${import_chalk77.default.bold(
171922
172010
  contextName
171923
- )} ${import_chalk76.default.gray(lsStamp())}`
172011
+ )} ${import_chalk77.default.gray(lsStamp())}`
171924
172012
  );
171925
172013
  return 1;
171926
172014
  }
171927
172015
  const { records, pagination: pagination2 } = data;
171928
172016
  output_manager_default.log(
171929
- `${records.length > 0 ? "Records" : "No records"} found under ${import_chalk76.default.bold(contextName)} ${import_chalk76.default.gray(lsStamp())}`
172017
+ `${records.length > 0 ? "Records" : "No records"} found under ${import_chalk77.default.bold(contextName)} ${import_chalk77.default.gray(lsStamp())}`
171930
172018
  );
171931
172019
  client2.stdout.write(getDNSRecordsTable([{ domainName, records }]));
171932
172020
  if (pagination2 && pagination2.count === 20) {
@@ -171946,9 +172034,9 @@ async function ls3(client2, argv) {
171946
172034
  );
171947
172035
  const nRecords = dnsRecords.reduce((p, r) => r.records.length + p, 0);
171948
172036
  output_manager_default.log(
171949
- `${nRecords > 0 ? "Records" : "No records"} found under ${import_chalk76.default.bold(
172037
+ `${nRecords > 0 ? "Records" : "No records"} found under ${import_chalk77.default.bold(
171950
172038
  contextName
171951
- )} ${import_chalk76.default.gray(lsStamp())}`
172039
+ )} ${import_chalk77.default.gray(lsStamp())}`
171952
172040
  );
171953
172041
  output_manager_default.log(getDNSRecordsTable(dnsRecords));
171954
172042
  if (pagination && pagination.count === 20) {
@@ -171966,7 +172054,7 @@ function getDNSRecordsTable(dnsRecords) {
171966
172054
  ["", "id", "name", "type", "value", "created"],
171967
172055
  ["l", "r", "l", "l", "l", "l"],
171968
172056
  dnsRecords.map(({ domainName, records }) => ({
171969
- name: import_chalk76.default.bold(domainName),
172057
+ name: import_chalk77.default.bold(domainName),
171970
172058
  rows: records.map(getDNSRecordRow)
171971
172059
  }))
171972
172060
  );
@@ -171983,14 +172071,14 @@ function getDNSRecordRow(record) {
171983
172071
  record.name,
171984
172072
  record.type,
171985
172073
  priority ? `${priority} ${record.value}` : record.value,
171986
- import_chalk76.default.gray(isSystemRecord ? "default" : createdAt)
172074
+ import_chalk77.default.gray(isSystemRecord ? "default" : createdAt)
171987
172075
  ];
171988
172076
  }
171989
- var import_chalk76, import_ms15;
172077
+ var import_chalk77, import_ms15;
171990
172078
  var init_ls5 = __esm({
171991
172079
  "src/commands/dns/ls.ts"() {
171992
172080
  "use strict";
171993
- import_chalk76 = __toESM3(require_source());
172081
+ import_chalk77 = __toESM3(require_source());
171994
172082
  import_ms15 = __toESM3(require_ms());
171995
172083
  init_errors_ts();
171996
172084
  init_format_table();
@@ -172075,7 +172163,7 @@ async function rm3(client2, argv) {
172075
172163
  const [recordId] = args2;
172076
172164
  if (args2.length !== 1) {
172077
172165
  output_manager_default.error(
172078
- `Invalid number of arguments. Usage: ${import_chalk77.default.cyan(
172166
+ `Invalid number of arguments. Usage: ${import_chalk78.default.cyan(
172079
172167
  `${getCommandName("dns rm <id>")}`
172080
172168
  )}`
172081
172169
  );
@@ -172101,7 +172189,7 @@ async function rm3(client2, argv) {
172101
172189
  const rmStamp = stamp_default();
172102
172190
  await deleteDNSRecordById(client2, domainName, record.id);
172103
172191
  output_manager_default.success(
172104
- `Record ${import_chalk77.default.gray(`${record.id}`)} removed ${import_chalk77.default.gray(rmStamp())}`
172192
+ `Record ${import_chalk78.default.gray(`${record.id}`)} removed ${import_chalk78.default.gray(rmStamp())}`
172105
172193
  );
172106
172194
  return 0;
172107
172195
  }
@@ -172116,7 +172204,7 @@ function readConfirmation2(client2, msg, domainName, record) {
172116
172204
  `
172117
172205
  );
172118
172206
  output_manager_default.print(
172119
- `${import_chalk77.default.bold.red("> Are you sure?")} ${import_chalk77.default.gray("(y/N) ")}`
172207
+ `${import_chalk78.default.bold.red("> Are you sure?")} ${import_chalk78.default.gray("(y/N) ")}`
172120
172208
  );
172121
172209
  client2.stdin.on("data", (d) => {
172122
172210
  process.stdin.pause();
@@ -172128,19 +172216,19 @@ function getDeleteTableRow(domainName, record) {
172128
172216
  const recordName = `${record.name.length > 0 ? `${record.name}.` : ""}${domainName}`;
172129
172217
  return [
172130
172218
  record.id,
172131
- import_chalk77.default.bold(
172219
+ import_chalk78.default.bold(
172132
172220
  `${recordName} ${record.type} ${record.value} ${record.mxPriority || ""}`
172133
172221
  ),
172134
- import_chalk77.default.gray(
172222
+ import_chalk78.default.gray(
172135
172223
  `${(0, import_ms16.default)(Date.now() - new Date(Number(record.createdAt)).getTime())} ago`
172136
172224
  )
172137
172225
  ];
172138
172226
  }
172139
- var import_chalk77, import_ms16;
172227
+ var import_chalk78, import_ms16;
172140
172228
  var init_rm4 = __esm({
172141
172229
  "src/commands/dns/rm.ts"() {
172142
172230
  "use strict";
172143
- import_chalk77 = __toESM3(require_source());
172231
+ import_chalk78 = __toESM3(require_source());
172144
172232
  import_ms16 = __toESM3(require_ms());
172145
172233
  init_table();
172146
172234
  init_delete_dns_record_by_id();
@@ -172314,16 +172402,16 @@ function formatNSTable(intendedNameservers, currentNameservers, { extraSpace = "
172314
172402
  const rows = [];
172315
172403
  for (let i = 0; i < maxLength; i++) {
172316
172404
  rows.push([
172317
- sortedIntended[i] || import_chalk78.default.gray("-"),
172318
- sortedCurrent[i] || import_chalk78.default.gray("-"),
172319
- sortedIntended[i] === sortedCurrent[i] ? import_chalk78.default.green(chars_default.tick) : import_chalk78.default.red(chars_default.cross)
172405
+ sortedIntended[i] || import_chalk79.default.gray("-"),
172406
+ sortedCurrent[i] || import_chalk79.default.gray("-"),
172407
+ sortedIntended[i] === sortedCurrent[i] ? import_chalk79.default.green(chars_default.tick) : import_chalk79.default.red(chars_default.cross)
172320
172408
  ]);
172321
172409
  }
172322
172410
  return table(
172323
172411
  [
172324
172412
  [
172325
- import_chalk78.default.gray("Intended Nameservers"),
172326
- import_chalk78.default.gray("Current Nameservers"),
172413
+ import_chalk79.default.gray("Intended Nameservers"),
172414
+ import_chalk79.default.gray("Current Nameservers"),
172327
172415
  ""
172328
172416
  ],
172329
172417
  ...rows
@@ -172331,43 +172419,16 @@ function formatNSTable(intendedNameservers, currentNameservers, { extraSpace = "
172331
172419
  { hsep: 4 }
172332
172420
  ).replace(/^(.*)/gm, `${extraSpace}$1`);
172333
172421
  }
172334
- var import_chalk78;
172422
+ var import_chalk79;
172335
172423
  var init_format_ns_table = __esm({
172336
172424
  "src/util/format-ns-table.ts"() {
172337
172425
  "use strict";
172338
- import_chalk78 = __toESM3(require_source());
172426
+ import_chalk79 = __toESM3(require_source());
172339
172427
  init_table();
172340
172428
  init_chars();
172341
172429
  }
172342
172430
  });
172343
172431
 
172344
- // src/util/domains/get-domain.ts
172345
- async function getDomain(client2, contextName, domainName) {
172346
- output_manager_default.spinner(
172347
- `Fetching domain ${domainName} under ${import_chalk79.default.bold(contextName)}`
172348
- );
172349
- try {
172350
- const { domain } = await client2.fetch(
172351
- `/v5/domains/${domainName}`
172352
- );
172353
- return domain;
172354
- } catch (err) {
172355
- if (isAPIError(err) && err.status < 500) {
172356
- return err;
172357
- }
172358
- throw err;
172359
- }
172360
- }
172361
- var import_chalk79;
172362
- var init_get_domain = __esm({
172363
- "src/util/domains/get-domain.ts"() {
172364
- "use strict";
172365
- import_chalk79 = __toESM3(require_source());
172366
- init_errors_ts();
172367
- init_output_manager();
172368
- }
172369
- });
172370
-
172371
172432
  // src/util/domains/is-public-suffix.ts
172372
172433
  function isPublicSuffix(domainName) {
172373
172434
  return domainName.endsWith(".vercel.app") || domainName.endsWith(".now.sh");
@@ -172701,16 +172762,14 @@ async function buy(client2, argv) {
172701
172762
  return 1;
172702
172763
  }
172703
172764
  const availableStamp = stamp_default();
172704
- const [domainPrice, renewalPrice] = await Promise.all([
172705
- getDomainPrice(client2, domainName),
172706
- getDomainPrice(client2, domainName, "renewal")
172707
- ]);
172765
+ const domainPrice = await getDomainPrice(client2, domainName);
172708
172766
  if (domainPrice instanceof Error) {
172709
172767
  output_manager_default.prettyError(domainPrice);
172710
172768
  return 1;
172711
172769
  }
172712
- if (renewalPrice instanceof Error) {
172713
- output_manager_default.prettyError(renewalPrice);
172770
+ const { years, purchasePrice, renewalPrice } = domainPrice;
172771
+ if (purchasePrice === null || renewalPrice === null) {
172772
+ output_manager_default.error("Domain price not found");
172714
172773
  return 1;
172715
172774
  }
172716
172775
  if (!(await getDomainStatus(client2, domainName)).available) {
@@ -172721,7 +172780,6 @@ async function buy(client2, argv) {
172721
172780
  );
172722
172781
  return 1;
172723
172782
  }
172724
- const { period, price } = domainPrice;
172725
172783
  output_manager_default.log(
172726
172784
  `The domain ${param(domainName)} is ${import_chalk83.default.underline(
172727
172785
  "available"
@@ -172732,14 +172790,14 @@ async function buy(client2, argv) {
172732
172790
  autoRenew = true;
172733
172791
  } else {
172734
172792
  if (!await client2.input.confirm(
172735
- `Buy now for ${import_chalk83.default.bold(`$${price}`)} (${`${period}yr${period > 1 ? "s" : ""}`})?`,
172793
+ `Buy now for ${import_chalk83.default.bold(`$${purchasePrice}`)} (${`${years}yr${years > 1 ? "s" : ""}`})?`,
172736
172794
  false
172737
172795
  )) {
172738
172796
  return 0;
172739
172797
  }
172740
172798
  autoRenew = await client2.input.confirm(
172741
- renewalPrice.period === 1 ? `Auto renew yearly for ${import_chalk83.default.bold(`$${price}`)}?` : `Auto renew every ${renewalPrice.period} years for ${import_chalk83.default.bold(
172742
- `$${price}`
172799
+ years === 1 ? `Auto renew yearly for ${import_chalk83.default.bold(`$${renewalPrice}`)}?` : `Auto renew every ${years} years for ${import_chalk83.default.bold(
172800
+ `$${renewalPrice}`
172743
172801
  )}?`,
172744
172802
  true
172745
172803
  );
@@ -172748,7 +172806,13 @@ async function buy(client2, argv) {
172748
172806
  const purchaseStamp = stamp_default();
172749
172807
  output_manager_default.spinner("Purchasing");
172750
172808
  try {
172751
- buyResult = await purchaseDomain(client2, domainName, price, autoRenew);
172809
+ buyResult = await purchaseDomain(
172810
+ client2,
172811
+ domainName,
172812
+ purchasePrice,
172813
+ years,
172814
+ autoRenew
172815
+ );
172752
172816
  } catch (err) {
172753
172817
  output_manager_default.error(
172754
172818
  "An unexpected error occurred while purchasing your domain. Please try again later."
@@ -172757,15 +172821,15 @@ async function buy(client2, argv) {
172757
172821
  return 1;
172758
172822
  }
172759
172823
  output_manager_default.stopSpinner();
172760
- if (buyResult instanceof SourceNotFound) {
172824
+ if (buyResult instanceof UnsupportedTLD) {
172761
172825
  output_manager_default.error(
172762
- `Could not purchase domain. Please add a payment method using the dashboard.`
172826
+ `The TLD for domain name ${buyResult.meta.domain} is not supported.`
172763
172827
  );
172764
172828
  return 1;
172765
172829
  }
172766
- if (buyResult instanceof UnsupportedTLD) {
172830
+ if (buyResult instanceof TLDNotSupportedViaCLI) {
172767
172831
  output_manager_default.error(
172768
- `The TLD for domain name ${buyResult.meta.domain} is not supported.`
172832
+ `Purchased for the TLD for domain name ${buyResult.meta.domain} are not supported via the CLI. Use the REST API or the dashboard to purchase.`
172769
172833
  );
172770
172834
  return 1;
172771
172835
  }
@@ -172777,12 +172841,6 @@ async function buy(client2, argv) {
172777
172841
  output_manager_default.error(`The domain ${buyResult.meta.domain} is not available.`);
172778
172842
  return 1;
172779
172843
  }
172780
- if (buyResult instanceof DomainServiceNotAvailable) {
172781
- output_manager_default.error(
172782
- `The domain purchase service is not available. Please try again later.`
172783
- );
172784
- return 1;
172785
- }
172786
172844
  if (buyResult instanceof UnexpectedDomainPurchaseError) {
172787
172845
  output_manager_default.error(`An unexpected error happened while performing the purchase.`);
172788
172846
  return 1;
@@ -172791,35 +172849,12 @@ async function buy(client2, argv) {
172791
172849
  output_manager_default.error(`Your card was declined.`);
172792
172850
  return 1;
172793
172851
  }
172794
- if (buyResult.pending) {
172795
- output_manager_default.success(
172796
- `Domain ${param(domainName)} order was submitted ${purchaseStamp()}`
172797
- );
172798
- output_manager_default.note(
172799
- `Your domain is processing and will be available once the order is completed.`
172800
- );
172801
- output_manager_default.print(
172802
- ` An email will be sent upon completion for you to start using your new domain.
172803
- `
172804
- );
172805
- } else {
172806
- output_manager_default.success(`Domain ${param(domainName)} purchased ${purchaseStamp()}`);
172807
- if (!buyResult.verified) {
172808
- output_manager_default.note(
172809
- `Your domain is not fully configured yet so it may appear as not verified.`
172810
- );
172811
- output_manager_default.print(
172812
- ` It might take a few minutes, but you will get an email as soon as it is ready.
172813
- `
172814
- );
172815
- } else {
172816
- output_manager_default.note(
172817
- `You may now use your domain as an alias to your deployments. Run ${getCommandName(
172818
- `alias --help`
172819
- )}`
172820
- );
172821
- }
172822
- }
172852
+ output_manager_default.success(`Domain ${param(domainName)} purchased ${purchaseStamp()}`);
172853
+ output_manager_default.note(
172854
+ `You may now use your domain as an alias to your deployments. Run ${getCommandName(
172855
+ `alias --help`
172856
+ )}`
172857
+ );
172823
172858
  return 0;
172824
172859
  }
172825
172860
  var import_chalk83, import_tldts6, import_error_utils22;
@@ -172847,31 +172882,58 @@ var init_buy2 = __esm({
172847
172882
  });
172848
172883
 
172849
172884
  // src/util/domains/transfer-in-domain.ts
172850
- async function transferInDomain(client2, name, authCode, expectedPrice) {
172885
+ async function transferInDomain(client2, name, authCode, expectedPrice, years) {
172886
+ const { team } = await getScope(client2);
172887
+ const teamParam = team ? `?teamId=${team.slug}` : "";
172851
172888
  try {
172852
- return await client2.fetch(`/v4/domains`, {
172853
- body: { method: "transfer-in", name, authCode, expectedPrice },
172854
- method: "POST"
172855
- });
172889
+ const { orderId } = await client2.fetch(
172890
+ `/v1/registrar/domains/${name}/transfer${teamParam}`,
172891
+ {
172892
+ body: {
172893
+ authCode,
172894
+ autoRenew: true,
172895
+ years,
172896
+ expectedPrice,
172897
+ contactInformation: {
172898
+ firstName: "Vercel",
172899
+ lastName: "Whois",
172900
+ email: "domains@registrar.vercel.com",
172901
+ phone: "+14153985463",
172902
+ address1: "100 First Street, Suite 2400",
172903
+ city: "San Fransisco",
172904
+ state: "CA",
172905
+ zip: "94105",
172906
+ country: "US",
172907
+ companyName: "Vercel Inc."
172908
+ }
172909
+ },
172910
+ method: "POST"
172911
+ }
172912
+ );
172913
+ const order = await pollForOrder(client2, orderId);
172914
+ if (order === null) {
172915
+ return new UnexpectedDomainTransferError(name);
172916
+ }
172917
+ if (order.status === "completed") {
172918
+ const domain = order.domains.find((domain2) => domain2.domainName === name);
172919
+ if (domain?.status === "completed") {
172920
+ return { ok: true };
172921
+ }
172922
+ }
172923
+ if (order.error?.code === "payment_failed") {
172924
+ return new DomainPaymentError();
172925
+ }
172926
+ return new UnexpectedDomainTransferError(name);
172856
172927
  } catch (err) {
172857
172928
  if (isAPIError(err)) {
172858
172929
  if (err.code === "invalid_name") {
172859
172930
  return new InvalidDomain(name);
172860
172931
  }
172861
- if (err.code === "domain_already_exists") {
172862
- return new DomainNotAvailable(name);
172863
- }
172864
- if (err.code === "not_transferable") {
172865
- return new DomainNotTransferable(name);
172866
- }
172867
- if (err.code === "invalid_auth_code") {
172868
- return new InvalidTransferAuthCode(name, authCode);
172869
- }
172870
- if (err.code === "source_not_found") {
172871
- return new SourceNotFound();
172932
+ if (err.code === "tld_not_supported") {
172933
+ return new UnsupportedTLD(name);
172872
172934
  }
172873
- if (err.code === "registration_failed") {
172874
- return new DomainRegistrationFailed(name, err.message);
172935
+ if (err.code === "domain_not_available") {
172936
+ return new DomainNotAvailable(name);
172875
172937
  }
172876
172938
  }
172877
172939
  throw err;
@@ -172881,6 +172943,8 @@ var init_transfer_in_domain = __esm({
172881
172943
  "src/util/domains/transfer-in-domain.ts"() {
172882
172944
  "use strict";
172883
172945
  init_errors_ts();
172946
+ init_get_scope();
172947
+ init_get_order();
172884
172948
  }
172885
172949
  });
172886
172950
 
@@ -172903,18 +172967,6 @@ var init_get_auth_code = __esm({
172903
172967
  }
172904
172968
  });
172905
172969
 
172906
- // src/util/domains/check-transfer.ts
172907
- async function checkTransfer(client2, name) {
172908
- return client2.fetch(
172909
- `/v4/domains/${encodeURIComponent(name)}/registry`
172910
- );
172911
- }
172912
- var init_check_transfer = __esm({
172913
- "src/util/domains/check-transfer.ts"() {
172914
- "use strict";
172915
- }
172916
- });
172917
-
172918
172970
  // src/util/is-root-domain.ts
172919
172971
  function isRootDomain(domainName) {
172920
172972
  const parsedDomain = (0, import_tldts7.parse)(domainName);
@@ -172992,19 +173044,16 @@ async function transferIn(client2, argv) {
172992
173044
  return 1;
172993
173045
  }
172994
173046
  const availableStamp = stamp_default();
172995
- const [domainPrice, { transferable, transferPolicy }] = await Promise.all([
172996
- getDomainPrice(client2, domainName, "renewal"),
172997
- checkTransfer(client2, domainName)
172998
- ]);
173047
+ const domainPrice = await getDomainPrice(client2, domainName);
172999
173048
  if (domainPrice instanceof Error) {
173000
173049
  output_manager_default.prettyError(domainPrice);
173001
173050
  return 1;
173002
173051
  }
173003
- if (!transferable) {
173052
+ const { transferPrice, years } = domainPrice;
173053
+ if (transferPrice === null) {
173004
173054
  output_manager_default.error(`The domain ${param(domainName)} is not transferable.`);
173005
173055
  return 1;
173006
173056
  }
173007
- const { price } = domainPrice;
173008
173057
  const { contextName } = await getScope(client2);
173009
173058
  output_manager_default.log(
173010
173059
  `The domain ${param(domainName)} is ${import_chalk84.default.underline(
@@ -173013,7 +173062,7 @@ async function transferIn(client2, argv) {
173013
173062
  );
173014
173063
  const authCode = await getAuthCode(client2, opts["--code"]);
173015
173064
  const shouldTransfer = await client2.input.confirm(
173016
- transferPolicy === "no-change" ? `Transfer now for ${import_chalk84.default.bold(`$${price}`)}?` : `Transfer now with 1yr renewal for ${import_chalk84.default.bold(`$${price}`)}?`,
173065
+ `Transfer now with 1yr renewal for ${import_chalk84.default.bold(`$${transferPrice}`)}?`,
173017
173066
  false
173018
173067
  );
173019
173068
  if (!shouldTransfer) {
@@ -173025,32 +173074,31 @@ async function transferIn(client2, argv) {
173025
173074
  client2,
173026
173075
  domainName,
173027
173076
  authCode,
173028
- price
173077
+ transferPrice,
173078
+ years
173029
173079
  );
173030
173080
  if (transferInResult instanceof InvalidDomain) {
173031
173081
  output_manager_default.error(`The domain ${transferInResult.meta.domain} is not valid.`);
173032
173082
  return 1;
173033
173083
  }
173034
- if (transferInResult instanceof DomainNotAvailable || transferInResult instanceof DomainNotTransferable) {
173084
+ if (transferInResult instanceof DomainNotAvailable) {
173035
173085
  output_manager_default.error(
173036
173086
  `The domain "${transferInResult.meta.domain}" is not transferable.`
173037
173087
  );
173038
173088
  return 1;
173039
173089
  }
173040
- if (transferInResult instanceof InvalidTransferAuthCode) {
173090
+ if (transferInResult instanceof UnsupportedTLD) {
173041
173091
  output_manager_default.error(
173042
- `The provided auth code does not match with the one expected by the current registar`
173092
+ `The TLD for domain name ${transferInResult.meta.domain} is not supported.`
173043
173093
  );
173044
173094
  return 1;
173045
173095
  }
173046
- if (transferInResult instanceof SourceNotFound) {
173047
- output_manager_default.error(
173048
- `Could not purchase domain. Please add a payment method using the dashboard.`
173049
- );
173096
+ if (transferInResult instanceof DomainPaymentError) {
173097
+ output_manager_default.error(`Your card was declined.`);
173050
173098
  return 1;
173051
173099
  }
173052
- if (transferInResult instanceof DomainRegistrationFailed) {
173053
- output_manager_default.error(`Could not transfer domain. ${transferInResult.message}`);
173100
+ if (transferInResult instanceof UnexpectedDomainTransferError) {
173101
+ output_manager_default.error(`An unexpected error happened while initiating the transfer.`);
173054
173102
  return 1;
173055
173103
  }
173056
173104
  output_manager_default.success(
@@ -173093,7 +173141,6 @@ var init_transfer_in2 = __esm({
173093
173141
  init_stamp();
173094
173142
  init_get_auth_code();
173095
173143
  init_get_domain_price();
173096
- init_check_transfer();
173097
173144
  init_is_root_domain();
173098
173145
  init_pkg_name();
173099
173146
  init_transfer_in();
@@ -173327,7 +173374,7 @@ async function fetchInformation({
173327
173374
  }) {
173328
173375
  const [domain, renewalPrice] = await Promise.all([
173329
173376
  getDomainByName(client2, contextName, domainName, { ignoreWait: true }),
173330
- getDomainPrice(client2, domainName, "renewal").then((res) => res instanceof Error ? null : res.price).catch(() => null)
173377
+ getDomainPrice(client2, domainName).then((res) => res instanceof Error ? null : res.renewalPrice).catch(() => null)
173331
173378
  ]);
173332
173379
  if (domain instanceof DomainNotFound) {
173333
173380
  output_manager_default.prettyError(domain);