vercel 59.1.4 → 59.4.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-PP3PJPJV.js → add-73X2SKBH.js} +5 -5
- package/dist/chunks/{add-CUGPQYFW.js → add-FQMB3XPM.js} +5 -5
- package/dist/chunks/{add-PRG4KKYH.js → add-QJ3WT4FW.js} +8 -8
- package/dist/chunks/{build-T22GMLY6.js → build-YUYCLCXD.js} +5 -5
- package/dist/chunks/{chunk-LNVZ3T7X.js → chunk-2PX6N4FE.js} +5 -5
- package/dist/chunks/{chunk-BCZFZETZ.js → chunk-BLYBHFIE.js} +5 -5
- package/dist/chunks/{chunk-57G6HBJ4.js → chunk-CHEZBD7H.js} +3 -3
- package/dist/chunks/{chunk-NM43FFV6.js → chunk-CV4S27SS.js} +0 -1
- package/dist/chunks/{chunk-ECCWJHC6.js → chunk-CYNB6LL4.js} +43 -36
- package/dist/chunks/{chunk-5DVMXOFT.js → chunk-DDIZGOCK.js} +32 -30
- package/dist/chunks/{chunk-4JKZ7SRX.js → chunk-EB5NBVTV.js} +4 -4
- package/dist/chunks/{chunk-M34ZRNDQ.js → chunk-EB7NJKPL.js} +2 -2
- package/dist/chunks/{chunk-CSJBZKC5.js → chunk-EG5BSAXD.js} +69 -57
- package/dist/chunks/{chunk-ZUVJISHS.js → chunk-HJVTLJHO.js} +2 -2
- package/dist/chunks/{chunk-VE545BR3.js → chunk-HMJVUXE6.js} +13555 -13747
- package/dist/chunks/{chunk-SOKQBFF7.js → chunk-HURL5EBN.js} +549 -62
- package/dist/chunks/{chunk-43DD2KNM.js → chunk-J5Y2QGGU.js} +1362 -938
- package/dist/chunks/{chunk-QCVKGY2A.js → chunk-KAYSW4CJ.js} +35 -12
- package/dist/chunks/{chunk-P65EEFTR.js → chunk-KQRVZWJU.js} +1 -0
- package/dist/chunks/{chunk-4HI7G6KG.js → chunk-KSZ4MNHO.js} +1 -1
- package/dist/chunks/{chunk-DOAYLTBJ.js → chunk-LKTQR5JE.js} +1 -1
- package/dist/chunks/{chunk-JYEO6OJS.js → chunk-MWYQ24FO.js} +4 -3
- package/dist/chunks/{chunk-SQGMTRZD.js → chunk-NP6BQPCN.js} +642 -462
- package/dist/chunks/{chunk-DAWJOQF6.js → chunk-O5DLWLT7.js} +2 -2
- package/dist/chunks/{chunk-IKKUCZE7.js → chunk-PD4DYNSB.js} +3 -3
- package/dist/chunks/{chunk-3BU2UCGV.js → chunk-PIMIKY4X.js} +1 -1
- package/dist/chunks/{chunk-QD5NX7RG.js → chunk-RI7KKKII.js} +1 -1
- package/dist/chunks/{chunk-QQ6PH4RY.js → chunk-STPH4Y62.js} +10 -0
- package/dist/chunks/{chunk-TJLBCLEX.js → chunk-TH2XUVDP.js} +11 -1
- package/dist/chunks/{chunk-P2QZZ6MR.js → chunk-TVXCXIRO.js} +1 -1
- package/dist/chunks/{chunk-KTLFN5FV.js → chunk-UV2ZMFVG.js} +1 -1
- package/dist/chunks/{chunk-XZLI27ES.js → chunk-VCE6QKFE.js} +3 -3
- package/dist/chunks/{chunk-DOMLWKKZ.js → chunk-X6O6XJEA.js} +17 -20
- package/dist/chunks/{chunk-SJQEGGH7.js → chunk-XI6NJLI4.js} +1 -1
- package/dist/chunks/{chunk-7NQLRE5V.js → chunk-Y3J4VU2H.js} +1 -1
- package/dist/chunks/{chunk-DEB45ND4.js → chunk-Y42SPI2H.js} +2 -2
- package/dist/chunks/{chunk-TM3F7PLR.js → chunk-ZFWNMVNR.js} +3 -3
- package/dist/chunks/{clear-Z4IKUIN7.js → clear-USQM5VW5.js} +5 -5
- package/dist/chunks/{compile-vercel-config-PSVXFAZW.js → compile-vercel-config-2JNYMI6W.js} +3 -3
- package/dist/chunks/{config-M5GMZ2X5.js → config-VTRIDLY4.js} +5 -5
- package/dist/chunks/{delete-P4XIBY7T.js → delete-ILLSBCVQ.js} +5 -5
- package/dist/chunks/{delete-5GRRDJSF.js → delete-VTPHK3EB.js} +4 -4
- package/dist/chunks/{disable-NT5NYVO7.js → disable-VTOMO64V.js} +4 -4
- package/dist/chunks/{discard-TBNIEAJZ.js → discard-ZIOZ34ZI.js} +4 -4
- package/dist/chunks/{edit-DJ6MT6HA.js → edit-E3AMR4KM.js} +6 -6
- package/dist/chunks/{edit-UF3D2CCH.js → edit-JMZ5XWVW.js} +6 -6
- package/dist/chunks/{enable-JTQBQMBO.js → enable-A4PMZ7QZ.js} +4 -4
- package/dist/chunks/{export-OKMRGRVM.js → export-Y6AJ3WRZ.js} +4 -4
- package/dist/chunks/{image-ARUJH4H5.js → image-26BKPAUB.js} +4 -4
- package/dist/chunks/{import-builders-3NTMZM64.js → import-builders-3H7J2SEK.js} +10 -9
- package/dist/chunks/{inspect-RI4K77NG.js → inspect-7DGKYHKW.js} +6 -6
- package/dist/chunks/{inspect-PTXIBSYW.js → inspect-GJFVAZIJ.js} +5 -5
- package/dist/chunks/{inspect-CHFKZKKP.js → inspect-N3E2PO6K.js} +5 -5
- package/dist/chunks/{inspect-5NETOGAI.js → inspect-OEY4DJRI.js} +5 -5
- package/dist/chunks/{inspect-UXP2HDES.js → inspect-ZW5N6O5P.js} +5 -5
- package/dist/chunks/{list-DYCZA2VX.js → list-2VTCNQEB.js} +4 -4
- package/dist/chunks/{list-G7LGVDAJ.js → list-DTJBW7OQ.js} +6 -6
- package/dist/chunks/{list-ADI55WKW.js → list-MIQ5D6PM.js} +5 -5
- package/dist/chunks/{login-YCSIQG6B.js → login-L34UHAU5.js} +5 -5
- package/dist/chunks/{ls-VIOMDUGW.js → ls-NCPQY4FV.js} +5 -5
- package/dist/chunks/{ls-2TKUIUK4.js → ls-OBUDC4SB.js} +5 -5
- package/dist/chunks/{ls-PQFDGOJL.js → ls-OKO4IHWB.js} +6 -6
- package/dist/chunks/{ls-RZVTIP5U.js → ls-SXJFBLUT.js} +5 -5
- package/dist/chunks/{ls-EOMIQLRH.js → ls-VDYUFSSC.js} +5 -5
- package/dist/chunks/{open-JYPWOXQD.js → open-V5JDGXUP.js} +5 -5
- package/dist/chunks/{permissions-SGJWGEVD.js → permissions-6CPRPPBY.js} +5 -5
- package/dist/chunks/{publish-ZUQHJAXL.js → publish-R27DPHFO.js} +4 -4
- package/dist/chunks/{push-XMVKG5A5.js → push-VLVTBS42.js} +5 -5
- package/dist/chunks/{query-ZLJZEGZB.js → query-IVVRYMJN.js} +218 -81
- package/dist/chunks/{reorder-NVHDWMRU.js → reorder-LJ2RBZM2.js} +4 -4
- package/dist/chunks/{reply-PUUPUQ3V.js → reply-USAISZYC.js} +6 -6
- package/dist/chunks/{resolve-5U2LJVE6.js → resolve-CRCJYVS5.js} +5 -5
- package/dist/chunks/{restore-OXIUY2UI.js → restore-6PBPEAMU.js} +4 -4
- package/dist/chunks/{rm-Z2KYJ7XT.js → rm-EOD7RDSO.js} +5 -5
- package/dist/chunks/{rm-BZNKJRXU.js → rm-HHELZB7R.js} +5 -5
- package/dist/chunks/{rm-3IOCBNPE.js → rm-KGOEOWVK.js} +6 -6
- package/dist/chunks/{rm-OUI4ZB5R.js → rm-TWU3JR6Z.js} +5 -5
- package/dist/chunks/{routes-JP2CNQ5J.js → routes-SZI2G4SE.js} +2 -2
- package/dist/chunks/{rule-inspect-ZBJJCDQV.js → rule-inspect-WFTVRK6B.js} +6 -6
- package/dist/chunks/{rules-HEGAXXUN.js → rules-AQYTFJI6.js} +8 -8
- package/dist/chunks/{schema-ZYIJYA2E.js → schema-LUVFYPWN.js} +1 -1
- package/dist/chunks/{schema-7GVL3BNP.js → schema-ZCDCJC7E.js} +22 -12
- package/dist/chunks/{tags-3SCWCMNQ.js → tags-RCNRFX7U.js} +3 -3
- package/dist/chunks/{update-YR2GCCJN.js → update-I7QGAOYF.js} +8 -8
- package/dist/commands/build/index.js +3099 -2519
- package/dist/commands/deploy/index.js +12 -12
- package/dist/commands/dev/index.js +85 -39
- package/dist/commands/env/index.js +149 -226
- package/dist/commands/link/index.js +7 -7
- package/dist/commands/list/index.js +5 -5
- package/dist/commands-bulk.js +4904 -2237
- package/dist/help.js +1 -1
- package/dist/index.js +27 -15
- package/dist/runtime-assets/node-preloads/next-dev-websocket.cjs +5 -1
- package/dist/version.mjs +1 -1
- package/package.json +54 -51
|
@@ -17,23 +17,23 @@ import {
|
|
|
17
17
|
emitVcrArgParseError,
|
|
18
18
|
resolveVcrScope,
|
|
19
19
|
validateVcrJsonOutput
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZFWNMVNR.js";
|
|
21
21
|
import "./chunk-G75NFPIT.js";
|
|
22
22
|
import {
|
|
23
23
|
outputError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KQRVZWJU.js";
|
|
25
25
|
import "./chunk-KXDWXXJH.js";
|
|
26
26
|
import {
|
|
27
27
|
permissionsAddSubcommand
|
|
28
28
|
} from "./chunk-GFCTRJI5.js";
|
|
29
29
|
import "./chunk-R6IGDGX3.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-HMJVUXE6.js";
|
|
31
|
+
import "./chunk-CYNB6LL4.js";
|
|
32
32
|
import {
|
|
33
33
|
AGENT_REASON,
|
|
34
34
|
buildCommandWithGlobalFlags,
|
|
35
35
|
outputAgentError
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TH2XUVDP.js";
|
|
37
37
|
import "./chunk-GGP5R3FU.js";
|
|
38
38
|
import {
|
|
39
39
|
printError
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
handleVcrApiError,
|
|
10
10
|
resolveVcrScope,
|
|
11
11
|
validateVcrJsonOutput
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZFWNMVNR.js";
|
|
13
13
|
import "./chunk-G75NFPIT.js";
|
|
14
14
|
import {
|
|
15
15
|
outputError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KQRVZWJU.js";
|
|
17
17
|
import "./chunk-KXDWXXJH.js";
|
|
18
18
|
import {
|
|
19
19
|
addSubcommand
|
|
@@ -22,13 +22,13 @@ import "./chunk-WC7IINFV.js";
|
|
|
22
22
|
import "./chunk-RIB4S2IB.js";
|
|
23
23
|
import "./chunk-GFCTRJI5.js";
|
|
24
24
|
import "./chunk-R6IGDGX3.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-HMJVUXE6.js";
|
|
26
|
+
import "./chunk-CYNB6LL4.js";
|
|
27
27
|
import {
|
|
28
28
|
AGENT_REASON,
|
|
29
29
|
buildCommandWithGlobalFlags,
|
|
30
30
|
outputAgentError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TH2XUVDP.js";
|
|
32
32
|
import "./chunk-GGP5R3FU.js";
|
|
33
33
|
import {
|
|
34
34
|
printError
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
parseCustomAlertQueryBody,
|
|
9
9
|
resolveCustomAlertProjectName,
|
|
10
10
|
setMissingCustomAlertProjectScope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PD4DYNSB.js";
|
|
12
12
|
import {
|
|
13
13
|
emitRulesArgParseError,
|
|
14
14
|
handleRulesApiError,
|
|
15
15
|
parseRulesFlagsAndScope,
|
|
16
16
|
rulesCollectionPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CHEZBD7H.js";
|
|
18
18
|
import {
|
|
19
19
|
isCustomAlertRule
|
|
20
20
|
} from "./chunk-F7OXZLY2.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-VCE6QKFE.js";
|
|
22
22
|
import "./chunk-A3NYPUKZ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-KQRVZWJU.js";
|
|
24
24
|
import "./chunk-FGDKMNEN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-O5DLWLT7.js";
|
|
26
26
|
import "./chunk-JKQWQA2T.js";
|
|
27
27
|
import "./chunk-VDJN4WKH.js";
|
|
28
28
|
import {
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
rulesAddSubcommand
|
|
33
33
|
} from "./chunk-UMA66MKW.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-HMJVUXE6.js";
|
|
35
|
+
import "./chunk-CYNB6LL4.js";
|
|
36
36
|
import {
|
|
37
37
|
AGENT_REASON,
|
|
38
38
|
buildCommandWithGlobalFlags,
|
|
39
39
|
outputAgentError
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-TH2XUVDP.js";
|
|
41
41
|
import "./chunk-GGP5R3FU.js";
|
|
42
42
|
import {
|
|
43
43
|
printError
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
runEngine,
|
|
24
24
|
splitPassthrough,
|
|
25
25
|
validateVcrChoice
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZFWNMVNR.js";
|
|
27
27
|
import "./chunk-G75NFPIT.js";
|
|
28
28
|
import {
|
|
29
29
|
outputError
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KQRVZWJU.js";
|
|
31
31
|
import "./chunk-KXDWXXJH.js";
|
|
32
32
|
import {
|
|
33
33
|
buildSubcommand
|
|
@@ -36,13 +36,13 @@ import "./chunk-WC7IINFV.js";
|
|
|
36
36
|
import "./chunk-RIB4S2IB.js";
|
|
37
37
|
import "./chunk-GFCTRJI5.js";
|
|
38
38
|
import "./chunk-R6IGDGX3.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-HMJVUXE6.js";
|
|
40
|
+
import "./chunk-CYNB6LL4.js";
|
|
41
41
|
import {
|
|
42
42
|
AGENT_REASON,
|
|
43
43
|
buildCommandWithGlobalFlags,
|
|
44
44
|
outputAgentError
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-TH2XUVDP.js";
|
|
46
46
|
import "./chunk-GGP5R3FU.js";
|
|
47
47
|
import {
|
|
48
48
|
printError
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeProjectSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KSZ4MNHO.js";
|
|
10
10
|
import {
|
|
11
11
|
autoInstallVercelPlugin
|
|
12
12
|
} from "./chunk-HT2XWSAJ.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk-64IF634X.js";
|
|
16
16
|
import {
|
|
17
17
|
pullCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y3J4VU2H.js";
|
|
19
19
|
import {
|
|
20
20
|
help
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XI6NJLI4.js";
|
|
22
22
|
import {
|
|
23
23
|
VERCEL_DIR,
|
|
24
24
|
VERCEL_DIR_PROJECT,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
envPullCommandLogic,
|
|
27
27
|
humanizePath,
|
|
28
28
|
parseTarget
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HMJVUXE6.js";
|
|
30
30
|
import {
|
|
31
31
|
TelemetryClient
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CYNB6LL4.js";
|
|
33
33
|
import {
|
|
34
34
|
printError
|
|
35
35
|
} from "./chunk-VAFU7DXZ.js";
|
|
@@ -9,19 +9,19 @@ import {
|
|
|
9
9
|
} from "./chunk-PRWJUY5U.js";
|
|
10
10
|
import {
|
|
11
11
|
progress
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EB5NBVTV.js";
|
|
13
13
|
import {
|
|
14
14
|
isJSONObject,
|
|
15
15
|
printIndications,
|
|
16
16
|
require_dist as require_dist2,
|
|
17
17
|
sleep
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-O5DLWLT7.js";
|
|
19
19
|
import {
|
|
20
20
|
suggestNextCommands
|
|
21
21
|
} from "./chunk-XBN2O34P.js";
|
|
22
22
|
import {
|
|
23
23
|
CommandTimeout
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HURL5EBN.js";
|
|
25
25
|
import {
|
|
26
26
|
showPluginTipIfNeeded
|
|
27
27
|
} from "./chunk-HT2XWSAJ.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
require_dist as require_dist3,
|
|
39
39
|
require_pluralize,
|
|
40
40
|
ua_default
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HMJVUXE6.js";
|
|
42
42
|
import {
|
|
43
43
|
require_ms
|
|
44
44
|
} from "./chunk-GGP5R3FU.js";
|
|
@@ -1888,7 +1888,7 @@ async function purchaseDomain(client, name, expectedPrice, years, autoRenew = tr
|
|
|
1888
1888
|
return domain2;
|
|
1889
1889
|
}
|
|
1890
1890
|
}
|
|
1891
|
-
if (order.error?.code === "
|
|
1891
|
+
if (order.error?.code === "payment-failed") {
|
|
1892
1892
|
return new DomainPaymentError();
|
|
1893
1893
|
}
|
|
1894
1894
|
return new UnexpectedDomainPurchaseError(name);
|
|
@@ -6,17 +6,17 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveAlertsScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VCE6QKFE.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
13
13
|
validateAllProjectMutualExclusivity
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KQRVZWJU.js";
|
|
15
15
|
import {
|
|
16
16
|
AGENT_REASON,
|
|
17
17
|
buildCommandWithGlobalFlags,
|
|
18
18
|
outputAgentError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TH2XUVDP.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/alerts/rules/parse-scope.ts
|
|
22
22
|
async function parseRulesFlagsAndScope(client, flags, jsonOutput, command = "alerts rules ls") {
|
|
@@ -1608,7 +1608,7 @@ var require_pify = __commonJS({
|
|
|
1608
1608
|
for (var i = 0; i < arguments.length; i++) {
|
|
1609
1609
|
args[i] = arguments[i];
|
|
1610
1610
|
}
|
|
1611
|
-
return new P(function(
|
|
1611
|
+
return new P(function(resolve2, reject) {
|
|
1612
1612
|
args.push(function(err, result) {
|
|
1613
1613
|
if (err) {
|
|
1614
1614
|
reject(err);
|
|
@@ -1617,9 +1617,9 @@ var require_pify = __commonJS({
|
|
|
1617
1617
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
1618
1618
|
results[i2 - 1] = arguments[i2];
|
|
1619
1619
|
}
|
|
1620
|
-
|
|
1620
|
+
resolve2(results);
|
|
1621
1621
|
} else {
|
|
1622
|
-
|
|
1622
|
+
resolve2(result);
|
|
1623
1623
|
}
|
|
1624
1624
|
});
|
|
1625
1625
|
fn.apply(that, args);
|
|
@@ -1818,28 +1818,28 @@ var require_write_file_atomic = __commonJS({
|
|
|
1818
1818
|
var tmpfile;
|
|
1819
1819
|
var removeOnExitHandler = onExit(cleanupOnExit(() => tmpfile));
|
|
1820
1820
|
var absoluteName = path.resolve(filename);
|
|
1821
|
-
new Promise2(function serializeSameFile(
|
|
1821
|
+
new Promise2(function serializeSameFile(resolve2) {
|
|
1822
1822
|
if (!activeFiles[absoluteName])
|
|
1823
1823
|
activeFiles[absoluteName] = [];
|
|
1824
|
-
activeFiles[absoluteName].push(
|
|
1824
|
+
activeFiles[absoluteName].push(resolve2);
|
|
1825
1825
|
if (activeFiles[absoluteName].length === 1)
|
|
1826
|
-
|
|
1826
|
+
resolve2();
|
|
1827
1827
|
}).then(function getRealPath() {
|
|
1828
|
-
return new Promise2(function(
|
|
1828
|
+
return new Promise2(function(resolve2) {
|
|
1829
1829
|
fs.realpath(filename, function(_, realname) {
|
|
1830
1830
|
truename = realname || filename;
|
|
1831
1831
|
tmpfile = getTmpname(truename);
|
|
1832
|
-
|
|
1832
|
+
resolve2();
|
|
1833
1833
|
});
|
|
1834
1834
|
});
|
|
1835
1835
|
}).then(function stat() {
|
|
1836
|
-
return new Promise2(function stat2(
|
|
1836
|
+
return new Promise2(function stat2(resolve2) {
|
|
1837
1837
|
if (options.mode && options.chown)
|
|
1838
|
-
|
|
1838
|
+
resolve2();
|
|
1839
1839
|
else {
|
|
1840
1840
|
fs.stat(truename, function(err, stats) {
|
|
1841
1841
|
if (err || !stats)
|
|
1842
|
-
|
|
1842
|
+
resolve2();
|
|
1843
1843
|
else {
|
|
1844
1844
|
options = Object.assign({}, options);
|
|
1845
1845
|
if (options.mode == null) {
|
|
@@ -1848,91 +1848,91 @@ var require_write_file_atomic = __commonJS({
|
|
|
1848
1848
|
if (options.chown == null && process.getuid) {
|
|
1849
1849
|
options.chown = { uid: stats.uid, gid: stats.gid };
|
|
1850
1850
|
}
|
|
1851
|
-
|
|
1851
|
+
resolve2();
|
|
1852
1852
|
}
|
|
1853
1853
|
});
|
|
1854
1854
|
}
|
|
1855
1855
|
});
|
|
1856
1856
|
}).then(function thenWriteFile() {
|
|
1857
|
-
return new Promise2(function(
|
|
1857
|
+
return new Promise2(function(resolve2, reject) {
|
|
1858
1858
|
fs.open(tmpfile, "w", options.mode, function(err, _fd) {
|
|
1859
1859
|
fd = _fd;
|
|
1860
1860
|
if (err)
|
|
1861
1861
|
reject(err);
|
|
1862
1862
|
else
|
|
1863
|
-
|
|
1863
|
+
resolve2();
|
|
1864
1864
|
});
|
|
1865
1865
|
});
|
|
1866
1866
|
}).then(function write() {
|
|
1867
|
-
return new Promise2(function(
|
|
1867
|
+
return new Promise2(function(resolve2, reject) {
|
|
1868
1868
|
if (Buffer.isBuffer(data)) {
|
|
1869
1869
|
fs.write(fd, data, 0, data.length, 0, function(err) {
|
|
1870
1870
|
if (err)
|
|
1871
1871
|
reject(err);
|
|
1872
1872
|
else
|
|
1873
|
-
|
|
1873
|
+
resolve2();
|
|
1874
1874
|
});
|
|
1875
1875
|
} else if (data != null) {
|
|
1876
1876
|
fs.write(fd, String(data), 0, String(options.encoding || "utf8"), function(err) {
|
|
1877
1877
|
if (err)
|
|
1878
1878
|
reject(err);
|
|
1879
1879
|
else
|
|
1880
|
-
|
|
1880
|
+
resolve2();
|
|
1881
1881
|
});
|
|
1882
1882
|
} else
|
|
1883
|
-
|
|
1883
|
+
resolve2();
|
|
1884
1884
|
});
|
|
1885
1885
|
}).then(function syncAndClose() {
|
|
1886
|
-
return new Promise2(function(
|
|
1886
|
+
return new Promise2(function(resolve2, reject) {
|
|
1887
1887
|
if (options.fsync !== false) {
|
|
1888
1888
|
fs.fsync(fd, function(err) {
|
|
1889
1889
|
if (err)
|
|
1890
1890
|
fs.close(fd, () => reject(err));
|
|
1891
1891
|
else
|
|
1892
|
-
fs.close(fd,
|
|
1892
|
+
fs.close(fd, resolve2);
|
|
1893
1893
|
});
|
|
1894
1894
|
} else {
|
|
1895
|
-
fs.close(fd,
|
|
1895
|
+
fs.close(fd, resolve2);
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
1898
|
}).then(function chown() {
|
|
1899
1899
|
fd = null;
|
|
1900
1900
|
if (options.chown) {
|
|
1901
|
-
return new Promise2(function(
|
|
1901
|
+
return new Promise2(function(resolve2, reject) {
|
|
1902
1902
|
fs.chown(tmpfile, options.chown.uid, options.chown.gid, function(err) {
|
|
1903
1903
|
if (err)
|
|
1904
1904
|
reject(err);
|
|
1905
1905
|
else
|
|
1906
|
-
|
|
1906
|
+
resolve2();
|
|
1907
1907
|
});
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
}).then(function chmod() {
|
|
1911
1911
|
if (options.mode) {
|
|
1912
|
-
return new Promise2(function(
|
|
1912
|
+
return new Promise2(function(resolve2, reject) {
|
|
1913
1913
|
fs.chmod(tmpfile, options.mode, function(err) {
|
|
1914
1914
|
if (err)
|
|
1915
1915
|
reject(err);
|
|
1916
1916
|
else
|
|
1917
|
-
|
|
1917
|
+
resolve2();
|
|
1918
1918
|
});
|
|
1919
1919
|
});
|
|
1920
1920
|
}
|
|
1921
1921
|
}).then(function rename() {
|
|
1922
|
-
return new Promise2(function(
|
|
1922
|
+
return new Promise2(function(resolve2, reject) {
|
|
1923
1923
|
fs.rename(tmpfile, truename, function(err) {
|
|
1924
1924
|
if (err)
|
|
1925
1925
|
reject(err);
|
|
1926
1926
|
else
|
|
1927
|
-
|
|
1927
|
+
resolve2();
|
|
1928
1928
|
});
|
|
1929
1929
|
});
|
|
1930
1930
|
}).then(function success() {
|
|
1931
1931
|
removeOnExitHandler();
|
|
1932
1932
|
callback();
|
|
1933
1933
|
}, function fail(err) {
|
|
1934
|
-
return new Promise2((
|
|
1935
|
-
return fd ? fs.close(fd,
|
|
1934
|
+
return new Promise2((resolve2) => {
|
|
1935
|
+
return fd ? fs.close(fd, resolve2) : resolve2();
|
|
1936
1936
|
}).then(() => {
|
|
1937
1937
|
removeOnExitHandler();
|
|
1938
1938
|
fs.unlink(tmpfile, function() {
|
|
@@ -2064,7 +2064,7 @@ var require_pify2 = __commonJS({
|
|
|
2064
2064
|
for (let i = 0; i < arguments.length; i++) {
|
|
2065
2065
|
args[i] = arguments[i];
|
|
2066
2066
|
}
|
|
2067
|
-
return new P((
|
|
2067
|
+
return new P((resolve2, reject) => {
|
|
2068
2068
|
if (opts.errorFirst) {
|
|
2069
2069
|
args.push(function(err, result) {
|
|
2070
2070
|
if (opts.multiArgs) {
|
|
@@ -2076,12 +2076,12 @@ var require_pify2 = __commonJS({
|
|
|
2076
2076
|
results.unshift(err);
|
|
2077
2077
|
reject(results);
|
|
2078
2078
|
} else {
|
|
2079
|
-
|
|
2079
|
+
resolve2(results);
|
|
2080
2080
|
}
|
|
2081
2081
|
} else if (err) {
|
|
2082
2082
|
reject(err);
|
|
2083
2083
|
} else {
|
|
2084
|
-
|
|
2084
|
+
resolve2(result);
|
|
2085
2085
|
}
|
|
2086
2086
|
});
|
|
2087
2087
|
} else {
|
|
@@ -2091,9 +2091,9 @@ var require_pify2 = __commonJS({
|
|
|
2091
2091
|
for (let i = 0; i < arguments.length; i++) {
|
|
2092
2092
|
results[i] = arguments[i];
|
|
2093
2093
|
}
|
|
2094
|
-
|
|
2094
|
+
resolve2(results);
|
|
2095
2095
|
} else {
|
|
2096
|
-
|
|
2096
|
+
resolve2(result);
|
|
2097
2097
|
}
|
|
2098
2098
|
});
|
|
2099
2099
|
}
|
|
@@ -2352,9 +2352,15 @@ var require_write_json_file = __commonJS({
|
|
|
2352
2352
|
});
|
|
2353
2353
|
|
|
2354
2354
|
// src/util/native-install.ts
|
|
2355
|
+
import { getDataPath } from "@vercel/cli-config";
|
|
2356
|
+
import { resolve } from "path";
|
|
2355
2357
|
function isNativeBinaryInstall() {
|
|
2356
2358
|
return process.env.VERCEL_VC_NATIVE === "1";
|
|
2357
2359
|
}
|
|
2360
|
+
function getInstallRoot() {
|
|
2361
|
+
const root = process.env.VERCEL_INSTALL_DIR;
|
|
2362
|
+
return root ? resolve(root) : getDataPath();
|
|
2363
|
+
}
|
|
2358
2364
|
|
|
2359
2365
|
// src/util/telemetry/index.ts
|
|
2360
2366
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -2874,7 +2880,7 @@ var TelemetryEventStore = class {
|
|
|
2874
2880
|
VERCEL_TELEMETRY_DISABLED: "1"
|
|
2875
2881
|
});
|
|
2876
2882
|
if (outputDebugEnabled) {
|
|
2877
|
-
return new Promise((
|
|
2883
|
+
return new Promise((resolve2) => {
|
|
2878
2884
|
const childProcess = spawn(nodeBinaryPath, script, {
|
|
2879
2885
|
env,
|
|
2880
2886
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -2892,7 +2898,7 @@ var TelemetryEventStore = class {
|
|
|
2892
2898
|
output_manager_default.debug(`Telemetry subprocess exited with code ${code}`);
|
|
2893
2899
|
childProcess.unref();
|
|
2894
2900
|
timeout.unref();
|
|
2895
|
-
|
|
2901
|
+
resolve2();
|
|
2896
2902
|
});
|
|
2897
2903
|
});
|
|
2898
2904
|
} else {
|
|
@@ -2912,6 +2918,7 @@ export {
|
|
|
2912
2918
|
require_dist,
|
|
2913
2919
|
require_load_json_file,
|
|
2914
2920
|
isNativeBinaryInstall,
|
|
2921
|
+
getInstallRoot,
|
|
2915
2922
|
TelemetryClient,
|
|
2916
2923
|
TelemetryEventStore
|
|
2917
2924
|
};
|
|
@@ -5,18 +5,19 @@ const require = __createRequire(import.meta.url);
|
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
|
-
outputError
|
|
9
|
-
|
|
8
|
+
outputError,
|
|
9
|
+
writeJsonError
|
|
10
|
+
} from "./chunk-KQRVZWJU.js";
|
|
10
11
|
import {
|
|
12
|
+
detectExplicitScope,
|
|
11
13
|
getLinkedProject,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
getScope,
|
|
15
|
+
resolveProjectContext
|
|
16
|
+
} from "./chunk-HMJVUXE6.js";
|
|
15
17
|
import {
|
|
16
18
|
printError
|
|
17
19
|
} from "./chunk-VAFU7DXZ.js";
|
|
18
20
|
import {
|
|
19
|
-
ProjectNotFound,
|
|
20
21
|
getCommandName,
|
|
21
22
|
isAPIError
|
|
22
23
|
} from "./chunk-SOFC4MLS.js";
|
|
@@ -111,28 +112,18 @@ function toApiErrorParts(err) {
|
|
|
111
112
|
|
|
112
113
|
// src/commands/comments/scope.ts
|
|
113
114
|
import { spawnSync } from "child_process";
|
|
114
|
-
function scopeIsExplicit(client) {
|
|
115
|
-
return client.argv.some(
|
|
116
|
-
(arg) => arg === "--scope" || arg === "-S" || arg.startsWith("--scope=") || arg === "--team" || arg.startsWith("--team=") || arg === "-T"
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
115
|
async function resolveCommentsScope(client, opts) {
|
|
120
|
-
if (opts.urlTeamSlug && !opts.project && !
|
|
116
|
+
if (opts.urlTeamSlug && !opts.project && !detectExplicitScope(client)) {
|
|
121
117
|
return { teamId: opts.urlTeamSlug, teamSlug: opts.urlTeamSlug };
|
|
122
118
|
}
|
|
123
119
|
if (opts.project) {
|
|
124
|
-
|
|
125
|
-
if (!team2) {
|
|
126
|
-
return outputError(
|
|
127
|
-
client,
|
|
128
|
-
opts.jsonOutput,
|
|
129
|
-
"NO_TEAM",
|
|
130
|
-
"No team context found. Run `vercel switch` to select a team, or run `vercel link` in a project directory."
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
let project;
|
|
120
|
+
let context;
|
|
134
121
|
try {
|
|
135
|
-
|
|
122
|
+
context = await resolveProjectContext({
|
|
123
|
+
client,
|
|
124
|
+
projectNameOrId: opts.project,
|
|
125
|
+
projectNotFoundHandling: opts.jsonOutput ? "return" : "report"
|
|
126
|
+
});
|
|
136
127
|
} catch (err) {
|
|
137
128
|
if (isAPIError(err)) {
|
|
138
129
|
return outputError(
|
|
@@ -144,19 +135,30 @@ async function resolveCommentsScope(client, opts) {
|
|
|
144
135
|
}
|
|
145
136
|
throw err;
|
|
146
137
|
}
|
|
147
|
-
if (
|
|
138
|
+
if (context.status === "error") {
|
|
139
|
+
if (opts.jsonOutput) {
|
|
140
|
+
writeJsonError(
|
|
141
|
+
client,
|
|
142
|
+
"PROJECT_CONTEXT_ERROR",
|
|
143
|
+
"Could not resolve the project context."
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
return context.exitCode;
|
|
147
|
+
}
|
|
148
|
+
if (context.status === "not_linked") {
|
|
148
149
|
return outputError(
|
|
149
150
|
client,
|
|
150
151
|
opts.jsonOutput,
|
|
151
152
|
"PROJECT_NOT_FOUND",
|
|
152
|
-
`Project "${opts.project}" was not found in
|
|
153
|
+
`Project "${opts.project}" was not found in the current scope.`
|
|
153
154
|
);
|
|
154
155
|
}
|
|
155
156
|
return {
|
|
156
|
-
teamId:
|
|
157
|
-
teamSlug:
|
|
158
|
-
projectId: project.id,
|
|
159
|
-
projectName: project.name
|
|
157
|
+
teamId: context.org.id,
|
|
158
|
+
teamSlug: context.org.slug,
|
|
159
|
+
projectId: context.project.id,
|
|
160
|
+
projectName: context.project.name,
|
|
161
|
+
linked: Boolean(context.repoRoot)
|
|
160
162
|
};
|
|
161
163
|
}
|
|
162
164
|
const linked = await getLinkedProject(client);
|
|
@@ -164,7 +166,7 @@ async function resolveCommentsScope(client, opts) {
|
|
|
164
166
|
return linked.exitCode;
|
|
165
167
|
}
|
|
166
168
|
if (linked.status === "linked") {
|
|
167
|
-
if (
|
|
169
|
+
if (detectExplicitScope(client)) {
|
|
168
170
|
const { team: team2 } = await getScope(client);
|
|
169
171
|
if (!team2) {
|
|
170
172
|
return outputError(
|
|
@@ -6,16 +6,16 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
loginCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HURL5EBN.js";
|
|
10
10
|
import {
|
|
11
11
|
help
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XI6NJLI4.js";
|
|
13
13
|
import {
|
|
14
14
|
login
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HMJVUXE6.js";
|
|
16
16
|
import {
|
|
17
17
|
TelemetryClient
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CYNB6LL4.js";
|
|
19
19
|
import {
|
|
20
20
|
printError
|
|
21
21
|
} from "./chunk-VAFU7DXZ.js";
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HMJVUXE6.js";
|
|
10
10
|
import {
|
|
11
11
|
isNativeBinaryInstall
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CYNB6LL4.js";
|
|
13
13
|
import {
|
|
14
14
|
packageName
|
|
15
15
|
} from "./chunk-SOFC4MLS.js";
|