vercel 58.1.0 → 58.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-QKP6ZCHQ.js → add-IOYS5JE4.js} +10 -8
- package/dist/chunks/{add-WKV7KU4Y.js → add-JTIGJQ75.js} +12 -9
- package/dist/chunks/add-QKKUAXFL.js +187 -0
- package/dist/chunks/{build-ZXEK6YEA.js → build-ZHZDIIS5.js} +12 -9
- package/dist/chunks/{chunk-3YARBN7P.js → chunk-27FZN5LR.js} +4 -4
- package/dist/chunks/{chunk-4LSERVQQ.js → chunk-2ILCTO6A.js} +7 -5
- package/dist/chunks/{chunk-E4LXCO7U.js → chunk-2SFMOCWR.js} +1 -1
- package/dist/chunks/{chunk-NYURBHZJ.js → chunk-3KNPVXJ3.js} +1 -1
- package/dist/chunks/chunk-3ZE5CFVM.js +346 -0
- package/dist/chunks/{chunk-AX3N4MO2.js → chunk-4LDQIDRM.js} +1 -1
- package/dist/chunks/{chunk-LXA2GZ7U.js → chunk-4N7XLXM2.js} +1 -1
- package/dist/chunks/{chunk-75MDJ6TK.js → chunk-4UYKSYKQ.js} +1 -1
- package/dist/chunks/{chunk-JA3QX2H6.js → chunk-56QCZ4RL.js} +2 -2
- package/dist/chunks/{chunk-VSMCQSGH.js → chunk-7QVJTI5H.js} +1 -1
- package/dist/chunks/{chunk-TCBOCSWF.js → chunk-A5KP5HAI.js} +1 -1
- package/dist/chunks/{chunk-V6WHZAPP.js → chunk-AW5YINX6.js} +8 -4
- package/dist/chunks/{chunk-JNP3FQR3.js → chunk-AZS5CLCN.js} +1 -1
- package/dist/chunks/{chunk-NGYOR3MN.js → chunk-B3JTF4CF.js} +1 -1
- package/dist/chunks/{chunk-4QVAYRYH.js → chunk-BEQV3X2L.js} +16 -1
- package/dist/chunks/{chunk-552YY6QY.js → chunk-CAWBO7SQ.js} +10 -8
- package/dist/chunks/{chunk-TPB4F5XN.js → chunk-CSJBZKC5.js} +1 -1
- package/dist/chunks/{chunk-2D22CMQ7.js → chunk-DI54DSTV.js} +6 -4
- package/dist/chunks/{chunk-CXICXWXJ.js → chunk-DXS2X7KK.js} +3 -3
- package/dist/chunks/{chunk-XAWGGWSG.js → chunk-EBLH23AQ.js} +2 -2
- package/dist/chunks/{chunk-OVW5WUCR.js → chunk-G47QOVJ7.js} +1 -1
- package/dist/chunks/{chunk-32IPC6RB.js → chunk-GFG6QDIE.js} +1 -1
- package/dist/chunks/{chunk-C267R2FA.js → chunk-GJ5DKYDQ.js} +5 -5
- package/dist/chunks/{chunk-OG7DIS52.js → chunk-IBSUQT6H.js} +1 -1
- package/dist/chunks/chunk-J6LK45HT.js +163 -0
- package/dist/chunks/{chunk-5AG7MR7W.js → chunk-JHIWAM64.js} +3 -3
- package/dist/chunks/{chunk-FBPCJV72.js → chunk-JLWQWYKO.js} +2 -2
- package/dist/chunks/{chunk-RL7X7JGK.js → chunk-KBEX5MYS.js} +1 -136
- package/dist/chunks/{chunk-LA3BQQQK.js → chunk-KT4XXKJK.js} +1 -1
- package/dist/chunks/{chunk-YITWM37U.js → chunk-KWOWGI7Z.js} +2 -2
- package/dist/chunks/{chunk-FR352QKR.js → chunk-M22O6CYY.js} +1 -1
- package/dist/chunks/{chunk-XTLNPNWY.js → chunk-MAHXF73X.js} +2 -2
- package/dist/chunks/{chunk-KY3ZOYJW.js → chunk-O5GNPPTU.js} +1 -1
- package/dist/chunks/{chunk-CSI7GEDD.js → chunk-OWY3MF3E.js} +2 -2
- package/dist/chunks/{chunk-DKS4XDVC.js → chunk-PVWXPWLQ.js} +7 -5
- package/dist/chunks/{chunk-XTQADJ6S.js → chunk-QTXQOWOJ.js} +3 -3
- package/dist/chunks/{chunk-TF627KEI.js → chunk-RQ7H43CJ.js} +1 -1
- package/dist/chunks/{chunk-U6PPDPR5.js → chunk-SOFC4MLS.js} +1 -0
- package/dist/chunks/{chunk-QCB22TQG.js → chunk-SWHPI3G7.js} +2 -2
- package/dist/chunks/{chunk-BAUVB2VF.js → chunk-U5E5J56I.js} +4 -4
- package/dist/chunks/{chunk-HXTQVMJZ.js → chunk-U7Y5DZXS.js} +2 -2
- package/dist/chunks/{chunk-6QUKJKFX.js → chunk-WUMURQKS.js} +393 -291
- package/dist/chunks/{chunk-4I7DTZAJ.js → chunk-XIG4GH62.js} +2 -2
- package/dist/chunks/chunk-XLKFJPMT.js +150 -0
- package/dist/chunks/{chunk-S7LXRKLD.js → chunk-Z5ZQJ5VJ.js} +14 -14
- package/dist/chunks/{chunk-KLNWR2JI.js → chunk-ZQR5RIAX.js} +10 -8
- package/dist/chunks/{chunk-P7IO46BQ.js → chunk-ZX2FSPWV.js} +2 -2
- package/dist/chunks/clear-R3DI3AA6.js +132 -0
- package/dist/chunks/{compile-vercel-config-AFGCQEYG.js → compile-vercel-config-NEC63GCN.js} +5 -4
- package/dist/chunks/{delete-UGSJQBE7.js → delete-BYB66ET3.js} +7 -6
- package/dist/chunks/{delete-Y5LNEZXI.js → delete-DIZK7FRU.js} +7 -6
- package/dist/chunks/{disable-IF3AHKJD.js → disable-HW6CHEVD.js} +7 -6
- package/dist/chunks/{discard-Y6GZBIHJ.js → discard-3UG4K6G2.js} +7 -6
- package/dist/chunks/{edit-HNMKZ3YT.js → edit-EY7LRITZ.js} +7 -6
- package/dist/chunks/{edit-6TGJKUI5.js → edit-LD5G6GL3.js} +8 -7
- package/dist/chunks/{enable-SE4QM4X3.js → enable-MDNLCSAW.js} +7 -6
- package/dist/chunks/{export-5AYL7HCJ.js → export-25X6M77L.js} +7 -6
- package/dist/chunks/{image-6BYNQVGW.js → image-YQWZLM6Z.js} +5 -5
- package/dist/chunks/{inspect-FGYXO4K5.js → inspect-73FISCNZ.js} +13 -11
- package/dist/chunks/{inspect-DPTRYDFH.js → inspect-H7GEYNIF.js} +8 -7
- package/dist/chunks/{inspect-LTHZUXA2.js → inspect-KYAB4F3P.js} +10 -8
- package/dist/chunks/{inspect-3KCFHDWA.js → inspect-QVI6UVBJ.js} +13 -10
- package/dist/chunks/{inspect-MA36GG73.js → inspect-R6ADYTPB.js} +10 -8
- package/dist/chunks/{list-OCW34SRV.js → list-FTNOS4FT.js} +8 -7
- package/dist/chunks/{list-VTQZSIIT.js → list-SDNYJJ4M.js} +8 -6
- package/dist/chunks/{list-BTOXZBQK.js → list-SRKON4E4.js} +13 -11
- package/dist/chunks/{login-VSXLK5ZU.js → login-7NR7N4ZF.js} +12 -9
- package/dist/chunks/{ls-DRI2AOFB.js → ls-BDLEGFY3.js} +14 -11
- package/dist/chunks/ls-NIEZW5O3.js +178 -0
- package/dist/chunks/{ls-3UA57DZZ.js → ls-PZHHHKZ7.js} +13 -11
- package/dist/chunks/{ls-ZBLTJ5RE.js → ls-T276Z2QR.js} +11 -9
- package/dist/chunks/{ls-76YTWNKD.js → ls-TWHG22W7.js} +11 -9
- package/dist/chunks/{open-DVKAE5HP.js → open-TNEPXGZK.js} +7 -6
- package/dist/chunks/permissions-KI2JGJSN.js +95 -0
- package/dist/chunks/{publish-F5C4ZA7M.js → publish-NBGFOHLV.js} +7 -6
- package/dist/chunks/{push-PKJFQTLO.js → push-SPPWXOAJ.js} +12 -9
- package/dist/chunks/{query-GT5LCT45.js → query-LS4PEYHG.js} +12 -10
- package/dist/chunks/{reorder-AQW4XFDS.js → reorder-UTQ632H5.js} +7 -6
- package/dist/chunks/{reply-FI7SADGU.js → reply-QFGX5YBV.js} +7 -6
- package/dist/chunks/{resolve-C5G7JJZJ.js → resolve-ZDO5BCI7.js} +7 -6
- package/dist/chunks/{restore-5TLSHQOS.js → restore-T77AKNZ2.js} +7 -6
- package/dist/chunks/{rm-L7OQPCIE.js → rm-3RTVWGWR.js} +13 -10
- package/dist/chunks/{rm-C37BHGQI.js → rm-D24FHFMF.js} +10 -8
- package/dist/chunks/{rm-2EN66OYO.js → rm-IQPLVKJR.js} +10 -8
- package/dist/chunks/rm-JTOFOKOZ.js +186 -0
- package/dist/chunks/{rule-inspect-V5DRHOTZ.js → rule-inspect-VVHTVTRD.js} +13 -11
- package/dist/chunks/{rules-5XEMLN5G.js → rules-EEWMLKRI.js} +8 -8
- package/dist/chunks/{schema-UEOZVBY5.js → schema-XLJLZ4OE.js} +11 -9
- package/dist/chunks/{tags-ZGANV4YD.js → tags-5DZYPJDP.js} +4 -4
- package/dist/chunks/{types-IKWGLSDF.js → types-QTOA2BTQ.js} +7 -5
- package/dist/chunks/{update-DHWSMSMS.js → update-YFXZDNIV.js} +10 -8
- package/dist/commands/build/index.js +15 -15
- package/dist/commands/deploy/index.js +28 -25
- package/dist/commands/dev/index.js +85 -17
- package/dist/commands/env/index.js +27 -24
- package/dist/commands/link/index.js +25 -22
- package/dist/commands/list/index.js +11 -9
- package/dist/commands-bulk.js +2980 -2156
- package/dist/help.js +1 -1
- package/dist/index.js +37 -34
- package/dist/version.mjs +1 -1
- package/package.json +41 -34
|
@@ -0,0 +1,346 @@
|
|
|
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
|
+
__require
|
|
10
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
11
|
+
|
|
12
|
+
// ../../node_modules/.pnpm/double-ended-queue@2.1.0-0/node_modules/double-ended-queue/js/deque.js
|
|
13
|
+
var require_deque = __commonJS({
|
|
14
|
+
"../../node_modules/.pnpm/double-ended-queue@2.1.0-0/node_modules/double-ended-queue/js/deque.js"(exports, module) {
|
|
15
|
+
"use strict";
|
|
16
|
+
function Deque(capacity) {
|
|
17
|
+
this._capacity = getCapacity(capacity);
|
|
18
|
+
this._length = 0;
|
|
19
|
+
this._front = 0;
|
|
20
|
+
if (isArray(capacity)) {
|
|
21
|
+
var len = capacity.length;
|
|
22
|
+
for (var i = 0; i < len; ++i) {
|
|
23
|
+
this[i] = capacity[i];
|
|
24
|
+
}
|
|
25
|
+
this._length = len;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
Deque.prototype.toArray = function Deque$toArray() {
|
|
29
|
+
var len = this._length;
|
|
30
|
+
var ret = new Array(len);
|
|
31
|
+
var front = this._front;
|
|
32
|
+
var capacity = this._capacity;
|
|
33
|
+
for (var j = 0; j < len; ++j) {
|
|
34
|
+
ret[j] = this[front + j & capacity - 1];
|
|
35
|
+
}
|
|
36
|
+
return ret;
|
|
37
|
+
};
|
|
38
|
+
Deque.prototype.push = function Deque$push(item) {
|
|
39
|
+
var argsLength = arguments.length;
|
|
40
|
+
var length = this._length;
|
|
41
|
+
if (argsLength > 1) {
|
|
42
|
+
var capacity = this._capacity;
|
|
43
|
+
if (length + argsLength > capacity) {
|
|
44
|
+
for (var i = 0; i < argsLength; ++i) {
|
|
45
|
+
this._checkCapacity(length + 1);
|
|
46
|
+
var j = this._front + length & this._capacity - 1;
|
|
47
|
+
this[j] = arguments[i];
|
|
48
|
+
length++;
|
|
49
|
+
this._length = length;
|
|
50
|
+
}
|
|
51
|
+
return length;
|
|
52
|
+
} else {
|
|
53
|
+
var j = this._front;
|
|
54
|
+
for (var i = 0; i < argsLength; ++i) {
|
|
55
|
+
this[j + length & capacity - 1] = arguments[i];
|
|
56
|
+
j++;
|
|
57
|
+
}
|
|
58
|
+
this._length = length + argsLength;
|
|
59
|
+
return length + argsLength;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (argsLength === 0)
|
|
63
|
+
return length;
|
|
64
|
+
this._checkCapacity(length + 1);
|
|
65
|
+
var i = this._front + length & this._capacity - 1;
|
|
66
|
+
this[i] = item;
|
|
67
|
+
this._length = length + 1;
|
|
68
|
+
return length + 1;
|
|
69
|
+
};
|
|
70
|
+
Deque.prototype.pop = function Deque$pop() {
|
|
71
|
+
var length = this._length;
|
|
72
|
+
if (length === 0) {
|
|
73
|
+
return void 0;
|
|
74
|
+
}
|
|
75
|
+
var i = this._front + length - 1 & this._capacity - 1;
|
|
76
|
+
var ret = this[i];
|
|
77
|
+
this[i] = void 0;
|
|
78
|
+
this._length = length - 1;
|
|
79
|
+
return ret;
|
|
80
|
+
};
|
|
81
|
+
Deque.prototype.shift = function Deque$shift() {
|
|
82
|
+
var length = this._length;
|
|
83
|
+
if (length === 0) {
|
|
84
|
+
return void 0;
|
|
85
|
+
}
|
|
86
|
+
var front = this._front;
|
|
87
|
+
var ret = this[front];
|
|
88
|
+
this[front] = void 0;
|
|
89
|
+
this._front = front + 1 & this._capacity - 1;
|
|
90
|
+
this._length = length - 1;
|
|
91
|
+
return ret;
|
|
92
|
+
};
|
|
93
|
+
Deque.prototype.unshift = function Deque$unshift(item) {
|
|
94
|
+
var length = this._length;
|
|
95
|
+
var argsLength = arguments.length;
|
|
96
|
+
if (argsLength > 1) {
|
|
97
|
+
var capacity = this._capacity;
|
|
98
|
+
if (length + argsLength > capacity) {
|
|
99
|
+
for (var i = argsLength - 1; i >= 0; i--) {
|
|
100
|
+
this._checkCapacity(length + 1);
|
|
101
|
+
var capacity = this._capacity;
|
|
102
|
+
var j = (this._front - 1 & capacity - 1 ^ capacity) - capacity;
|
|
103
|
+
this[j] = arguments[i];
|
|
104
|
+
length++;
|
|
105
|
+
this._length = length;
|
|
106
|
+
this._front = j;
|
|
107
|
+
}
|
|
108
|
+
return length;
|
|
109
|
+
} else {
|
|
110
|
+
var front = this._front;
|
|
111
|
+
for (var i = argsLength - 1; i >= 0; i--) {
|
|
112
|
+
var j = (front - 1 & capacity - 1 ^ capacity) - capacity;
|
|
113
|
+
this[j] = arguments[i];
|
|
114
|
+
front = j;
|
|
115
|
+
}
|
|
116
|
+
this._front = front;
|
|
117
|
+
this._length = length + argsLength;
|
|
118
|
+
return length + argsLength;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (argsLength === 0)
|
|
122
|
+
return length;
|
|
123
|
+
this._checkCapacity(length + 1);
|
|
124
|
+
var capacity = this._capacity;
|
|
125
|
+
var i = (this._front - 1 & capacity - 1 ^ capacity) - capacity;
|
|
126
|
+
this[i] = item;
|
|
127
|
+
this._length = length + 1;
|
|
128
|
+
this._front = i;
|
|
129
|
+
return length + 1;
|
|
130
|
+
};
|
|
131
|
+
Deque.prototype.peekBack = function Deque$peekBack() {
|
|
132
|
+
var length = this._length;
|
|
133
|
+
if (length === 0) {
|
|
134
|
+
return void 0;
|
|
135
|
+
}
|
|
136
|
+
var index = this._front + length - 1 & this._capacity - 1;
|
|
137
|
+
return this[index];
|
|
138
|
+
};
|
|
139
|
+
Deque.prototype.peekFront = function Deque$peekFront() {
|
|
140
|
+
if (this._length === 0) {
|
|
141
|
+
return void 0;
|
|
142
|
+
}
|
|
143
|
+
return this[this._front];
|
|
144
|
+
};
|
|
145
|
+
Deque.prototype.get = function Deque$get(index) {
|
|
146
|
+
var i = index;
|
|
147
|
+
if (i !== (i | 0)) {
|
|
148
|
+
return void 0;
|
|
149
|
+
}
|
|
150
|
+
var len = this._length;
|
|
151
|
+
if (i < 0) {
|
|
152
|
+
i = i + len;
|
|
153
|
+
}
|
|
154
|
+
if (i < 0 || i >= len) {
|
|
155
|
+
return void 0;
|
|
156
|
+
}
|
|
157
|
+
return this[this._front + i & this._capacity - 1];
|
|
158
|
+
};
|
|
159
|
+
Deque.prototype.isEmpty = function Deque$isEmpty() {
|
|
160
|
+
return this._length === 0;
|
|
161
|
+
};
|
|
162
|
+
Deque.prototype.clear = function Deque$clear() {
|
|
163
|
+
var len = this._length;
|
|
164
|
+
var front = this._front;
|
|
165
|
+
var capacity = this._capacity;
|
|
166
|
+
for (var j = 0; j < len; ++j) {
|
|
167
|
+
this[front + j & capacity - 1] = void 0;
|
|
168
|
+
}
|
|
169
|
+
this._length = 0;
|
|
170
|
+
this._front = 0;
|
|
171
|
+
};
|
|
172
|
+
Deque.prototype.toString = function Deque$toString() {
|
|
173
|
+
return this.toArray().toString();
|
|
174
|
+
};
|
|
175
|
+
Deque.prototype.valueOf = Deque.prototype.toString;
|
|
176
|
+
Deque.prototype.removeFront = Deque.prototype.shift;
|
|
177
|
+
Deque.prototype.removeBack = Deque.prototype.pop;
|
|
178
|
+
Deque.prototype.insertFront = Deque.prototype.unshift;
|
|
179
|
+
Deque.prototype.insertBack = Deque.prototype.push;
|
|
180
|
+
Deque.prototype.enqueue = Deque.prototype.push;
|
|
181
|
+
Deque.prototype.dequeue = Deque.prototype.shift;
|
|
182
|
+
Deque.prototype.toJSON = Deque.prototype.toArray;
|
|
183
|
+
Object.defineProperty(Deque.prototype, "length", {
|
|
184
|
+
get: function() {
|
|
185
|
+
return this._length;
|
|
186
|
+
},
|
|
187
|
+
set: function() {
|
|
188
|
+
throw new RangeError("");
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
Deque.prototype._checkCapacity = function Deque$_checkCapacity(size) {
|
|
192
|
+
if (this._capacity < size) {
|
|
193
|
+
this._resizeTo(getCapacity(this._capacity * 1.5 + 16));
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
Deque.prototype._resizeTo = function Deque$_resizeTo(capacity) {
|
|
197
|
+
var oldCapacity = this._capacity;
|
|
198
|
+
this._capacity = capacity;
|
|
199
|
+
var front = this._front;
|
|
200
|
+
var length = this._length;
|
|
201
|
+
if (front + length > oldCapacity) {
|
|
202
|
+
var moveItemsCount = front + length & oldCapacity - 1;
|
|
203
|
+
arrayMove(this, 0, this, oldCapacity, moveItemsCount);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
var isArray = Array.isArray;
|
|
207
|
+
function arrayMove(src, srcIndex, dst, dstIndex, len) {
|
|
208
|
+
for (var j = 0; j < len; ++j) {
|
|
209
|
+
dst[j + dstIndex] = src[j + srcIndex];
|
|
210
|
+
src[j + srcIndex] = void 0;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function pow2AtLeast(n) {
|
|
214
|
+
n = n >>> 0;
|
|
215
|
+
n = n - 1;
|
|
216
|
+
n = n | n >> 1;
|
|
217
|
+
n = n | n >> 2;
|
|
218
|
+
n = n | n >> 4;
|
|
219
|
+
n = n | n >> 8;
|
|
220
|
+
n = n | n >> 16;
|
|
221
|
+
return n + 1;
|
|
222
|
+
}
|
|
223
|
+
function getCapacity(capacity) {
|
|
224
|
+
if (typeof capacity !== "number") {
|
|
225
|
+
if (isArray(capacity)) {
|
|
226
|
+
capacity = capacity.length;
|
|
227
|
+
} else {
|
|
228
|
+
return 16;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return pow2AtLeast(
|
|
232
|
+
Math.min(
|
|
233
|
+
Math.max(16, capacity),
|
|
234
|
+
1073741824
|
|
235
|
+
)
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
module.exports = Deque;
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
// ../../node_modules/.pnpm/async-sema@2.1.4/node_modules/async-sema/index.js
|
|
243
|
+
var require_async_sema = __commonJS({
|
|
244
|
+
"../../node_modules/.pnpm/async-sema@2.1.4/node_modules/async-sema/index.js"(exports, module) {
|
|
245
|
+
var EventEmitter = __require("events");
|
|
246
|
+
var util = __require("util");
|
|
247
|
+
var Deque = require_deque();
|
|
248
|
+
var ReleaseEmitter = class extends EventEmitter {
|
|
249
|
+
};
|
|
250
|
+
function isFn(x) {
|
|
251
|
+
return typeof x === "function";
|
|
252
|
+
}
|
|
253
|
+
function defaultInit() {
|
|
254
|
+
return "1";
|
|
255
|
+
}
|
|
256
|
+
var Sema = class {
|
|
257
|
+
constructor(nr, { initFn = defaultInit, pauseFn, resumeFn, capacity = 10 } = {}) {
|
|
258
|
+
if (isFn(pauseFn) ^ isFn(resumeFn)) {
|
|
259
|
+
throw new Error("pauseFn and resumeFn must be both set for pausing");
|
|
260
|
+
}
|
|
261
|
+
this.nrTokens = nr;
|
|
262
|
+
this.free = new Deque(nr);
|
|
263
|
+
this.waiting = new Deque(capacity);
|
|
264
|
+
this.releaseEmitter = new ReleaseEmitter();
|
|
265
|
+
this.noTokens = initFn === defaultInit;
|
|
266
|
+
this.pauseFn = pauseFn;
|
|
267
|
+
this.resumeFn = resumeFn;
|
|
268
|
+
this.releaseEmitter.on("release", (token) => {
|
|
269
|
+
const p = this.waiting.shift();
|
|
270
|
+
if (p) {
|
|
271
|
+
p.resolve(token);
|
|
272
|
+
} else {
|
|
273
|
+
if (this.resumeFn && this.paused) {
|
|
274
|
+
this.paused = false;
|
|
275
|
+
this.resumeFn();
|
|
276
|
+
}
|
|
277
|
+
this.free.push(token);
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
for (let i = 0; i < nr; i++) {
|
|
281
|
+
this.free.push(initFn());
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
async acquire() {
|
|
285
|
+
let token = this.free.pop();
|
|
286
|
+
if (token) {
|
|
287
|
+
return token;
|
|
288
|
+
}
|
|
289
|
+
return new Promise((resolve, reject) => {
|
|
290
|
+
if (this.pauseFn && !this.paused) {
|
|
291
|
+
this.paused = true;
|
|
292
|
+
this.pauseFn();
|
|
293
|
+
}
|
|
294
|
+
this.waiting.push({ resolve, reject });
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
async v() {
|
|
298
|
+
return this.acquire();
|
|
299
|
+
}
|
|
300
|
+
release(token) {
|
|
301
|
+
this.releaseEmitter.emit("release", this.noTokens ? "1" : token);
|
|
302
|
+
}
|
|
303
|
+
p(token) {
|
|
304
|
+
return this.release(token);
|
|
305
|
+
}
|
|
306
|
+
drain() {
|
|
307
|
+
const a = new Array(this.nrTokens);
|
|
308
|
+
for (let i = 0; i < this.nrTokens; i++) {
|
|
309
|
+
a[i] = this.acquire();
|
|
310
|
+
}
|
|
311
|
+
return Promise.all(a);
|
|
312
|
+
}
|
|
313
|
+
nrWaiting() {
|
|
314
|
+
return this.waiting.length;
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
Sema.prototype.v = util.deprecate(Sema.prototype.v, "`v()` is deperecated; use `acquire()` instead");
|
|
318
|
+
Sema.prototype.p = util.deprecate(Sema.prototype.p, "`p()` is deprecated; use `release()` instead");
|
|
319
|
+
module.exports = Sema;
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
// src/commands/vcr/permissions/team-refs.ts
|
|
324
|
+
var MAX_CONCURRENT_REQUESTS = 10;
|
|
325
|
+
function parseTeamRefs(args) {
|
|
326
|
+
const refs = [];
|
|
327
|
+
for (const arg of args) {
|
|
328
|
+
for (const piece of arg.split(",")) {
|
|
329
|
+
const ref = piece.trim();
|
|
330
|
+
if (ref && !refs.includes(ref)) {
|
|
331
|
+
refs.push(ref);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return refs;
|
|
336
|
+
}
|
|
337
|
+
function teamRefBody(ref) {
|
|
338
|
+
return ref.startsWith("team_") ? { teamId: ref } : { teamSlug: ref };
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export {
|
|
342
|
+
require_async_sema,
|
|
343
|
+
MAX_CONCURRENT_REQUESTS,
|
|
344
|
+
parseTeamRefs,
|
|
345
|
+
teamRefBody
|
|
346
|
+
};
|
|
@@ -69,9 +69,9 @@ var help = () => `
|
|
|
69
69
|
deploy-hooks [cmd] Manage deploy hooks for Git-triggered builds
|
|
70
70
|
dns [name] Manages your DNS records
|
|
71
71
|
domains [name] Manages your domain names
|
|
72
|
-
edge-config [cmd] Manage Edge Config stores
|
|
73
72
|
firewall [cmd] Manages Vercel Firewall configuration and custom rules
|
|
74
73
|
flags [cmd] Manage feature flags for a Vercel project
|
|
74
|
+
global-config [cmd] Manage Global Config stores
|
|
75
75
|
httpstat path Visualize HTTP timing statistics for deployments
|
|
76
76
|
logs [url] Displays the logs for a deployment
|
|
77
77
|
metrics <metric> Queries observability metrics for your project or team
|
|
@@ -6,12 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getEnvTargetPlaceholder
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PVWXPWLQ.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName,
|
|
12
12
|
projectOption,
|
|
13
13
|
yesOption
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SOFC4MLS.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/build/command.ts
|
|
17
17
|
var buildCommand = {
|
|
@@ -6,10 +6,13 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
imageAggregateCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A5KP5HAI.js";
|
|
10
|
+
import {
|
|
11
|
+
permissionsAggregateCommand
|
|
12
|
+
} from "./chunk-J6LK45HT.js";
|
|
10
13
|
import {
|
|
11
14
|
tagsAggregateCommand
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-B3JTF4CF.js";
|
|
13
16
|
import {
|
|
14
17
|
formatOption,
|
|
15
18
|
jsonOption,
|
|
@@ -17,7 +20,7 @@ import {
|
|
|
17
20
|
packageName,
|
|
18
21
|
projectOption,
|
|
19
22
|
yesOption
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SOFC4MLS.js";
|
|
21
24
|
|
|
22
25
|
// src/commands/vcr/command.ts
|
|
23
26
|
var projectScopeOption = {
|
|
@@ -237,7 +240,8 @@ var vcrCommand = {
|
|
|
237
240
|
buildSubcommand,
|
|
238
241
|
pushSubcommand,
|
|
239
242
|
tagsAggregateCommand,
|
|
240
|
-
imageAggregateCommand
|
|
243
|
+
imageAggregateCommand,
|
|
244
|
+
permissionsAggregateCommand
|
|
241
245
|
],
|
|
242
246
|
options: [],
|
|
243
247
|
examples: [
|
|
@@ -60,6 +60,19 @@ function repositoryTagsPath(scope, idOrName, opts = {}) {
|
|
|
60
60
|
function repositoryTagPath(scope, idOrName, tag) {
|
|
61
61
|
return `/v1/vcr/repository/${encodeURIComponent(idOrName)}/tags/${encodeURIComponent(tag)}?${baseQuery(scope).toString()}`;
|
|
62
62
|
}
|
|
63
|
+
function repositoryPermissionsPath(scope, idOrName, opts = {}) {
|
|
64
|
+
const query = baseQuery(scope);
|
|
65
|
+
if (opts.limit !== void 0) {
|
|
66
|
+
query.set("limit", String(opts.limit));
|
|
67
|
+
}
|
|
68
|
+
if (opts.cursor) {
|
|
69
|
+
query.set("cursor", opts.cursor);
|
|
70
|
+
}
|
|
71
|
+
return `/v1/vcr/repository/${encodeURIComponent(idOrName)}/permissions?${query.toString()}`;
|
|
72
|
+
}
|
|
73
|
+
function repositoryPermissionsClearPath(scope, idOrName) {
|
|
74
|
+
return `/v1/vcr/repository/${encodeURIComponent(idOrName)}/permissions/all?${baseQuery(scope).toString()}`;
|
|
75
|
+
}
|
|
63
76
|
|
|
64
77
|
export {
|
|
65
78
|
repositoriesPath,
|
|
@@ -67,5 +80,7 @@ export {
|
|
|
67
80
|
repositoryImagesPath,
|
|
68
81
|
imagePath,
|
|
69
82
|
repositoryTagsPath,
|
|
70
|
-
repositoryTagPath
|
|
83
|
+
repositoryTagPath,
|
|
84
|
+
repositoryPermissionsPath,
|
|
85
|
+
repositoryPermissionsClearPath
|
|
71
86
|
};
|
|
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
9
|
isGlobal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KWOWGI7Z.js";
|
|
11
11
|
import {
|
|
12
12
|
progress
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DI54DSTV.js";
|
|
14
14
|
import {
|
|
15
15
|
validateJsonOutput
|
|
16
16
|
} from "./chunk-XPKWKPWA.js";
|
|
@@ -18,31 +18,33 @@ import {
|
|
|
18
18
|
apiCommand,
|
|
19
19
|
listSubcommand4 as listSubcommand,
|
|
20
20
|
loginCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WUMURQKS.js";
|
|
22
22
|
import {
|
|
23
23
|
require_semver
|
|
24
24
|
} from "./chunk-IB5L4LKZ.js";
|
|
25
25
|
import {
|
|
26
26
|
help
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZX2FSPWV.js";
|
|
28
28
|
import {
|
|
29
29
|
getGlobalPathConfig,
|
|
30
30
|
login,
|
|
31
31
|
writeToConfigFile
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PVWXPWLQ.js";
|
|
33
33
|
import {
|
|
34
34
|
TelemetryClient,
|
|
35
35
|
isNativeBinaryInstall
|
|
36
36
|
} from "./chunk-ECCWJHC6.js";
|
|
37
37
|
import {
|
|
38
|
-
parseArguments,
|
|
39
38
|
printError,
|
|
40
39
|
require_strip_ansi
|
|
41
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-KBEX5MYS.js";
|
|
41
|
+
import {
|
|
42
|
+
parseArguments
|
|
43
|
+
} from "./chunk-XLKFJPMT.js";
|
|
42
44
|
import {
|
|
43
45
|
getFlagsSpecification,
|
|
44
46
|
packageName
|
|
45
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SOFC4MLS.js";
|
|
46
48
|
import {
|
|
47
49
|
pkg_default
|
|
48
50
|
} from "./chunk-P4QNYOFB.js";
|
|
@@ -31,14 +31,16 @@ import {
|
|
|
31
31
|
usePrefix,
|
|
32
32
|
useState,
|
|
33
33
|
writeToConfigFile
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PVWXPWLQ.js";
|
|
35
35
|
import {
|
|
36
|
-
parseArguments,
|
|
37
36
|
require_strip_ansi
|
|
38
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KBEX5MYS.js";
|
|
38
|
+
import {
|
|
39
|
+
parseArguments
|
|
40
|
+
} from "./chunk-XLKFJPMT.js";
|
|
39
41
|
import {
|
|
40
42
|
APIError
|
|
41
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-SOFC4MLS.js";
|
|
42
44
|
import {
|
|
43
45
|
pkg_default
|
|
44
46
|
} from "./chunk-P4QNYOFB.js";
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
getLinkedProject,
|
|
12
12
|
getProjectByNameOrId,
|
|
13
13
|
getScope
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PVWXPWLQ.js";
|
|
15
15
|
import {
|
|
16
16
|
AGENT_REASON,
|
|
17
17
|
buildCommandWithGlobalFlags,
|
|
18
18
|
outputAgentError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
20
20
|
import {
|
|
21
21
|
ProjectNotFound,
|
|
22
22
|
isAPIError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SOFC4MLS.js";
|
|
24
24
|
|
|
25
25
|
// src/commands/alerts/resolve-alerts-scope.ts
|
|
26
26
|
function emitAlertsScopeError(client, jsonOutput, code, message, agent) {
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-FGDKMNEN.js";
|
|
13
13
|
import {
|
|
14
14
|
truncateMiddle
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RQ7H43CJ.js";
|
|
16
16
|
import {
|
|
17
17
|
table
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KT4XXKJK.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/alerts/format.ts
|
|
21
21
|
function renderAlertTable(rows, hsep = 3) {
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
progress,
|
|
14
14
|
require_dist as require_dist2,
|
|
15
15
|
sleep
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DI54DSTV.js";
|
|
17
17
|
import {
|
|
18
18
|
suggestNextCommands
|
|
19
19
|
} from "./chunk-XBN2O34P.js";
|
|
20
20
|
import {
|
|
21
21
|
CommandTimeout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WUMURQKS.js";
|
|
23
23
|
import {
|
|
24
24
|
showPluginTipIfNeeded
|
|
25
25
|
} from "./chunk-NJUPUGOE.js";
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
require_dist as require_dist3,
|
|
37
37
|
require_pluralize,
|
|
38
38
|
ua_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PVWXPWLQ.js";
|
|
40
40
|
import {
|
|
41
41
|
require_strip_ansi,
|
|
42
42
|
responseError
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KBEX5MYS.js";
|
|
44
44
|
import {
|
|
45
45
|
APIError,
|
|
46
46
|
BuildError,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
getCommandName,
|
|
59
59
|
isAPIError,
|
|
60
60
|
require_bytes
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-SOFC4MLS.js";
|
|
62
62
|
import {
|
|
63
63
|
Headers,
|
|
64
64
|
fetch,
|