vercel 54.17.3 → 54.18.1
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-4IT4GOJW.js} +8 -8
- package/dist/chunks/chunk-2RVK3DDN.js +224 -0
- package/dist/chunks/{chunk-NRP6ZKXJ.js → chunk-4IMUS3MS.js} +1 -1
- package/dist/chunks/{chunk-G4YL2LRL.js → chunk-54YT5DAU.js} +2 -2
- package/dist/chunks/{chunk-QM7D5H2G.js → chunk-6BBEJYCU.js} +1 -1
- package/dist/chunks/{chunk-UXP2N2WD.js → chunk-6BKX6MX4.js} +57 -5
- package/dist/chunks/{chunk-4FG6Q2EM.js → chunk-7G6CGX4Q.js} +1 -1
- package/dist/chunks/{chunk-HCJRHKSM.js → chunk-7YKF2IH6.js} +8 -8
- package/dist/chunks/{chunk-IAOBSXJ5.js → chunk-A2UBFY4K.js} +3 -3
- package/dist/chunks/{chunk-OYQKUG4C.js → chunk-A56XRPQF.js} +8 -8
- package/dist/chunks/{chunk-YI3JV6GM.js → chunk-CT3OCODK.js} +1 -1
- package/dist/chunks/{chunk-OSXRHH6W.js → chunk-D46XEMEE.js} +20 -20
- package/dist/chunks/{chunk-ATBH7KGL.js → chunk-JDW2DCII.js} +1 -1
- package/dist/chunks/{chunk-6V37RSQB.js → chunk-KFMV4Q4Z.js} +1 -1
- package/dist/chunks/{chunk-JKIM3UW3.js → chunk-MDVN2CL3.js} +5 -5
- package/dist/chunks/{chunk-FMBDRMTZ.js → chunk-N6JDK2GO.js} +9 -8
- package/dist/chunks/{chunk-SBYEIQ32.js → chunk-OJB4B7YD.js} +1 -1
- package/dist/chunks/{chunk-2CYJVSAM.js → chunk-QMRIZXZB.js} +1 -1
- package/dist/chunks/{chunk-BHMMV3HE.js → chunk-S6WD5L3L.js} +3606 -513
- package/dist/chunks/{chunk-QMMMXYOY.js → chunk-SYHCMCWI.js} +2 -2
- package/dist/chunks/{chunk-5FAPBIX6.js → chunk-WJLL77OK.js} +1 -1
- package/dist/chunks/{chunk-MB63D7UN.js → chunk-XMNRQYFL.js} +28 -7
- package/dist/chunks/{chunk-P4KQ3FJ4.js → chunk-XQQXV6ZZ.js} +1 -0
- package/dist/chunks/{compile-vercel-config-45XN4U4D.js → compile-vercel-config-U7H5E3AF.js} +4 -4
- package/dist/chunks/{delete-RQYOSBNO.js → delete-EWHQTXBW.js} +5 -5
- package/dist/chunks/{disable-RRGOZIA7.js → disable-D6PWS73S.js} +5 -5
- package/dist/chunks/{discard-X2NIGII5.js → discard-RCWQO5OM.js} +5 -5
- package/dist/chunks/{edit-QV3Y6IUT.js → edit-Y53X26NZ.js} +6 -6
- package/dist/chunks/{enable-UQAJJKCG.js → enable-M5RHORDQ.js} +5 -5
- package/dist/chunks/{exec-HI4HF4GY.js → exec-CGBHRYWG.js} +14 -9
- package/dist/chunks/{export-D4YNS2G5.js → export-2DR3UQFV.js} +5 -5
- package/dist/chunks/fetch-proxy-R3JZNXBZ.js +99 -0
- package/dist/chunks/{inspect-FHB3H3NA.js → inspect-B7I5BKQS.js} +7 -7
- package/dist/chunks/{list-QYUCZR26.js → list-B57MANV4.js} +12 -12
- package/dist/chunks/{list-6RAHTDT2.js → list-WZ32GBPG.js} +6 -6
- package/dist/chunks/{ls-GKWWEHQS.js → ls-HG2AU4FP.js} +8 -8
- package/dist/chunks/{publish-UTKKRA4P.js → publish-5RPU7CGQ.js} +5 -5
- package/dist/chunks/{query-NM7MXRFW.js → query-QEMQUYOA.js} +11 -11
- package/dist/chunks/{reorder-ZLVQQBMG.js → reorder-E37TLOBH.js} +5 -5
- package/dist/chunks/{restore-SDTDA4A6.js → restore-HBKARSXS.js} +5 -5
- package/dist/chunks/{rm-65PQY7XN.js → rm-NODZBG52.js} +8 -8
- package/dist/chunks/{rule-inspect-JFKSPCDU.js → rule-inspect-XDPT3CMS.js} +8 -8
- package/dist/chunks/{rules-6672IXZE.js → rules-EMK5FIZX.js} +6 -6
- package/dist/chunks/{schema-DC2LLUHD.js → schema-AHANZBO4.js} +6 -6
- package/dist/chunks/{update-7VFELUTD.js → update-BDHCWMWZ.js} +8 -8
- package/dist/commands/build/index.js +33 -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 +21 -23
- 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-54YT5DAU.js";
|
|
13
|
+
import "./chunk-A2UBFY4K.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-KFMV4Q4Z.js";
|
|
25
|
+
import "./chunk-S6WD5L3L.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
|
+
};
|
|
@@ -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-A2UBFY4K.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";
|
|
@@ -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-JDW2DCII.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-S6WD5L3L.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`
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-V5P25P7F.js";
|
|
10
10
|
import {
|
|
11
11
|
getLocalPathConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QMRIZXZB.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-S6WD5L3L.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-KFMV4Q4Z.js";
|
|
16
16
|
import {
|
|
17
17
|
getLinkedProject,
|
|
18
18
|
getProjectByNameOrId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-S6WD5L3L.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCommandWithGlobalFlags,
|
|
22
22
|
outputAgentError
|
|
@@ -7,33 +7,30 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
9
|
isGlobal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OJB4B7YD.js";
|
|
11
11
|
import {
|
|
12
12
|
getGlobalPathConfig,
|
|
13
13
|
progress,
|
|
14
14
|
writeToConfigFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7YKF2IH6.js";
|
|
16
16
|
import {
|
|
17
17
|
apiCommand,
|
|
18
18
|
listSubcommand2 as listSubcommand,
|
|
19
19
|
loginCommand
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6BKX6MX4.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-S6WD5L3L.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";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
progress,
|
|
11
11
|
require_dist as require_dist2,
|
|
12
12
|
sleep
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7YKF2IH6.js";
|
|
14
14
|
import {
|
|
15
15
|
suggestNextCommands
|
|
16
16
|
} from "./chunk-LKBI43XK.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-TCF6MGBY.js";
|
|
21
21
|
import {
|
|
22
22
|
CommandTimeout
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6BKX6MX4.js";
|
|
24
24
|
import {
|
|
25
25
|
showPluginTipIfNeeded
|
|
26
26
|
} from "./chunk-BRQ6PX3U.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-64IF634X.js";
|
|
30
30
|
import {
|
|
31
31
|
getScope
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-KFMV4Q4Z.js";
|
|
33
33
|
import {
|
|
34
34
|
getProjectByNameOrId,
|
|
35
35
|
param,
|
|
@@ -37,13 +37,7 @@ import {
|
|
|
37
37
|
require_dist as require_dist3,
|
|
38
38
|
require_pluralize,
|
|
39
39
|
ua_default
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import {
|
|
42
|
-
require_lib
|
|
43
|
-
} from "./chunk-N2T234LO.js";
|
|
44
|
-
import {
|
|
45
|
-
require_ms
|
|
46
|
-
} from "./chunk-GGP5R3FU.js";
|
|
40
|
+
} from "./chunk-S6WD5L3L.js";
|
|
47
41
|
import {
|
|
48
42
|
require_strip_ansi,
|
|
49
43
|
responseError
|
|
@@ -66,6 +60,11 @@ import {
|
|
|
66
60
|
isAPIError,
|
|
67
61
|
require_bytes
|
|
68
62
|
} from "./chunk-LN6B7ZI3.js";
|
|
63
|
+
import {
|
|
64
|
+
Headers,
|
|
65
|
+
fetch,
|
|
66
|
+
toNodeReadable
|
|
67
|
+
} from "./chunk-2RVK3DDN.js";
|
|
69
68
|
import {
|
|
70
69
|
emoji,
|
|
71
70
|
eraseLines,
|
|
@@ -75,6 +74,9 @@ import {
|
|
|
75
74
|
require_ansi_escapes,
|
|
76
75
|
require_dist
|
|
77
76
|
} from "./chunk-Z5SBJH6L.js";
|
|
77
|
+
import {
|
|
78
|
+
require_ms
|
|
79
|
+
} from "./chunk-GGP5R3FU.js";
|
|
78
80
|
import {
|
|
79
81
|
require_source
|
|
80
82
|
} from "./chunk-S7KYDPEM.js";
|
|
@@ -1607,11 +1609,10 @@ async function printEvents(client, urlOrDeploymentId, { mode, onEvent, quiet, fi
|
|
|
1607
1609
|
try {
|
|
1608
1610
|
const eventsRes = await client.fetch(eventsUrl, {
|
|
1609
1611
|
json: false,
|
|
1610
|
-
// @ts-expect-error: typescript is getting confused with the signal types from node (web & server) and node-fetch (server only)
|
|
1611
1612
|
signal: abortController?.signal
|
|
1612
1613
|
});
|
|
1613
1614
|
if (eventsRes.ok) {
|
|
1614
|
-
const readable = eventsRes.body;
|
|
1615
|
+
const readable = toNodeReadable(eventsRes.body);
|
|
1615
1616
|
return new Promise((resolve, reject) => {
|
|
1616
1617
|
const stream = readable.pipe(import_jsonlines.default.parse());
|
|
1617
1618
|
let poller;
|
|
@@ -1782,7 +1783,6 @@ async function displayRuntimeLogs(client, options, abortController) {
|
|
|
1782
1783
|
}, (0, import_ms.default)(CommandTimeout));
|
|
1783
1784
|
const response = await client.fetch(url, {
|
|
1784
1785
|
json: false,
|
|
1785
|
-
// @ts-expect-error: typescipt is getting confused with the signal types from node (web & server) and node-fetch (server only)
|
|
1786
1786
|
signal: abortController.signal,
|
|
1787
1787
|
retry: {
|
|
1788
1788
|
retries: 3,
|
|
@@ -1796,7 +1796,8 @@ async function displayRuntimeLogs(client, options, abortController) {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
});
|
|
1798
1798
|
return new Promise((resolve, reject) => {
|
|
1799
|
-
const
|
|
1799
|
+
const readable = toNodeReadable(response.body);
|
|
1800
|
+
const stream = readable.pipe(parse2 ? import_jsonlines2.default.parse() : (0, import_split2.default)());
|
|
1800
1801
|
let finished = false;
|
|
1801
1802
|
let errored = false;
|
|
1802
1803
|
function finish(err) {
|
|
@@ -1845,7 +1846,7 @@ async function displayRuntimeLogs(client, options, abortController) {
|
|
|
1845
1846
|
stream.on("end", finish);
|
|
1846
1847
|
stream.on("data", handleData);
|
|
1847
1848
|
stream.on("error", handleError);
|
|
1848
|
-
|
|
1849
|
+
readable.on("error", handleError);
|
|
1849
1850
|
});
|
|
1850
1851
|
}
|
|
1851
1852
|
function printBuildLog(log, print) {
|
|
@@ -2223,11 +2224,10 @@ ${archiveSuggestionText}`
|
|
|
2223
2224
|
// src/util/index.ts
|
|
2224
2225
|
var import_async_retry2 = __toESM(require_dist2(), 1);
|
|
2225
2226
|
var import_ms2 = __toESM(require_ms(), 1);
|
|
2226
|
-
var import_node_fetch = __toESM(require_lib(), 1);
|
|
2227
|
-
var import_bytes2 = __toESM(require_bytes(), 1);
|
|
2228
|
-
var import_chalk3 = __toESM(require_source(), 1);
|
|
2229
2227
|
import qs from "querystring";
|
|
2230
2228
|
import { parse as parseUrl } from "url";
|
|
2229
|
+
var import_bytes2 = __toESM(require_bytes(), 1);
|
|
2230
|
+
var import_chalk3 = __toESM(require_source(), 1);
|
|
2231
2231
|
var Now = class {
|
|
2232
2232
|
constructor({
|
|
2233
2233
|
client,
|
|
@@ -2444,7 +2444,7 @@ ${err.stack}`);
|
|
|
2444
2444
|
_url = `${parsedUrl.pathname}?${qs.stringify(query)}`;
|
|
2445
2445
|
delete opts.useCurrentTeam;
|
|
2446
2446
|
}
|
|
2447
|
-
opts.headers = new
|
|
2447
|
+
opts.headers = new Headers(opts.headers);
|
|
2448
2448
|
opts.headers.set("accept", "application/json");
|
|
2449
2449
|
if (this._token) {
|
|
2450
2450
|
opts.headers.set("authorization", `Bearer ${this._token}`);
|
|
@@ -2459,7 +2459,7 @@ ${err.stack}`);
|
|
|
2459
2459
|
}
|
|
2460
2460
|
const res = await output_manager_default.time(
|
|
2461
2461
|
`${opts.method || "GET"} ${this._apiUrl}${_url} ${opts.body || ""}`,
|
|
2462
|
-
(
|
|
2462
|
+
fetch(`${this._apiUrl}${_url}`, { ...opts, body })
|
|
2463
2463
|
);
|
|
2464
2464
|
printIndications(res);
|
|
2465
2465
|
return res;
|