vercel 59.3.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-4L46WVRT.js → add-MH3WV6PV.js} +12 -8
- package/dist/chunks/{add-BBWVXE2R.js → add-W3FFMTX4.js} +15 -11
- package/dist/chunks/{add-KOD24LEM.js → add-Z5FM6TFI.js} +18 -14
- package/dist/chunks/{build-2SX3XIRI.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-OISTYQGR.js → chunk-47VQ6H2S.js} +1 -1
- package/dist/chunks/{chunk-WODLA275.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-7PEQVFHI.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-QKO2DGWR.js → chunk-CSCSGSQG.js} +4 -4
- package/dist/chunks/{chunk-3L2YLLHC.js → chunk-DWIC7MRV.js} +2 -2
- package/dist/chunks/{chunk-KDL2L4KL.js → chunk-E6LFKMI2.js} +13613 -14235
- package/dist/chunks/{chunk-GFCTRJI5.js → chunk-EZKW5YJ2.js} +1 -1
- package/dist/chunks/{chunk-DAA5RXUK.js → chunk-FA3MO56Q.js} +6 -4
- package/dist/chunks/{chunk-CURHMEJX.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-D35JUCTC.js → chunk-JJQP3PYM.js} +7 -5
- package/dist/chunks/{chunk-KBUCAAG6.js → chunk-JNU3DTEV.js} +14 -12
- package/dist/chunks/{chunk-J5ZEHLFM.js → chunk-L7CEMAJG.js} +14 -3
- package/dist/chunks/{chunk-ANIKVXGZ.js → chunk-LLM3ZNXJ.js} +2 -2
- package/dist/chunks/{chunk-Z2G6SO5B.js → chunk-M3OSDZPY.js} +6 -4
- package/dist/chunks/{chunk-WNS53IOA.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-6GWLC2IP.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-Q6QCRFTC.js → chunk-PBHBX6UL.js} +2 -2
- package/dist/chunks/{chunk-M22O6CYY.js → chunk-POOO7W47.js} +1 -1
- package/dist/chunks/{chunk-G55RLNFE.js → chunk-PPUWG2UB.js} +12 -8
- package/dist/chunks/chunk-Q2DGFCO7.js +579 -0
- package/dist/chunks/{chunk-7GE2K2WR.js → chunk-QG4PCM45.js} +334 -169
- 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-VTP6WIQA.js → chunk-TAZ5ZAKG.js} +257 -4
- package/dist/chunks/{chunk-ZHRZMQGN.js → chunk-TDXNNIZ6.js} +1 -1
- package/dist/chunks/{chunk-NN2W7WFC.js → chunk-TIWAL2YU.js} +6 -6
- package/dist/chunks/{chunk-P3BFTZXW.js → chunk-UUVMIXT4.js} +5 -5
- package/dist/chunks/{chunk-AAMJ4ZU4.js → chunk-V4YLY44R.js} +3 -17
- package/dist/chunks/{chunk-O5GNPPTU.js → chunk-VP5Y3SZG.js} +1 -1
- package/dist/chunks/{chunk-YPPWGI3F.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-2DMDKLWZ.js → clear-TNGRDA7D.js} +12 -8
- package/dist/chunks/{compile-vercel-config-7HZ4UN6R.js → compile-vercel-config-ERLXKKWW.js} +8 -5
- package/dist/chunks/config-7EDKML5Q.js +122 -0
- package/dist/chunks/{config-CVZ25C54.js → config-H22EE765.js} +15 -11
- package/dist/chunks/{delete-QNAGJM6C.js → delete-LORYIZHY.js} +10 -7
- package/dist/chunks/{delete-4LQKP5DG.js → delete-Q4S5F2AI.js} +12 -8
- package/dist/chunks/{disable-2RBFIZUB.js → disable-HKWCBDJC.js} +10 -7
- package/dist/chunks/{discard-UCOSPSUU.js → discard-UCCRF2JQ.js} +10 -7
- package/dist/chunks/{edit-QSAO74S4.js → edit-6IM6VRBR.js} +12 -8
- package/dist/chunks/{edit-JX73BG3V.js → edit-AWL35PYQ.js} +11 -8
- package/dist/chunks/{enable-NDSB4T26.js → enable-GN3D3L3V.js} +10 -7
- package/dist/chunks/{export-DB6BIYQJ.js → export-HHRVFALV.js} +10 -7
- package/dist/chunks/{image-MKB6II6L.js → image-4DCU4VPP.js} +6 -5
- package/dist/chunks/{import-builders-FIQ7QTVG.js → import-builders-DVG3HOTF.js} +9 -6
- package/dist/chunks/{inspect-REJXLWLL.js → inspect-B3OWUFLH.js} +12 -8
- package/dist/chunks/{inspect-XS2TC7TC.js → inspect-TGOJDKIT.js} +15 -11
- package/dist/chunks/{inspect-QWTWAYLS.js → inspect-TUW67CFZ.js} +15 -11
- package/dist/chunks/{inspect-IYRKEWTM.js → inspect-VLGKNHJW.js} +12 -8
- package/dist/chunks/{inspect-NY6QRX5W.js → inspect-VPME6UC7.js} +15 -11
- package/dist/chunks/{list-PXKVKXHG.js → list-2DPKDHRV.js} +15 -11
- package/dist/chunks/{list-VQHBVY3Q.js → list-K552ITMK.js} +15 -11
- package/dist/chunks/{list-CDCITV4K.js → list-TK2JO7BK.js} +12 -8
- package/dist/chunks/{login-PE4JK7A2.js → login-HRWEKW5P.js} +15 -11
- package/dist/chunks/{ls-DL2POAY2.js → ls-IOXGXEY4.js} +15 -11
- package/dist/chunks/{ls-S67TNMEG.js → ls-JSV2WZVF.js} +15 -10
- package/dist/chunks/{ls-SKOQOPK4.js → ls-M5TYGFP5.js} +15 -10
- package/dist/chunks/{ls-3GRHYFDM.js → ls-O2WYF5UL.js} +18 -13
- package/dist/chunks/ls-TM6NTZEB.js +176 -0
- package/dist/chunks/{ls-YHS5IEBJ.js → ls-YIF3KLF3.js} +15 -10
- package/dist/chunks/{open-DUN3BTDH.js → open-FWAVEWGU.js} +12 -8
- package/dist/chunks/{permissions-VLIZYINB.js → permissions-DPFYL47Z.js} +9 -8
- package/dist/chunks/{publish-36BIJPLN.js → publish-63CGFKQR.js} +10 -7
- package/dist/chunks/{push-5NTQV3EC.js → push-T5ZTBW3P.js} +13 -10
- package/dist/chunks/{query-ONR2W7HS.js → query-B6O3EMEV.js} +14 -10
- package/dist/chunks/{reorder-YKAT4XG3.js → reorder-ANV4NMKH.js} +10 -7
- package/dist/chunks/{reply-DH4ZPEXT.js → reply-C73KGOCG.js} +12 -8
- package/dist/chunks/{resolve-446IVH6V.js → resolve-IHSIVPEE.js} +12 -8
- package/dist/chunks/{restore-HA6TSOOE.js → restore-GSUNXP2O.js} +10 -7
- package/dist/chunks/{rm-BCPJUK2C.js → rm-4O74PS4Q.js} +12 -8
- package/dist/chunks/{rm-IKYJI7MP.js → rm-M7IJC2WZ.js} +12 -8
- package/dist/chunks/{rm-EG35766L.js → rm-PRINF4OU.js} +15 -11
- package/dist/chunks/rm-RV5SQFQA.js +317 -0
- package/dist/chunks/{rm-COV73VE4.js → rm-YDTK5ESZ.js} +13 -9
- package/dist/chunks/{rule-inspect-FQ2635LY.js → rule-inspect-ZZC53FLP.js} +15 -11
- package/dist/chunks/{rules-PBOQISWV.js → rules-SAOSSGFI.js} +10 -9
- package/dist/chunks/{schema-LUVFYPWN.js → schema-23ZFAKDU.js} +7 -5
- package/dist/chunks/{schema-4CDJVH7T.js → schema-2Q3QRMRO.js} +11 -8
- package/dist/chunks/set-L47ZCZBJ.js +243 -0
- package/dist/chunks/{tags-HNOL4JXL.js → tags-2TWLM77N.js} +5 -4
- package/dist/chunks/{types-AJHILHO5.js → types-G3PEUIJH.js} +11 -7
- package/dist/chunks/{update-ZIGVLUYG.js → update-SZH2VBD6.js} +16 -12
- package/dist/commands/build/index.js +30 -22
- package/dist/commands/deploy/index.js +41 -32
- package/dist/commands/dev/index.js +82 -39
- package/dist/commands/env/index.js +185 -253
- package/dist/commands/link/index.js +25 -20
- package/dist/commands/list/index.js +19 -12
- package/dist/commands-bulk.js +3672 -1717
- package/dist/help.js +1 -1
- package/dist/index.js +34 -28
- package/dist/version.mjs +1 -1
- package/package.json +48 -47
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
parseRetryAfterHeaderAsMillis,
|
|
9
|
+
require_bytes
|
|
10
|
+
} from "./chunk-AWCID36T.js";
|
|
11
|
+
import {
|
|
12
|
+
getCommandName
|
|
13
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
14
|
+
import {
|
|
15
|
+
output_manager_default
|
|
16
|
+
} from "./chunk-OX7KI3LF.js";
|
|
17
|
+
import {
|
|
18
|
+
require_source
|
|
19
|
+
} from "./chunk-S7KYDPEM.js";
|
|
20
|
+
import {
|
|
21
|
+
__toESM
|
|
22
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
23
|
+
|
|
24
|
+
// src/util/output/error.ts
|
|
25
|
+
var import_chalk = __toESM(require_source(), 1);
|
|
26
|
+
|
|
27
|
+
// src/util/error.ts
|
|
28
|
+
var import_bytes = __toESM(require_bytes(), 1);
|
|
29
|
+
async function responseError(res, fallbackMessage = null, parsedBody = {}) {
|
|
30
|
+
let message = "";
|
|
31
|
+
let bodyError;
|
|
32
|
+
if (res.status >= 400 && res.status < 500) {
|
|
33
|
+
let body;
|
|
34
|
+
try {
|
|
35
|
+
body = await res.json();
|
|
36
|
+
} catch (_err) {
|
|
37
|
+
body = parsedBody;
|
|
38
|
+
}
|
|
39
|
+
bodyError = body.error || body.err || {};
|
|
40
|
+
message = bodyError.message;
|
|
41
|
+
}
|
|
42
|
+
if (!message) {
|
|
43
|
+
message = fallbackMessage === null ? "Response Error" : fallbackMessage;
|
|
44
|
+
}
|
|
45
|
+
const err = new Error(`${message} (${res.status})`);
|
|
46
|
+
err.status = res.status;
|
|
47
|
+
err.serverMessage = message;
|
|
48
|
+
if (bodyError) {
|
|
49
|
+
for (const field of Object.keys(bodyError)) {
|
|
50
|
+
if (field !== "message") {
|
|
51
|
+
err[field] = bodyError[field];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (res.status === 429 || res.status === 503) {
|
|
56
|
+
const parsed = parseRetryAfterHeaderAsMillis(
|
|
57
|
+
res.headers.get("Retry-After")
|
|
58
|
+
);
|
|
59
|
+
err.retryAfterMs = parsed ?? (res.status === 429 ? 0 : void 0);
|
|
60
|
+
}
|
|
61
|
+
return err;
|
|
62
|
+
}
|
|
63
|
+
function toEnumerableError(err) {
|
|
64
|
+
const enumerable = {};
|
|
65
|
+
enumerable.name = err.name;
|
|
66
|
+
for (const key of Object.getOwnPropertyNames(err)) {
|
|
67
|
+
enumerable[key] = err[key];
|
|
68
|
+
}
|
|
69
|
+
return enumerable;
|
|
70
|
+
}
|
|
71
|
+
function printError(error2) {
|
|
72
|
+
if (typeof error2 === "string") {
|
|
73
|
+
error2 = new Error(error2);
|
|
74
|
+
}
|
|
75
|
+
const apiError = error2;
|
|
76
|
+
const { message, stack, status, code, sizeLimit } = apiError;
|
|
77
|
+
output_manager_default.debug(`handling error: ${stack}`);
|
|
78
|
+
if (message === "User force closed the prompt with 0 null") {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (status === 403) {
|
|
82
|
+
output_manager_default.error(
|
|
83
|
+
message || `Authentication error. Run ${getCommandName("login")} to log-in again.`
|
|
84
|
+
);
|
|
85
|
+
} else if (status === 429) {
|
|
86
|
+
output_manager_default.error(message);
|
|
87
|
+
} else if (code === "size_limit_exceeded") {
|
|
88
|
+
output_manager_default.error(`File size limit exceeded (${(0, import_bytes.default)(sizeLimit)})`);
|
|
89
|
+
} else if (message) {
|
|
90
|
+
output_manager_default.prettyError(apiError);
|
|
91
|
+
} else if (status === 500) {
|
|
92
|
+
output_manager_default.error("Unexpected server error. Please retry.");
|
|
93
|
+
} else if (code === "USER_ABORT") {
|
|
94
|
+
output_manager_default.log("Canceled");
|
|
95
|
+
} else {
|
|
96
|
+
output_manager_default.error(`Unexpected error. Please try again later. (${message})`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
responseError,
|
|
102
|
+
toEnumerableError,
|
|
103
|
+
printError
|
|
104
|
+
};
|
|
@@ -6,18 +6,18 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
isJSONObject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4JTF6RD7.js";
|
|
10
10
|
import {
|
|
11
11
|
getProjectByNameOrId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E6LFKMI2.js";
|
|
13
13
|
import {
|
|
14
14
|
AGENT_REASON,
|
|
15
15
|
outputAgentError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L7CEMAJG.js";
|
|
17
17
|
import {
|
|
18
18
|
ProjectNotFound,
|
|
19
19
|
isAPIError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AWCID36T.js";
|
|
21
21
|
import {
|
|
22
22
|
output_manager_default
|
|
23
23
|
} from "./chunk-OX7KI3LF.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-
|
|
9
|
+
} from "./chunk-XM3LOQIX.js";
|
|
10
10
|
import {
|
|
11
11
|
formatOption,
|
|
12
12
|
jsonOption,
|
|
13
13
|
limitOption,
|
|
14
14
|
packageName,
|
|
15
15
|
projectOption
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/alerts/command.ts
|
|
19
19
|
var listSubcommand = {
|