vercel 37.6.1 → 37.6.3
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/index.js +207 -157
- package/package.json +10 -10
package/dist/index.js
CHANGED
@@ -3874,7 +3874,7 @@ var require_has_flag = __commonJS2({
|
|
3874
3874
|
var require_supports_color = __commonJS2({
|
3875
3875
|
"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
|
3876
3876
|
"use strict";
|
3877
|
-
var
|
3877
|
+
var os4 = require("os");
|
3878
3878
|
var tty = require("tty");
|
3879
3879
|
var hasFlag = require_has_flag();
|
3880
3880
|
var { env } = process;
|
@@ -3922,7 +3922,7 @@ var require_supports_color = __commonJS2({
|
|
3922
3922
|
return min;
|
3923
3923
|
}
|
3924
3924
|
if (process.platform === "win32") {
|
3925
|
-
const osRelease =
|
3925
|
+
const osRelease = os4.release().split(".");
|
3926
3926
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
3927
3927
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
3928
3928
|
}
|
@@ -5399,7 +5399,7 @@ var require_semver = __commonJS2({
|
|
5399
5399
|
var require_lib2 = __commonJS2({
|
5400
5400
|
"../../node_modules/.pnpm/os-paths@4.4.0/node_modules/os-paths/src/lib/index.js"(exports2, module2) {
|
5401
5401
|
"use strict";
|
5402
|
-
var
|
5402
|
+
var os4 = require("os");
|
5403
5403
|
var paths = require("path");
|
5404
5404
|
var isWinOS = /^win/i.test(process.platform);
|
5405
5405
|
function normalize_path(path11) {
|
@@ -5408,18 +5408,18 @@ var require_lib2 = __commonJS2({
|
|
5408
5408
|
var base = () => {
|
5409
5409
|
const { env } = process;
|
5410
5410
|
const object = {};
|
5411
|
-
object.home = () => normalize_path(
|
5412
|
-
object.temp = () => normalize_path(
|
5411
|
+
object.home = () => normalize_path(os4.homedir ? os4.homedir() : env.HOME);
|
5412
|
+
object.temp = () => normalize_path(os4.tmpdir ? os4.tmpdir() : env.TMPDIR || env.TEMP || env.TMP);
|
5413
5413
|
return object;
|
5414
5414
|
};
|
5415
5415
|
var windows = () => {
|
5416
5416
|
const { env } = process;
|
5417
5417
|
const object = {};
|
5418
5418
|
object.home = () => normalize_path(
|
5419
|
-
|
5419
|
+
os4.homedir ? os4.homedir() : env.USERPROFILE || paths.join(env.HOMEDRIVE, env.HOMEPATH) || env.HOME
|
5420
5420
|
);
|
5421
5421
|
object.temp = () => normalize_path(
|
5422
|
-
|
5422
|
+
os4.tmpdir ? os4.tmpdir() : env.TEMP || env.TMP || paths.join(env.LOCALAPPDATA || env.SystemRoot || env.windir, "Temp")
|
5423
5423
|
);
|
5424
5424
|
return object;
|
5425
5425
|
};
|
@@ -5527,7 +5527,7 @@ var require_xdg_app_paths = __commonJS2({
|
|
5527
5527
|
"../../node_modules/.pnpm/xdg-app-paths@5.1.0/node_modules/xdg-app-paths/index.js"(exports2, module2) {
|
5528
5528
|
"use strict";
|
5529
5529
|
var path11 = require("path");
|
5530
|
-
var
|
5530
|
+
var os4 = require("os");
|
5531
5531
|
var xdg = require_lib3();
|
5532
5532
|
var isWinOS = /^win/i.test(process.platform);
|
5533
5533
|
function _normalizeOptions(options, isolated) {
|
@@ -5575,8 +5575,8 @@ var require_xdg_app_paths = __commonJS2({
|
|
5575
5575
|
};
|
5576
5576
|
var windows = (name, isolated) => {
|
5577
5577
|
const { env } = process;
|
5578
|
-
const homedir5 =
|
5579
|
-
const tmpdir =
|
5578
|
+
const homedir5 = os4.homedir();
|
5579
|
+
const tmpdir = os4.tmpdir();
|
5580
5580
|
const appData = env.APPDATA || path11.join(homedir5 || tmpdir, "AppData", "Roaming");
|
5581
5581
|
const localAppData = env.LOCALAPPDATA || path11.join(homedir5 || tmpdir, "AppData", "Local");
|
5582
5582
|
const object = {};
|
@@ -10090,32 +10090,32 @@ var require_ms = __commonJS2({
|
|
10090
10090
|
return void 0;
|
10091
10091
|
}
|
10092
10092
|
}
|
10093
|
-
function fmtShort(
|
10094
|
-
if (
|
10095
|
-
return Math.round(
|
10093
|
+
function fmtShort(ms31) {
|
10094
|
+
if (ms31 >= d) {
|
10095
|
+
return Math.round(ms31 / d) + "d";
|
10096
10096
|
}
|
10097
|
-
if (
|
10098
|
-
return Math.round(
|
10097
|
+
if (ms31 >= h) {
|
10098
|
+
return Math.round(ms31 / h) + "h";
|
10099
10099
|
}
|
10100
|
-
if (
|
10101
|
-
return Math.round(
|
10100
|
+
if (ms31 >= m) {
|
10101
|
+
return Math.round(ms31 / m) + "m";
|
10102
10102
|
}
|
10103
|
-
if (
|
10104
|
-
return Math.round(
|
10103
|
+
if (ms31 >= s) {
|
10104
|
+
return Math.round(ms31 / s) + "s";
|
10105
10105
|
}
|
10106
|
-
return
|
10106
|
+
return ms31 + "ms";
|
10107
10107
|
}
|
10108
|
-
function fmtLong(
|
10109
|
-
return plural11(
|
10108
|
+
function fmtLong(ms31) {
|
10109
|
+
return plural11(ms31, d, "day") || plural11(ms31, h, "hour") || plural11(ms31, m, "minute") || plural11(ms31, s, "second") || ms31 + " ms";
|
10110
10110
|
}
|
10111
|
-
function plural11(
|
10112
|
-
if (
|
10111
|
+
function plural11(ms31, n, name) {
|
10112
|
+
if (ms31 < n) {
|
10113
10113
|
return;
|
10114
10114
|
}
|
10115
|
-
if (
|
10116
|
-
return Math.floor(
|
10115
|
+
if (ms31 < n * 1.5) {
|
10116
|
+
return Math.floor(ms31 / n) + " " + name;
|
10117
10117
|
}
|
10118
|
-
return Math.ceil(
|
10118
|
+
return Math.ceil(ms31 / n) + " " + name + "s";
|
10119
10119
|
}
|
10120
10120
|
}
|
10121
10121
|
});
|
@@ -10148,8 +10148,8 @@ var require_debug = __commonJS2({
|
|
10148
10148
|
return;
|
10149
10149
|
var self2 = debug3;
|
10150
10150
|
var curr = +/* @__PURE__ */ new Date();
|
10151
|
-
var
|
10152
|
-
self2.diff =
|
10151
|
+
var ms31 = curr - (prevTime || curr);
|
10152
|
+
self2.diff = ms31;
|
10153
10153
|
self2.prev = prevTime;
|
10154
10154
|
self2.curr = curr;
|
10155
10155
|
prevTime = curr;
|
@@ -11257,7 +11257,7 @@ var require_handlers = __commonJS2({
|
|
11257
11257
|
var utils_1 = require_dist4();
|
11258
11258
|
var cookie = require_cookie();
|
11259
11259
|
var domain = require("domain");
|
11260
|
-
var
|
11260
|
+
var os4 = require("os");
|
11261
11261
|
var url3 = require("url");
|
11262
11262
|
var sdk_1 = require_sdk2();
|
11263
11263
|
var DEFAULT_SHUTDOWN_TIMEOUT = 2e3;
|
@@ -11334,7 +11334,7 @@ var require_handlers = __commonJS2({
|
|
11334
11334
|
event.request = tslib_1.__assign({}, event.request, extractRequestData(req));
|
11335
11335
|
}
|
11336
11336
|
if (options.serverName) {
|
11337
|
-
event.server_name = global.process.env.SENTRY_NAME ||
|
11337
|
+
event.server_name = global.process.env.SENTRY_NAME || os4.hostname();
|
11338
11338
|
}
|
11339
11339
|
if (options.user && req.user) {
|
11340
11340
|
event.user = tslib_1.__assign({}, event.user, extractUserData(req, options.user));
|
@@ -13331,7 +13331,7 @@ var require_has_flag2 = __commonJS2({
|
|
13331
13331
|
var require_supports_color2 = __commonJS2({
|
13332
13332
|
"../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports2, module2) {
|
13333
13333
|
"use strict";
|
13334
|
-
var
|
13334
|
+
var os4 = require("os");
|
13335
13335
|
var hasFlag = require_has_flag2();
|
13336
13336
|
var env = process.env;
|
13337
13337
|
var forceColor;
|
@@ -13369,7 +13369,7 @@ var require_supports_color2 = __commonJS2({
|
|
13369
13369
|
}
|
13370
13370
|
const min = forceColor ? 1 : 0;
|
13371
13371
|
if (process.platform === "win32") {
|
13372
|
-
const osRelease =
|
13372
|
+
const osRelease = os4.release().split(".");
|
13373
13373
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
13374
13374
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
13375
13375
|
}
|
@@ -24675,14 +24675,14 @@ var require_is_docker = __commonJS2({
|
|
24675
24675
|
var require_is_wsl = __commonJS2({
|
24676
24676
|
"../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports2, module2) {
|
24677
24677
|
"use strict";
|
24678
|
-
var
|
24678
|
+
var os4 = require("os");
|
24679
24679
|
var fs15 = require("fs");
|
24680
24680
|
var isDocker2 = require_is_docker();
|
24681
24681
|
var isWsl = () => {
|
24682
24682
|
if (process.platform !== "linux") {
|
24683
24683
|
return false;
|
24684
24684
|
}
|
24685
|
-
if (
|
24685
|
+
if (os4.release().toLowerCase().includes("microsoft")) {
|
24686
24686
|
if (isDocker2()) {
|
24687
24687
|
return false;
|
24688
24688
|
}
|
@@ -25239,49 +25239,49 @@ var require_ms2 = __commonJS2({
|
|
25239
25239
|
return void 0;
|
25240
25240
|
}
|
25241
25241
|
}
|
25242
|
-
function fmtShort(
|
25243
|
-
var msAbs = Math.abs(
|
25242
|
+
function fmtShort(ms31) {
|
25243
|
+
var msAbs = Math.abs(ms31);
|
25244
25244
|
if (msAbs >= d) {
|
25245
|
-
return Math.round(
|
25245
|
+
return Math.round(ms31 / d) + "d";
|
25246
25246
|
}
|
25247
25247
|
if (msAbs >= h) {
|
25248
|
-
return Math.round(
|
25248
|
+
return Math.round(ms31 / h) + "h";
|
25249
25249
|
}
|
25250
25250
|
if (msAbs >= m) {
|
25251
|
-
return Math.round(
|
25251
|
+
return Math.round(ms31 / m) + "m";
|
25252
25252
|
}
|
25253
25253
|
if (msAbs >= s) {
|
25254
|
-
return Math.round(
|
25254
|
+
return Math.round(ms31 / s) + "s";
|
25255
25255
|
}
|
25256
|
-
return
|
25256
|
+
return ms31 + "ms";
|
25257
25257
|
}
|
25258
|
-
function fmtLong(
|
25259
|
-
var msAbs = Math.abs(
|
25258
|
+
function fmtLong(ms31) {
|
25259
|
+
var msAbs = Math.abs(ms31);
|
25260
25260
|
if (msAbs >= d) {
|
25261
|
-
return plural11(
|
25261
|
+
return plural11(ms31, msAbs, d, "day");
|
25262
25262
|
}
|
25263
25263
|
if (msAbs >= h) {
|
25264
|
-
return plural11(
|
25264
|
+
return plural11(ms31, msAbs, h, "hour");
|
25265
25265
|
}
|
25266
25266
|
if (msAbs >= m) {
|
25267
|
-
return plural11(
|
25267
|
+
return plural11(ms31, msAbs, m, "minute");
|
25268
25268
|
}
|
25269
25269
|
if (msAbs >= s) {
|
25270
|
-
return plural11(
|
25270
|
+
return plural11(ms31, msAbs, s, "second");
|
25271
25271
|
}
|
25272
|
-
return
|
25272
|
+
return ms31 + " ms";
|
25273
25273
|
}
|
25274
|
-
function plural11(
|
25274
|
+
function plural11(ms31, msAbs, n, name) {
|
25275
25275
|
var isPlural = msAbs >= n * 1.5;
|
25276
|
-
return Math.round(
|
25276
|
+
return Math.round(ms31 / n) + " " + name + (isPlural ? "s" : "");
|
25277
25277
|
}
|
25278
25278
|
}
|
25279
25279
|
});
|
25280
25280
|
|
25281
25281
|
// src/util/sleep.ts
|
25282
|
-
function sleep(
|
25282
|
+
function sleep(ms31) {
|
25283
25283
|
return new Promise((resolve12) => {
|
25284
|
-
setTimeout(resolve12,
|
25284
|
+
setTimeout(resolve12, ms31);
|
25285
25285
|
});
|
25286
25286
|
}
|
25287
25287
|
var init_sleep = __esm({
|
@@ -28327,11 +28327,11 @@ var require_utimes2 = __commonJS2({
|
|
28327
28327
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
|
28328
28328
|
"use strict";
|
28329
28329
|
var fs15 = require_graceful_fs2();
|
28330
|
-
var
|
28330
|
+
var os4 = require("os");
|
28331
28331
|
var path11 = require("path");
|
28332
28332
|
function hasMillisResSync() {
|
28333
28333
|
let tmpfile = path11.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
|
28334
|
-
tmpfile = path11.join(
|
28334
|
+
tmpfile = path11.join(os4.tmpdir(), tmpfile);
|
28335
28335
|
const d = /* @__PURE__ */ new Date(1435410243862);
|
28336
28336
|
fs15.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
|
28337
28337
|
const fd = fs15.openSync(tmpfile, "r+");
|
@@ -28341,7 +28341,7 @@ var require_utimes2 = __commonJS2({
|
|
28341
28341
|
}
|
28342
28342
|
function hasMillisRes(callback) {
|
28343
28343
|
let tmpfile = path11.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
|
28344
|
-
tmpfile = path11.join(
|
28344
|
+
tmpfile = path11.join(os4.tmpdir(), tmpfile);
|
28345
28345
|
const d = /* @__PURE__ */ new Date(1435410243862);
|
28346
28346
|
fs15.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
|
28347
28347
|
if (err)
|
@@ -30857,7 +30857,7 @@ var require_package = __commonJS2({
|
|
30857
30857
|
"../client/package.json"(exports2, module2) {
|
30858
30858
|
module2.exports = {
|
30859
30859
|
name: "@vercel/client",
|
30860
|
-
version: "13.4.
|
30860
|
+
version: "13.4.12",
|
30861
30861
|
main: "dist/index.js",
|
30862
30862
|
typings: "dist/index.d.ts",
|
30863
30863
|
homepage: "https://vercel.com",
|
@@ -30894,7 +30894,7 @@ var require_package = __commonJS2({
|
|
30894
30894
|
typescript: "4.9.5"
|
30895
30895
|
},
|
30896
30896
|
dependencies: {
|
30897
|
-
"@vercel/build-utils": "8.4.
|
30897
|
+
"@vercel/build-utils": "8.4.8",
|
30898
30898
|
"@vercel/error-utils": "2.0.2",
|
30899
30899
|
"@vercel/routing-utils": "3.1.0",
|
30900
30900
|
"async-retry": "1.2.3",
|
@@ -32299,18 +32299,18 @@ var require_get_polling_delay = __commonJS2({
|
|
32299
32299
|
getPollingDelay: () => getPollingDelay
|
32300
32300
|
});
|
32301
32301
|
module2.exports = __toCommonJS4(get_polling_delay_exports);
|
32302
|
-
var
|
32302
|
+
var import_ms31 = __toESM4(require_ms2());
|
32303
32303
|
function getPollingDelay(elapsed2) {
|
32304
|
-
if (elapsed2 <= (0,
|
32305
|
-
return (0,
|
32304
|
+
if (elapsed2 <= (0, import_ms31.default)("15s")) {
|
32305
|
+
return (0, import_ms31.default)("1s");
|
32306
32306
|
}
|
32307
|
-
if (elapsed2 <= (0,
|
32308
|
-
return (0,
|
32307
|
+
if (elapsed2 <= (0, import_ms31.default)("1m")) {
|
32308
|
+
return (0, import_ms31.default)("5s");
|
32309
32309
|
}
|
32310
|
-
if (elapsed2 <= (0,
|
32311
|
-
return (0,
|
32310
|
+
if (elapsed2 <= (0, import_ms31.default)("5m")) {
|
32311
|
+
return (0, import_ms31.default)("15s");
|
32312
32312
|
}
|
32313
|
-
return (0,
|
32313
|
+
return (0, import_ms31.default)("30s");
|
32314
32314
|
}
|
32315
32315
|
}
|
32316
32316
|
});
|
@@ -36655,8 +36655,8 @@ var require_tar_fs = __commonJS2({
|
|
36655
36655
|
var mkdirp4 = require_mkdirp();
|
36656
36656
|
var fs15 = require("fs");
|
36657
36657
|
var path11 = require("path");
|
36658
|
-
var
|
36659
|
-
var win32 =
|
36658
|
+
var os4 = require("os");
|
36659
|
+
var win32 = os4.platform() === "win32";
|
36660
36660
|
var noop = function() {
|
36661
36661
|
};
|
36662
36662
|
var echo = function(name) {
|
@@ -38997,8 +38997,8 @@ var require_common = __commonJS2({
|
|
38997
38997
|
}
|
38998
38998
|
const self2 = debug3;
|
38999
38999
|
const curr = Number(/* @__PURE__ */ new Date());
|
39000
|
-
const
|
39001
|
-
self2.diff =
|
39000
|
+
const ms31 = curr - (prevTime || curr);
|
39001
|
+
self2.diff = ms31;
|
39002
39002
|
self2.prev = prevTime;
|
39003
39003
|
self2.curr = curr;
|
39004
39004
|
prevTime = curr;
|
@@ -39584,8 +39584,8 @@ var require_common2 = __commonJS2({
|
|
39584
39584
|
}
|
39585
39585
|
const self2 = debug3;
|
39586
39586
|
const curr = Number(/* @__PURE__ */ new Date());
|
39587
|
-
const
|
39588
|
-
self2.diff =
|
39587
|
+
const ms31 = curr - (prevTime || curr);
|
39588
|
+
self2.diff = ms31;
|
39589
39589
|
self2.prev = prevTime;
|
39590
39590
|
self2.curr = curr;
|
39591
39591
|
prevTime = curr;
|
@@ -40445,7 +40445,7 @@ var require_ip = __commonJS2({
|
|
40445
40445
|
"../../node_modules/.pnpm/ip@2.0.0/node_modules/ip/lib/ip.js"(exports2) {
|
40446
40446
|
var ip = exports2;
|
40447
40447
|
var { Buffer: Buffer2 } = require("buffer");
|
40448
|
-
var
|
40448
|
+
var os4 = require("os");
|
40449
40449
|
ip.toBuffer = function(ip2, buff, offset) {
|
40450
40450
|
offset = ~~offset;
|
40451
40451
|
let result;
|
@@ -40702,7 +40702,7 @@ var require_ip = __commonJS2({
|
|
40702
40702
|
return family === "ipv4" ? "127.0.0.1" : "fe80::1";
|
40703
40703
|
};
|
40704
40704
|
ip.address = function(name, family) {
|
40705
|
-
const interfaces =
|
40705
|
+
const interfaces = os4.networkInterfaces();
|
40706
40706
|
family = _normalizeFamily(family);
|
40707
40707
|
if (name && name !== "private" && name !== "public") {
|
40708
40708
|
const res = interfaces[name].filter((details) => {
|
@@ -43484,11 +43484,11 @@ var require_utimes3 = __commonJS2({
|
|
43484
43484
|
"../../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
|
43485
43485
|
"use strict";
|
43486
43486
|
var fs15 = require_graceful_fs();
|
43487
|
-
var
|
43487
|
+
var os4 = require("os");
|
43488
43488
|
var path11 = require("path");
|
43489
43489
|
function hasMillisResSync() {
|
43490
43490
|
let tmpfile = path11.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
|
43491
|
-
tmpfile = path11.join(
|
43491
|
+
tmpfile = path11.join(os4.tmpdir(), tmpfile);
|
43492
43492
|
const d = /* @__PURE__ */ new Date(1435410243862);
|
43493
43493
|
fs15.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
|
43494
43494
|
const fd = fs15.openSync(tmpfile, "r+");
|
@@ -43498,7 +43498,7 @@ var require_utimes3 = __commonJS2({
|
|
43498
43498
|
}
|
43499
43499
|
function hasMillisRes(callback) {
|
43500
43500
|
let tmpfile = path11.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
|
43501
|
-
tmpfile = path11.join(
|
43501
|
+
tmpfile = path11.join(os4.tmpdir(), tmpfile);
|
43502
43502
|
const d = /* @__PURE__ */ new Date(1435410243862);
|
43503
43503
|
fs15.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
|
43504
43504
|
if (err)
|
@@ -62765,7 +62765,7 @@ var require_ip2 = __commonJS2({
|
|
62765
62765
|
"../../node_modules/.pnpm/ip@1.1.8/node_modules/ip/lib/ip.js"(exports2) {
|
62766
62766
|
var ip = exports2;
|
62767
62767
|
var { Buffer: Buffer2 } = require("buffer");
|
62768
|
-
var
|
62768
|
+
var os4 = require("os");
|
62769
62769
|
ip.toBuffer = function(ip2, buff, offset) {
|
62770
62770
|
offset = ~~offset;
|
62771
62771
|
var result;
|
@@ -63025,7 +63025,7 @@ var require_ip2 = __commonJS2({
|
|
63025
63025
|
return family === "ipv4" ? "127.0.0.1" : "fe80::1";
|
63026
63026
|
};
|
63027
63027
|
ip.address = function(name, family) {
|
63028
|
-
var interfaces =
|
63028
|
+
var interfaces = os4.networkInterfaces();
|
63029
63029
|
family = _normalizeFamily(family);
|
63030
63030
|
if (name && name !== "private" && name !== "public") {
|
63031
63031
|
var res = interfaces[name].filter((details) => {
|
@@ -67879,7 +67879,7 @@ var require_p_finally = __commonJS2({
|
|
67879
67879
|
var require_kill = __commonJS2({
|
67880
67880
|
"../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/kill.js"(exports2, module2) {
|
67881
67881
|
"use strict";
|
67882
|
-
var
|
67882
|
+
var os4 = require("os");
|
67883
67883
|
var onExit2 = require_signal_exit();
|
67884
67884
|
var pFinally = require_p_finally();
|
67885
67885
|
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
@@ -67901,7 +67901,7 @@ var require_kill = __commonJS2({
|
|
67901
67901
|
return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
|
67902
67902
|
};
|
67903
67903
|
var isSigterm = (signal) => {
|
67904
|
-
return signal ===
|
67904
|
+
return signal === os4.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
67905
67905
|
};
|
67906
67906
|
var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
|
67907
67907
|
if (forceKillAfterTimeout === true) {
|
@@ -69705,11 +69705,12 @@ var import_blob_polyfill = __toESM(require_Blob());
|
|
69705
69705
|
});
|
69706
69706
|
|
69707
69707
|
// src/util/telemetry/index.ts
|
69708
|
-
var import_node_crypto, LogLabel, TelemetryClient, TelemetryEventStore;
|
69708
|
+
var import_node_crypto, import_node_os, LogLabel, TelemetryClient, TelemetryEventStore;
|
69709
69709
|
var init_telemetry = __esm({
|
69710
69710
|
"src/util/telemetry/index.ts"() {
|
69711
69711
|
"use strict";
|
69712
69712
|
import_node_crypto = require("crypto");
|
69713
|
+
import_node_os = __toESM3(require("os"));
|
69713
69714
|
LogLabel = `['telemetry']:`;
|
69714
69715
|
TelemetryClient = class {
|
69715
69716
|
constructor({ opts }) {
|
@@ -69760,6 +69761,24 @@ var init_telemetry = __esm({
|
|
69760
69761
|
value: "TRUE"
|
69761
69762
|
});
|
69762
69763
|
}
|
69764
|
+
trackCPUs() {
|
69765
|
+
this.track({
|
69766
|
+
key: "cpu_count",
|
69767
|
+
value: String(import_node_os.default.cpus().length)
|
69768
|
+
});
|
69769
|
+
}
|
69770
|
+
trackPlatform() {
|
69771
|
+
this.track({
|
69772
|
+
key: "platform",
|
69773
|
+
value: import_node_os.default.platform()
|
69774
|
+
});
|
69775
|
+
}
|
69776
|
+
trackArch() {
|
69777
|
+
this.track({
|
69778
|
+
key: "arch",
|
69779
|
+
value: import_node_os.default.arch()
|
69780
|
+
});
|
69781
|
+
}
|
69763
69782
|
trackCI(ciVendorName) {
|
69764
69783
|
if (ciVendorName) {
|
69765
69784
|
this.track({
|
@@ -69768,6 +69787,14 @@ var init_telemetry = __esm({
|
|
69768
69787
|
});
|
69769
69788
|
}
|
69770
69789
|
}
|
69790
|
+
trackVersion(version2) {
|
69791
|
+
if (version2) {
|
69792
|
+
this.track({
|
69793
|
+
key: "version",
|
69794
|
+
value: version2
|
69795
|
+
});
|
69796
|
+
}
|
69797
|
+
}
|
69771
69798
|
trackCommandError(error3) {
|
69772
69799
|
this.output.error(error3);
|
69773
69800
|
return;
|
@@ -69794,17 +69821,21 @@ var init_telemetry = __esm({
|
|
69794
69821
|
reset() {
|
69795
69822
|
this.events = [];
|
69796
69823
|
}
|
69797
|
-
enabled() {
|
69824
|
+
get enabled() {
|
69825
|
+
if (process.env.VERCEL_TELEMETRY_DISABLED) {
|
69826
|
+
return false;
|
69827
|
+
}
|
69798
69828
|
return this.config?.enabled === false ? false : true;
|
69799
69829
|
}
|
69800
69830
|
save() {
|
69801
69831
|
if (this.isDebug) {
|
69802
|
-
this.output.
|
69832
|
+
this.output.log(`${LogLabel} Flushing Events`);
|
69803
69833
|
this.events.forEach((event) => {
|
69804
|
-
this.output.
|
69834
|
+
this.output.log(JSON.stringify(event));
|
69805
69835
|
});
|
69836
|
+
return;
|
69806
69837
|
}
|
69807
|
-
if (this.enabled
|
69838
|
+
if (this.enabled) {
|
69808
69839
|
}
|
69809
69840
|
}
|
69810
69841
|
};
|
@@ -70289,7 +70320,7 @@ var require_has_flag3 = __commonJS2({
|
|
70289
70320
|
var require_supports_colors = __commonJS2({
|
70290
70321
|
"../../node_modules/.pnpm/@colors+colors@1.5.0/node_modules/@colors/colors/lib/system/supports-colors.js"(exports2, module2) {
|
70291
70322
|
"use strict";
|
70292
|
-
var
|
70323
|
+
var os4 = require("os");
|
70293
70324
|
var hasFlag = require_has_flag3();
|
70294
70325
|
var env = process.env;
|
70295
70326
|
var forceColor = void 0;
|
@@ -70327,7 +70358,7 @@ var require_supports_colors = __commonJS2({
|
|
70327
70358
|
}
|
70328
70359
|
var min = forceColor ? 1 : 0;
|
70329
70360
|
if (process.platform === "win32") {
|
70330
|
-
var osRelease =
|
70361
|
+
var osRelease = os4.release().split(".");
|
70331
70362
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
70332
70363
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
70333
70364
|
}
|
@@ -119008,7 +119039,7 @@ var require_os_tmpdir = __commonJS2({
|
|
119008
119039
|
var require_os_homedir = __commonJS2({
|
119009
119040
|
"../../node_modules/.pnpm/os-homedir@1.0.2/node_modules/os-homedir/index.js"(exports2, module2) {
|
119010
119041
|
"use strict";
|
119011
|
-
var
|
119042
|
+
var os4 = require("os");
|
119012
119043
|
function homedir5() {
|
119013
119044
|
var env = process.env;
|
119014
119045
|
var home2 = env.HOME;
|
@@ -119024,7 +119055,7 @@ var require_os_homedir = __commonJS2({
|
|
119024
119055
|
}
|
119025
119056
|
return home2 || null;
|
119026
119057
|
}
|
119027
|
-
module2.exports = typeof
|
119058
|
+
module2.exports = typeof os4.homedir === "function" ? os4.homedir : homedir5;
|
119028
119059
|
}
|
119029
119060
|
});
|
119030
119061
|
|
@@ -121420,8 +121451,7 @@ var init_command6 = __esm({
|
|
121420
121451
|
...nextOption,
|
121421
121452
|
description: "Show next page of results"
|
121422
121453
|
},
|
121423
|
-
{ name: "overwrite", shorthand: null, type: Boolean, deprecated: false }
|
121424
|
-
{ name: "output", shorthand: null, type: String, deprecated: false }
|
121454
|
+
{ name: "overwrite", shorthand: null, type: Boolean, deprecated: false }
|
121425
121455
|
],
|
121426
121456
|
examples: [
|
121427
121457
|
{
|
@@ -139591,13 +139621,14 @@ function buildMatchEquals(a, b) {
|
|
139591
139621
|
return false;
|
139592
139622
|
return true;
|
139593
139623
|
}
|
139594
|
-
var import_url18, import_http3, import_fs_extra21, import_chalk59, import_node_fetch5, import_pluralize7, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy, import_crypto2, import_serve_handler, import_chokidar, import_dotenv2, import_path36, import_once, import_directory, import_get_port, import_is_port_reachable, import_fast_deep_equal, import_npm_package_arg2, import_json_parse_better_errors3, import_client11, import_routing_utils5, import_build_utils16, import_fs_detectors6, import_frameworks5, import_error_utils19, frontendRuntimeSet, DevServer;
|
139624
|
+
var import_url18, import_http3, import_fs_extra21, import_ms13, import_chalk59, import_node_fetch5, import_pluralize7, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy, import_crypto2, import_serve_handler, import_chokidar, import_dotenv2, import_path36, import_once, import_directory, import_get_port, import_is_port_reachable, import_fast_deep_equal, import_npm_package_arg2, import_json_parse_better_errors3, import_client11, import_routing_utils5, import_build_utils16, import_fs_detectors6, import_frameworks5, import_error_utils19, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
|
139595
139625
|
var init_server = __esm({
|
139596
139626
|
"src/util/dev/server.ts"() {
|
139597
139627
|
"use strict";
|
139598
139628
|
import_url18 = __toESM3(require("url"));
|
139599
139629
|
import_http3 = __toESM3(require("http"));
|
139600
139630
|
import_fs_extra21 = __toESM3(require_lib());
|
139631
|
+
import_ms13 = __toESM3(require_ms2());
|
139601
139632
|
import_chalk59 = __toESM3(require_source());
|
139602
139633
|
import_node_fetch5 = __toESM3(require_lib7());
|
139603
139634
|
import_pluralize7 = __toESM3(require_pluralize());
|
@@ -139650,6 +139681,7 @@ var init_server = __esm({
|
|
139650
139681
|
frontendRuntimeSet = new Set(
|
139651
139682
|
import_frameworks5.frameworkList.map((f) => f.useRuntime?.use || "@vercel/static-build")
|
139652
139683
|
);
|
139684
|
+
DEV_SERVER_PORT_BIND_TIMEOUT = (0, import_ms13.default)("5m");
|
139653
139685
|
DevServer = class {
|
139654
139686
|
constructor(cwd, options) {
|
139655
139687
|
this.clearVercelConfigPromise = () => {
|
@@ -141302,7 +141334,10 @@ ${error_code}
|
|
141302
141334
|
this.output.debug(`Dev command closed with "${signal || code2}"`);
|
141303
141335
|
this.devProcessOrigin = void 0;
|
141304
141336
|
});
|
141305
|
-
const devProcessHost = await checkForPort(
|
141337
|
+
const devProcessHost = await checkForPort(
|
141338
|
+
port,
|
141339
|
+
DEV_SERVER_PORT_BIND_TIMEOUT
|
141340
|
+
);
|
141306
141341
|
this.devProcessOrigin = `http://${devProcessHost}:${port}`;
|
141307
141342
|
}
|
141308
141343
|
};
|
@@ -142189,7 +142224,7 @@ function getDNSRecordsTable(dnsRecords) {
|
|
142189
142224
|
}
|
142190
142225
|
function getDNSRecordRow(record) {
|
142191
142226
|
const isSystemRecord = record.creator === "system";
|
142192
|
-
const createdAt = `${(0,
|
142227
|
+
const createdAt = `${(0, import_ms14.default)(
|
142193
142228
|
Date.now() - new Date(Number(record.createdAt)).getTime()
|
142194
142229
|
)} ago`;
|
142195
142230
|
const priority = record.mxPriority || record.priority || null;
|
@@ -142202,12 +142237,12 @@ function getDNSRecordRow(record) {
|
|
142202
142237
|
import_chalk67.default.gray(isSystemRecord ? "default" : createdAt)
|
142203
142238
|
];
|
142204
142239
|
}
|
142205
|
-
var import_chalk67,
|
142240
|
+
var import_chalk67, import_ms14;
|
142206
142241
|
var init_ls4 = __esm({
|
142207
142242
|
"src/commands/dns/ls.ts"() {
|
142208
142243
|
"use strict";
|
142209
142244
|
import_chalk67 = __toESM3(require_source());
|
142210
|
-
|
142245
|
+
import_ms14 = __toESM3(require_ms2());
|
142211
142246
|
init_errors_ts();
|
142212
142247
|
init_format_table();
|
142213
142248
|
init_get_dns_records();
|
@@ -142308,16 +142343,16 @@ function getDeleteTableRow(domainName, record) {
|
|
142308
142343
|
`${recordName} ${record.type} ${record.value} ${record.mxPriority || ""}`
|
142309
142344
|
),
|
142310
142345
|
import_chalk68.default.gray(
|
142311
|
-
`${(0,
|
142346
|
+
`${(0, import_ms15.default)(Date.now() - new Date(Number(record.createdAt)).getTime())} ago`
|
142312
142347
|
)
|
142313
142348
|
];
|
142314
142349
|
}
|
142315
|
-
var import_chalk68,
|
142350
|
+
var import_chalk68, import_ms15;
|
142316
142351
|
var init_rm3 = __esm({
|
142317
142352
|
"src/commands/dns/rm.ts"() {
|
142318
142353
|
"use strict";
|
142319
142354
|
import_chalk68 = __toESM3(require_source());
|
142320
|
-
|
142355
|
+
import_ms15 = __toESM3(require_ms2());
|
142321
142356
|
init_table();
|
142322
142357
|
init_delete_dns_record_by_id();
|
142323
142358
|
init_get_dns_record_by_id();
|
@@ -143514,7 +143549,7 @@ function formatDomainsTable(domains2) {
|
|
143514
143549
|
const current = Date.now();
|
143515
143550
|
const rows = domains2.map((domain) => {
|
143516
143551
|
const expiration = formatDateWithoutTime(domain.expiresAt);
|
143517
|
-
const age = domain.createdAt ? (0,
|
143552
|
+
const age = domain.createdAt ? (0, import_ms16.default)(current - domain.createdAt) : "-";
|
143518
143553
|
return [
|
143519
143554
|
domain.name,
|
143520
143555
|
getDomainRegistrar(domain),
|
@@ -143530,11 +143565,11 @@ function formatDomainsTable(domains2) {
|
|
143530
143565
|
[{ rows }]
|
143531
143566
|
);
|
143532
143567
|
}
|
143533
|
-
var
|
143568
|
+
var import_ms16, import_chalk77, import_pluralize8;
|
143534
143569
|
var init_ls5 = __esm({
|
143535
143570
|
"src/commands/domains/ls.ts"() {
|
143536
143571
|
"use strict";
|
143537
|
-
|
143572
|
+
import_ms16 = __toESM3(require_ms2());
|
143538
143573
|
import_chalk77 = __toESM3(require_source());
|
143539
143574
|
import_pluralize8 = __toESM3(require_pluralize());
|
143540
143575
|
init_get_domains();
|
@@ -144685,15 +144720,15 @@ function getRow(client2, link4, env, customEnvironments) {
|
|
144685
144720
|
import_chalk82.default.bold(env.key),
|
144686
144721
|
value,
|
144687
144722
|
formatEnvironments(client2, link4, env, customEnvironments),
|
144688
|
-
env.createdAt ? `${(0,
|
144723
|
+
env.createdAt ? `${(0, import_ms17.default)(now - env.createdAt)} ago` : ""
|
144689
144724
|
];
|
144690
144725
|
}
|
144691
|
-
var import_chalk82,
|
144726
|
+
var import_chalk82, import_ms17;
|
144692
144727
|
var init_ls6 = __esm({
|
144693
144728
|
"src/commands/env/ls.ts"() {
|
144694
144729
|
"use strict";
|
144695
144730
|
import_chalk82 = __toESM3(require_source());
|
144696
|
-
|
144731
|
+
import_ms17 = __toESM3(require_ms2());
|
144697
144732
|
init_format_table();
|
144698
144733
|
init_get_env_records();
|
144699
144734
|
init_env_target();
|
@@ -146417,7 +146452,7 @@ async function inspect3(client2) {
|
|
146417
146452
|
print(help2(inspectCommand, { columns: client2.stderr.columns }));
|
146418
146453
|
return 1;
|
146419
146454
|
}
|
146420
|
-
const timeout = (0,
|
146455
|
+
const timeout = (0, import_ms18.default)(parsedArguments.flags["--timeout"] ?? "3m");
|
146421
146456
|
if (timeout === void 0) {
|
146422
146457
|
error3(`Invalid timeout "${parsedArguments.flags["--timeout"]}"`);
|
146423
146458
|
return 1;
|
@@ -146462,7 +146497,7 @@ async function inspect3(client2) {
|
|
146462
146497
|
break;
|
146463
146498
|
}
|
146464
146499
|
if (Date.now() > until) {
|
146465
|
-
warn(`stopped waiting after ${(0,
|
146500
|
+
warn(`stopped waiting after ${(0, import_ms18.default)(timeout, { long: true })}`);
|
146466
146501
|
abortController?.abort();
|
146467
146502
|
break;
|
146468
146503
|
}
|
@@ -146582,13 +146617,13 @@ function exitCode(state) {
|
|
146582
146617
|
}
|
146583
146618
|
return 0;
|
146584
146619
|
}
|
146585
|
-
var import_error_utils25, import_chalk90,
|
146620
|
+
var import_error_utils25, import_chalk90, import_ms18, import_title5, import_url19;
|
146586
146621
|
var init_inspect2 = __esm({
|
146587
146622
|
"src/commands/inspect/index.ts"() {
|
146588
146623
|
"use strict";
|
146589
146624
|
import_error_utils25 = __toESM3(require_dist2());
|
146590
146625
|
import_chalk90 = __toESM3(require_source());
|
146591
|
-
|
146626
|
+
import_ms18 = __toESM3(require_ms2());
|
146592
146627
|
import_title5 = __toESM3(require_lib4());
|
146593
146628
|
import_url19 = require("url");
|
146594
146629
|
init_is_deploying();
|
@@ -147692,7 +147727,7 @@ async function list2(client2) {
|
|
147692
147727
|
...deployments.sort(sortByCreatedAt).map((dep) => {
|
147693
147728
|
urls.push(`https://${dep.url}`);
|
147694
147729
|
const proposedExp = dep.proposedExpiration ? toDate(Math.min(Date.now(), dep.proposedExpiration)) : "No expiration";
|
147695
|
-
const createdAt = (0,
|
147730
|
+
const createdAt = (0, import_ms19.default)(
|
147696
147731
|
Date.now() - (dep?.undeletedAt ?? dep.createdAt)
|
147697
147732
|
);
|
147698
147733
|
const targetName = dep.customEnvironment?.name || (dep.target === "production" ? "Production" : "Preview");
|
@@ -147740,7 +147775,7 @@ function getDeploymentDuration(dep) {
|
|
147740
147775
|
if (!dep || !dep.ready || !dep.buildingAt) {
|
147741
147776
|
return "?";
|
147742
147777
|
}
|
147743
|
-
const duration = (0,
|
147778
|
+
const duration = (0, import_ms19.default)(dep.ready - dep.buildingAt);
|
147744
147779
|
if (duration === "0ms") {
|
147745
147780
|
return "--";
|
147746
147781
|
}
|
@@ -147780,11 +147815,11 @@ function filterUniqueApps() {
|
|
147780
147815
|
return true;
|
147781
147816
|
};
|
147782
147817
|
}
|
147783
|
-
var
|
147818
|
+
var import_ms19, import_chalk92, import_title6, import_error_utils26;
|
147784
147819
|
var init_list2 = __esm({
|
147785
147820
|
"src/commands/list/index.ts"() {
|
147786
147821
|
"use strict";
|
147787
|
-
|
147822
|
+
import_ms19 = __toESM3(require_ms2());
|
147788
147823
|
import_chalk92 = __toESM3(require_source());
|
147789
147824
|
import_title6 = __toESM3(require_lib4());
|
147790
147825
|
init_table();
|
@@ -148259,7 +148294,7 @@ async function add7(client2, args2, contextName) {
|
|
148259
148294
|
throw err;
|
148260
148295
|
}
|
148261
148296
|
}
|
148262
|
-
const elapsed2 = (0,
|
148297
|
+
const elapsed2 = (0, import_ms20.default)(Date.now() - start);
|
148263
148298
|
output2.log(
|
148264
148299
|
`${import_chalk95.default.cyan("Success!")} Project ${import_chalk95.default.bold(
|
148265
148300
|
name.toLowerCase()
|
@@ -148267,12 +148302,12 @@ async function add7(client2, args2, contextName) {
|
|
148267
148302
|
);
|
148268
148303
|
return;
|
148269
148304
|
}
|
148270
|
-
var import_chalk95,
|
148305
|
+
var import_chalk95, import_ms20;
|
148271
148306
|
var init_add6 = __esm({
|
148272
148307
|
"src/commands/project/add.ts"() {
|
148273
148308
|
"use strict";
|
148274
148309
|
import_chalk95 = __toESM3(require_source());
|
148275
|
-
|
148310
|
+
import_ms20 = __toESM3(require_ms2());
|
148276
148311
|
init_errors_ts();
|
148277
148312
|
init_pkg_name();
|
148278
148313
|
init_create_project();
|
@@ -148308,7 +148343,7 @@ async function list3(client2, argv, args2, contextName) {
|
|
148308
148343
|
method: "GET"
|
148309
148344
|
});
|
148310
148345
|
output2.stopSpinner();
|
148311
|
-
const elapsed2 = (0,
|
148346
|
+
const elapsed2 = (0, import_ms21.default)(Date.now() - start);
|
148312
148347
|
if (deprecated) {
|
148313
148348
|
const upcomingDeprecationVersionsList = [];
|
148314
148349
|
for (const nodeVersion of import_build_utils17.NODE_VERSIONS) {
|
@@ -148338,7 +148373,7 @@ async function list3(client2, argv, args2, contextName) {
|
|
148338
148373
|
[
|
148339
148374
|
import_chalk96.default.bold(project.name),
|
148340
148375
|
getLatestProdUrl(project),
|
148341
|
-
import_chalk96.default.gray((0,
|
148376
|
+
import_chalk96.default.gray((0, import_ms21.default)(Date.now() - project.updatedAt))
|
148342
148377
|
]
|
148343
148378
|
]).flat()
|
148344
148379
|
],
|
@@ -148362,12 +148397,12 @@ function getLatestProdUrl(project) {
|
|
148362
148397
|
return "https://" + alias2;
|
148363
148398
|
return "--";
|
148364
148399
|
}
|
148365
|
-
var import_chalk96,
|
148400
|
+
var import_chalk96, import_ms21, import_build_utils17;
|
148366
148401
|
var init_list3 = __esm({
|
148367
148402
|
"src/commands/project/list.ts"() {
|
148368
148403
|
"use strict";
|
148369
148404
|
import_chalk96 = __toESM3(require_source());
|
148370
|
-
|
148405
|
+
import_ms21 = __toESM3(require_ms2());
|
148371
148406
|
init_table();
|
148372
148407
|
init_get_command_flags();
|
148373
148408
|
init_pkg_name();
|
@@ -148406,7 +148441,7 @@ async function rm6(client2, args2) {
|
|
148406
148441
|
return 1;
|
148407
148442
|
}
|
148408
148443
|
}
|
148409
|
-
const elapsed2 = (0,
|
148444
|
+
const elapsed2 = (0, import_ms22.default)(Date.now() - start);
|
148410
148445
|
client2.output.log(
|
148411
148446
|
`${import_chalk97.default.cyan("Success!")} Project ${import_chalk97.default.bold(name)} removed ${import_chalk97.default.gray(
|
148412
148447
|
`[${elapsed2}]`
|
@@ -148425,12 +148460,12 @@ It will also delete everything under the project including deployments.
|
|
148425
148460
|
);
|
148426
148461
|
return await confirm(client2, `${import_chalk97.default.bold.red("Are you sure?")}`, false);
|
148427
148462
|
}
|
148428
|
-
var import_chalk97,
|
148463
|
+
var import_chalk97, import_ms22, e;
|
148429
148464
|
var init_rm6 = __esm({
|
148430
148465
|
"src/commands/project/rm.ts"() {
|
148431
148466
|
"use strict";
|
148432
148467
|
import_chalk97 = __toESM3(require_source());
|
148433
|
-
|
148468
|
+
import_ms22 = __toESM3(require_ms2());
|
148434
148469
|
init_emoji();
|
148435
148470
|
init_errors_ts();
|
148436
148471
|
init_confirm();
|
@@ -148734,8 +148769,8 @@ async function promoteStatus({
|
|
148734
148769
|
timeout = "3m"
|
148735
148770
|
}) {
|
148736
148771
|
const { output: output2 } = client2;
|
148737
|
-
const recentThreshold = Date.now() - (0,
|
148738
|
-
const promoteTimeout = Date.now() + (0,
|
148772
|
+
const recentThreshold = Date.now() - (0, import_ms23.default)("3m");
|
148773
|
+
const promoteTimeout = Date.now() + (0, import_ms23.default)(timeout);
|
148739
148774
|
let counter = 0;
|
148740
148775
|
let spinnerMessage = deployment ? "Promote in progress" : `Checking promotion status of ${project.name}`;
|
148741
148776
|
if (!contextName) {
|
@@ -148877,7 +148912,7 @@ async function renderJobSucceeded({
|
|
148877
148912
|
);
|
148878
148913
|
return 0;
|
148879
148914
|
}
|
148880
|
-
var import_chalk100,
|
148915
|
+
var import_chalk100, import_ms23;
|
148881
148916
|
var init_status = __esm({
|
148882
148917
|
"src/commands/promote/status.ts"() {
|
148883
148918
|
"use strict";
|
@@ -148888,7 +148923,7 @@ var init_status = __esm({
|
|
148888
148923
|
init_pkg_name();
|
148889
148924
|
init_get_project_by_id_or_name();
|
148890
148925
|
init_get_scope();
|
148891
|
-
|
148926
|
+
import_ms23 = __toESM3(require_ms2());
|
148892
148927
|
init_errors_ts();
|
148893
148928
|
init_render_alias_status();
|
148894
148929
|
init_sleep();
|
@@ -148949,7 +148984,7 @@ async function requestPromote({
|
|
148949
148984
|
method: "POST"
|
148950
148985
|
});
|
148951
148986
|
}
|
148952
|
-
if (timeout !== void 0 && (0,
|
148987
|
+
if (timeout !== void 0 && (0, import_ms24.default)(timeout) === 0) {
|
148953
148988
|
output2.log(
|
148954
148989
|
`Successfully requested promote of ${import_chalk101.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
|
148955
148990
|
);
|
@@ -148964,14 +148999,14 @@ async function requestPromote({
|
|
148964
148999
|
timeout
|
148965
149000
|
});
|
148966
149001
|
}
|
148967
|
-
var import_chalk101,
|
149002
|
+
var import_chalk101, import_ms24;
|
148968
149003
|
var init_request_promote = __esm({
|
148969
149004
|
"src/commands/promote/request-promote.ts"() {
|
148970
149005
|
"use strict";
|
148971
149006
|
import_chalk101 = __toESM3(require_source());
|
148972
149007
|
init_pkg_name();
|
148973
149008
|
init_get_project_by_deployment();
|
148974
|
-
|
149009
|
+
import_ms24 = __toESM3(require_ms2());
|
148975
149010
|
init_status();
|
148976
149011
|
init_confirm();
|
148977
149012
|
}
|
@@ -149042,7 +149077,7 @@ var promote_exports = {};
|
|
149042
149077
|
__export3(promote_exports, {
|
149043
149078
|
default: () => promote_default
|
149044
149079
|
});
|
149045
|
-
var import_error_utils29,
|
149080
|
+
var import_error_utils29, import_ms25, promote_default;
|
149046
149081
|
var init_promote = __esm({
|
149047
149082
|
"src/commands/promote/index.ts"() {
|
149048
149083
|
"use strict";
|
@@ -149050,7 +149085,7 @@ var init_promote = __esm({
|
|
149050
149085
|
init_get_project_by_cwd_or_link();
|
149051
149086
|
init_handle_error();
|
149052
149087
|
import_error_utils29 = __toESM3(require_dist2());
|
149053
|
-
|
149088
|
+
import_ms25 = __toESM3(require_ms2());
|
149054
149089
|
init_request_promote();
|
149055
149090
|
init_status();
|
149056
149091
|
init_command22();
|
@@ -149072,7 +149107,7 @@ var init_promote = __esm({
|
|
149072
149107
|
}
|
149073
149108
|
const yes = parsedArgs.flags["--yes"] ?? false;
|
149074
149109
|
let timeout = parsedArgs.flags["--timeout"];
|
149075
|
-
if (timeout && (0,
|
149110
|
+
if (timeout && (0, import_ms25.default)(timeout) === void 0) {
|
149076
149111
|
client2.output.error(`Invalid timeout "${timeout}"`);
|
149077
149112
|
return 1;
|
149078
149113
|
}
|
@@ -149692,7 +149727,7 @@ function readConfirmation4(deployments, projects, output2) {
|
|
149692
149727
|
);
|
149693
149728
|
const deploymentTable = table(
|
149694
149729
|
deployments.map((depl) => {
|
149695
|
-
const time = import_chalk104.default.gray(`${(0,
|
149730
|
+
const time = import_chalk104.default.gray(`${(0, import_ms26.default)(Date.now() - depl.createdAt)} ago`);
|
149696
149731
|
const url3 = depl.url ? import_chalk104.default.underline(`https://${depl.url}`) : "";
|
149697
149732
|
return [` ${depl.id}`, url3, time];
|
149698
149733
|
}),
|
@@ -149740,12 +149775,12 @@ function deploymentsAndProjects(deployments, projects, conjunction = "and") {
|
|
149740
149775
|
}
|
149741
149776
|
return `${(0, import_pluralize11.default)("deployment", deployments.length, true)} ${conjunction} ${(0, import_pluralize11.default)("project", projects.length, true)}`;
|
149742
149777
|
}
|
149743
|
-
var import_chalk104,
|
149778
|
+
var import_chalk104, import_ms26, import_pluralize11;
|
149744
149779
|
var init_remove = __esm({
|
149745
149780
|
"src/commands/remove/index.ts"() {
|
149746
149781
|
"use strict";
|
149747
149782
|
import_chalk104 = __toESM3(require_source());
|
149748
|
-
|
149783
|
+
import_ms26 = __toESM3(require_ms2());
|
149749
149784
|
import_pluralize11 = __toESM3(require_pluralize());
|
149750
149785
|
init_table();
|
149751
149786
|
init_util();
|
@@ -149777,8 +149812,8 @@ async function rollbackStatus({
|
|
149777
149812
|
timeout = "3m"
|
149778
149813
|
}) {
|
149779
149814
|
const { output: output2 } = client2;
|
149780
|
-
const recentThreshold = Date.now() - (0,
|
149781
|
-
const rollbackTimeout = Date.now() + (0,
|
149815
|
+
const recentThreshold = Date.now() - (0, import_ms27.default)("3m");
|
149816
|
+
const rollbackTimeout = Date.now() + (0, import_ms27.default)(timeout);
|
149782
149817
|
let counter = 0;
|
149783
149818
|
let spinnerMessage = deployment ? "Rollback in progress" : `Checking rollback status of ${project.name}`;
|
149784
149819
|
if (!contextName) {
|
@@ -149920,7 +149955,7 @@ async function renderJobSucceeded2({
|
|
149920
149955
|
);
|
149921
149956
|
return 0;
|
149922
149957
|
}
|
149923
|
-
var import_chalk105,
|
149958
|
+
var import_chalk105, import_ms27;
|
149924
149959
|
var init_status2 = __esm({
|
149925
149960
|
"src/commands/rollback/status.ts"() {
|
149926
149961
|
"use strict";
|
@@ -149931,7 +149966,7 @@ var init_status2 = __esm({
|
|
149931
149966
|
init_pkg_name();
|
149932
149967
|
init_get_project_by_id_or_name();
|
149933
149968
|
init_get_scope();
|
149934
|
-
|
149969
|
+
import_ms27 = __toESM3(require_ms2());
|
149935
149970
|
init_errors_ts();
|
149936
149971
|
init_render_alias_status();
|
149937
149972
|
init_sleep();
|
@@ -149955,7 +149990,7 @@ async function requestRollback({
|
|
149955
149990
|
// required
|
149956
149991
|
method: "POST"
|
149957
149992
|
});
|
149958
|
-
if (timeout !== void 0 && (0,
|
149993
|
+
if (timeout !== void 0 && (0, import_ms28.default)(timeout) === 0) {
|
149959
149994
|
output2.log(
|
149960
149995
|
`Successfully requested rollback of ${import_chalk106.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
|
149961
149996
|
);
|
@@ -149970,14 +150005,14 @@ async function requestRollback({
|
|
149970
150005
|
timeout
|
149971
150006
|
});
|
149972
150007
|
}
|
149973
|
-
var import_chalk106,
|
150008
|
+
var import_chalk106, import_ms28;
|
149974
150009
|
var init_request_rollback = __esm({
|
149975
150010
|
"src/commands/rollback/request-rollback.ts"() {
|
149976
150011
|
"use strict";
|
149977
150012
|
import_chalk106 = __toESM3(require_source());
|
149978
150013
|
init_pkg_name();
|
149979
150014
|
init_get_project_by_deployment();
|
149980
|
-
|
150015
|
+
import_ms28 = __toESM3(require_ms2());
|
149981
150016
|
init_status2();
|
149982
150017
|
}
|
149983
150018
|
});
|
@@ -150047,7 +150082,7 @@ var rollback_exports = {};
|
|
150047
150082
|
__export3(rollback_exports, {
|
150048
150083
|
default: () => rollback_default
|
150049
150084
|
});
|
150050
|
-
var import_error_utils31,
|
150085
|
+
var import_error_utils31, import_ms29, rollback_default;
|
150051
150086
|
var init_rollback = __esm({
|
150052
150087
|
"src/commands/rollback/index.ts"() {
|
150053
150088
|
"use strict";
|
@@ -150055,7 +150090,7 @@ var init_rollback = __esm({
|
|
150055
150090
|
init_get_project_by_cwd_or_link();
|
150056
150091
|
init_handle_error();
|
150057
150092
|
import_error_utils31 = __toESM3(require_dist2());
|
150058
|
-
|
150093
|
+
import_ms29 = __toESM3(require_ms2());
|
150059
150094
|
init_request_rollback();
|
150060
150095
|
init_status2();
|
150061
150096
|
init_help();
|
@@ -150076,7 +150111,7 @@ var init_rollback = __esm({
|
|
150076
150111
|
return 2;
|
150077
150112
|
}
|
150078
150113
|
let timeout = parsedArgs.flags["--timeout"];
|
150079
|
-
if (timeout && (0,
|
150114
|
+
if (timeout && (0, import_ms29.default)(timeout) === void 0) {
|
150080
150115
|
client2.output.error(`Invalid timeout "${timeout}"`);
|
150081
150116
|
return 1;
|
150082
150117
|
}
|
@@ -150143,7 +150178,7 @@ async function list4(client2, argv, args2, link4) {
|
|
150143
150178
|
accountId: link4.org.id
|
150144
150179
|
});
|
150145
150180
|
output2.stopSpinner();
|
150146
|
-
const elapsed2 = (0,
|
150181
|
+
const elapsed2 = (0, import_ms30.default)(Date.now() - start);
|
150147
150182
|
result = withDefaultEnvironmentsIncluded(result);
|
150148
150183
|
output2.log(
|
150149
150184
|
`${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk107.default.gray(`[${elapsed2}]`)}`
|
@@ -150167,7 +150202,7 @@ async function list4(client2, argv, args2, link4) {
|
|
150167
150202
|
target.id,
|
150168
150203
|
type,
|
150169
150204
|
import_chalk107.default.gray(
|
150170
|
-
target.updatedAt > 0 ? (0,
|
150205
|
+
target.updatedAt > 0 ? (0, import_ms30.default)(Date.now() - target.updatedAt) : "-"
|
150171
150206
|
)
|
150172
150207
|
]
|
150173
150208
|
];
|
@@ -150216,11 +150251,11 @@ function withDefaultEnvironmentsIncluded(environments) {
|
|
150216
150251
|
}
|
150217
150252
|
];
|
150218
150253
|
}
|
150219
|
-
var
|
150254
|
+
var import_ms30, import_chalk107;
|
150220
150255
|
var init_list4 = __esm({
|
150221
150256
|
"src/commands/target/list.ts"() {
|
150222
150257
|
"use strict";
|
150223
|
-
|
150258
|
+
import_ms30 = __toESM3(require_ms2());
|
150224
150259
|
import_chalk107 = __toESM3(require_source());
|
150225
150260
|
init_table();
|
150226
150261
|
init_pkg_name();
|
@@ -150235,7 +150270,6 @@ var init_command26 = __esm({
|
|
150235
150270
|
"src/commands/target/command.ts"() {
|
150236
150271
|
"use strict";
|
150237
150272
|
init_pkg_name();
|
150238
|
-
init_arg_common();
|
150239
150273
|
targetCommand = {
|
150240
150274
|
name: "target",
|
150241
150275
|
description: `Manage your Vercel Project's "targets" (custom environments).`,
|
@@ -150254,7 +150288,7 @@ var init_command26 = __esm({
|
|
150254
150288
|
examples: []
|
150255
150289
|
}
|
150256
150290
|
],
|
150257
|
-
options: [
|
150291
|
+
options: [],
|
150258
150292
|
examples: [
|
150259
150293
|
{
|
150260
150294
|
name: "List all targets for the current project",
|
@@ -151889,18 +151923,30 @@ var ENOENT = class extends Error {
|
|
151889
151923
|
// src/index.ts
|
151890
151924
|
init_telemetry();
|
151891
151925
|
|
151892
|
-
// src/util/telemetry/
|
151926
|
+
// src/util/telemetry/root.ts
|
151893
151927
|
init_telemetry();
|
151894
|
-
var
|
151928
|
+
var RootTelemetryClient = class extends TelemetryClient {
|
151895
151929
|
trackCliCommandDomains(actual) {
|
151896
151930
|
this.trackCliCommand({
|
151897
151931
|
command: "domains",
|
151898
151932
|
value: actual
|
151899
151933
|
});
|
151900
151934
|
}
|
151935
|
+
trackCPUs() {
|
151936
|
+
super.trackCPUs();
|
151937
|
+
}
|
151938
|
+
trackArch() {
|
151939
|
+
super.trackArch();
|
151940
|
+
}
|
151941
|
+
trackPlatform() {
|
151942
|
+
super.trackPlatform();
|
151943
|
+
}
|
151901
151944
|
trackCIVendorName() {
|
151902
151945
|
this.trackCI(getContinuousIntegrationVendorName());
|
151903
151946
|
}
|
151947
|
+
trackVersion(version2) {
|
151948
|
+
super.trackVersion(version2);
|
151949
|
+
}
|
151904
151950
|
};
|
151905
151951
|
function getContinuousIntegrationVendorName() {
|
151906
151952
|
for (const env of VENDORS) {
|
@@ -152535,17 +152581,21 @@ var main14 = async () => {
|
|
152535
152581
|
}
|
152536
152582
|
}
|
152537
152583
|
const telemetryEventStore = new TelemetryEventStore({
|
152538
|
-
isDebug:
|
152584
|
+
isDebug: process.env.VERCEL_TELEMETRY_DEBUG === "1",
|
152539
152585
|
output,
|
152540
152586
|
config: config2.telemetry
|
152541
152587
|
});
|
152542
|
-
const telemetry2 = new
|
152588
|
+
const telemetry2 = new RootTelemetryClient({
|
152543
152589
|
opts: {
|
152544
152590
|
store: telemetryEventStore,
|
152545
152591
|
output
|
152546
152592
|
}
|
152547
152593
|
});
|
152594
|
+
telemetry2.trackCPUs();
|
152595
|
+
telemetry2.trackPlatform();
|
152596
|
+
telemetry2.trackArch();
|
152548
152597
|
telemetry2.trackCIVendorName();
|
152598
|
+
telemetry2.trackVersion(pkg_default.version);
|
152549
152599
|
if (typeof parsedArgs.flags["--api"] === "string") {
|
152550
152600
|
apiUrl = parsedArgs.flags["--api"];
|
152551
152601
|
} else if (config2 && config2.api) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "37.6.
|
3
|
+
"version": "37.6.3",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -21,17 +21,17 @@
|
|
21
21
|
"node": ">= 16"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@vercel/build-utils": "8.4.
|
24
|
+
"@vercel/build-utils": "8.4.8",
|
25
25
|
"@vercel/fun": "1.1.0",
|
26
26
|
"@vercel/go": "3.1.3",
|
27
|
-
"@vercel/hydrogen": "1.0.
|
28
|
-
"@vercel/next": "4.3.
|
29
|
-
"@vercel/node": "3.2.
|
27
|
+
"@vercel/hydrogen": "1.0.8",
|
28
|
+
"@vercel/next": "4.3.14",
|
29
|
+
"@vercel/node": "3.2.20",
|
30
30
|
"@vercel/python": "4.3.1",
|
31
|
-
"@vercel/redwood": "2.1.
|
32
|
-
"@vercel/remix-builder": "2.2.
|
31
|
+
"@vercel/redwood": "2.1.7",
|
32
|
+
"@vercel/remix-builder": "2.2.11",
|
33
33
|
"@vercel/ruby": "2.1.0",
|
34
|
-
"@vercel/static-build": "2.5.
|
34
|
+
"@vercel/static-build": "2.5.30",
|
35
35
|
"chokidar": "3.3.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
@@ -80,8 +80,8 @@
|
|
80
80
|
"@types/yauzl-promise": "2.1.0",
|
81
81
|
"@vercel-internals/constants": "1.0.4",
|
82
82
|
"@vercel-internals/get-package-json": "1.0.0",
|
83
|
-
"@vercel-internals/types": "2.0.
|
84
|
-
"@vercel/client": "13.4.
|
83
|
+
"@vercel-internals/types": "2.0.12",
|
84
|
+
"@vercel/client": "13.4.12",
|
85
85
|
"@vercel/error-utils": "2.0.2",
|
86
86
|
"@vercel/frameworks": "3.3.0",
|
87
87
|
"@vercel/fs-detectors": "5.2.10",
|