vercel 59.4.0 → 59.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{add-73X2SKBH.js → add-MH3WV6PV.js} +12 -8
- package/dist/chunks/{add-FQMB3XPM.js → add-W3FFMTX4.js} +15 -11
- package/dist/chunks/{add-QJ3WT4FW.js → add-Z5FM6TFI.js} +18 -14
- package/dist/chunks/{build-YUYCLCXD.js → build-VYYFBJL7.js} +13 -10
- package/dist/chunks/{chunk-F7OXZLY2.js → chunk-26XDDLXM.js} +2 -2
- package/dist/chunks/{chunk-RIB4S2IB.js → chunk-3HZLXCVL.js} +1 -1
- package/dist/chunks/{chunk-UV2ZMFVG.js → chunk-47VQ6H2S.js} +1 -1
- package/dist/chunks/{chunk-O5DLWLT7.js → chunk-4JTF6RD7.js} +7 -7
- package/dist/chunks/{chunk-3KNPVXJ3.js → chunk-4KD5BYHB.js} +1 -1
- package/dist/chunks/{chunk-XLKFJPMT.js → chunk-57RHXXXG.js} +1 -1
- package/dist/chunks/chunk-5GGUB4EO.js +31 -0
- package/dist/chunks/chunk-5LX2JDZP.js +34 -0
- package/dist/chunks/chunk-7Q45OKWR.js +149 -0
- package/dist/chunks/{chunk-Y3J4VU2H.js → chunk-7XX4ZEOV.js} +2 -2
- package/dist/chunks/{chunk-JKQWQA2T.js → chunk-AINIBIP4.js} +1 -1
- package/dist/chunks/{chunk-SOFC4MLS.js → chunk-AWCID36T.js} +8 -568
- package/dist/chunks/{chunk-KAYSW4CJ.js → chunk-AWSLWAOC.js} +1 -1
- package/dist/chunks/{chunk-KDYRLN6H.js → chunk-C5HKWXRR.js} +1 -1
- package/dist/chunks/{chunk-2MF3ZAVW.js → chunk-CJV7J7B5.js} +6 -6
- package/dist/chunks/chunk-CQJRLNTX.js +104 -0
- package/dist/chunks/{chunk-PD4DYNSB.js → chunk-CSCSGSQG.js} +4 -4
- package/dist/chunks/{chunk-3L2YLLHC.js → chunk-DWIC7MRV.js} +2 -2
- package/dist/chunks/{chunk-HMJVUXE6.js → chunk-E6LFKMI2.js} +82 -509
- package/dist/chunks/{chunk-GFCTRJI5.js → chunk-EZKW5YJ2.js} +1 -1
- package/dist/chunks/{chunk-DDIZGOCK.js → chunk-FA3MO56Q.js} +6 -4
- package/dist/chunks/{chunk-Y42SPI2H.js → chunk-GUWPUX2Y.js} +5 -5
- package/dist/chunks/chunk-GY5I4AYD.js +122 -0
- package/dist/chunks/chunk-HGRWPPYB.js +18 -0
- package/dist/chunks/{chunk-NP6BQPCN.js → chunk-JJQP3PYM.js} +5 -3
- package/dist/chunks/{chunk-X6O6XJEA.js → chunk-JNU3DTEV.js} +14 -12
- package/dist/chunks/{chunk-TH2XUVDP.js → chunk-L7CEMAJG.js} +4 -2
- package/dist/chunks/{chunk-EB7NJKPL.js → chunk-LLM3ZNXJ.js} +2 -2
- package/dist/chunks/{chunk-ZFWNMVNR.js → chunk-M3OSDZPY.js} +6 -4
- package/dist/chunks/{chunk-LKTQR5JE.js → chunk-MRMNMFMD.js} +2 -2
- package/dist/chunks/{chunk-EG5BSAXD.js → chunk-MTWHQEXI.js} +1 -1
- package/dist/chunks/{chunk-WC7IINFV.js → chunk-NFU4XJIR.js} +1 -1
- package/dist/chunks/{chunk-VCE6QKFE.js → chunk-NSU2BTRS.js} +3 -3
- package/dist/chunks/chunk-OHER4DGX.js +451 -0
- package/dist/chunks/{chunk-BBSS3XIW.js → chunk-OQ3C5VXZ.js} +1 -1
- package/dist/chunks/{chunk-CHEZBD7H.js → chunk-PBHBX6UL.js} +2 -2
- package/dist/chunks/{chunk-M22O6CYY.js → chunk-POOO7W47.js} +1 -1
- package/dist/chunks/{chunk-BLYBHFIE.js → chunk-PPUWG2UB.js} +12 -8
- package/dist/chunks/chunk-Q2DGFCO7.js +579 -0
- package/dist/chunks/{chunk-HURL5EBN.js → chunk-QG4PCM45.js} +24 -148
- package/dist/chunks/{chunk-VAFU7DXZ.js → chunk-RKDCNQ4S.js} +1 -91
- package/dist/chunks/{chunk-XI6NJLI4.js → chunk-RZ5NP6HN.js} +2 -2
- package/dist/chunks/{chunk-GMWRTZVZ.js → chunk-SLPSPYVR.js} +1 -1
- package/dist/chunks/{chunk-J5Y2QGGU.js → chunk-TAZ5ZAKG.js} +1 -1
- package/dist/chunks/{chunk-KSZ4MNHO.js → chunk-TDXNNIZ6.js} +1 -1
- package/dist/chunks/{chunk-EB5NBVTV.js → chunk-TIWAL2YU.js} +6 -6
- package/dist/chunks/{chunk-HJVTLJHO.js → chunk-UUVMIXT4.js} +5 -5
- package/dist/chunks/{chunk-RI7KKKII.js → chunk-V4YLY44R.js} +3 -17
- package/dist/chunks/{chunk-O5GNPPTU.js → chunk-VP5Y3SZG.js} +1 -1
- package/dist/chunks/{chunk-2PX6N4FE.js → chunk-VWYNSJXI.js} +7 -7
- package/dist/chunks/{chunk-7QVJTI5H.js → chunk-XDGOOW3K.js} +1 -1
- package/dist/chunks/{chunk-UMA66MKW.js → chunk-XM3LOQIX.js} +1 -1
- package/dist/chunks/{chunk-VDJN4WKH.js → chunk-XRWOTCDO.js} +1 -1
- package/dist/chunks/{chunk-MWYQ24FO.js → chunk-YIHOS3ZF.js} +2 -2
- package/dist/chunks/{chunk-STPH4Y62.js → chunk-YJUO3EKH.js} +1 -1
- package/dist/chunks/chunk-ZKUHCL6O.js +249 -0
- package/dist/chunks/{clear-USQM5VW5.js → clear-TNGRDA7D.js} +12 -8
- package/dist/chunks/{compile-vercel-config-2JNYMI6W.js → compile-vercel-config-ERLXKKWW.js} +8 -5
- package/dist/chunks/config-7EDKML5Q.js +122 -0
- package/dist/chunks/{config-VTRIDLY4.js → config-H22EE765.js} +15 -11
- package/dist/chunks/{delete-VTPHK3EB.js → delete-LORYIZHY.js} +10 -7
- package/dist/chunks/{delete-ILLSBCVQ.js → delete-Q4S5F2AI.js} +12 -8
- package/dist/chunks/{disable-VTOMO64V.js → disable-HKWCBDJC.js} +10 -7
- package/dist/chunks/{discard-ZIOZ34ZI.js → discard-UCCRF2JQ.js} +10 -7
- package/dist/chunks/{edit-JMZ5XWVW.js → edit-6IM6VRBR.js} +12 -8
- package/dist/chunks/{edit-E3AMR4KM.js → edit-AWL35PYQ.js} +11 -8
- package/dist/chunks/{enable-A4PMZ7QZ.js → enable-GN3D3L3V.js} +10 -7
- package/dist/chunks/{export-Y6AJ3WRZ.js → export-HHRVFALV.js} +10 -7
- package/dist/chunks/{image-26BKPAUB.js → image-4DCU4VPP.js} +6 -5
- package/dist/chunks/{import-builders-3H7J2SEK.js → import-builders-DVG3HOTF.js} +9 -6
- package/dist/chunks/{inspect-ZW5N6O5P.js → inspect-B3OWUFLH.js} +12 -8
- package/dist/chunks/{inspect-OEY4DJRI.js → inspect-TGOJDKIT.js} +15 -11
- package/dist/chunks/{inspect-7DGKYHKW.js → inspect-TUW67CFZ.js} +15 -11
- package/dist/chunks/{inspect-N3E2PO6K.js → inspect-VLGKNHJW.js} +12 -8
- package/dist/chunks/{inspect-GJFVAZIJ.js → inspect-VPME6UC7.js} +15 -11
- package/dist/chunks/{list-DTJBW7OQ.js → list-2DPKDHRV.js} +15 -11
- package/dist/chunks/{list-MIQ5D6PM.js → list-K552ITMK.js} +15 -11
- package/dist/chunks/{list-2VTCNQEB.js → list-TK2JO7BK.js} +12 -8
- package/dist/chunks/{login-L34UHAU5.js → login-HRWEKW5P.js} +15 -11
- package/dist/chunks/{ls-OKO4IHWB.js → ls-IOXGXEY4.js} +15 -11
- package/dist/chunks/{ls-VDYUFSSC.js → ls-JSV2WZVF.js} +15 -10
- package/dist/chunks/{ls-OBUDC4SB.js → ls-M5TYGFP5.js} +15 -10
- package/dist/chunks/{ls-NCPQY4FV.js → ls-O2WYF5UL.js} +18 -13
- package/dist/chunks/ls-TM6NTZEB.js +176 -0
- package/dist/chunks/{ls-SXJFBLUT.js → ls-YIF3KLF3.js} +15 -10
- package/dist/chunks/{open-V5JDGXUP.js → open-FWAVEWGU.js} +12 -8
- package/dist/chunks/{permissions-6CPRPPBY.js → permissions-DPFYL47Z.js} +9 -8
- package/dist/chunks/{publish-R27DPHFO.js → publish-63CGFKQR.js} +10 -7
- package/dist/chunks/{push-VLVTBS42.js → push-T5ZTBW3P.js} +13 -10
- package/dist/chunks/{query-IVVRYMJN.js → query-B6O3EMEV.js} +14 -10
- package/dist/chunks/{reorder-LJ2RBZM2.js → reorder-ANV4NMKH.js} +10 -7
- package/dist/chunks/{reply-USAISZYC.js → reply-C73KGOCG.js} +12 -8
- package/dist/chunks/{resolve-CRCJYVS5.js → resolve-IHSIVPEE.js} +12 -8
- package/dist/chunks/{restore-6PBPEAMU.js → restore-GSUNXP2O.js} +10 -7
- package/dist/chunks/{rm-HHELZB7R.js → rm-4O74PS4Q.js} +12 -8
- package/dist/chunks/{rm-TWU3JR6Z.js → rm-M7IJC2WZ.js} +12 -8
- package/dist/chunks/{rm-EOD7RDSO.js → rm-PRINF4OU.js} +15 -11
- package/dist/chunks/rm-RV5SQFQA.js +317 -0
- package/dist/chunks/{rm-KGOEOWVK.js → rm-YDTK5ESZ.js} +13 -9
- package/dist/chunks/{rule-inspect-WFTVRK6B.js → rule-inspect-ZZC53FLP.js} +15 -11
- package/dist/chunks/{rules-AQYTFJI6.js → rules-SAOSSGFI.js} +10 -9
- package/dist/chunks/{schema-LUVFYPWN.js → schema-23ZFAKDU.js} +7 -5
- package/dist/chunks/{schema-ZCDCJC7E.js → schema-2Q3QRMRO.js} +11 -8
- package/dist/chunks/set-L47ZCZBJ.js +243 -0
- package/dist/chunks/{tags-RCNRFX7U.js → tags-2TWLM77N.js} +5 -4
- package/dist/chunks/{types-AJHILHO5.js → types-G3PEUIJH.js} +11 -7
- package/dist/chunks/{update-I7QGAOYF.js → update-SZH2VBD6.js} +16 -12
- package/dist/commands/build/index.js +16 -12
- package/dist/commands/deploy/index.js +41 -32
- package/dist/commands/dev/index.js +19 -15
- package/dist/commands/env/index.js +44 -35
- package/dist/commands/link/index.js +25 -20
- package/dist/commands/list/index.js +19 -12
- package/dist/commands-bulk.js +132 -125
- package/dist/help.js +1 -1
- package/dist/index.js +34 -28
- package/dist/version.mjs +1 -1
- package/package.json +47 -47
|
@@ -5,8 +5,8 @@ const require = __createRequire(import.meta.url);
|
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
getCommandName
|
|
9
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
10
10
|
import {
|
|
11
11
|
require_dist
|
|
12
12
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -18,175 +18,6 @@ import {
|
|
|
18
18
|
__toESM
|
|
19
19
|
} from "./chunk-TZ2YI2VH.js";
|
|
20
20
|
|
|
21
|
-
// ../../node_modules/.pnpm/title@3.4.1/node_modules/title/lib/lower-case.js
|
|
22
|
-
var require_lower_case = __commonJS({
|
|
23
|
-
"../../node_modules/.pnpm/title@3.4.1/node_modules/title/lib/lower-case.js"(exports, module) {
|
|
24
|
-
var conjunctions = [
|
|
25
|
-
"for",
|
|
26
|
-
"and",
|
|
27
|
-
"nor",
|
|
28
|
-
"but",
|
|
29
|
-
"or",
|
|
30
|
-
"yet",
|
|
31
|
-
"so"
|
|
32
|
-
];
|
|
33
|
-
var articles = [
|
|
34
|
-
"a",
|
|
35
|
-
"an",
|
|
36
|
-
"the"
|
|
37
|
-
];
|
|
38
|
-
var prepositions = [
|
|
39
|
-
"aboard",
|
|
40
|
-
"about",
|
|
41
|
-
"above",
|
|
42
|
-
"across",
|
|
43
|
-
"after",
|
|
44
|
-
"against",
|
|
45
|
-
"along",
|
|
46
|
-
"amid",
|
|
47
|
-
"among",
|
|
48
|
-
"anti",
|
|
49
|
-
"around",
|
|
50
|
-
"as",
|
|
51
|
-
"at",
|
|
52
|
-
"before",
|
|
53
|
-
"behind",
|
|
54
|
-
"below",
|
|
55
|
-
"beneath",
|
|
56
|
-
"beside",
|
|
57
|
-
"besides",
|
|
58
|
-
"between",
|
|
59
|
-
"beyond",
|
|
60
|
-
"but",
|
|
61
|
-
"by",
|
|
62
|
-
"concerning",
|
|
63
|
-
"considering",
|
|
64
|
-
"despite",
|
|
65
|
-
"down",
|
|
66
|
-
"during",
|
|
67
|
-
"except",
|
|
68
|
-
"excepting",
|
|
69
|
-
"excluding",
|
|
70
|
-
"following",
|
|
71
|
-
"for",
|
|
72
|
-
"from",
|
|
73
|
-
"in",
|
|
74
|
-
"inside",
|
|
75
|
-
"into",
|
|
76
|
-
"like",
|
|
77
|
-
"minus",
|
|
78
|
-
"near",
|
|
79
|
-
"of",
|
|
80
|
-
"off",
|
|
81
|
-
"on",
|
|
82
|
-
"onto",
|
|
83
|
-
"opposite",
|
|
84
|
-
"over",
|
|
85
|
-
"past",
|
|
86
|
-
"per",
|
|
87
|
-
"plus",
|
|
88
|
-
"regarding",
|
|
89
|
-
"round",
|
|
90
|
-
"save",
|
|
91
|
-
"since",
|
|
92
|
-
"than",
|
|
93
|
-
"through",
|
|
94
|
-
"to",
|
|
95
|
-
"toward",
|
|
96
|
-
"towards",
|
|
97
|
-
"under",
|
|
98
|
-
"underneath",
|
|
99
|
-
"unlike",
|
|
100
|
-
"until",
|
|
101
|
-
"up",
|
|
102
|
-
"upon",
|
|
103
|
-
"versus",
|
|
104
|
-
"via",
|
|
105
|
-
"with",
|
|
106
|
-
"within",
|
|
107
|
-
"without"
|
|
108
|
-
];
|
|
109
|
-
module.exports = /* @__PURE__ */ new Set([
|
|
110
|
-
...conjunctions,
|
|
111
|
-
...articles,
|
|
112
|
-
...prepositions
|
|
113
|
-
]);
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
// ../../node_modules/.pnpm/title@3.4.1/node_modules/title/lib/specials.js
|
|
118
|
-
var require_specials = __commonJS({
|
|
119
|
-
"../../node_modules/.pnpm/title@3.4.1/node_modules/title/lib/specials.js"(exports, module) {
|
|
120
|
-
var intended = [
|
|
121
|
-
"ZEIT",
|
|
122
|
-
"ZEIT Inc.",
|
|
123
|
-
"CLI",
|
|
124
|
-
"API",
|
|
125
|
-
"HTTP",
|
|
126
|
-
"HTTPS",
|
|
127
|
-
"JSX",
|
|
128
|
-
"DNS",
|
|
129
|
-
"URL",
|
|
130
|
-
"now.sh",
|
|
131
|
-
"now.json",
|
|
132
|
-
"CI",
|
|
133
|
-
"CDN",
|
|
134
|
-
"package.json",
|
|
135
|
-
"GitHub",
|
|
136
|
-
"CSS",
|
|
137
|
-
"JS",
|
|
138
|
-
"HTML",
|
|
139
|
-
"WordPress",
|
|
140
|
-
"JavaScript",
|
|
141
|
-
"Next.js",
|
|
142
|
-
"Node.js"
|
|
143
|
-
];
|
|
144
|
-
module.exports = intended;
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
// ../../node_modules/.pnpm/title@3.4.1/node_modules/title/lib/index.js
|
|
149
|
-
var require_lib = __commonJS({
|
|
150
|
-
"../../node_modules/.pnpm/title@3.4.1/node_modules/title/lib/index.js"(exports, module) {
|
|
151
|
-
var lowerCase = require_lower_case();
|
|
152
|
-
var specials = require_specials();
|
|
153
|
-
var regex = /(?:(?:(\s?(?:^|[.\(\)!?;:"-])\s*)(\w))|(\w))(\w*[’']*\w*)/g;
|
|
154
|
-
var convertToRegExp = (specials2) => specials2.map((s) => [new RegExp(`\\b${s}\\b`, "gi"), s]);
|
|
155
|
-
function parseMatch(match) {
|
|
156
|
-
const firstCharacter = match[0];
|
|
157
|
-
if (/\s/.test(firstCharacter)) {
|
|
158
|
-
return match.substr(1);
|
|
159
|
-
}
|
|
160
|
-
if (/[\(\)]/.test(firstCharacter)) {
|
|
161
|
-
return null;
|
|
162
|
-
}
|
|
163
|
-
return match;
|
|
164
|
-
}
|
|
165
|
-
module.exports = (str, options = {}) => {
|
|
166
|
-
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest) => {
|
|
167
|
-
const parsedMatch = parseMatch(m);
|
|
168
|
-
if (!parsedMatch) {
|
|
169
|
-
return m;
|
|
170
|
-
}
|
|
171
|
-
if (!forced) {
|
|
172
|
-
const fullLower = lower + rest;
|
|
173
|
-
if (lowerCase.has(fullLower)) {
|
|
174
|
-
return parsedMatch;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return lead + (lower || forced).toUpperCase() + rest;
|
|
178
|
-
});
|
|
179
|
-
const customSpecials = options.special || [];
|
|
180
|
-
const replace = [...specials, ...customSpecials];
|
|
181
|
-
const replaceRegExp = convertToRegExp(replace);
|
|
182
|
-
replaceRegExp.forEach(([pattern, s]) => {
|
|
183
|
-
str = str.replace(pattern, s);
|
|
184
|
-
});
|
|
185
|
-
return str;
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
|
|
190
21
|
// ../../node_modules/.pnpm/bytes@3.0.0/node_modules/bytes/index.js
|
|
191
22
|
var require_bytes = __commonJS({
|
|
192
23
|
"../../node_modules/.pnpm/bytes@3.0.0/node_modules/bytes/index.js"(exports, module) {
|
|
@@ -268,372 +99,6 @@ var require_bytes = __commonJS({
|
|
|
268
99
|
}
|
|
269
100
|
});
|
|
270
101
|
|
|
271
|
-
// src/util/output/cmd.ts
|
|
272
|
-
var import_chalk = __toESM(require_source(), 1);
|
|
273
|
-
function cmd(text) {
|
|
274
|
-
return `${import_chalk.default.gray("`")}${import_chalk.default.cyan(text)}${import_chalk.default.gray("`")}`;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// src/util/pkg-name.ts
|
|
278
|
-
var import_title = __toESM(require_lib(), 1);
|
|
279
|
-
var packageName = pkg_default.name;
|
|
280
|
-
function getTitleName() {
|
|
281
|
-
const str = packageName;
|
|
282
|
-
return (0, import_title.default)(str);
|
|
283
|
-
}
|
|
284
|
-
function getCommandName(subcommands) {
|
|
285
|
-
let vercel = packageName;
|
|
286
|
-
if (subcommands) {
|
|
287
|
-
vercel = `${vercel} ${subcommands}`;
|
|
288
|
-
}
|
|
289
|
-
return cmd(vercel);
|
|
290
|
-
}
|
|
291
|
-
function getCommandNamePlain(subcommands) {
|
|
292
|
-
return subcommands ? `${packageName} ${subcommands}` : packageName;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// src/util/get-flags-specification.ts
|
|
296
|
-
function getFlagsSpecification(options) {
|
|
297
|
-
const flagsSpecification = {};
|
|
298
|
-
for (const option of options) {
|
|
299
|
-
flagsSpecification[`--${option.name}`] = option.type;
|
|
300
|
-
if (option.shorthand) {
|
|
301
|
-
flagsSpecification[`-${option.shorthand}`] = `--${option.name}`;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
return flagsSpecification;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
// src/util/redact-args.ts
|
|
308
|
-
var SENSITIVE_AUTH_FLAG_NAMES = /* @__PURE__ */ new Set(["--token", "-t"]);
|
|
309
|
-
function normalizeFlagName(flag) {
|
|
310
|
-
if (flag.includes("=")) {
|
|
311
|
-
return flag.slice(0, flag.indexOf("="));
|
|
312
|
-
}
|
|
313
|
-
return flag;
|
|
314
|
-
}
|
|
315
|
-
function stripSensitiveAuthArgs(args) {
|
|
316
|
-
const out = [];
|
|
317
|
-
for (let i = 0; i < args.length; i++) {
|
|
318
|
-
const arg = args[i];
|
|
319
|
-
const name = normalizeFlagName(arg);
|
|
320
|
-
if (SENSITIVE_AUTH_FLAG_NAMES.has(name)) {
|
|
321
|
-
if (!arg.includes("=") && i + 1 < args.length) {
|
|
322
|
-
i++;
|
|
323
|
-
}
|
|
324
|
-
continue;
|
|
325
|
-
}
|
|
326
|
-
out.push(arg);
|
|
327
|
-
}
|
|
328
|
-
return out;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
// src/util/arg-common.ts
|
|
332
|
-
var globalCommandOptions = [
|
|
333
|
-
{
|
|
334
|
-
name: "help",
|
|
335
|
-
shorthand: "h",
|
|
336
|
-
type: Boolean,
|
|
337
|
-
description: "Output usage information",
|
|
338
|
-
deprecated: false
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
name: "version",
|
|
342
|
-
shorthand: "v",
|
|
343
|
-
type: Boolean,
|
|
344
|
-
description: "Output the version number",
|
|
345
|
-
deprecated: false
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
name: "cwd",
|
|
349
|
-
shorthand: null,
|
|
350
|
-
type: String,
|
|
351
|
-
argument: "DIR",
|
|
352
|
-
description: "Sets the current working directory for a single run of a command",
|
|
353
|
-
deprecated: false
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
name: "local-config",
|
|
357
|
-
shorthand: "A",
|
|
358
|
-
type: String,
|
|
359
|
-
argument: "FILE",
|
|
360
|
-
description: "Path to the local `vercel.json` file",
|
|
361
|
-
deprecated: false
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
name: "global-config",
|
|
365
|
-
shorthand: "Q",
|
|
366
|
-
type: String,
|
|
367
|
-
argument: "DIR",
|
|
368
|
-
description: "Path to the global `.vercel` directory",
|
|
369
|
-
deprecated: false
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
name: "debug",
|
|
373
|
-
shorthand: "d",
|
|
374
|
-
type: Boolean,
|
|
375
|
-
description: "Debug mode (default off)",
|
|
376
|
-
deprecated: false
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
name: "no-color",
|
|
380
|
-
shorthand: null,
|
|
381
|
-
type: Boolean,
|
|
382
|
-
description: "No color mode (default off)",
|
|
383
|
-
deprecated: false
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
name: "non-interactive",
|
|
387
|
-
shorthand: null,
|
|
388
|
-
type: Boolean,
|
|
389
|
-
description: "Run without interactive prompts; when an agent is detected this is the default",
|
|
390
|
-
deprecated: false
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
name: "scope",
|
|
394
|
-
shorthand: "S",
|
|
395
|
-
type: String,
|
|
396
|
-
description: "Set a custom scope",
|
|
397
|
-
deprecated: false
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
name: "token",
|
|
401
|
-
shorthand: "t",
|
|
402
|
-
type: String,
|
|
403
|
-
argument: "TOKEN",
|
|
404
|
-
description: "Login token",
|
|
405
|
-
deprecated: false
|
|
406
|
-
},
|
|
407
|
-
{ name: "team", shorthand: "T", type: String, deprecated: false },
|
|
408
|
-
{ name: "api", shorthand: null, type: String, deprecated: false }
|
|
409
|
-
];
|
|
410
|
-
var GLOBAL_CLI_FLAG_NAMES = (() => {
|
|
411
|
-
const set = /* @__PURE__ */ new Set();
|
|
412
|
-
for (const opt of globalCommandOptions) {
|
|
413
|
-
set.add(`--${opt.name}`);
|
|
414
|
-
if (opt.shorthand) {
|
|
415
|
-
set.add(`-${opt.shorthand}`);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
return set;
|
|
419
|
-
})();
|
|
420
|
-
function globalCliFlagTakesValue(flagName) {
|
|
421
|
-
const normalized = normalizeFlagName(flagName);
|
|
422
|
-
for (const opt of globalCommandOptions) {
|
|
423
|
-
if (`--${opt.name}` === normalized) {
|
|
424
|
-
return opt.type === String;
|
|
425
|
-
}
|
|
426
|
-
if (opt.shorthand && `-${opt.shorthand}` === normalized) {
|
|
427
|
-
return opt.type === String;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
return false;
|
|
431
|
-
}
|
|
432
|
-
var SUGGESTION_FLAGS_TAKING_VALUE = /* @__PURE__ */ new Set([
|
|
433
|
-
"--config",
|
|
434
|
-
"--environment",
|
|
435
|
-
"--git-branch",
|
|
436
|
-
"--id",
|
|
437
|
-
"--value",
|
|
438
|
-
"--status",
|
|
439
|
-
"--name",
|
|
440
|
-
"--slug",
|
|
441
|
-
"--version",
|
|
442
|
-
// redirects list --version
|
|
443
|
-
"--search",
|
|
444
|
-
"--format",
|
|
445
|
-
"--project",
|
|
446
|
-
"--page",
|
|
447
|
-
"--per-page"
|
|
448
|
-
]);
|
|
449
|
-
function suggestionFlagTakesSeparateValue(flagName) {
|
|
450
|
-
const name = normalizeFlagName(flagName);
|
|
451
|
-
if (globalCliFlagTakesValue(name))
|
|
452
|
-
return true;
|
|
453
|
-
return SUGGESTION_FLAGS_TAKING_VALUE.has(name);
|
|
454
|
-
}
|
|
455
|
-
function getSameSubcommandSuggestionFlags(args) {
|
|
456
|
-
const safeArgs = stripSensitiveAuthArgs(args);
|
|
457
|
-
const out = [];
|
|
458
|
-
for (let i = 0; i < safeArgs.length; i++) {
|
|
459
|
-
const a = safeArgs[i];
|
|
460
|
-
if (!a.startsWith("-"))
|
|
461
|
-
continue;
|
|
462
|
-
out.push(a);
|
|
463
|
-
if (a.includes("="))
|
|
464
|
-
continue;
|
|
465
|
-
const name = a;
|
|
466
|
-
if (suggestionFlagTakesSeparateValue(name) && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-")) {
|
|
467
|
-
out.push(safeArgs[++i]);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
return out;
|
|
471
|
-
}
|
|
472
|
-
var GLOBAL_OPTIONS = getFlagsSpecification(globalCommandOptions);
|
|
473
|
-
var arg_common_default = () => GLOBAL_OPTIONS;
|
|
474
|
-
var yesOption = {
|
|
475
|
-
name: "yes",
|
|
476
|
-
shorthand: "y",
|
|
477
|
-
type: Boolean,
|
|
478
|
-
deprecated: false,
|
|
479
|
-
description: "Accept default value for all prompts"
|
|
480
|
-
};
|
|
481
|
-
var nextOption = {
|
|
482
|
-
name: "next",
|
|
483
|
-
shorthand: "N",
|
|
484
|
-
type: Number,
|
|
485
|
-
deprecated: false,
|
|
486
|
-
description: "Show next page of results",
|
|
487
|
-
argument: "MS"
|
|
488
|
-
};
|
|
489
|
-
var confirmOption = {
|
|
490
|
-
name: "confirm",
|
|
491
|
-
shorthand: "c",
|
|
492
|
-
type: Boolean,
|
|
493
|
-
deprecated: true
|
|
494
|
-
};
|
|
495
|
-
var limitOption = {
|
|
496
|
-
name: "limit",
|
|
497
|
-
shorthand: null,
|
|
498
|
-
type: Number,
|
|
499
|
-
deprecated: false,
|
|
500
|
-
description: "Number of results to return per page (default: 20, max: 100)",
|
|
501
|
-
argument: "NUMBER"
|
|
502
|
-
};
|
|
503
|
-
var forceOption = {
|
|
504
|
-
name: "force",
|
|
505
|
-
shorthand: "f",
|
|
506
|
-
type: Boolean,
|
|
507
|
-
deprecated: false
|
|
508
|
-
};
|
|
509
|
-
var formatOption = {
|
|
510
|
-
name: "format",
|
|
511
|
-
shorthand: "F",
|
|
512
|
-
type: String,
|
|
513
|
-
argument: "FORMAT",
|
|
514
|
-
description: "Specify the output format (json)",
|
|
515
|
-
deprecated: false
|
|
516
|
-
};
|
|
517
|
-
var jsonOption = {
|
|
518
|
-
name: "json",
|
|
519
|
-
shorthand: null,
|
|
520
|
-
type: Boolean,
|
|
521
|
-
deprecated: false,
|
|
522
|
-
description: "Output as JSON"
|
|
523
|
-
};
|
|
524
|
-
var allOption = {
|
|
525
|
-
name: "all",
|
|
526
|
-
shorthand: "a",
|
|
527
|
-
type: Boolean,
|
|
528
|
-
deprecated: false,
|
|
529
|
-
description: "List resources across all projects"
|
|
530
|
-
};
|
|
531
|
-
var projectOption = {
|
|
532
|
-
name: "project",
|
|
533
|
-
shorthand: null,
|
|
534
|
-
type: String,
|
|
535
|
-
argument: "NAME_OR_ID",
|
|
536
|
-
description: "Project name or ID (defaults to the linked project)",
|
|
537
|
-
deprecated: false
|
|
538
|
-
};
|
|
539
|
-
var deploymentOption = {
|
|
540
|
-
name: "deployment",
|
|
541
|
-
shorthand: null,
|
|
542
|
-
type: String,
|
|
543
|
-
deprecated: false,
|
|
544
|
-
description: "The deployment ID or URL to target",
|
|
545
|
-
argument: "ID|URL"
|
|
546
|
-
};
|
|
547
|
-
var protectionBypassOption = {
|
|
548
|
-
name: "protection-bypass",
|
|
549
|
-
shorthand: null,
|
|
550
|
-
type: String,
|
|
551
|
-
deprecated: false,
|
|
552
|
-
description: "Protection bypass secret for accessing protected deployments",
|
|
553
|
-
argument: "SECRET"
|
|
554
|
-
};
|
|
555
|
-
var GLOBAL_LONG_TO_OPT = /* @__PURE__ */ new Map();
|
|
556
|
-
var GLOBAL_SHORT_TO_OPT = /* @__PURE__ */ new Map();
|
|
557
|
-
for (const opt of globalCommandOptions) {
|
|
558
|
-
GLOBAL_LONG_TO_OPT.set(`--${opt.name}`, opt);
|
|
559
|
-
if (opt.shorthand) {
|
|
560
|
-
GLOBAL_SHORT_TO_OPT.set(`-${opt.shorthand}`, opt);
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
function getGlobalFlagsFromArgs(args, options) {
|
|
564
|
-
const delimiterIndex = args.indexOf("--");
|
|
565
|
-
const cliArgs = delimiterIndex === -1 ? args : args.slice(0, delimiterIndex);
|
|
566
|
-
const safeArgs = stripSensitiveAuthArgs(cliArgs);
|
|
567
|
-
const out = [];
|
|
568
|
-
for (let i = 0; i < safeArgs.length; i++) {
|
|
569
|
-
const a = safeArgs[i];
|
|
570
|
-
if (options?.preserveYes && (a === "--yes" || a === "-y")) {
|
|
571
|
-
out.push(a);
|
|
572
|
-
continue;
|
|
573
|
-
}
|
|
574
|
-
if (options?.preserveConfig && (a === "--config" || a.startsWith("--config="))) {
|
|
575
|
-
out.push(a);
|
|
576
|
-
if (a === "--config") {
|
|
577
|
-
const next = safeArgs[i + 1];
|
|
578
|
-
if (next && !next.startsWith("-")) {
|
|
579
|
-
out.push(next);
|
|
580
|
-
i++;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
continue;
|
|
584
|
-
}
|
|
585
|
-
let opt;
|
|
586
|
-
if (a.startsWith("--") && a.includes("=")) {
|
|
587
|
-
const name = a.slice(2).split("=")[0];
|
|
588
|
-
opt = GLOBAL_LONG_TO_OPT.get(`--${name}`);
|
|
589
|
-
if (opt)
|
|
590
|
-
out.push(a);
|
|
591
|
-
continue;
|
|
592
|
-
}
|
|
593
|
-
opt = GLOBAL_LONG_TO_OPT.get(a) || GLOBAL_SHORT_TO_OPT.get(a);
|
|
594
|
-
if (!opt)
|
|
595
|
-
continue;
|
|
596
|
-
out.push(a);
|
|
597
|
-
if (opt.type === String && !a.includes("=")) {
|
|
598
|
-
const next = safeArgs[i + 1];
|
|
599
|
-
if (next && !next.startsWith("-")) {
|
|
600
|
-
out.push(next);
|
|
601
|
-
i++;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
if (options?.preserveProject) {
|
|
606
|
-
const projectOption2 = findProjectOption(safeArgs);
|
|
607
|
-
if (projectOption2)
|
|
608
|
-
out.push(...projectOption2.args);
|
|
609
|
-
}
|
|
610
|
-
return out;
|
|
611
|
-
}
|
|
612
|
-
function findProjectOption(args) {
|
|
613
|
-
for (let i = 0; i < args.length; i++) {
|
|
614
|
-
const arg = args[i];
|
|
615
|
-
if (arg === "--")
|
|
616
|
-
return void 0;
|
|
617
|
-
if (arg.startsWith("--project=")) {
|
|
618
|
-
return {
|
|
619
|
-
value: arg.slice("--project=".length),
|
|
620
|
-
args: [arg]
|
|
621
|
-
};
|
|
622
|
-
}
|
|
623
|
-
if (arg === "--project") {
|
|
624
|
-
const value = args[i + 1];
|
|
625
|
-
if (value && !value.startsWith("-")) {
|
|
626
|
-
return { value, args: [arg, value] };
|
|
627
|
-
}
|
|
628
|
-
return void 0;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
return void 0;
|
|
632
|
-
}
|
|
633
|
-
function getProjectOptionFromArgs(args) {
|
|
634
|
-
return findProjectOption(args)?.value;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
102
|
// src/util/now-error.ts
|
|
638
103
|
var NowError = class extends Error {
|
|
639
104
|
constructor({
|
|
@@ -648,16 +113,16 @@ var NowError = class extends Error {
|
|
|
648
113
|
};
|
|
649
114
|
|
|
650
115
|
// src/util/output/code.ts
|
|
651
|
-
var
|
|
652
|
-
function code(
|
|
653
|
-
const tick = backticks ?
|
|
654
|
-
return `${tick}${
|
|
116
|
+
var import_chalk = __toESM(require_source(), 1);
|
|
117
|
+
function code(cmd, { backticks = true } = {}) {
|
|
118
|
+
const tick = backticks ? import_chalk.default.gray("`") : "";
|
|
119
|
+
return `${tick}${import_chalk.default.bold(cmd)}${tick}`;
|
|
655
120
|
}
|
|
656
121
|
|
|
657
122
|
// src/util/errors-ts.ts
|
|
658
123
|
var import_bytes = __toESM(require_bytes(), 1);
|
|
659
124
|
import { NowBuildError } from "@vercel/build-utils";
|
|
660
|
-
var
|
|
125
|
+
var import_chalk2 = __toESM(require_source(), 1);
|
|
661
126
|
var import_error_utils = __toESM(require_dist(), 1);
|
|
662
127
|
var APIError = class extends Error {
|
|
663
128
|
constructor(message, response, body) {
|
|
@@ -778,7 +243,7 @@ var DomainNotFound = class extends NowError {
|
|
|
778
243
|
super({
|
|
779
244
|
code: "DOMAIN_NOT_FOUND",
|
|
780
245
|
meta: { domain },
|
|
781
|
-
message: `Domain not found by "${domain}"${contextName ? ` under ${
|
|
246
|
+
message: `Domain not found by "${domain}"${contextName ? ` under ${import_chalk2.default.bold(contextName)}` : ""}.`
|
|
782
247
|
});
|
|
783
248
|
}
|
|
784
249
|
};
|
|
@@ -1322,31 +787,6 @@ var InvalidLocalConfig = class extends NowError {
|
|
|
1322
787
|
};
|
|
1323
788
|
|
|
1324
789
|
export {
|
|
1325
|
-
require_lib,
|
|
1326
|
-
cmd,
|
|
1327
|
-
packageName,
|
|
1328
|
-
getTitleName,
|
|
1329
|
-
getCommandName,
|
|
1330
|
-
getCommandNamePlain,
|
|
1331
|
-
getFlagsSpecification,
|
|
1332
|
-
stripSensitiveAuthArgs,
|
|
1333
|
-
globalCommandOptions,
|
|
1334
|
-
suggestionFlagTakesSeparateValue,
|
|
1335
|
-
getSameSubcommandSuggestionFlags,
|
|
1336
|
-
arg_common_default,
|
|
1337
|
-
yesOption,
|
|
1338
|
-
nextOption,
|
|
1339
|
-
confirmOption,
|
|
1340
|
-
limitOption,
|
|
1341
|
-
forceOption,
|
|
1342
|
-
formatOption,
|
|
1343
|
-
jsonOption,
|
|
1344
|
-
allOption,
|
|
1345
|
-
projectOption,
|
|
1346
|
-
deploymentOption,
|
|
1347
|
-
protectionBypassOption,
|
|
1348
|
-
getGlobalFlagsFromArgs,
|
|
1349
|
-
getProjectOptionFromArgs,
|
|
1350
790
|
require_bytes,
|
|
1351
791
|
NowError,
|
|
1352
792
|
code,
|
|
@@ -4,15 +4,15 @@ 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
|
+
permissionsAggregateCommand
|
|
9
|
+
} from "./chunk-EZKW5YJ2.js";
|
|
7
10
|
import {
|
|
8
11
|
tagsAggregateCommand
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NFU4XJIR.js";
|
|
10
13
|
import {
|
|
11
14
|
imageAggregateCommand
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
permissionsAggregateCommand
|
|
15
|
-
} from "./chunk-GFCTRJI5.js";
|
|
15
|
+
} from "./chunk-3HZLXCVL.js";
|
|
16
16
|
import {
|
|
17
17
|
formatOption,
|
|
18
18
|
jsonOption,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
packageName,
|
|
21
21
|
projectOption,
|
|
22
22
|
yesOption
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
24
24
|
|
|
25
25
|
// src/commands/vcr/command.ts
|
|
26
26
|
var projectScopeOption = {
|