vercel 53.4.0 → 54.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/chunks/{add-FYITUY65.js → add-XFFRWMRQ.js} +10 -8
  2. package/dist/chunks/{chunk-NF7HK5MP.js → chunk-2DFWEDF7.js} +2 -2
  3. package/dist/chunks/{chunk-GQLARSTH.js → chunk-4GQQJY5Y.js} +1 -1
  4. package/dist/chunks/{chunk-ONYQGA2O.js → chunk-4PSOOFYO.js} +2 -2
  5. package/dist/chunks/{chunk-KTULXE6M.js → chunk-4VPRHRPA.js} +3 -3
  6. package/dist/chunks/{chunk-WOWCXMTU.js → chunk-76ZNZKIN.js} +1 -3
  7. package/dist/chunks/{chunk-GCKUEAUE.js → chunk-CQANJIEC.js} +2 -2
  8. package/dist/chunks/{chunk-MW7BI4C2.js → chunk-CVDYWVCD.js} +2 -2
  9. package/dist/chunks/{chunk-KSIISCB2.js → chunk-DKD6GTQT.js} +1 -1
  10. package/dist/chunks/{chunk-IVC36JQ5.js → chunk-F2UPASLT.js} +9 -7
  11. package/dist/chunks/{chunk-Z2ES2XHU.js → chunk-FUBTAFL2.js} +2 -2
  12. package/dist/chunks/{chunk-PU7YKGJI.js → chunk-FXOKKAK2.js} +6 -6
  13. package/dist/chunks/{chunk-KM7WTYJ4.js → chunk-FXSXQHVF.js} +4 -4
  14. package/dist/chunks/{chunk-NIOGCTVR.js → chunk-IFATV36R.js} +2 -2
  15. package/dist/chunks/{chunk-KHDOCVQF.js → chunk-IIZO5JJ2.js} +1 -1
  16. package/dist/chunks/{chunk-YWCYZANP.js → chunk-J3BCJYPE.js} +6 -6
  17. package/dist/chunks/{chunk-4LDQIDKG.js → chunk-JFVGRFME.js} +2 -2
  18. package/dist/chunks/{chunk-3XU5UGVN.js → chunk-JFWE5ORG.js} +2 -2
  19. package/dist/chunks/{chunk-73EVSBLA.js → chunk-KWDV5FZH.js} +2 -2
  20. package/dist/chunks/{chunk-54T7XV3H.js → chunk-LVUE7LLE.js} +1 -1
  21. package/dist/chunks/{chunk-IS56OO2J.js → chunk-MMF4BVAP.js} +5 -5
  22. package/dist/chunks/chunk-N2T234LO.js +3144 -0
  23. package/dist/chunks/{chunk-5HTDIHTQ.js → chunk-N4WFAZKO.js} +4 -4
  24. package/dist/chunks/{chunk-ZY4YCCXG.js → chunk-N733ZD4W.js} +1 -1
  25. package/dist/chunks/{chunk-X7KU44KR.js → chunk-NYJXGEIR.js} +1 -1
  26. package/dist/chunks/chunk-P4QNYOFB.js +96 -0
  27. package/dist/chunks/{chunk-CMAHZSFA.js → chunk-PNA7EZB2.js} +6 -3
  28. package/dist/chunks/{chunk-WZO6BNJ7.js → chunk-PPIAHRII.js} +2 -2
  29. package/dist/chunks/{chunk-3NSIZGHP.js → chunk-TZMIHH5D.js} +3 -3
  30. package/dist/chunks/{chunk-EBEBY45K.js → chunk-UGXBNJMO.js} +5 -100
  31. package/dist/chunks/{chunk-AXQNAI65.js → chunk-ULXHXZCZ.js} +1 -1
  32. package/dist/chunks/{chunk-6EI6XOUG.js → chunk-UTXSTM52.js} +98 -64
  33. package/dist/chunks/{chunk-SLWOG5CX.js → chunk-UVFXUXOZ.js} +155 -84
  34. package/dist/chunks/{chunk-44EL4BJL.js → chunk-V6RCNEUA.js} +424 -2730
  35. package/dist/chunks/{chunk-LBP7YFBV.js → chunk-X775BOSL.js} +651 -3662
  36. package/dist/chunks/{chunk-7TCOOSFP.js → chunk-XNUHSM7I.js} +4 -4
  37. package/dist/chunks/{chunk-JZLADLMF.js → chunk-XVAEOG4L.js} +2 -2
  38. package/dist/chunks/{chunk-HAJ2XRTQ.js → chunk-ZAAKSLHC.js} +2 -2
  39. package/dist/chunks/{chunk-QGLS47RE.js → chunk-ZINNI4TC.js} +1 -1
  40. package/dist/chunks/{chunk-6447C5WV.js → chunk-ZKKIBUCU.js} +3 -3
  41. package/dist/chunks/cjs-DV4RM7XU.js +20743 -0
  42. package/dist/chunks/{compile-vercel-config-ED6WXKEL.js → compile-vercel-config-42PRUTEP.js} +6 -4
  43. package/dist/chunks/constants-3FSSR6E7.js +13 -0
  44. package/dist/chunks/{delete-FYRG67YL.js → delete-MXCXLO5L.js} +8 -6
  45. package/dist/chunks/{disable-T6JFY4LL.js → disable-LXQSUVY3.js} +8 -6
  46. package/dist/chunks/{discard-OLVACEPN.js → discard-CKMEANJI.js} +8 -6
  47. package/dist/chunks/{edit-JI2VCMGG.js → edit-PKYWQTN6.js} +9 -7
  48. package/dist/chunks/{enable-2W35HGRM.js → enable-IONDBJSL.js} +8 -6
  49. package/dist/chunks/exec-5MN7VTSE.js +1368 -0
  50. package/dist/chunks/{export-FFMFMPGE.js → export-YV3QFTMT.js} +8 -6
  51. package/dist/chunks/{inspect-RDRV6BUD.js → inspect-SF355FJC.js} +10 -8
  52. package/dist/chunks/{list-5WGQ7F6P.js → list-GEI7DMTS.js} +8 -6
  53. package/dist/chunks/{list-F2GP6UZ7.js → list-ZGR3WI5L.js} +13 -11
  54. package/dist/chunks/{ls-ZLHJPSZZ.js → ls-GYN5LXZK.js} +10 -8
  55. package/dist/chunks/pkg-56KRLZ5K.js +13 -0
  56. package/dist/chunks/{publish-S2PGRBDP.js → publish-3WCELCTS.js} +8 -6
  57. package/dist/chunks/{query-G5K7DLLJ.js → query-TP56OPX6.js} +12 -10
  58. package/dist/chunks/{reorder-K5VXZ7F5.js → reorder-QRNHPN5V.js} +8 -6
  59. package/dist/chunks/{restore-QJYBYUIZ.js → restore-IGN4HUFX.js} +8 -6
  60. package/dist/chunks/{rm-WCHM3XXB.js → rm-55RGOT4O.js} +10 -8
  61. package/dist/chunks/{rule-inspect-VMWUI4WH.js → rule-inspect-QVOVMKDK.js} +10 -8
  62. package/dist/chunks/{rules-SOQXK4AE.js → rules-KRCW5RQK.js} +9 -8
  63. package/dist/chunks/{schema-2H2WLFJN.js → schema-3J3IBIFA.js} +11 -9
  64. package/dist/chunks/{types-7VDI75PV.js → types-QAT6PCGL.js} +5 -4
  65. package/dist/chunks/{update-W6DZOFHV.js → update-E5UAD2DD.js} +10 -8
  66. package/dist/commands/build/index.js +71 -25
  67. package/dist/commands/deploy/index.js +66 -53
  68. package/dist/commands/dev/index.js +58 -30
  69. package/dist/commands/env/index.js +20 -18
  70. package/dist/commands/link/index.js +21 -19
  71. package/dist/commands/list/index.js +14 -12
  72. package/dist/commands-bulk.js +1817 -1449
  73. package/dist/help.js +1 -1
  74. package/dist/index.js +236 -22334
  75. package/dist/version.mjs +1 -1
  76. package/package.json +28 -24
@@ -6,20 +6,20 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  setupAndLink
9
- } from "./chunk-6EI6XOUG.js";
9
+ } from "./chunk-UTXSTM52.js";
10
10
  import {
11
11
  getLinkedProject,
12
12
  param,
13
13
  resolveProjectCwd
14
- } from "./chunk-LBP7YFBV.js";
14
+ } from "./chunk-X775BOSL.js";
15
15
  import {
16
16
  buildCommandWithYes,
17
17
  outputActionRequired
18
- } from "./chunk-AXQNAI65.js";
18
+ } from "./chunk-ULXHXZCZ.js";
19
19
  import {
20
20
  getCommandName,
21
21
  getCommandNamePlain
22
- } from "./chunk-EBEBY45K.js";
22
+ } from "./chunk-UGXBNJMO.js";
23
23
  import {
24
24
  output_manager_default
25
25
  } from "./chunk-ZQKJVHXY.js";
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_end_of_stream,
9
9
  require_once
10
- } from "./chunk-LBP7YFBV.js";
10
+ } from "./chunk-N2T234LO.js";
11
11
  import {
12
12
  require_signal_exit
13
13
  } from "./chunk-ZQKJVHXY.js";
@@ -13,7 +13,7 @@ import {
13
13
  InvalidDeploymentId,
14
14
  TooManyRequests,
15
15
  isAPIError
16
- } from "./chunk-EBEBY45K.js";
16
+ } from "./chunk-UGXBNJMO.js";
17
17
 
18
18
  // src/util/to-host.ts
19
19
  function toHost(url) {
@@ -0,0 +1,96 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ import {
8
+ __commonJS,
9
+ __require,
10
+ __toESM
11
+ } from "./chunk-TZ2YI2VH.js";
12
+
13
+ // ../../internals/get-package-json/dist/index.js
14
+ var require_dist = __commonJS({
15
+ "../../internals/get-package-json/dist/index.js"(exports, module) {
16
+ "use strict";
17
+ var __create = Object.create;
18
+ var __defProp = Object.defineProperty;
19
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
20
+ var __getOwnPropNames = Object.getOwnPropertyNames;
21
+ var __getProtoOf = Object.getPrototypeOf;
22
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
23
+ var __export = (target, all) => {
24
+ for (var name in all)
25
+ __defProp(target, name, { get: all[name], enumerable: true });
26
+ };
27
+ var __copyProps = (to, from, except, desc) => {
28
+ if (from && typeof from === "object" || typeof from === "function") {
29
+ for (let key of __getOwnPropNames(from))
30
+ if (!__hasOwnProp.call(to, key) && key !== except)
31
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
32
+ }
33
+ return to;
34
+ };
35
+ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
36
+ // If the importer is in node compatibility mode or this is not an ESM
37
+ // file that has been converted to a CommonJS file using a Babel-
38
+ // compatible transform (i.e. "__esModule" has not been set), then set
39
+ // "default" to the CommonJS "module.exports" for node compatibility.
40
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
41
+ mod
42
+ ));
43
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
44
+ var src_exports = {};
45
+ __export(src_exports, {
46
+ getPackageJSON: () => getPackageJSON2
47
+ });
48
+ module.exports = __toCommonJS(src_exports);
49
+ var import_fs = __toESM2(__require("fs"));
50
+ var import_path = __toESM2(__require("path"));
51
+ var import_url = __require("url");
52
+ var cache = /* @__PURE__ */ new Map();
53
+ function getPackageJSONPath(dir) {
54
+ return import_path.default.join(dir, "package.json");
55
+ }
56
+ function captureCallerCallSite() {
57
+ const _prepareStackTrace = Error.prepareStackTrace;
58
+ let callSite;
59
+ try {
60
+ Error.prepareStackTrace = (_, stack) => stack;
61
+ const callSites = new Error().stack;
62
+ callSite = callSites[2];
63
+ } finally {
64
+ Error.prepareStackTrace = _prepareStackTrace;
65
+ }
66
+ return callSite;
67
+ }
68
+ function getPackageJSON2() {
69
+ const callSite = captureCallerCallSite();
70
+ let filePath = callSite.getFileName() || callSite.getEvalOrigin();
71
+ if (filePath.startsWith("file://")) {
72
+ filePath = (0, import_url.fileURLToPath)(filePath);
73
+ }
74
+ let rootDir = import_path.default.dirname(filePath);
75
+ let packageJSONPath = getPackageJSONPath(rootDir);
76
+ while (!import_fs.default.existsSync(packageJSONPath)) {
77
+ rootDir = import_path.default.join(rootDir, "..");
78
+ packageJSONPath = getPackageJSONPath(rootDir);
79
+ }
80
+ let packageJSON = cache.get(packageJSONPath);
81
+ if (!packageJSON) {
82
+ packageJSON = JSON.parse(import_fs.default.readFileSync(packageJSONPath, "utf-8"));
83
+ cache.set(packageJSONPath, packageJSON);
84
+ }
85
+ return packageJSON;
86
+ }
87
+ }
88
+ });
89
+
90
+ // src/util/pkg.ts
91
+ var import_get_package_json = __toESM(require_dist(), 1);
92
+ var pkg_default = (0, import_get_package_json.getPackageJSON)();
93
+
94
+ export {
95
+ pkg_default
96
+ };
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-IB5L4LKZ.js";
10
10
  import {
11
11
  require_execa
12
- } from "./chunk-ZY4YCCXG.js";
12
+ } from "./chunk-N733ZD4W.js";
13
13
  import {
14
14
  VERCEL_DIR,
15
15
  readJSONFile,
@@ -18,12 +18,12 @@ import {
18
18
  require_lib,
19
19
  require_minimatch,
20
20
  require_pluralize
21
- } from "./chunk-LBP7YFBV.js";
21
+ } from "./chunk-X775BOSL.js";
22
22
  import {
23
23
  CantParseJSONFile,
24
24
  cmd,
25
25
  code
26
- } from "./chunk-EBEBY45K.js";
26
+ } from "./chunk-UGXBNJMO.js";
27
27
  import {
28
28
  output_manager_default,
29
29
  require_dist
@@ -11421,6 +11421,9 @@ function isFile(v) {
11421
11421
  return type === "FileRef" || type === "FileFsRef" || type === "FileBlob";
11422
11422
  }
11423
11423
  function injectServiceEnvVars(lambda, service, stripServiceRoutePrefix = false) {
11424
+ if (service?.name) {
11425
+ lambda.environment.VERCEL_SERVICE_NAME = service.name;
11426
+ }
11424
11427
  if (service?.type) {
11425
11428
  lambda.environment.VERCEL_SERVICE_TYPE = service.type;
11426
11429
  }
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  STANDARD_ENVIRONMENTS
9
- } from "./chunk-LBP7YFBV.js";
9
+ } from "./chunk-X775BOSL.js";
10
10
  import {
11
11
  getCommandName,
12
12
  require_lib
13
- } from "./chunk-EBEBY45K.js";
13
+ } from "./chunk-UGXBNJMO.js";
14
14
  import {
15
15
  output_manager_default
16
16
  } from "./chunk-ZQKJVHXY.js";
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  rulesAggregateCommand
9
- } from "./chunk-JZLADLMF.js";
9
+ } from "./chunk-XVAEOG4L.js";
10
10
  import {
11
11
  formatOption,
12
12
  limitOption
13
- } from "./chunk-GQLARSTH.js";
13
+ } from "./chunk-4GQQJY5Y.js";
14
14
  import {
15
15
  packageName
16
- } from "./chunk-EBEBY45K.js";
16
+ } from "./chunk-UGXBNJMO.js";
17
17
 
18
18
  // src/commands/alerts/command.ts
19
19
  var listSubcommand = {
@@ -4,6 +4,9 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
+ import {
8
+ pkg_default
9
+ } from "./chunk-P4QNYOFB.js";
7
10
  import {
8
11
  require_dist
9
12
  } from "./chunk-ZQKJVHXY.js";
@@ -12,103 +15,9 @@ import {
12
15
  } from "./chunk-S7KYDPEM.js";
13
16
  import {
14
17
  __commonJS,
15
- __esm,
16
- __export,
17
- __require,
18
18
  __toESM
19
19
  } from "./chunk-TZ2YI2VH.js";
20
20
 
21
- // ../../internals/get-package-json/dist/index.js
22
- var require_dist2 = __commonJS({
23
- "../../internals/get-package-json/dist/index.js"(exports, module) {
24
- "use strict";
25
- var __create = Object.create;
26
- var __defProp = Object.defineProperty;
27
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
28
- var __getOwnPropNames = Object.getOwnPropertyNames;
29
- var __getProtoOf = Object.getPrototypeOf;
30
- var __hasOwnProp = Object.prototype.hasOwnProperty;
31
- var __export2 = (target, all) => {
32
- for (var name in all)
33
- __defProp(target, name, { get: all[name], enumerable: true });
34
- };
35
- var __copyProps = (to, from, except, desc) => {
36
- if (from && typeof from === "object" || typeof from === "function") {
37
- for (let key of __getOwnPropNames(from))
38
- if (!__hasOwnProp.call(to, key) && key !== except)
39
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
40
- }
41
- return to;
42
- };
43
- var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
44
- // If the importer is in node compatibility mode or this is not an ESM
45
- // file that has been converted to a CommonJS file using a Babel-
46
- // compatible transform (i.e. "__esModule" has not been set), then set
47
- // "default" to the CommonJS "module.exports" for node compatibility.
48
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
49
- mod
50
- ));
51
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
52
- var src_exports = {};
53
- __export2(src_exports, {
54
- getPackageJSON: () => getPackageJSON2
55
- });
56
- module.exports = __toCommonJS(src_exports);
57
- var import_fs = __toESM2(__require("fs"));
58
- var import_path = __toESM2(__require("path"));
59
- var import_url = __require("url");
60
- var cache = /* @__PURE__ */ new Map();
61
- function getPackageJSONPath(dir) {
62
- return import_path.default.join(dir, "package.json");
63
- }
64
- function captureCallerCallSite() {
65
- const _prepareStackTrace = Error.prepareStackTrace;
66
- let callSite;
67
- try {
68
- Error.prepareStackTrace = (_, stack) => stack;
69
- const callSites = new Error().stack;
70
- callSite = callSites[2];
71
- } finally {
72
- Error.prepareStackTrace = _prepareStackTrace;
73
- }
74
- return callSite;
75
- }
76
- function getPackageJSON2() {
77
- const callSite = captureCallerCallSite();
78
- let filePath = callSite.getFileName() || callSite.getEvalOrigin();
79
- if (filePath.startsWith("file://")) {
80
- filePath = (0, import_url.fileURLToPath)(filePath);
81
- }
82
- let rootDir = import_path.default.dirname(filePath);
83
- let packageJSONPath = getPackageJSONPath(rootDir);
84
- while (!import_fs.default.existsSync(packageJSONPath)) {
85
- rootDir = import_path.default.join(rootDir, "..");
86
- packageJSONPath = getPackageJSONPath(rootDir);
87
- }
88
- let packageJSON = cache.get(packageJSONPath);
89
- if (!packageJSON) {
90
- packageJSON = JSON.parse(import_fs.default.readFileSync(packageJSONPath, "utf-8"));
91
- cache.set(packageJSONPath, packageJSON);
92
- }
93
- return packageJSON;
94
- }
95
- }
96
- });
97
-
98
- // src/util/pkg.ts
99
- var pkg_exports = {};
100
- __export(pkg_exports, {
101
- default: () => pkg_default
102
- });
103
- var import_get_package_json, pkg_default;
104
- var init_pkg = __esm({
105
- "src/util/pkg.ts"() {
106
- "use strict";
107
- import_get_package_json = __toESM(require_dist2(), 1);
108
- pkg_default = (0, import_get_package_json.getPackageJSON)();
109
- }
110
- });
111
-
112
21
  // ../../node_modules/.pnpm/title@3.4.1/node_modules/title/lib/lower-case.js
113
22
  var require_lower_case = __commonJS({
114
23
  "../../node_modules/.pnpm/title@3.4.1/node_modules/title/lib/lower-case.js"(exports, module) {
@@ -367,7 +276,6 @@ function cmd(text) {
367
276
 
368
277
  // src/util/pkg-name.ts
369
278
  var import_title = __toESM(require_lib(), 1);
370
- init_pkg();
371
279
  var packageName = pkg_default.name;
372
280
  function getTitleName() {
373
281
  const str = packageName;
@@ -573,11 +481,11 @@ var NotDomainOwner = class extends NowError {
573
481
  }
574
482
  };
575
483
  var InvalidDeploymentId = class extends NowError {
576
- constructor(id) {
484
+ constructor(id, message) {
577
485
  super({
578
486
  code: "INVALID_DEPLOYMENT_ID",
579
487
  meta: { id },
580
- message: `The deployment id "${id}" is not valid.`
488
+ message: message || `The deployment id "${id}" is not valid.`
581
489
  });
582
490
  }
583
491
  };
@@ -1095,9 +1003,6 @@ function stripSensitiveAuthArgs(args) {
1095
1003
  }
1096
1004
 
1097
1005
  export {
1098
- pkg_default,
1099
- pkg_exports,
1100
- init_pkg,
1101
1006
  require_lib,
1102
1007
  cmd,
1103
1008
  packageName,
@@ -10,7 +10,7 @@ import {
10
10
  isAPIError,
11
11
  packageName,
12
12
  stripSensitiveAuthArgs
13
- } from "./chunk-EBEBY45K.js";
13
+ } from "./chunk-UGXBNJMO.js";
14
14
  import {
15
15
  require_dist
16
16
  } from "./chunk-ZQKJVHXY.js";