vercel 58.9.5 → 58.11.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-W4XR5GYX.js → add-I4TVSKCW.js} +2 -2
- package/dist/chunks/{add-5KFK4EFH.js → add-IFQ74XHE.js} +6 -6
- package/dist/chunks/{add-NMYLVDBN.js → add-LLXXGWJZ.js} +2 -2
- package/dist/chunks/{build-BCMSG7TU.js → build-6DPTFQKH.js} +2 -2
- package/dist/chunks/{chunk-3MELKK7A.js → chunk-2XR3IS42.js} +80 -38
- package/dist/chunks/{chunk-AZCZV4XI.js → chunk-57E3RXRP.js} +1 -1
- package/dist/chunks/{chunk-IBIZT5M4.js → chunk-6FUU7WW5.js} +47 -6
- package/dist/chunks/{chunk-4GUI4FQR.js → chunk-74IYXJ5O.js} +10 -518
- package/dist/chunks/{chunk-MAZ2BUBX.js → chunk-A7HDIKC2.js} +2 -2
- package/dist/chunks/chunk-BTKWXOXK.js +61 -0
- package/dist/chunks/{chunk-MGCBTAA7.js → chunk-COTEMB2F.js} +1 -1
- package/dist/chunks/{chunk-UDHYVIJL.js → chunk-D7MYUPY7.js} +4 -4
- package/dist/chunks/{chunk-7RUZPHW7.js → chunk-DJUIGD6C.js} +1 -1
- package/dist/chunks/{chunk-N5YCPDWG.js → chunk-EA6MVNDR.js} +1 -1
- package/dist/chunks/{chunk-2SEBBSKD.js → chunk-EN2JH6AK.js} +1 -1
- package/dist/chunks/{chunk-BZGIBXY6.js → chunk-EPETZ7OW.js} +1 -1
- package/dist/chunks/{chunk-6SXIT6Q3.js → chunk-EVB35IJS.js} +2 -2
- package/dist/chunks/{chunk-6WWATEWK.js → chunk-FKZAFG4D.js} +1 -1
- package/dist/chunks/{chunk-U4LWFSR4.js → chunk-FYXFZ4CY.js} +1 -1
- package/dist/chunks/chunk-IM56DJEQ.js +559 -0
- package/dist/chunks/{chunk-KUZCVMVA.js → chunk-J2WXMIAP.js} +4 -3
- package/dist/chunks/{chunk-ELJ56NBY.js → chunk-JDNWPNLS.js} +173 -173
- package/dist/chunks/{chunk-5MERQE7H.js → chunk-LM5S2YN4.js} +1 -1
- package/dist/chunks/{chunk-TNKTZDOL.js → chunk-MX5JRP6N.js} +1 -1
- package/dist/chunks/{chunk-PTZ6X4P4.js → chunk-OXJFXZV2.js} +1 -1
- package/dist/chunks/{chunk-NDOZRKTB.js → chunk-UEBYWLPO.js} +1 -1
- package/dist/chunks/{chunk-DQDAQYQI.js → chunk-YJCZFVWJ.js} +1 -1
- package/dist/chunks/{chunk-2J7BL7IF.js → chunk-YP35CTKZ.js} +2 -2
- package/dist/chunks/{chunk-GBXTATOJ.js → chunk-Z3FO2ZSH.js} +158 -3
- package/dist/chunks/{clear-54WX3NA2.js → clear-NA74WCNT.js} +2 -2
- package/dist/chunks/{compile-vercel-config-LSW4TWGX.js → compile-vercel-config-BD4UGPKJ.js} +1 -1
- package/dist/chunks/{config-WXQTPQW7.js → config-WYUTVPPF.js} +2 -2
- package/dist/chunks/{delete-OGP3RVWM.js → delete-NFNYQ7LC.js} +2 -2
- package/dist/chunks/{delete-HQMI44SG.js → delete-RZ2SVQK6.js} +2 -2
- package/dist/chunks/{disable-HC266OB7.js → disable-DZ7DCWEI.js} +2 -2
- package/dist/chunks/{discard-3RFIPLXY.js → discard-VZ5QNL7B.js} +2 -2
- package/dist/chunks/{edit-TZOCRGG6.js → edit-ABJN6BMR.js} +2 -2
- package/dist/chunks/{edit-NXPQFWM6.js → edit-RIY7SWIR.js} +3 -3
- package/dist/chunks/{enable-OGFRN4CG.js → enable-JWPKENHY.js} +2 -2
- package/dist/chunks/{export-AEESZFZX.js → export-6IDA3TWA.js} +2 -2
- package/dist/chunks/{image-EIAO7LVN.js → image-DM4ZNQOL.js} +3 -3
- package/dist/chunks/{import-builders-KCQLA2YR.js → import-builders-6NCPTR6R.js} +2 -2
- package/dist/chunks/{inspect-MGIECVLH.js → inspect-6WYHE6JX.js} +2 -2
- package/dist/chunks/{inspect-RUGPLO7A.js → inspect-KUAM7UKQ.js} +2 -2
- package/dist/chunks/{inspect-EM34BOTE.js → inspect-NLWTMJHW.js} +3 -3
- package/dist/chunks/{inspect-TTHC6L7Q.js → inspect-Z6VNNFFK.js} +2 -2
- package/dist/chunks/{inspect-HHSDXTII.js → inspect-ZKZG7MCO.js} +2 -2
- package/dist/chunks/{list-A74MGEOB.js → list-2PB3N6FM.js} +2 -2
- package/dist/chunks/{list-EOG3TYBE.js → list-GPQI2LGO.js} +1 -1
- package/dist/chunks/{list-GQDUIRBU.js → list-ZUFB2CIS.js} +3 -3
- package/dist/chunks/{login-L4EWZOGH.js → login-GTZWDE5T.js} +2 -2
- package/dist/chunks/{ls-VBFBWSWD.js → ls-AG5UBKCR.js} +3 -3
- package/dist/chunks/{ls-F6WCPVB7.js → ls-ETUPWWLP.js} +2 -2
- package/dist/chunks/{ls-D5ESYWG5.js → ls-HCVYO3FF.js} +2 -2
- package/dist/chunks/{ls-OWHNAGNT.js → ls-YMQ6E7MZ.js} +2 -2
- package/dist/chunks/{ls-OJGSWVWO.js → ls-Z2XKIHA5.js} +2 -2
- package/dist/chunks/{open-FHER5QV2.js → open-4XQWNZQD.js} +2 -2
- package/dist/chunks/{permissions-JSXC7BRD.js → permissions-BJBEONBS.js} +4 -4
- package/dist/chunks/{publish-CM6ZGWIE.js → publish-TVZGIZRP.js} +2 -2
- package/dist/chunks/{push-5NYG7HIR.js → push-EJZHZC4Z.js} +2 -2
- package/dist/chunks/{query-5GQLF2BR.js → query-HXMR364K.js} +1 -1
- package/dist/chunks/{reorder-5GCNY75W.js → reorder-VE2PRU24.js} +2 -2
- package/dist/chunks/{reply-B2XCK5XR.js → reply-4YEXMUWH.js} +2 -2
- package/dist/chunks/{resolve-YQP5C2QY.js → resolve-GZ4KXDU6.js} +2 -2
- package/dist/chunks/{restore-VHX4JV5J.js → restore-ZY3IJ4S3.js} +2 -2
- package/dist/chunks/{rm-QVVQDCDX.js → rm-IE23BM6V.js} +3 -3
- package/dist/chunks/{rm-VDFSX3LH.js → rm-QS5PIVAO.js} +2 -2
- package/dist/chunks/{rm-OILUGCTW.js → rm-Y6OROWNK.js} +2 -2
- package/dist/chunks/{rm-AUUT2YIT.js → rm-YIVI23NT.js} +2 -2
- package/dist/chunks/{rule-inspect-LKTUPW4B.js → rule-inspect-6NXF565C.js} +3 -3
- package/dist/chunks/{rules-J5JM5VFQ.js → rules-QOZAWHUO.js} +6 -6
- package/dist/chunks/{schema-OIKSCLDU.js → schema-YJDZ6EOC.js} +1 -1
- package/dist/chunks/{tags-AMTMNRLQ.js → tags-67LC7TV4.js} +2 -2
- package/dist/chunks/{update-AFL3GHKB.js → update-YNL7VIL7.js} +6 -6
- package/dist/commands/build/index.js +15 -11
- package/dist/commands/deploy/index.js +347 -49
- package/dist/commands/dev/index.js +39 -13
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +6 -6
- package/dist/commands/list/index.js +2 -2
- package/dist/commands-bulk.js +1018 -294
- package/dist/index.js +33 -43
- package/dist/version.mjs +1 -1
- package/package.json +17 -17
- package/dist/chunks/chunk-I2XE3GMB.js +0 -21
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "../../chunks/chunk-2HSQ7YUK.js";
|
|
10
10
|
import {
|
|
11
11
|
getUpdateCommand
|
|
12
|
-
} from "../../chunks/chunk-
|
|
12
|
+
} from "../../chunks/chunk-UEBYWLPO.js";
|
|
13
13
|
import {
|
|
14
14
|
getGlobalPathConfig,
|
|
15
15
|
highlight
|
|
@@ -25,24 +25,24 @@ import {
|
|
|
25
25
|
getStaticServiceSchedules,
|
|
26
26
|
require_mime_types,
|
|
27
27
|
staticFiles
|
|
28
|
-
} from "../../chunks/chunk-
|
|
28
|
+
} from "../../chunks/chunk-JDNWPNLS.js";
|
|
29
29
|
import {
|
|
30
30
|
importBuilders,
|
|
31
31
|
require_npa
|
|
32
|
-
} from "../../chunks/chunk-
|
|
32
|
+
} from "../../chunks/chunk-EA6MVNDR.js";
|
|
33
33
|
import "../../chunks/chunk-IB5L4LKZ.js";
|
|
34
34
|
import {
|
|
35
35
|
pickOverrides
|
|
36
|
-
} from "../../chunks/chunk-
|
|
36
|
+
} from "../../chunks/chunk-LM5S2YN4.js";
|
|
37
37
|
import "../../chunks/chunk-R6IGDGX3.js";
|
|
38
38
|
import {
|
|
39
39
|
displayDetectedServices,
|
|
40
40
|
readConfig,
|
|
41
41
|
setupAndLink
|
|
42
|
-
} from "../../chunks/chunk-
|
|
42
|
+
} from "../../chunks/chunk-EVB35IJS.js";
|
|
43
43
|
import {
|
|
44
44
|
getLocalPathConfig
|
|
45
|
-
} from "../../chunks/chunk-
|
|
45
|
+
} from "../../chunks/chunk-COTEMB2F.js";
|
|
46
46
|
import {
|
|
47
47
|
help
|
|
48
48
|
} from "../../chunks/chunk-ZX2FSPWV.js";
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
resolveProjectCwd,
|
|
74
74
|
tryDetectServices,
|
|
75
75
|
validateConfig
|
|
76
|
-
} from "../../chunks/chunk-
|
|
76
|
+
} from "../../chunks/chunk-6FUU7WW5.js";
|
|
77
77
|
import {
|
|
78
78
|
TelemetryClient
|
|
79
79
|
} from "../../chunks/chunk-ECCWJHC6.js";
|
|
@@ -19557,6 +19557,30 @@ function nodeHeadersToFetchHeaders(nodeHeaders) {
|
|
|
19557
19557
|
}
|
|
19558
19558
|
return headers;
|
|
19559
19559
|
}
|
|
19560
|
+
var NEVER_COMBINE_RESPONSE_HEADERS = /* @__PURE__ */ new Set([
|
|
19561
|
+
"set-cookie",
|
|
19562
|
+
"www-authenticate",
|
|
19563
|
+
"proxy-authenticate"
|
|
19564
|
+
]);
|
|
19565
|
+
var COMMA_JOIN_RESPONSE_HEADERS = /* @__PURE__ */ new Set(["vary"]);
|
|
19566
|
+
function applyChainResponseHeader(res, name, value) {
|
|
19567
|
+
if (NEVER_COMBINE_RESPONSE_HEADERS.has(name)) {
|
|
19568
|
+
const existing = res.getHeader(name);
|
|
19569
|
+
const values = Array.isArray(existing) ? existing.map(String) : existing !== void 0 ? [String(existing)] : [];
|
|
19570
|
+
values.push(value);
|
|
19571
|
+
res.setHeader(name, values);
|
|
19572
|
+
return;
|
|
19573
|
+
}
|
|
19574
|
+
if (COMMA_JOIN_RESPONSE_HEADERS.has(name)) {
|
|
19575
|
+
const existing = res.getHeader(name);
|
|
19576
|
+
res.setHeader(
|
|
19577
|
+
name,
|
|
19578
|
+
existing !== void 0 ? `${existing}, ${value}` : value
|
|
19579
|
+
);
|
|
19580
|
+
return;
|
|
19581
|
+
}
|
|
19582
|
+
res.setHeader(name, value);
|
|
19583
|
+
}
|
|
19560
19584
|
var NONOVERRIDABLE_HEADERS = /* @__PURE__ */ new Set([
|
|
19561
19585
|
"host",
|
|
19562
19586
|
"connection",
|
|
@@ -20005,14 +20029,14 @@ ${partHeaders}\r
|
|
|
20005
20029
|
let statusCode;
|
|
20006
20030
|
let prevUrl = req.url;
|
|
20007
20031
|
let prevHeaders = {};
|
|
20008
|
-
let middlewarePid;
|
|
20009
20032
|
const requestTransforms = [];
|
|
20010
20033
|
let responseTransforms;
|
|
20011
|
-
const
|
|
20034
|
+
const middlewares = [...this.buildMatches.values()].filter(
|
|
20012
20035
|
(m) => m.config?.middleware === true
|
|
20013
20036
|
);
|
|
20014
|
-
|
|
20037
|
+
for (const middleware of middlewares) {
|
|
20015
20038
|
let startMiddlewareResult;
|
|
20039
|
+
let middlewarePid;
|
|
20016
20040
|
const { envConfigs, files, devCacheDir, cwd: workPath } = this;
|
|
20017
20041
|
try {
|
|
20018
20042
|
const { builder: builder2 } = middleware.builderWithPkg;
|
|
@@ -20036,13 +20060,15 @@ ${partHeaders}\r
|
|
|
20036
20060
|
const { port, pid, shutdown } = startMiddlewareResult;
|
|
20037
20061
|
middlewarePid = pid;
|
|
20038
20062
|
this.shutdownCallbacks.set(pid, shutdown);
|
|
20063
|
+
debug(`Invoking middleware "${middleware.src}" (port=${port})`);
|
|
20039
20064
|
const middlewareReqHeaders = nodeHeadersToFetchHeaders(req.headers);
|
|
20040
20065
|
const proxyHeaders = this.getProxyHeaders(req, requestId, true);
|
|
20041
20066
|
for (const [name, value] of nodeHeadersToFetchHeaders(proxyHeaders)) {
|
|
20042
20067
|
middlewareReqHeaders.set(name, value);
|
|
20043
20068
|
}
|
|
20069
|
+
const middlewareReqPath = url3.parse(req.url || "/").path || "/";
|
|
20044
20070
|
const middlewareRes = await directFetch(
|
|
20045
|
-
`http://127.0.0.1:${port}${
|
|
20071
|
+
`http://127.0.0.1:${port}${middlewareReqPath}`,
|
|
20046
20072
|
{
|
|
20047
20073
|
headers: middlewareReqHeaders,
|
|
20048
20074
|
method: req.method,
|
|
@@ -20083,7 +20109,7 @@ ${partHeaders}\r
|
|
|
20083
20109
|
} else if (name === "content-type") {
|
|
20084
20110
|
contentType2 = value;
|
|
20085
20111
|
} else if (!skipMiddlewareHeaders.has(name)) {
|
|
20086
|
-
res
|
|
20112
|
+
applyChainResponseHeader(res, name, value);
|
|
20087
20113
|
req.headers[name] = value;
|
|
20088
20114
|
}
|
|
20089
20115
|
}
|
|
@@ -21003,7 +21029,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
21003
21029
|
return void 0;
|
|
21004
21030
|
}
|
|
21005
21031
|
async _getVercelConfig() {
|
|
21006
|
-
const { compileVercelConfig } = await import("../../chunks/compile-vercel-config-
|
|
21032
|
+
const { compileVercelConfig } = await import("../../chunks/compile-vercel-config-BD4UGPKJ.js");
|
|
21007
21033
|
await compileVercelConfig(this.cwd);
|
|
21008
21034
|
const configPath = getLocalPathConfig(this.cwd);
|
|
21009
21035
|
const [
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
formatEnvironment,
|
|
26
26
|
validateLsArgs
|
|
27
|
-
} from "../../chunks/chunk-
|
|
27
|
+
} from "../../chunks/chunk-MX5JRP6N.js";
|
|
28
28
|
import {
|
|
29
29
|
validateJsonOutput
|
|
30
30
|
} from "../../chunks/chunk-KXDWXXJH.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "../../chunks/chunk-YPQSDAEW.js";
|
|
34
34
|
import {
|
|
35
35
|
getCommandAliases
|
|
36
|
-
} from "../../chunks/chunk-
|
|
36
|
+
} from "../../chunks/chunk-Z3FO2ZSH.js";
|
|
37
37
|
import "../../chunks/chunk-ELA5VN3A.js";
|
|
38
38
|
import "../../chunks/chunk-B3JTF4CF.js";
|
|
39
39
|
import "../../chunks/chunk-A5KP5HAI.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
stamp_default
|
|
57
57
|
} from "../../chunks/chunk-64IF634X.js";
|
|
58
58
|
import "../../chunks/chunk-VXYGCOKL.js";
|
|
59
|
-
import "../../chunks/chunk-
|
|
59
|
+
import "../../chunks/chunk-EN2JH6AK.js";
|
|
60
60
|
import {
|
|
61
61
|
help
|
|
62
62
|
} from "../../chunks/chunk-ZX2FSPWV.js";
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
resolveProjectContext,
|
|
85
85
|
runSubcommand,
|
|
86
86
|
updateSubcommand
|
|
87
|
-
} from "../../chunks/chunk-
|
|
87
|
+
} from "../../chunks/chunk-6FUU7WW5.js";
|
|
88
88
|
import {
|
|
89
89
|
TelemetryClient,
|
|
90
90
|
require_dist as require_dist2
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
addSubcommand7 as addSubcommand,
|
|
12
12
|
getCommandAliases,
|
|
13
13
|
linkCommand
|
|
14
|
-
} from "../../chunks/chunk-
|
|
14
|
+
} from "../../chunks/chunk-Z3FO2ZSH.js";
|
|
15
15
|
import "../../chunks/chunk-ELA5VN3A.js";
|
|
16
16
|
import "../../chunks/chunk-B3JTF4CF.js";
|
|
17
17
|
import "../../chunks/chunk-A5KP5HAI.js";
|
|
@@ -26,12 +26,12 @@ import "../../chunks/chunk-7QVJTI5H.js";
|
|
|
26
26
|
import "../../chunks/chunk-O5GNPPTU.js";
|
|
27
27
|
import {
|
|
28
28
|
ensureLink
|
|
29
|
-
} from "../../chunks/chunk-
|
|
30
|
-
import "../../chunks/chunk-
|
|
29
|
+
} from "../../chunks/chunk-J2WXMIAP.js";
|
|
30
|
+
import "../../chunks/chunk-EVB35IJS.js";
|
|
31
31
|
import {
|
|
32
32
|
isPromptCanceledError
|
|
33
|
-
} from "../../chunks/chunk-
|
|
34
|
-
import "../../chunks/chunk-
|
|
33
|
+
} from "../../chunks/chunk-COTEMB2F.js";
|
|
34
|
+
import "../../chunks/chunk-EN2JH6AK.js";
|
|
35
35
|
import {
|
|
36
36
|
help
|
|
37
37
|
} from "../../chunks/chunk-ZX2FSPWV.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
getScope,
|
|
44
44
|
pull,
|
|
45
45
|
resolveProjectCwd
|
|
46
|
-
} from "../../chunks/chunk-
|
|
46
|
+
} from "../../chunks/chunk-6FUU7WW5.js";
|
|
47
47
|
import {
|
|
48
48
|
TelemetryClient
|
|
49
49
|
} from "../../chunks/chunk-ECCWJHC6.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
formatEnvironment,
|
|
19
19
|
validateLsArgs
|
|
20
|
-
} from "../../chunks/chunk-
|
|
20
|
+
} from "../../chunks/chunk-MX5JRP6N.js";
|
|
21
21
|
import {
|
|
22
22
|
validateJsonOutput
|
|
23
23
|
} from "../../chunks/chunk-KXDWXXJH.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
getScope,
|
|
42
42
|
parseTarget,
|
|
43
43
|
toHost
|
|
44
|
-
} from "../../chunks/chunk-
|
|
44
|
+
} from "../../chunks/chunk-6FUU7WW5.js";
|
|
45
45
|
import {
|
|
46
46
|
TelemetryClient
|
|
47
47
|
} from "../../chunks/chunk-ECCWJHC6.js";
|