vercel 54.17.3 → 54.18.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-PQWZCK7O.js → add-6IFGG2TY.js} +8 -8
- package/dist/chunks/chunk-2RVK3DDN.js +224 -0
- package/dist/chunks/{chunk-OYQKUG4C.js → chunk-5ACKBNHW.js} +8 -8
- package/dist/chunks/{chunk-HCJRHKSM.js → chunk-AQIWBG3Y.js} +8 -8
- package/dist/chunks/{chunk-IAOBSXJ5.js → chunk-AWAUGLOM.js} +3 -3
- package/dist/chunks/{chunk-2CYJVSAM.js → chunk-B3VMTJM2.js} +1 -1
- package/dist/chunks/{chunk-UXP2N2WD.js → chunk-C6H4BP2L.js} +57 -5
- package/dist/chunks/{chunk-YI3JV6GM.js → chunk-CT3OCODK.js} +1 -1
- package/dist/chunks/{chunk-5FAPBIX6.js → chunk-DZ65TDY4.js} +1 -1
- package/dist/chunks/{chunk-NRP6ZKXJ.js → chunk-F57GYOKZ.js} +1 -1
- package/dist/chunks/{chunk-G4YL2LRL.js → chunk-FOPFOSQM.js} +2 -2
- package/dist/chunks/{chunk-JKIM3UW3.js → chunk-GZ5KF7HK.js} +5 -5
- package/dist/chunks/{chunk-ATBH7KGL.js → chunk-HMWVVA4B.js} +1 -1
- package/dist/chunks/{chunk-4FG6Q2EM.js → chunk-IBJBNVZV.js} +1 -1
- package/dist/chunks/{chunk-QM7D5H2G.js → chunk-JJKW6J63.js} +1 -1
- package/dist/chunks/{chunk-MB63D7UN.js → chunk-JWQ37WLT.js} +4 -3
- package/dist/chunks/{chunk-QMMMXYOY.js → chunk-KQDEJE65.js} +2 -2
- package/dist/chunks/{chunk-6V37RSQB.js → chunk-MUDZFSZC.js} +1 -1
- package/dist/chunks/{chunk-OSXRHH6W.js → chunk-UNIIXDM2.js} +20 -20
- package/dist/chunks/{chunk-BHMMV3HE.js → chunk-VUVQO3LF.js} +3605 -512
- package/dist/chunks/{chunk-FMBDRMTZ.js → chunk-X7KGEDKQ.js} +9 -8
- package/dist/chunks/{chunk-P4KQ3FJ4.js → chunk-XQQXV6ZZ.js} +1 -0
- package/dist/chunks/{chunk-SBYEIQ32.js → chunk-YHFZKOKK.js} +1 -1
- package/dist/chunks/{compile-vercel-config-45XN4U4D.js → compile-vercel-config-CZH5GU3R.js} +4 -4
- package/dist/chunks/{delete-RQYOSBNO.js → delete-KZJPJUTT.js} +5 -5
- package/dist/chunks/{disable-RRGOZIA7.js → disable-XXKGGPR5.js} +5 -5
- package/dist/chunks/{discard-X2NIGII5.js → discard-VFWCCRDF.js} +5 -5
- package/dist/chunks/{edit-QV3Y6IUT.js → edit-RY2KAHX2.js} +6 -6
- package/dist/chunks/{enable-UQAJJKCG.js → enable-M2PSCPZH.js} +5 -5
- package/dist/chunks/{exec-HI4HF4GY.js → exec-CGBHRYWG.js} +14 -9
- package/dist/chunks/{export-D4YNS2G5.js → export-U3ZPYBWC.js} +5 -5
- package/dist/chunks/fetch-proxy-R3JZNXBZ.js +99 -0
- package/dist/chunks/{inspect-FHB3H3NA.js → inspect-HI7DLEJ2.js} +7 -7
- package/dist/chunks/{list-QYUCZR26.js → list-KLZIIRGS.js} +12 -12
- package/dist/chunks/{list-6RAHTDT2.js → list-TUYF4LRT.js} +6 -6
- package/dist/chunks/{ls-GKWWEHQS.js → ls-6PFY2I7Q.js} +8 -8
- package/dist/chunks/{publish-UTKKRA4P.js → publish-GXWEL4UA.js} +5 -5
- package/dist/chunks/{query-NM7MXRFW.js → query-SLLJ6OJT.js} +11 -11
- package/dist/chunks/{reorder-ZLVQQBMG.js → reorder-VRC6BLJM.js} +5 -5
- package/dist/chunks/{restore-SDTDA4A6.js → restore-SMXHUGVC.js} +5 -5
- package/dist/chunks/{rm-65PQY7XN.js → rm-V7DGLIHX.js} +8 -8
- package/dist/chunks/{rule-inspect-JFKSPCDU.js → rule-inspect-7AZGYZDI.js} +8 -8
- package/dist/chunks/{rules-6672IXZE.js → rules-MQBE2RMP.js} +6 -6
- package/dist/chunks/{schema-DC2LLUHD.js → schema-EMHEFUMV.js} +6 -6
- package/dist/chunks/{update-7VFELUTD.js → update-GSQ26HZG.js} +8 -8
- package/dist/commands/build/index.js +28 -18
- package/dist/commands/deploy/index.js +21 -21
- package/dist/commands/dev/index.js +46 -38
- package/dist/commands/env/index.js +15 -15
- package/dist/commands/link/index.js +13 -13
- package/dist/commands/list/index.js +12 -12
- package/dist/commands-bulk.js +227 -84
- package/dist/fetch-dist-tags.cjs +60 -0
- package/dist/get-latest-worker.cjs +6 -56
- package/dist/help.js +1 -1
- package/dist/index.js +200 -61
- package/dist/version.mjs +1 -1
- package/package.json +17 -19
- package/dist/chunks/chunk-N2T234LO.js +0 -3144
- package/dist/chunks/{chunk-3NR6OYDV.js → chunk-LWJWW6ZY.js} +3 -3
- package/dist/chunks/{chunk-D7MGZH35.js → chunk-U5FVI3MF.js} +3 -3
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-FOPFOSQM.js";
|
|
13
|
+
import "./chunk-AWAUGLOM.js";
|
|
14
|
+
import "./chunk-U5FVI3MF.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
17
17
|
} from "./chunk-XPKWKPWA.js";
|
|
@@ -21,15 +21,13 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-QH7WYDEP.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-Q77ALSXR.js";
|
|
24
|
+
import "./chunk-MUDZFSZC.js";
|
|
25
|
+
import "./chunk-VUVQO3LF.js";
|
|
27
26
|
import {
|
|
28
27
|
buildCommandWithGlobalFlags,
|
|
29
28
|
outputAgentError
|
|
30
29
|
} from "./chunk-X5UROEGN.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-GGP5R3FU.js";
|
|
30
|
+
import "./chunk-Q77ALSXR.js";
|
|
33
31
|
import {
|
|
34
32
|
getFlagsSpecification,
|
|
35
33
|
parseArguments,
|
|
@@ -40,9 +38,11 @@ import {
|
|
|
40
38
|
packageName
|
|
41
39
|
} from "./chunk-LN6B7ZI3.js";
|
|
42
40
|
import "./chunk-P4QNYOFB.js";
|
|
41
|
+
import "./chunk-2RVK3DDN.js";
|
|
43
42
|
import {
|
|
44
43
|
output_manager_default
|
|
45
44
|
} from "./chunk-Z5SBJH6L.js";
|
|
45
|
+
import "./chunk-GGP5R3FU.js";
|
|
46
46
|
import "./chunk-S7KYDPEM.js";
|
|
47
47
|
import "./chunk-TZ2YI2VH.js";
|
|
48
48
|
|
|
@@ -0,0 +1,224 @@
|
|
|
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
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
10
|
+
|
|
11
|
+
// ../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js
|
|
12
|
+
var require_wrappy = __commonJS({
|
|
13
|
+
"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(exports, module) {
|
|
14
|
+
module.exports = wrappy;
|
|
15
|
+
function wrappy(fn, cb) {
|
|
16
|
+
if (fn && cb)
|
|
17
|
+
return wrappy(fn)(cb);
|
|
18
|
+
if (typeof fn !== "function")
|
|
19
|
+
throw new TypeError("need wrapper function");
|
|
20
|
+
Object.keys(fn).forEach(function(k) {
|
|
21
|
+
wrapper[k] = fn[k];
|
|
22
|
+
});
|
|
23
|
+
return wrapper;
|
|
24
|
+
function wrapper() {
|
|
25
|
+
var args = new Array(arguments.length);
|
|
26
|
+
for (var i = 0; i < args.length; i++) {
|
|
27
|
+
args[i] = arguments[i];
|
|
28
|
+
}
|
|
29
|
+
var ret = fn.apply(this, args);
|
|
30
|
+
var cb2 = args[args.length - 1];
|
|
31
|
+
if (typeof ret === "function" && ret !== cb2) {
|
|
32
|
+
Object.keys(cb2).forEach(function(k) {
|
|
33
|
+
ret[k] = cb2[k];
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return ret;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// ../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js
|
|
43
|
+
var require_once = __commonJS({
|
|
44
|
+
"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(exports, module) {
|
|
45
|
+
var wrappy = require_wrappy();
|
|
46
|
+
module.exports = wrappy(once);
|
|
47
|
+
module.exports.strict = wrappy(onceStrict);
|
|
48
|
+
once.proto = once(function() {
|
|
49
|
+
Object.defineProperty(Function.prototype, "once", {
|
|
50
|
+
value: function() {
|
|
51
|
+
return once(this);
|
|
52
|
+
},
|
|
53
|
+
configurable: true
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(Function.prototype, "onceStrict", {
|
|
56
|
+
value: function() {
|
|
57
|
+
return onceStrict(this);
|
|
58
|
+
},
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
function once(fn) {
|
|
63
|
+
var f = function() {
|
|
64
|
+
if (f.called)
|
|
65
|
+
return f.value;
|
|
66
|
+
f.called = true;
|
|
67
|
+
return f.value = fn.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
f.called = false;
|
|
70
|
+
return f;
|
|
71
|
+
}
|
|
72
|
+
function onceStrict(fn) {
|
|
73
|
+
var f = function() {
|
|
74
|
+
if (f.called)
|
|
75
|
+
throw new Error(f.onceError);
|
|
76
|
+
f.called = true;
|
|
77
|
+
return f.value = fn.apply(this, arguments);
|
|
78
|
+
};
|
|
79
|
+
var name = fn.name || "Function wrapped with `once`";
|
|
80
|
+
f.onceError = name + " shouldn't be called more than once";
|
|
81
|
+
f.called = false;
|
|
82
|
+
return f;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
// ../../node_modules/.pnpm/end-of-stream@1.4.1/node_modules/end-of-stream/index.js
|
|
88
|
+
var require_end_of_stream = __commonJS({
|
|
89
|
+
"../../node_modules/.pnpm/end-of-stream@1.4.1/node_modules/end-of-stream/index.js"(exports, module) {
|
|
90
|
+
var once = require_once();
|
|
91
|
+
var noop = function() {
|
|
92
|
+
};
|
|
93
|
+
var isRequest = function(stream) {
|
|
94
|
+
return stream.setHeader && typeof stream.abort === "function";
|
|
95
|
+
};
|
|
96
|
+
var isChildProcess = function(stream) {
|
|
97
|
+
return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3;
|
|
98
|
+
};
|
|
99
|
+
var eos = function(stream, opts, callback) {
|
|
100
|
+
if (typeof opts === "function")
|
|
101
|
+
return eos(stream, null, opts);
|
|
102
|
+
if (!opts)
|
|
103
|
+
opts = {};
|
|
104
|
+
callback = once(callback || noop);
|
|
105
|
+
var ws = stream._writableState;
|
|
106
|
+
var rs = stream._readableState;
|
|
107
|
+
var readable = opts.readable || opts.readable !== false && stream.readable;
|
|
108
|
+
var writable = opts.writable || opts.writable !== false && stream.writable;
|
|
109
|
+
var onlegacyfinish = function() {
|
|
110
|
+
if (!stream.writable)
|
|
111
|
+
onfinish();
|
|
112
|
+
};
|
|
113
|
+
var onfinish = function() {
|
|
114
|
+
writable = false;
|
|
115
|
+
if (!readable)
|
|
116
|
+
callback.call(stream);
|
|
117
|
+
};
|
|
118
|
+
var onend = function() {
|
|
119
|
+
readable = false;
|
|
120
|
+
if (!writable)
|
|
121
|
+
callback.call(stream);
|
|
122
|
+
};
|
|
123
|
+
var onexit = function(exitCode) {
|
|
124
|
+
callback.call(stream, exitCode ? new Error("exited with error code: " + exitCode) : null);
|
|
125
|
+
};
|
|
126
|
+
var onerror = function(err) {
|
|
127
|
+
callback.call(stream, err);
|
|
128
|
+
};
|
|
129
|
+
var onclose = function() {
|
|
130
|
+
if (readable && !(rs && rs.ended))
|
|
131
|
+
return callback.call(stream, new Error("premature close"));
|
|
132
|
+
if (writable && !(ws && ws.ended))
|
|
133
|
+
return callback.call(stream, new Error("premature close"));
|
|
134
|
+
};
|
|
135
|
+
var onrequest = function() {
|
|
136
|
+
stream.req.on("finish", onfinish);
|
|
137
|
+
};
|
|
138
|
+
if (isRequest(stream)) {
|
|
139
|
+
stream.on("complete", onfinish);
|
|
140
|
+
stream.on("abort", onclose);
|
|
141
|
+
if (stream.req)
|
|
142
|
+
onrequest();
|
|
143
|
+
else
|
|
144
|
+
stream.on("request", onrequest);
|
|
145
|
+
} else if (writable && !ws) {
|
|
146
|
+
stream.on("end", onlegacyfinish);
|
|
147
|
+
stream.on("close", onlegacyfinish);
|
|
148
|
+
}
|
|
149
|
+
if (isChildProcess(stream))
|
|
150
|
+
stream.on("exit", onexit);
|
|
151
|
+
stream.on("end", onend);
|
|
152
|
+
stream.on("finish", onfinish);
|
|
153
|
+
if (opts.error !== false)
|
|
154
|
+
stream.on("error", onerror);
|
|
155
|
+
stream.on("close", onclose);
|
|
156
|
+
return function() {
|
|
157
|
+
stream.removeListener("complete", onfinish);
|
|
158
|
+
stream.removeListener("abort", onclose);
|
|
159
|
+
stream.removeListener("request", onrequest);
|
|
160
|
+
if (stream.req)
|
|
161
|
+
stream.req.removeListener("finish", onfinish);
|
|
162
|
+
stream.removeListener("end", onlegacyfinish);
|
|
163
|
+
stream.removeListener("close", onlegacyfinish);
|
|
164
|
+
stream.removeListener("finish", onfinish);
|
|
165
|
+
stream.removeListener("exit", onexit);
|
|
166
|
+
stream.removeListener("end", onend);
|
|
167
|
+
stream.removeListener("error", onerror);
|
|
168
|
+
stream.removeListener("close", onclose);
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
module.exports = eos;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
// src/util/fetch.ts
|
|
176
|
+
import { Readable } from "stream";
|
|
177
|
+
var Headers = globalThis.Headers;
|
|
178
|
+
var Request = globalThis.Request;
|
|
179
|
+
var Response = globalThis.Response;
|
|
180
|
+
var fetchDispatcher;
|
|
181
|
+
function setFetchDispatcher(dispatcher) {
|
|
182
|
+
fetchDispatcher = dispatcher;
|
|
183
|
+
}
|
|
184
|
+
function fetch(input, init) {
|
|
185
|
+
const options = { ...init };
|
|
186
|
+
if (fetchDispatcher) {
|
|
187
|
+
options.dispatcher = fetchDispatcher;
|
|
188
|
+
}
|
|
189
|
+
if (init?.body instanceof Readable) {
|
|
190
|
+
options.duplex = "half";
|
|
191
|
+
}
|
|
192
|
+
return globalThis.fetch(
|
|
193
|
+
input,
|
|
194
|
+
options
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
function directFetch(input, init) {
|
|
198
|
+
const options = { ...init };
|
|
199
|
+
delete options.dispatcher;
|
|
200
|
+
if (init?.body instanceof Readable) {
|
|
201
|
+
options.duplex = "half";
|
|
202
|
+
}
|
|
203
|
+
return globalThis.fetch(
|
|
204
|
+
input,
|
|
205
|
+
options
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
function toNodeReadable(body) {
|
|
209
|
+
if (!body) {
|
|
210
|
+
throw new TypeError("Expected response body");
|
|
211
|
+
}
|
|
212
|
+
return Readable.fromWeb(body);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export {
|
|
216
|
+
Headers,
|
|
217
|
+
setFetchDispatcher,
|
|
218
|
+
fetch,
|
|
219
|
+
directFetch,
|
|
220
|
+
toNodeReadable,
|
|
221
|
+
require_wrappy,
|
|
222
|
+
require_once,
|
|
223
|
+
require_end_of_stream
|
|
224
|
+
};
|
|
@@ -7,33 +7,30 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
9
|
isGlobal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YHFZKOKK.js";
|
|
11
11
|
import {
|
|
12
12
|
getGlobalPathConfig,
|
|
13
13
|
progress,
|
|
14
14
|
writeToConfigFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AQIWBG3Y.js";
|
|
16
16
|
import {
|
|
17
17
|
apiCommand,
|
|
18
18
|
listSubcommand2 as listSubcommand,
|
|
19
19
|
loginCommand
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-C6H4BP2L.js";
|
|
21
21
|
import {
|
|
22
22
|
require_semver
|
|
23
23
|
} from "./chunk-IB5L4LKZ.js";
|
|
24
24
|
import {
|
|
25
25
|
help
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LWJWW6ZY.js";
|
|
27
27
|
import {
|
|
28
28
|
login
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VUVQO3LF.js";
|
|
30
30
|
import {
|
|
31
31
|
TelemetryClient,
|
|
32
32
|
isNativeBinaryInstall
|
|
33
33
|
} from "./chunk-Q77ALSXR.js";
|
|
34
|
-
import {
|
|
35
|
-
require_ms
|
|
36
|
-
} from "./chunk-GGP5R3FU.js";
|
|
37
34
|
import {
|
|
38
35
|
getFlagsSpecification,
|
|
39
36
|
parseArguments,
|
|
@@ -49,6 +46,9 @@ import {
|
|
|
49
46
|
import {
|
|
50
47
|
output_manager_default
|
|
51
48
|
} from "./chunk-Z5SBJH6L.js";
|
|
49
|
+
import {
|
|
50
|
+
require_ms
|
|
51
|
+
} from "./chunk-GGP5R3FU.js";
|
|
52
52
|
import {
|
|
53
53
|
require_source
|
|
54
54
|
} from "./chunk-S7KYDPEM.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-V5P25P7F.js";
|
|
10
10
|
import {
|
|
11
11
|
getLocalPathConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B3VMTJM2.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
15
15
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -36,13 +36,10 @@ import {
|
|
|
36
36
|
useKeypress,
|
|
37
37
|
usePrefix,
|
|
38
38
|
useState
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VUVQO3LF.js";
|
|
40
40
|
import {
|
|
41
41
|
require_load_json_file
|
|
42
42
|
} from "./chunk-Q77ALSXR.js";
|
|
43
|
-
import {
|
|
44
|
-
require_lib as require_lib2
|
|
45
|
-
} from "./chunk-N2T234LO.js";
|
|
46
43
|
import {
|
|
47
44
|
parseArguments,
|
|
48
45
|
require_strip_ansi
|
|
@@ -54,6 +51,10 @@ import {
|
|
|
54
51
|
import {
|
|
55
52
|
pkg_default
|
|
56
53
|
} from "./chunk-P4QNYOFB.js";
|
|
54
|
+
import {
|
|
55
|
+
Headers,
|
|
56
|
+
fetch
|
|
57
|
+
} from "./chunk-2RVK3DDN.js";
|
|
57
58
|
import {
|
|
58
59
|
emoji,
|
|
59
60
|
link_default,
|
|
@@ -1491,7 +1492,6 @@ ${theme.style.description(selectedChoice.description)}` : ``;
|
|
|
1491
1492
|
|
|
1492
1493
|
// src/util/client.ts
|
|
1493
1494
|
var import_async_retry = __toESM(require_dist3(), 1);
|
|
1494
|
-
var import_node_fetch = __toESM(require_lib2(), 1);
|
|
1495
1495
|
import { join as join2, resolve } from "path";
|
|
1496
1496
|
import { EventEmitter } from "events";
|
|
1497
1497
|
import { URL } from "url";
|
|
@@ -1893,7 +1893,7 @@ Are you sure you want to proceed?`;
|
|
|
1893
1893
|
url.searchParams.set("teamId", this.config.currentTeam);
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
|
-
const headers = new
|
|
1896
|
+
const headers = new Headers(opts.headers);
|
|
1897
1897
|
headers.set("user-agent", ua_default);
|
|
1898
1898
|
if (DOMAINS_API_PATH.test(url.pathname)) {
|
|
1899
1899
|
headers.set("x-vercel-cli-version", pkg_default.version);
|
|
@@ -1929,7 +1929,7 @@ Are you sure you want to proceed?`;
|
|
|
1929
1929
|
return `#${requestId} \u2192 ${opts.method || "GET"} ${url.href}`;
|
|
1930
1930
|
}
|
|
1931
1931
|
},
|
|
1932
|
-
(
|
|
1932
|
+
fetch(url, { ...opts, headers, body })
|
|
1933
1933
|
);
|
|
1934
1934
|
}
|
|
1935
1935
|
fetch(url, opts = {}) {
|
|
@@ -6,17 +6,17 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
outputError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-U5FVI3MF.js";
|
|
10
10
|
import {
|
|
11
11
|
AGENT_REASON
|
|
12
12
|
} from "./chunk-QH7WYDEP.js";
|
|
13
13
|
import {
|
|
14
14
|
getScope
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MUDZFSZC.js";
|
|
16
16
|
import {
|
|
17
17
|
getLinkedProject,
|
|
18
18
|
getProjectByNameOrId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VUVQO3LF.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCommandWithGlobalFlags,
|
|
22
22
|
outputAgentError
|
|
@@ -10,25 +10,25 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
routesCommand
|
|
12
12
|
} from "./chunk-IB56QKCM.js";
|
|
13
|
+
import {
|
|
14
|
+
activityCommand
|
|
15
|
+
} from "./chunk-56AJHIQC.js";
|
|
13
16
|
import {
|
|
14
17
|
alertsCommand
|
|
15
18
|
} from "./chunk-DPS62LHL.js";
|
|
16
19
|
import {
|
|
17
20
|
devCommand
|
|
18
21
|
} from "./chunk-VKRW77HH.js";
|
|
19
|
-
import {
|
|
20
|
-
activityCommand
|
|
21
|
-
} from "./chunk-56AJHIQC.js";
|
|
22
22
|
import {
|
|
23
23
|
listCommand
|
|
24
24
|
} from "./chunk-IJJOI63T.js";
|
|
25
25
|
import {
|
|
26
26
|
buildCommand,
|
|
27
27
|
pullCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HMWVVA4B.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VUVQO3LF.js";
|
|
32
32
|
import {
|
|
33
33
|
confirmOption,
|
|
34
34
|
deploymentOption,
|
|
@@ -3991,6 +3991,46 @@ var listSubcommand10 = {
|
|
|
3991
3991
|
description: "Filter flags by state (active or archived)",
|
|
3992
3992
|
argument: "STATE"
|
|
3993
3993
|
},
|
|
3994
|
+
{
|
|
3995
|
+
name: "tag",
|
|
3996
|
+
shorthand: null,
|
|
3997
|
+
type: [String],
|
|
3998
|
+
deprecated: false,
|
|
3999
|
+
description: "Filter flags by tag (repeatable; all must match)",
|
|
4000
|
+
argument: "TAG"
|
|
4001
|
+
},
|
|
4002
|
+
{
|
|
4003
|
+
name: "created-by",
|
|
4004
|
+
shorthand: null,
|
|
4005
|
+
type: String,
|
|
4006
|
+
deprecated: false,
|
|
4007
|
+
description: "Filter flags by the id of the user or team that created them",
|
|
4008
|
+
argument: "ID"
|
|
4009
|
+
},
|
|
4010
|
+
{
|
|
4011
|
+
name: "maintainer-id",
|
|
4012
|
+
shorthand: null,
|
|
4013
|
+
type: [String],
|
|
4014
|
+
deprecated: false,
|
|
4015
|
+
description: "Filter flags by maintainer user id (repeatable; any may match)",
|
|
4016
|
+
argument: "ID"
|
|
4017
|
+
},
|
|
4018
|
+
{
|
|
4019
|
+
name: "limit",
|
|
4020
|
+
shorthand: null,
|
|
4021
|
+
type: Number,
|
|
4022
|
+
deprecated: false,
|
|
4023
|
+
description: "Return a single page of at most NUMBER flags (1-100) instead of all",
|
|
4024
|
+
argument: "NUMBER"
|
|
4025
|
+
},
|
|
4026
|
+
{
|
|
4027
|
+
name: "next",
|
|
4028
|
+
shorthand: null,
|
|
4029
|
+
type: String,
|
|
4030
|
+
deprecated: false,
|
|
4031
|
+
description: "Pagination cursor from a previous list response",
|
|
4032
|
+
argument: "CURSOR"
|
|
4033
|
+
},
|
|
3994
4034
|
{
|
|
3995
4035
|
name: "json",
|
|
3996
4036
|
shorthand: null,
|
|
@@ -4008,6 +4048,18 @@ var listSubcommand10 = {
|
|
|
4008
4048
|
name: "List archived flags",
|
|
4009
4049
|
value: `${packageName} flags ls --state archived`
|
|
4010
4050
|
},
|
|
4051
|
+
{
|
|
4052
|
+
name: "Filter flags by tag, creator, and maintainer",
|
|
4053
|
+
value: `${packageName} flags ls --tag checkout --created-by user_123 --maintainer-id user_456`
|
|
4054
|
+
},
|
|
4055
|
+
{
|
|
4056
|
+
name: "List the first page of 10 flags",
|
|
4057
|
+
value: `${packageName} flags ls --limit 10`
|
|
4058
|
+
},
|
|
4059
|
+
{
|
|
4060
|
+
name: "List the next page using the cursor from the previous page",
|
|
4061
|
+
value: `${packageName} flags ls --limit 10 --next <cursor>`
|
|
4062
|
+
},
|
|
4011
4063
|
{
|
|
4012
4064
|
name: "List flags as JSON",
|
|
4013
4065
|
value: `${packageName} flags ls --json`
|
|
@@ -6,12 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveAlertsScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AWAUGLOM.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
13
13
|
validateAllProjectMutualExclusivity
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U5FVI3MF.js";
|
|
15
15
|
import {
|
|
16
16
|
AGENT_REASON
|
|
17
17
|
} from "./chunk-QH7WYDEP.js";
|
|
@@ -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-IBJBNVZV.js";
|
|
10
10
|
import {
|
|
11
11
|
autoInstallVercelPlugin
|
|
12
12
|
} from "./chunk-BRQ6PX3U.js";
|
|
@@ -15,20 +15,20 @@ import {
|
|
|
15
15
|
} from "./chunk-64IF634X.js";
|
|
16
16
|
import {
|
|
17
17
|
ensureLink
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KQDEJE65.js";
|
|
19
19
|
import {
|
|
20
20
|
pullCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HMWVVA4B.js";
|
|
22
22
|
import {
|
|
23
23
|
help
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LWJWW6ZY.js";
|
|
25
25
|
import {
|
|
26
26
|
VERCEL_DIR,
|
|
27
27
|
VERCEL_DIR_PROJECT,
|
|
28
28
|
envPullCommandLogic,
|
|
29
29
|
humanizePath,
|
|
30
30
|
parseTarget
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VUVQO3LF.js";
|
|
32
32
|
import {
|
|
33
33
|
TelemetryClient
|
|
34
34
|
} from "./chunk-Q77ALSXR.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-IB5L4LKZ.js";
|
|
10
10
|
import {
|
|
11
11
|
require_execa
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CT3OCODK.js";
|
|
13
13
|
import {
|
|
14
14
|
VERCEL_DIR,
|
|
15
15
|
readJSONFile,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
require_lib,
|
|
19
19
|
require_minimatch,
|
|
20
20
|
require_pluralize
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VUVQO3LF.js";
|
|
22
22
|
import {
|
|
23
23
|
CantParseJSONFile,
|
|
24
24
|
cmd,
|
|
@@ -11228,6 +11228,7 @@ import {
|
|
|
11228
11228
|
isBackendBuilder,
|
|
11229
11229
|
isExperimentalBackendsEnabled,
|
|
11230
11230
|
isExperimentalService,
|
|
11231
|
+
isExperimentalServiceV2,
|
|
11231
11232
|
isExternalSymlink
|
|
11232
11233
|
} from "@vercel/build-utils";
|
|
11233
11234
|
|
|
@@ -11658,7 +11659,7 @@ async function writeBuildResultV3(args) {
|
|
|
11658
11659
|
config: vercelConfig
|
|
11659
11660
|
}) : {};
|
|
11660
11661
|
const ext = extname(src);
|
|
11661
|
-
const path2 = service && typeof service.runtime === "string" ? stripDuplicateSlashes((0, import_fs_detectors2.getInternalServiceFunctionPath)(service.name)) : stripDuplicateSlashes(
|
|
11662
|
+
const path2 = service && isExperimentalServiceV2(service) ? "index" : service && typeof service.runtime === "string" ? stripDuplicateSlashes((0, import_fs_detectors2.getInternalServiceFunctionPath)(service.name)) : stripDuplicateSlashes(
|
|
11662
11663
|
build2.config?.zeroConfig ? src.substring(0, src.length - ext.length) : src
|
|
11663
11664
|
);
|
|
11664
11665
|
if (isContainerImage(output)) {
|
|
@@ -7,12 +7,12 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
printProjectNotFoundError,
|
|
9
9
|
setupAndLink
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X7KGEDKQ.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject,
|
|
13
13
|
param,
|
|
14
14
|
resolveProjectCwd
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VUVQO3LF.js";
|
|
16
16
|
import {
|
|
17
17
|
buildCommandWithYes,
|
|
18
18
|
outputActionRequired
|