vercel 50.3.3 → 50.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.
Files changed (2) hide show
  1. package/dist/index.js +252 -227
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -16099,9 +16099,9 @@ Sentry.init({...});
16099
16099
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
16100
16100
  _callExtensionMethod(method, ...args2) {
16101
16101
  const carrier = getMainCarrier();
16102
- const sentry = carrier.__SENTRY__;
16103
- if (sentry && sentry.extensions && typeof sentry.extensions[method] === "function") {
16104
- return sentry.extensions[method].apply(this, args2);
16102
+ const sentry2 = carrier.__SENTRY__;
16103
+ if (sentry2 && sentry2.extensions && typeof sentry2.extensions[method] === "function") {
16104
+ return sentry2.extensions[method].apply(this, args2);
16105
16105
  }
16106
16106
  debugBuild.DEBUG_BUILD && utils.logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);
16107
16107
  }
@@ -26733,7 +26733,7 @@ var require_sdk2 = __commonJS2({
26733
26733
  ...autoloadedIntegrations
26734
26734
  ];
26735
26735
  }
26736
- function init3(options = {}) {
26736
+ function init2(options = {}) {
26737
26737
  index$2.setNodeAsyncContextStrategy();
26738
26738
  if (options.defaultIntegrations === void 0) {
26739
26739
  options.defaultIntegrations = getDefaultIntegrations();
@@ -26839,7 +26839,7 @@ var require_sdk2 = __commonJS2({
26839
26839
  exports2.defaultStackParser = defaultStackParser;
26840
26840
  exports2.getDefaultIntegrations = getDefaultIntegrations;
26841
26841
  exports2.getSentryRelease = getSentryRelease;
26842
- exports2.init = init3;
26842
+ exports2.init = init2;
26843
26843
  exports2.isAutoSessionTrackingEnabled = isAutoSessionTrackingEnabled;
26844
26844
  }
26845
26845
  });
@@ -31013,6 +31013,110 @@ var require_cjs5 = __commonJS2({
31013
31013
  }
31014
31014
  });
31015
31015
 
31016
+ // src/util/constants.ts
31017
+ var constants_exports = {};
31018
+ __export3(constants_exports, {
31019
+ SENTRY_DSN: () => SENTRY_DSN
31020
+ });
31021
+ var SENTRY_DSN;
31022
+ var init_constants = __esm({
31023
+ "src/util/constants.ts"() {
31024
+ "use strict";
31025
+ SENTRY_DSN = "https://26a24e59ba954011919a524b341b6ab5@sentry.io/1323225";
31026
+ }
31027
+ });
31028
+
31029
+ // ../../internals/get-package-json/dist/index.js
31030
+ var require_dist3 = __commonJS2({
31031
+ "../../internals/get-package-json/dist/index.js"(exports2, module2) {
31032
+ "use strict";
31033
+ var __create4 = Object.create;
31034
+ var __defProp4 = Object.defineProperty;
31035
+ var __getOwnPropDesc4 = Object.getOwnPropertyDescriptor;
31036
+ var __getOwnPropNames4 = Object.getOwnPropertyNames;
31037
+ var __getProtoOf4 = Object.getPrototypeOf;
31038
+ var __hasOwnProp4 = Object.prototype.hasOwnProperty;
31039
+ var __export4 = (target, all) => {
31040
+ for (var name in all)
31041
+ __defProp4(target, name, { get: all[name], enumerable: true });
31042
+ };
31043
+ var __copyProps4 = (to, from, except, desc) => {
31044
+ if (from && typeof from === "object" || typeof from === "function") {
31045
+ for (let key of __getOwnPropNames4(from))
31046
+ if (!__hasOwnProp4.call(to, key) && key !== except)
31047
+ __defProp4(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc4(from, key)) || desc.enumerable });
31048
+ }
31049
+ return to;
31050
+ };
31051
+ var __toESM4 = (mod, isNodeMode, target) => (target = mod != null ? __create4(__getProtoOf4(mod)) : {}, __copyProps4(
31052
+ // If the importer is in node compatibility mode or this is not an ESM
31053
+ // file that has been converted to a CommonJS file using a Babel-
31054
+ // compatible transform (i.e. "__esModule" has not been set), then set
31055
+ // "default" to the CommonJS "module.exports" for node compatibility.
31056
+ isNodeMode || !mod || !mod.__esModule ? __defProp4(target, "default", { value: mod, enumerable: true }) : target,
31057
+ mod
31058
+ ));
31059
+ var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
31060
+ var src_exports2 = {};
31061
+ __export4(src_exports2, {
31062
+ getPackageJSON: () => getPackageJSON2
31063
+ });
31064
+ module2.exports = __toCommonJS4(src_exports2);
31065
+ var import_fs11 = __toESM4(__require("fs"));
31066
+ var import_path43 = __toESM4(__require("path"));
31067
+ var import_url20 = __require("url");
31068
+ var cache = /* @__PURE__ */ new Map();
31069
+ function getPackageJSONPath(dir) {
31070
+ return import_path43.default.join(dir, "package.json");
31071
+ }
31072
+ function captureCallerCallSite() {
31073
+ const _prepareStackTrace = Error.prepareStackTrace;
31074
+ let callSite;
31075
+ try {
31076
+ Error.prepareStackTrace = (_, stack2) => stack2;
31077
+ const callSites = new Error().stack;
31078
+ callSite = callSites[2];
31079
+ } finally {
31080
+ Error.prepareStackTrace = _prepareStackTrace;
31081
+ }
31082
+ return callSite;
31083
+ }
31084
+ function getPackageJSON2() {
31085
+ const callSite = captureCallerCallSite();
31086
+ let filePath = callSite.getFileName() || callSite.getEvalOrigin();
31087
+ if (filePath.startsWith("file://")) {
31088
+ filePath = (0, import_url20.fileURLToPath)(filePath);
31089
+ }
31090
+ let rootDir = import_path43.default.dirname(filePath);
31091
+ let packageJSONPath = getPackageJSONPath(rootDir);
31092
+ while (!import_fs11.default.existsSync(packageJSONPath)) {
31093
+ rootDir = import_path43.default.join(rootDir, "..");
31094
+ packageJSONPath = getPackageJSONPath(rootDir);
31095
+ }
31096
+ let packageJSON = cache.get(packageJSONPath);
31097
+ if (!packageJSON) {
31098
+ packageJSON = JSON.parse(import_fs11.default.readFileSync(packageJSONPath, "utf-8"));
31099
+ cache.set(packageJSONPath, packageJSON);
31100
+ }
31101
+ return packageJSON;
31102
+ }
31103
+ }
31104
+ });
31105
+
31106
+ // src/util/pkg.ts
31107
+ var pkg_exports = {};
31108
+ __export3(pkg_exports, {
31109
+ default: () => pkg_default
31110
+ });
31111
+ var import_get_package_json, pkg_default;
31112
+ var init_pkg = __esm({
31113
+ "src/util/pkg.ts"() {
31114
+ "use strict";
31115
+ import_get_package_json = __toESM3(require_dist3(), 1);
31116
+ pkg_default = (0, import_get_package_json.getPackageJSON)();
31117
+ }
31118
+ });
31119
+
31016
31120
  // src/util/humanize-path.ts
31017
31121
  import { homedir } from "os";
31018
31122
  import { resolve } from "path";
@@ -31196,93 +31300,6 @@ var require_lib4 = __commonJS2({
31196
31300
  }
31197
31301
  });
31198
31302
 
31199
- // ../../internals/get-package-json/dist/index.js
31200
- var require_dist3 = __commonJS2({
31201
- "../../internals/get-package-json/dist/index.js"(exports2, module2) {
31202
- "use strict";
31203
- var __create4 = Object.create;
31204
- var __defProp4 = Object.defineProperty;
31205
- var __getOwnPropDesc4 = Object.getOwnPropertyDescriptor;
31206
- var __getOwnPropNames4 = Object.getOwnPropertyNames;
31207
- var __getProtoOf4 = Object.getPrototypeOf;
31208
- var __hasOwnProp4 = Object.prototype.hasOwnProperty;
31209
- var __export4 = (target, all) => {
31210
- for (var name in all)
31211
- __defProp4(target, name, { get: all[name], enumerable: true });
31212
- };
31213
- var __copyProps4 = (to, from, except, desc) => {
31214
- if (from && typeof from === "object" || typeof from === "function") {
31215
- for (let key of __getOwnPropNames4(from))
31216
- if (!__hasOwnProp4.call(to, key) && key !== except)
31217
- __defProp4(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc4(from, key)) || desc.enumerable });
31218
- }
31219
- return to;
31220
- };
31221
- var __toESM4 = (mod, isNodeMode, target) => (target = mod != null ? __create4(__getProtoOf4(mod)) : {}, __copyProps4(
31222
- // If the importer is in node compatibility mode or this is not an ESM
31223
- // file that has been converted to a CommonJS file using a Babel-
31224
- // compatible transform (i.e. "__esModule" has not been set), then set
31225
- // "default" to the CommonJS "module.exports" for node compatibility.
31226
- isNodeMode || !mod || !mod.__esModule ? __defProp4(target, "default", { value: mod, enumerable: true }) : target,
31227
- mod
31228
- ));
31229
- var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
31230
- var src_exports2 = {};
31231
- __export4(src_exports2, {
31232
- getPackageJSON: () => getPackageJSON2
31233
- });
31234
- module2.exports = __toCommonJS4(src_exports2);
31235
- var import_fs11 = __toESM4(__require("fs"));
31236
- var import_path43 = __toESM4(__require("path"));
31237
- var import_url20 = __require("url");
31238
- var cache = /* @__PURE__ */ new Map();
31239
- function getPackageJSONPath(dir) {
31240
- return import_path43.default.join(dir, "package.json");
31241
- }
31242
- function captureCallerCallSite() {
31243
- const _prepareStackTrace = Error.prepareStackTrace;
31244
- let callSite;
31245
- try {
31246
- Error.prepareStackTrace = (_, stack2) => stack2;
31247
- const callSites = new Error().stack;
31248
- callSite = callSites[2];
31249
- } finally {
31250
- Error.prepareStackTrace = _prepareStackTrace;
31251
- }
31252
- return callSite;
31253
- }
31254
- function getPackageJSON2() {
31255
- const callSite = captureCallerCallSite();
31256
- let filePath = callSite.getFileName() || callSite.getEvalOrigin();
31257
- if (filePath.startsWith("file://")) {
31258
- filePath = (0, import_url20.fileURLToPath)(filePath);
31259
- }
31260
- let rootDir = import_path43.default.dirname(filePath);
31261
- let packageJSONPath = getPackageJSONPath(rootDir);
31262
- while (!import_fs11.default.existsSync(packageJSONPath)) {
31263
- rootDir = import_path43.default.join(rootDir, "..");
31264
- packageJSONPath = getPackageJSONPath(rootDir);
31265
- }
31266
- let packageJSON = cache.get(packageJSONPath);
31267
- if (!packageJSON) {
31268
- packageJSON = JSON.parse(import_fs11.default.readFileSync(packageJSONPath, "utf-8"));
31269
- cache.set(packageJSONPath, packageJSON);
31270
- }
31271
- return packageJSON;
31272
- }
31273
- }
31274
- });
31275
-
31276
- // src/util/pkg.ts
31277
- var import_get_package_json, pkg_default;
31278
- var init_pkg = __esm({
31279
- "src/util/pkg.ts"() {
31280
- "use strict";
31281
- import_get_package_json = __toESM3(require_dist3(), 1);
31282
- pkg_default = (0, import_get_package_json.getPackageJSON)();
31283
- }
31284
- });
31285
-
31286
31303
  // src/util/output/cmd.ts
31287
31304
  function cmd(text) {
31288
31305
  return `${import_chalk4.default.gray("`")}${import_chalk4.default.cyan(text)}${import_chalk4.default.gray("`")}`;
@@ -41633,10 +41650,10 @@ var require_lib7 = __commonJS2({
41633
41650
  * @return Void
41634
41651
  */
41635
41652
  constructor() {
41636
- let init3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : void 0;
41653
+ let init2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : void 0;
41637
41654
  this[MAP] = /* @__PURE__ */ Object.create(null);
41638
- if (init3 instanceof _Headers) {
41639
- const rawHeaders = init3.raw();
41655
+ if (init2 instanceof _Headers) {
41656
+ const rawHeaders = init2.raw();
41640
41657
  const headerNames = Object.keys(rawHeaders);
41641
41658
  for (const headerName of headerNames) {
41642
41659
  for (const value of rawHeaders[headerName]) {
@@ -41645,16 +41662,16 @@ var require_lib7 = __commonJS2({
41645
41662
  }
41646
41663
  return;
41647
41664
  }
41648
- if (init3 == null)
41665
+ if (init2 == null)
41649
41666
  ;
41650
- else if (typeof init3 === "object") {
41651
- const method = init3[Symbol.iterator];
41667
+ else if (typeof init2 === "object") {
41668
+ const method = init2[Symbol.iterator];
41652
41669
  if (method != null) {
41653
41670
  if (typeof method !== "function") {
41654
41671
  throw new TypeError("Header pairs must be iterable");
41655
41672
  }
41656
41673
  const pairs = [];
41657
- for (const pair of init3) {
41674
+ for (const pair of init2) {
41658
41675
  if (typeof pair !== "object" || typeof pair[Symbol.iterator] !== "function") {
41659
41676
  throw new TypeError("Each header pair must be iterable");
41660
41677
  }
@@ -41667,8 +41684,8 @@ var require_lib7 = __commonJS2({
41667
41684
  this.append(pair[0], pair[1]);
41668
41685
  }
41669
41686
  } else {
41670
- for (const key of Object.keys(init3)) {
41671
- const value = init3[key];
41687
+ for (const key of Object.keys(init2)) {
41688
+ const value = init2[key];
41672
41689
  this.append(key, value);
41673
41690
  }
41674
41691
  }
@@ -41998,7 +42015,7 @@ var require_lib7 = __commonJS2({
41998
42015
  }
41999
42016
  var Request2 = class _Request {
42000
42017
  constructor(input) {
42001
- let init3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
42018
+ let init2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
42002
42019
  let parsedURL;
42003
42020
  if (!isRequest(input)) {
42004
42021
  if (input && input.href) {
@@ -42010,17 +42027,17 @@ var require_lib7 = __commonJS2({
42010
42027
  } else {
42011
42028
  parsedURL = parseURL(input.url);
42012
42029
  }
42013
- let method = init3.method || input.method || "GET";
42030
+ let method = init2.method || input.method || "GET";
42014
42031
  method = method.toUpperCase();
42015
- if ((init3.body != null || isRequest(input) && input.body !== null) && (method === "GET" || method === "HEAD")) {
42032
+ if ((init2.body != null || isRequest(input) && input.body !== null) && (method === "GET" || method === "HEAD")) {
42016
42033
  throw new TypeError("Request with GET/HEAD method cannot have body");
42017
42034
  }
42018
- let inputBody = init3.body != null ? init3.body : isRequest(input) && input.body !== null ? clone(input) : null;
42035
+ let inputBody = init2.body != null ? init2.body : isRequest(input) && input.body !== null ? clone(input) : null;
42019
42036
  Body.call(this, inputBody, {
42020
- timeout: init3.timeout || input.timeout || 0,
42021
- size: init3.size || input.size || 0
42037
+ timeout: init2.timeout || input.timeout || 0,
42038
+ size: init2.size || input.size || 0
42022
42039
  });
42023
- const headers = new Headers6(init3.headers || input.headers || {});
42040
+ const headers = new Headers6(init2.headers || input.headers || {});
42024
42041
  if (inputBody != null && !headers.has("Content-Type")) {
42025
42042
  const contentType2 = extractContentType(inputBody);
42026
42043
  if (contentType2) {
@@ -42028,22 +42045,22 @@ var require_lib7 = __commonJS2({
42028
42045
  }
42029
42046
  }
42030
42047
  let signal = isRequest(input) ? input.signal : null;
42031
- if ("signal" in init3)
42032
- signal = init3.signal;
42048
+ if ("signal" in init2)
42049
+ signal = init2.signal;
42033
42050
  if (signal != null && !isAbortSignal(signal)) {
42034
42051
  throw new TypeError("Expected signal to be an instanceof AbortSignal");
42035
42052
  }
42036
42053
  this[INTERNALS$2] = {
42037
42054
  method,
42038
- redirect: init3.redirect || input.redirect || "follow",
42055
+ redirect: init2.redirect || input.redirect || "follow",
42039
42056
  headers,
42040
42057
  parsedURL,
42041
42058
  signal
42042
42059
  };
42043
- this.follow = init3.follow !== void 0 ? init3.follow : input.follow !== void 0 ? input.follow : 20;
42044
- this.compress = init3.compress !== void 0 ? init3.compress : input.compress !== void 0 ? input.compress : true;
42045
- this.counter = init3.counter || input.counter || 0;
42046
- this.agent = init3.agent || input.agent;
42060
+ this.follow = init2.follow !== void 0 ? init2.follow : input.follow !== void 0 ? input.follow : 20;
42061
+ this.compress = init2.compress !== void 0 ? init2.compress : input.compress !== void 0 ? input.compress : true;
42062
+ this.counter = init2.counter || input.counter || 0;
42063
+ this.agent = init2.agent || input.agent;
42047
42064
  }
42048
42065
  get method() {
42049
42066
  return this[INTERNALS$2].method;
@@ -43349,7 +43366,7 @@ var require_colors = __commonJS2({
43349
43366
  })(style);
43350
43367
  }
43351
43368
  };
43352
- function init3() {
43369
+ function init2() {
43353
43370
  var ret = {};
43354
43371
  Object.keys(styles).forEach(function(name) {
43355
43372
  ret[name] = {
@@ -43380,7 +43397,7 @@ var require_colors = __commonJS2({
43380
43397
  })(map);
43381
43398
  }
43382
43399
  var map;
43383
- defineProps(colors, init3());
43400
+ defineProps(colors, init2());
43384
43401
  }
43385
43402
  });
43386
43403
 
@@ -47447,7 +47464,7 @@ var require_write_json_file = __commonJS2({
47447
47464
  var makeDir = require_make_dir2();
47448
47465
  var pify = require_pify();
47449
47466
  var detectIndent = require_detect_indent();
47450
- var init3 = (fn2, fp, data, opts) => {
47467
+ var init2 = (fn2, fp, data, opts) => {
47451
47468
  if (!fp) {
47452
47469
  throw new TypeError("Expected a filepath");
47453
47470
  }
@@ -47493,11 +47510,11 @@ var require_write_json_file = __commonJS2({
47493
47510
  `, { mode: opts.mode });
47494
47511
  };
47495
47512
  module2.exports = (fp, data, opts) => {
47496
- return makeDir(path11.dirname(fp), { fs: fs15 }).then(() => init3(main19, fp, data, opts));
47513
+ return makeDir(path11.dirname(fp), { fs: fs15 }).then(() => init2(main19, fp, data, opts));
47497
47514
  };
47498
47515
  module2.exports.sync = (fp, data, opts) => {
47499
47516
  makeDir.sync(path11.dirname(fp), { fs: fs15 });
47500
- init3(mainSync, fp, data, opts);
47517
+ init2(mainSync, fp, data, opts);
47501
47518
  };
47502
47519
  }
47503
47520
  });
@@ -50390,11 +50407,11 @@ var require_pkg = __commonJS2({
50390
50407
  return to;
50391
50408
  };
50392
50409
  var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
50393
- var pkg_exports = {};
50394
- __export4(pkg_exports, {
50410
+ var pkg_exports2 = {};
50411
+ __export4(pkg_exports2, {
50395
50412
  pkgVersion: () => pkgVersion
50396
50413
  });
50397
- module2.exports = __toCommonJS4(pkg_exports);
50414
+ module2.exports = __toCommonJS4(pkg_exports2);
50398
50415
  var pkg = require_package();
50399
50416
  var pkgVersion = pkg.version;
50400
50417
  }
@@ -95452,7 +95469,7 @@ var require_node3 = __commonJS2({
95452
95469
  "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js"(exports2, module2) {
95453
95470
  var tty = __require("tty");
95454
95471
  var util = __require("util");
95455
- exports2.init = init3;
95472
+ exports2.init = init2;
95456
95473
  exports2.log = log2;
95457
95474
  exports2.formatArgs = formatArgs;
95458
95475
  exports2.save = save;
@@ -95601,7 +95618,7 @@ var require_node3 = __commonJS2({
95601
95618
  function load3() {
95602
95619
  return process.env.DEBUG;
95603
95620
  }
95604
- function init3(debug2) {
95621
+ function init2(debug2) {
95605
95622
  debug2.inspectOpts = {};
95606
95623
  const keys = Object.keys(exports2.inspectOpts);
95607
95624
  for (let i = 0; i < keys.length; i++) {
@@ -96168,7 +96185,7 @@ var require_node4 = __commonJS2({
96168
96185
  "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports2, module2) {
96169
96186
  var tty = __require("tty");
96170
96187
  var util = __require("util");
96171
- exports2.init = init3;
96188
+ exports2.init = init2;
96172
96189
  exports2.log = log2;
96173
96190
  exports2.formatArgs = formatArgs;
96174
96191
  exports2.save = save;
@@ -96317,7 +96334,7 @@ var require_node4 = __commonJS2({
96317
96334
  function load3() {
96318
96335
  return process.env.DEBUG;
96319
96336
  }
96320
- function init3(debug2) {
96337
+ function init2(debug2) {
96321
96338
  debug2.inspectOpts = {};
96322
96339
  const keys = Object.keys(exports2.inspectOpts);
96323
96340
  for (let i = 0; i < keys.length; i++) {
@@ -105028,9 +105045,9 @@ var require_esprima = __commonJS2({
105028
105045
  }();
105029
105046
  exports3.ForOfStatement = ForOfStatement;
105030
105047
  var ForStatement = function() {
105031
- function ForStatement2(init3, test, update2, body) {
105048
+ function ForStatement2(init2, test, update2, body) {
105032
105049
  this.type = syntax_1.Syntax.ForStatement;
105033
- this.init = init3;
105050
+ this.init = init2;
105034
105051
  this.test = test;
105035
105052
  this.update = update2;
105036
105053
  this.body = body;
@@ -105370,10 +105387,10 @@ var require_esprima = __commonJS2({
105370
105387
  }();
105371
105388
  exports3.VariableDeclaration = VariableDeclaration;
105372
105389
  var VariableDeclarator = function() {
105373
- function VariableDeclarator2(id, init3) {
105390
+ function VariableDeclarator2(id, init2) {
105374
105391
  this.type = syntax_1.Syntax.VariableDeclarator;
105375
105392
  this.id = id;
105376
- this.init = init3;
105393
+ this.init = init2;
105377
105394
  }
105378
105395
  return VariableDeclarator2;
105379
105396
  }();
@@ -106080,8 +106097,8 @@ var require_esprima = __commonJS2({
106080
106097
  this.context.firstCoverInitializedNameError = this.lookahead;
106081
106098
  this.nextToken();
106082
106099
  shorthand = true;
106083
- var init3 = this.isolateCoverGrammar(this.parseAssignmentExpression);
106084
- value = this.finalize(node, new Node.AssignmentPattern(id, init3));
106100
+ var init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
106101
+ value = this.finalize(node, new Node.AssignmentPattern(id, init2));
106085
106102
  } else {
106086
106103
  shorthand = true;
106087
106104
  value = id;
@@ -106859,21 +106876,21 @@ var require_esprima = __commonJS2({
106859
106876
  this.tolerateError(messages_1.Messages.StrictVarName);
106860
106877
  }
106861
106878
  }
106862
- var init3 = null;
106879
+ var init2 = null;
106863
106880
  if (kind === "const") {
106864
106881
  if (!this.matchKeyword("in") && !this.matchContextualKeyword("of")) {
106865
106882
  if (this.match("=")) {
106866
106883
  this.nextToken();
106867
- init3 = this.isolateCoverGrammar(this.parseAssignmentExpression);
106884
+ init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
106868
106885
  } else {
106869
106886
  this.throwError(messages_1.Messages.DeclarationMissingInitializer, "const");
106870
106887
  }
106871
106888
  }
106872
106889
  } else if (!options.inFor && id.type !== syntax_1.Syntax.Identifier || this.match("=")) {
106873
106890
  this.expect("=");
106874
- init3 = this.isolateCoverGrammar(this.parseAssignmentExpression);
106891
+ init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
106875
106892
  }
106876
- return this.finalize(node, new Node.VariableDeclarator(id, init3));
106893
+ return this.finalize(node, new Node.VariableDeclarator(id, init2));
106877
106894
  };
106878
106895
  Parser2.prototype.parseBindingList = function(kind, options) {
106879
106896
  var list10 = [this.parseLexicalBinding(kind, options)];
@@ -106937,17 +106954,17 @@ var require_esprima = __commonJS2({
106937
106954
  if (this.lookahead.type === 3) {
106938
106955
  var keyToken = this.lookahead;
106939
106956
  key = this.parseVariableIdentifier();
106940
- var init3 = this.finalize(node, new Node.Identifier(keyToken.value));
106957
+ var init2 = this.finalize(node, new Node.Identifier(keyToken.value));
106941
106958
  if (this.match("=")) {
106942
106959
  params2.push(keyToken);
106943
106960
  shorthand = true;
106944
106961
  this.nextToken();
106945
106962
  var expr = this.parseAssignmentExpression();
106946
- value = this.finalize(this.startNode(keyToken), new Node.AssignmentPattern(init3, expr));
106963
+ value = this.finalize(this.startNode(keyToken), new Node.AssignmentPattern(init2, expr));
106947
106964
  } else if (!this.match(":")) {
106948
106965
  params2.push(keyToken);
106949
106966
  shorthand = true;
106950
- value = init3;
106967
+ value = init2;
106951
106968
  } else {
106952
106969
  this.expect(":");
106953
106970
  value = this.parsePatternWithDefault(params2, kind);
@@ -107032,14 +107049,14 @@ var require_esprima = __commonJS2({
107032
107049
  this.tolerateError(messages_1.Messages.StrictVarName);
107033
107050
  }
107034
107051
  }
107035
- var init3 = null;
107052
+ var init2 = null;
107036
107053
  if (this.match("=")) {
107037
107054
  this.nextToken();
107038
- init3 = this.isolateCoverGrammar(this.parseAssignmentExpression);
107055
+ init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
107039
107056
  } else if (id.type !== syntax_1.Syntax.Identifier && !options.inFor) {
107040
107057
  this.expect("=");
107041
107058
  }
107042
- return this.finalize(node, new Node.VariableDeclarator(id, init3));
107059
+ return this.finalize(node, new Node.VariableDeclarator(id, init2));
107043
107060
  };
107044
107061
  Parser2.prototype.parseVariableDeclarationList = function(options) {
107045
107062
  var opt = { inFor: options.inFor };
@@ -107134,7 +107151,7 @@ var require_esprima = __commonJS2({
107134
107151
  return this.finalize(node, new Node.WhileStatement(test, body));
107135
107152
  };
107136
107153
  Parser2.prototype.parseForStatement = function() {
107137
- var init3 = null;
107154
+ var init2 = null;
107138
107155
  var test = null;
107139
107156
  var update2 = null;
107140
107157
  var forIn = true;
@@ -107146,7 +107163,7 @@ var require_esprima = __commonJS2({
107146
107163
  this.nextToken();
107147
107164
  } else {
107148
107165
  if (this.matchKeyword("var")) {
107149
- init3 = this.createNode();
107166
+ init2 = this.createNode();
107150
107167
  this.nextToken();
107151
107168
  var previousAllowIn = this.context.allowIn;
107152
107169
  this.context.allowIn = false;
@@ -107157,87 +107174,87 @@ var require_esprima = __commonJS2({
107157
107174
  if (decl.init && (decl.id.type === syntax_1.Syntax.ArrayPattern || decl.id.type === syntax_1.Syntax.ObjectPattern || this.context.strict)) {
107158
107175
  this.tolerateError(messages_1.Messages.ForInOfLoopInitializer, "for-in");
107159
107176
  }
107160
- init3 = this.finalize(init3, new Node.VariableDeclaration(declarations, "var"));
107177
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, "var"));
107161
107178
  this.nextToken();
107162
- left = init3;
107179
+ left = init2;
107163
107180
  right = this.parseExpression();
107164
- init3 = null;
107181
+ init2 = null;
107165
107182
  } else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword("of")) {
107166
- init3 = this.finalize(init3, new Node.VariableDeclaration(declarations, "var"));
107183
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, "var"));
107167
107184
  this.nextToken();
107168
- left = init3;
107185
+ left = init2;
107169
107186
  right = this.parseAssignmentExpression();
107170
- init3 = null;
107187
+ init2 = null;
107171
107188
  forIn = false;
107172
107189
  } else {
107173
- init3 = this.finalize(init3, new Node.VariableDeclaration(declarations, "var"));
107190
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, "var"));
107174
107191
  this.expect(";");
107175
107192
  }
107176
107193
  } else if (this.matchKeyword("const") || this.matchKeyword("let")) {
107177
- init3 = this.createNode();
107194
+ init2 = this.createNode();
107178
107195
  var kind = this.nextToken().value;
107179
107196
  if (!this.context.strict && this.lookahead.value === "in") {
107180
- init3 = this.finalize(init3, new Node.Identifier(kind));
107197
+ init2 = this.finalize(init2, new Node.Identifier(kind));
107181
107198
  this.nextToken();
107182
- left = init3;
107199
+ left = init2;
107183
107200
  right = this.parseExpression();
107184
- init3 = null;
107201
+ init2 = null;
107185
107202
  } else {
107186
107203
  var previousAllowIn = this.context.allowIn;
107187
107204
  this.context.allowIn = false;
107188
107205
  var declarations = this.parseBindingList(kind, { inFor: true });
107189
107206
  this.context.allowIn = previousAllowIn;
107190
107207
  if (declarations.length === 1 && declarations[0].init === null && this.matchKeyword("in")) {
107191
- init3 = this.finalize(init3, new Node.VariableDeclaration(declarations, kind));
107208
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, kind));
107192
107209
  this.nextToken();
107193
- left = init3;
107210
+ left = init2;
107194
107211
  right = this.parseExpression();
107195
- init3 = null;
107212
+ init2 = null;
107196
107213
  } else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword("of")) {
107197
- init3 = this.finalize(init3, new Node.VariableDeclaration(declarations, kind));
107214
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, kind));
107198
107215
  this.nextToken();
107199
- left = init3;
107216
+ left = init2;
107200
107217
  right = this.parseAssignmentExpression();
107201
- init3 = null;
107218
+ init2 = null;
107202
107219
  forIn = false;
107203
107220
  } else {
107204
107221
  this.consumeSemicolon();
107205
- init3 = this.finalize(init3, new Node.VariableDeclaration(declarations, kind));
107222
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, kind));
107206
107223
  }
107207
107224
  }
107208
107225
  } else {
107209
107226
  var initStartToken = this.lookahead;
107210
107227
  var previousAllowIn = this.context.allowIn;
107211
107228
  this.context.allowIn = false;
107212
- init3 = this.inheritCoverGrammar(this.parseAssignmentExpression);
107229
+ init2 = this.inheritCoverGrammar(this.parseAssignmentExpression);
107213
107230
  this.context.allowIn = previousAllowIn;
107214
107231
  if (this.matchKeyword("in")) {
107215
- if (!this.context.isAssignmentTarget || init3.type === syntax_1.Syntax.AssignmentExpression) {
107232
+ if (!this.context.isAssignmentTarget || init2.type === syntax_1.Syntax.AssignmentExpression) {
107216
107233
  this.tolerateError(messages_1.Messages.InvalidLHSInForIn);
107217
107234
  }
107218
107235
  this.nextToken();
107219
- this.reinterpretExpressionAsPattern(init3);
107220
- left = init3;
107236
+ this.reinterpretExpressionAsPattern(init2);
107237
+ left = init2;
107221
107238
  right = this.parseExpression();
107222
- init3 = null;
107239
+ init2 = null;
107223
107240
  } else if (this.matchContextualKeyword("of")) {
107224
- if (!this.context.isAssignmentTarget || init3.type === syntax_1.Syntax.AssignmentExpression) {
107241
+ if (!this.context.isAssignmentTarget || init2.type === syntax_1.Syntax.AssignmentExpression) {
107225
107242
  this.tolerateError(messages_1.Messages.InvalidLHSInForLoop);
107226
107243
  }
107227
107244
  this.nextToken();
107228
- this.reinterpretExpressionAsPattern(init3);
107229
- left = init3;
107245
+ this.reinterpretExpressionAsPattern(init2);
107246
+ left = init2;
107230
107247
  right = this.parseAssignmentExpression();
107231
- init3 = null;
107248
+ init2 = null;
107232
107249
  forIn = false;
107233
107250
  } else {
107234
107251
  if (this.match(",")) {
107235
- var initSeq = [init3];
107252
+ var initSeq = [init2];
107236
107253
  while (this.match(",")) {
107237
107254
  this.nextToken();
107238
107255
  initSeq.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
107239
107256
  }
107240
- init3 = this.finalize(this.startNode(initStartToken), new Node.SequenceExpression(initSeq));
107257
+ init2 = this.finalize(this.startNode(initStartToken), new Node.SequenceExpression(initSeq));
107241
107258
  }
107242
107259
  this.expect(";");
107243
107260
  }
@@ -107263,7 +107280,7 @@ var require_esprima = __commonJS2({
107263
107280
  body = this.isolateCoverGrammar(this.parseStatement);
107264
107281
  this.context.inIteration = previousInIteration;
107265
107282
  }
107266
- return typeof left === "undefined" ? this.finalize(node, new Node.ForStatement(init3, test, update2, body)) : forIn ? this.finalize(node, new Node.ForInStatement(left, right, body)) : this.finalize(node, new Node.ForOfStatement(left, right, body));
107283
+ return typeof left === "undefined" ? this.finalize(node, new Node.ForStatement(init2, test, update2, body)) : forIn ? this.finalize(node, new Node.ForInStatement(left, right, body)) : this.finalize(node, new Node.ForOfStatement(left, right, body));
107267
107284
  };
107268
107285
  Parser2.prototype.parseContinueStatement = function() {
107269
107286
  var node = this.createNode();
@@ -111594,13 +111611,13 @@ var require_scope2 = __commonJS2({
111594
111611
  var name = prefix + index;
111595
111612
  return this.bindings[name] = types.builders.identifier(name);
111596
111613
  };
111597
- Sp.injectTemporary = function(identifier, init3) {
111614
+ Sp.injectTemporary = function(identifier, init2) {
111598
111615
  identifier || (identifier = this.declareTemporary());
111599
111616
  var bodyPath = this.path.get("body");
111600
111617
  if (namedTypes.BlockStatement.check(bodyPath.value)) {
111601
111618
  bodyPath = bodyPath.get("body");
111602
111619
  }
111603
- bodyPath.unshift(b.variableDeclaration("var", [b.variableDeclarator(identifier, init3 || null)]));
111620
+ bodyPath.unshift(b.variableDeclaration("var", [b.variableDeclarator(identifier, init2 || null)]));
111604
111621
  return identifier;
111605
111622
  };
111606
111623
  Sp.scan = function(force) {
@@ -160549,7 +160566,7 @@ var require_node6 = __commonJS2({
160549
160566
  var tty = __require("tty");
160550
160567
  var util = __require("util");
160551
160568
  exports2 = module2.exports = require_debug4();
160552
- exports2.init = init3;
160569
+ exports2.init = init2;
160553
160570
  exports2.log = log2;
160554
160571
  exports2.formatArgs = formatArgs;
160555
160572
  exports2.save = save;
@@ -160705,7 +160722,7 @@ var require_node6 = __commonJS2({
160705
160722
  function load3() {
160706
160723
  return process.env.DEBUG;
160707
160724
  }
160708
- function init3(debug2) {
160725
+ function init2(debug2) {
160709
160726
  debug2.inspectOpts = {};
160710
160727
  var keys = Object.keys(exports2.inspectOpts);
160711
160728
  for (var i = 0; i < keys.length; i++) {
@@ -174732,7 +174749,7 @@ ${error_code}
174732
174749
 
174733
174750
  // src/util/env/constants.ts
174734
174751
  var VERCEL_OIDC_TOKEN;
174735
- var init_constants = __esm({
174752
+ var init_constants2 = __esm({
174736
174753
  "src/util/env/constants.ts"() {
174737
174754
  "use strict";
174738
174755
  VERCEL_OIDC_TOKEN = "VERCEL_OIDC_TOKEN";
@@ -174835,7 +174852,7 @@ var init_refresh_oidc_token = __esm({
174835
174852
  import_ms14 = __toESM3(require_ms(), 1);
174836
174853
  init_output_manager();
174837
174854
  init_get_env_records();
174838
- init_constants();
174855
+ init_constants2();
174839
174856
  REFRESH_BEFORE_EXPIRY_MILLIS = getMs(
174840
174857
  (0, import_ms14.default)("15m"),
174841
174858
  process.env.REFRESH_VERCEL_OIDC_TOKEN_BEFORE_EXPIRY_MILLIS
@@ -174955,7 +174972,7 @@ var init_dev = __esm({
174955
174972
  init_get_env_records();
174956
174973
  init_output_manager();
174957
174974
  init_refresh_oidc_token();
174958
- init_constants();
174975
+ init_constants2();
174959
174976
  }
174960
174977
  });
174961
174978
 
@@ -191321,10 +191338,29 @@ function spawnWorker(payload) {
191321
191338
  }
191322
191339
 
191323
191340
  // src/index.ts
191324
- var Sentry = __toESM3(require_cjs5(), 1);
191341
+ import { URL as URL10 } from "url";
191342
+
191343
+ // src/util/get-sentry.ts
191344
+ var sentry;
191345
+ function getSentry() {
191346
+ if (!sentry) {
191347
+ const Sentry = require_cjs5();
191348
+ const { SENTRY_DSN: SENTRY_DSN2 } = (init_constants(), __toCommonJS3(constants_exports));
191349
+ const pkg = (init_pkg(), __toCommonJS3(pkg_exports)).default;
191350
+ Sentry.init({
191351
+ dsn: SENTRY_DSN2,
191352
+ release: `vercel-cli@${pkg.version}`,
191353
+ environment: "stable",
191354
+ autoSessionTracking: false
191355
+ });
191356
+ sentry = Sentry;
191357
+ }
191358
+ return sentry;
191359
+ }
191360
+
191361
+ // src/index.ts
191325
191362
  init_humanize_path();
191326
191363
  init_commands();
191327
- import { URL as URL10 } from "url";
191328
191364
 
191329
191365
  // src/util/handle-command-typo.ts
191330
191366
  init_did_you_mean();
@@ -191363,7 +191399,7 @@ init_error2();
191363
191399
  init_get_scope();
191364
191400
  init_get_args();
191365
191401
  var import_error_utils8 = __toESM3(require_dist2(), 1);
191366
- async function reportError(sentry, client2, error3) {
191402
+ async function reportError(sentry2, client2, error3) {
191367
191403
  if (ignoreError(error3)) {
191368
191404
  return;
191369
191405
  }
@@ -191377,7 +191413,7 @@ async function reportError(sentry, client2, error3) {
191377
191413
  scopeError = err;
191378
191414
  }
191379
191415
  }
191380
- sentry.withScope((scope) => {
191416
+ sentry2.withScope((scope) => {
191381
191417
  if (user) {
191382
191418
  const spec = {
191383
191419
  email: user.email,
@@ -191428,9 +191464,9 @@ async function reportError(sentry, client2, error3) {
191428
191464
  version: process.version,
191429
191465
  platform: process.platform
191430
191466
  });
191431
- sentry.captureException(error3);
191467
+ sentry2.captureException(error3);
191432
191468
  });
191433
- const sentryClient = sentry.getCurrentHub().getClient();
191469
+ const sentryClient = sentry2.getCurrentHub().getClient();
191434
191470
  if (sentryClient) {
191435
191471
  await sentryClient.close();
191436
191472
  }
@@ -191524,11 +191560,6 @@ var defaultAuthConfig = {
191524
191560
  // src/index.ts
191525
191561
  init_errors_ts();
191526
191562
  init_errors_ts();
191527
-
191528
- // src/util/constants.ts
191529
- var SENTRY_DSN = "https://26a24e59ba954011919a524b341b6ab5@sentry.io/1323225";
191530
-
191531
- // src/index.ts
191532
191563
  init_get_update_command();
191533
191564
  init_upgrade();
191534
191565
  init_pkg_name();
@@ -192166,13 +192197,34 @@ var VERCEL_CONFIG_PATH = getConfigFilePath();
192166
192197
  var VERCEL_AUTH_CONFIG_PATH = getAuthConfigFilePath();
192167
192198
  var GLOBAL_COMMANDS = /* @__PURE__ */ new Set(["help"]);
192168
192199
  (0, import_epipebomb.default)();
192169
- Sentry.init({
192170
- dsn: SENTRY_DSN,
192171
- release: `vercel-cli@${pkg_default.version}`,
192172
- environment: "stable",
192173
- autoSessionTracking: false
192174
- });
192175
192200
  var client;
192201
+ var handleRejection = async (err) => {
192202
+ if (err) {
192203
+ if (err instanceof Error) {
192204
+ await handleUnexpected(err);
192205
+ } else {
192206
+ output_manager_default.error(`An unexpected rejection occurred
192207
+ ${err}`);
192208
+ await reportError(getSentry(), client, err);
192209
+ }
192210
+ } else {
192211
+ output_manager_default.error("An unexpected empty rejection occurred");
192212
+ }
192213
+ process.exit(1);
192214
+ };
192215
+ var handleUnexpected = async (err) => {
192216
+ const { message: message2 } = err;
192217
+ if (message2.includes("sentry") && message2.includes("ENOTFOUND")) {
192218
+ output_manager_default.debug(`Sentry is not reachable: ${err}`);
192219
+ return;
192220
+ }
192221
+ output_manager_default.error(`An unexpected error occurred!
192222
+ ${err.stack}`);
192223
+ await reportError(getSentry(), client, err);
192224
+ process.exit(1);
192225
+ };
192226
+ process.on("unhandledRejection", handleRejection);
192227
+ process.on("uncaughtException", handleUnexpected);
192176
192228
  var { isTTY: isTTY2 } = process.stdout;
192177
192229
  var apiUrl = "https://api.vercel.com";
192178
192230
  var main18 = async () => {
@@ -192791,7 +192843,7 @@ var main18 = async () => {
192791
192843
  }
192792
192844
  output_manager_default.prettyError(err);
192793
192845
  } else {
192794
- await reportError(Sentry, client, err);
192846
+ await reportError(getSentry(), client, err);
192795
192847
  output_manager_default.error(`An unexpected error occurred in ${subcommand}: ${err}`);
192796
192848
  }
192797
192849
  return 1;
@@ -192800,33 +192852,6 @@ var main18 = async () => {
192800
192852
  await telemetryEventStore.save();
192801
192853
  return exitCode2;
192802
192854
  };
192803
- var handleRejection = async (err) => {
192804
- if (err) {
192805
- if (err instanceof Error) {
192806
- await handleUnexpected(err);
192807
- } else {
192808
- output_manager_default.error(`An unexpected rejection occurred
192809
- ${err}`);
192810
- await reportError(Sentry, client, err);
192811
- }
192812
- } else {
192813
- output_manager_default.error("An unexpected empty rejection occurred");
192814
- }
192815
- process.exit(1);
192816
- };
192817
- var handleUnexpected = async (err) => {
192818
- const { message: message2 } = err;
192819
- if (message2.includes("sentry") && message2.includes("ENOTFOUND")) {
192820
- output_manager_default.debug(`Sentry is not reachable: ${err}`);
192821
- return;
192822
- }
192823
- output_manager_default.error(`An unexpected error occurred!
192824
- ${err.stack}`);
192825
- await reportError(Sentry, client, err);
192826
- process.exit(1);
192827
- };
192828
- process.on("unhandledRejection", handleRejection);
192829
- process.on("uncaughtException", handleUnexpected);
192830
192855
  main18().then(async (exitCode2) => {
192831
192856
  if (isTTY2 && !process.env.NO_UPDATE_NOTIFIER) {
192832
192857
  const latest = getLatestVersion({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "50.3.3",
3
+ "version": "50.4.0",
4
4
  "type": "module",
5
5
  "preferGlobal": true,
6
6
  "license": "Apache-2.0",
@@ -28,6 +28,7 @@
28
28
  "esbuild": "0.27.0",
29
29
  "form-data": "^4.0.0",
30
30
  "jose": "5.9.6",
31
+ "@vercel/backends": "0.0.22",
31
32
  "@vercel/build-utils": "13.2.8",
32
33
  "@vercel/detect-agent": "1.0.0",
33
34
  "@vercel/elysia": "0.1.19",
@@ -39,15 +40,14 @@
39
40
  "@vercel/hydrogen": "1.3.5",
40
41
  "@vercel/koa": "0.1.2",
41
42
  "@vercel/nestjs": "0.2.23",
42
- "@vercel/node": "5.5.20",
43
43
  "@vercel/next": "4.15.14",
44
- "@vercel/redwood": "2.4.8",
44
+ "@vercel/node": "5.5.20",
45
45
  "@vercel/python": "6.1.6",
46
+ "@vercel/redwood": "2.4.8",
46
47
  "@vercel/remix-builder": "5.5.8",
47
- "@vercel/rust": "1.0.4",
48
48
  "@vercel/ruby": "2.2.4",
49
- "@vercel/static-build": "2.8.19",
50
- "@vercel/backends": "0.0.21"
49
+ "@vercel/rust": "1.0.4",
50
+ "@vercel/static-build": "2.8.19"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@alex_neo/jest-expect-message": "1.0.5",
@@ -174,8 +174,8 @@
174
174
  "@vercel-internals/constants": "1.0.4",
175
175
  "@vercel-internals/get-package-json": "1.0.0",
176
176
  "@vercel-internals/types": "3.0.6",
177
- "@vercel/client": "17.2.22",
178
177
  "@vercel/error-utils": "2.0.3",
178
+ "@vercel/client": "17.2.22",
179
179
  "@vercel/frameworks": "3.15.5",
180
180
  "@vercel/fs-detectors": "5.7.13",
181
181
  "@vercel/routing-utils": "5.3.2"