vercel 48.10.2 → 48.10.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.
Files changed (2) hide show
  1. package/dist/index.js +66 -39
  2. package/package.json +7 -8
package/dist/index.js CHANGED
@@ -49730,7 +49730,7 @@ var require_package = __commonJS2({
49730
49730
  "../client/package.json"(exports2, module2) {
49731
49731
  module2.exports = {
49732
49732
  name: "@vercel/client",
49733
- version: "17.2.4",
49733
+ version: "17.2.5",
49734
49734
  main: "dist/index.js",
49735
49735
  typings: "dist/index.d.ts",
49736
49736
  homepage: "https://vercel.com",
@@ -58237,8 +58237,8 @@ var require_utils14 = __commonJS2({
58237
58237
  return ignored;
58238
58238
  };
58239
58239
  fileList = await (0, import_readdir_recursive.default)(path11, [ignores2]);
58240
+ const refs = /* @__PURE__ */ new Set();
58240
58241
  if (prebuilt) {
58241
- const refs = /* @__PURE__ */ new Set();
58242
58242
  const vcConfigFilePaths = fileList.filter(
58243
58243
  (file) => (0, import_path41.basename)(file) === ".vc-config.json"
58244
58244
  );
@@ -58271,9 +58271,19 @@ var require_utils14 = __commonJS2({
58271
58271
  } catch (e2) {
58272
58272
  debug2(`Error detecting microfrontend config: ${e2}`);
58273
58273
  }
58274
- if (refs.size > 0) {
58275
- fileList = fileList.concat(Array.from(refs));
58274
+ }
58275
+ try {
58276
+ const routesJsonPath = (0, import_path41.join)(path11, ".vercel", "routes.json");
58277
+ const routesJsonContent = await maybeRead(routesJsonPath, null);
58278
+ if (routesJsonContent !== null) {
58279
+ refs.add(routesJsonPath);
58280
+ debug2("Including .vercel/routes.json in deployment");
58276
58281
  }
58282
+ } catch (e2) {
58283
+ debug2(`Error checking for .vercel/routes.json: ${e2}`);
58284
+ }
58285
+ if (refs.size > 0) {
58286
+ fileList = fileList.concat(Array.from(refs));
58277
58287
  }
58278
58288
  debug2(`Found ${fileList.length} files in the specified directory`);
58279
58289
  } else if (Array.isArray(path11)) {
@@ -158039,12 +158049,12 @@ var require_requires_port = __commonJS2({
158039
158049
  }
158040
158050
  });
158041
158051
 
158042
- // ../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/common.js
158052
+ // ../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy/common.js
158043
158053
  var require_common12 = __commonJS2({
158044
- "../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/common.js"(exports2) {
158054
+ "../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy/common.js"(exports2) {
158045
158055
  var common2 = exports2;
158046
158056
  var url3 = require("url");
158047
- var extend = require("util")._extend;
158057
+ var extend = Object.assign;
158048
158058
  var required = require_requires_port();
158049
158059
  var upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i;
158050
158060
  var isSSL = /^https|wss/;
@@ -158113,13 +158123,17 @@ var require_common12 = __commonJS2({
158113
158123
  return Boolean(req.connection.encrypted || req.connection.pair);
158114
158124
  };
158115
158125
  common2.urlJoin = function() {
158116
- var args2 = Array.prototype.slice.call(arguments), lastIndex = args2.length - 1, last = args2[lastIndex], lastSegs = last.split("?"), retSegs;
158117
- args2[lastIndex] = lastSegs.shift();
158118
- retSegs = [
158119
- args2.filter(Boolean).join("/").replace(/\/+/g, "/").replace("http:/", "http://").replace("https:/", "https://")
158120
- ];
158121
- retSegs.push.apply(retSegs, lastSegs);
158122
- return retSegs.join("?");
158126
+ var args2 = Array.prototype.slice.call(arguments), queryParams = [], queryParamRaw = "", retSegs;
158127
+ args2.forEach((url4, index) => {
158128
+ var qpStart = url4.indexOf("?");
158129
+ if (qpStart !== -1) {
158130
+ queryParams.push(url4.substring(qpStart + 1));
158131
+ args2[index] = url4.substring(0, qpStart);
158132
+ }
158133
+ });
158134
+ queryParamRaw = queryParams.filter(Boolean).join("&");
158135
+ retSegs = args2.filter(Boolean).join("/").replace(/\/+/g, "/").replace("http:/", "http://").replace("https:/", "https://");
158136
+ return queryParamRaw ? retSegs + "?" + queryParamRaw : retSegs;
158123
158137
  };
158124
158138
  common2.rewriteCookieProperty = function rewriteCookieProperty(header, config2, property) {
158125
158139
  if (Array.isArray(header)) {
@@ -158149,9 +158163,9 @@ var require_common12 = __commonJS2({
158149
158163
  }
158150
158164
  });
158151
158165
 
158152
- // ../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js
158166
+ // ../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy/passes/web-outgoing.js
158153
158167
  var require_web_outgoing = __commonJS2({
158154
- "../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js"(exports2, module2) {
158168
+ "../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy/passes/web-outgoing.js"(exports2, module2) {
158155
158169
  var url3 = require("url");
158156
158170
  var common2 = require_common12();
158157
158171
  var redirectRegex = /^201|30(1|2|7|8)$/;
@@ -159363,9 +159377,9 @@ var require_follow_redirects = __commonJS2({
159363
159377
  }
159364
159378
  });
159365
159379
 
159366
- // ../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js
159380
+ // ../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy/passes/web-incoming.js
159367
159381
  var require_web_incoming = __commonJS2({
159368
- "../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js"(exports2, module2) {
159382
+ "../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy/passes/web-incoming.js"(exports2, module2) {
159369
159383
  var httpNative = require("http");
159370
159384
  var httpsNative = require("https");
159371
159385
  var web_o = require_web_outgoing();
@@ -159375,6 +159389,10 @@ var require_web_incoming = __commonJS2({
159375
159389
  return web_o[pass];
159376
159390
  });
159377
159391
  var nativeAgents = { http: httpNative, https: httpsNative };
159392
+ var supportsAbortedEvent = function() {
159393
+ var ver = process.versions.node.split(".").map(Number);
159394
+ return ver[0] <= 14 || ver[0] === 15 && ver[1] <= 4;
159395
+ }();
159378
159396
  module2.exports = {
159379
159397
  /**
159380
159398
  * Sets `content-length` to '0' if request is of DELETE type.
@@ -159469,9 +159487,18 @@ var require_web_incoming = __commonJS2({
159469
159487
  proxyReq.abort();
159470
159488
  });
159471
159489
  }
159472
- req.on("aborted", function() {
159473
- proxyReq.abort();
159474
- });
159490
+ if (supportsAbortedEvent) {
159491
+ req.on("aborted", function() {
159492
+ proxyReq.abort();
159493
+ });
159494
+ } else {
159495
+ res.on("close", function() {
159496
+ var aborted = !res.writableFinished;
159497
+ if (aborted) {
159498
+ proxyReq.abort();
159499
+ }
159500
+ });
159501
+ }
159475
159502
  var proxyError = createErrorHandler(proxyReq, options.target);
159476
159503
  req.on("error", proxyError);
159477
159504
  proxyReq.on("error", proxyError);
@@ -159517,9 +159544,9 @@ var require_web_incoming = __commonJS2({
159517
159544
  }
159518
159545
  });
159519
159546
 
159520
- // ../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js
159547
+ // ../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy/passes/ws-incoming.js
159521
159548
  var require_ws_incoming = __commonJS2({
159522
- "../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js"(exports2, module2) {
159549
+ "../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy/passes/ws-incoming.js"(exports2, module2) {
159523
159550
  var http3 = require("http");
159524
159551
  var https = require("https");
159525
159552
  var common2 = require_common12();
@@ -159610,7 +159637,7 @@ var require_ws_incoming = __commonJS2({
159610
159637
  server.emit("close", proxyRes, proxySocket, proxyHead);
159611
159638
  });
159612
159639
  socket.on("error", function() {
159613
- proxySocket.end();
159640
+ proxySocket.destroy();
159614
159641
  });
159615
159642
  common2.setupSocket(proxySocket);
159616
159643
  if (proxyHead && proxyHead.length)
@@ -159634,11 +159661,11 @@ var require_ws_incoming = __commonJS2({
159634
159661
  }
159635
159662
  });
159636
159663
 
159637
- // ../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/index.js
159664
+ // ../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy/index.js
159638
159665
  var require_http_proxy = __commonJS2({
159639
- "../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy/index.js"(exports2, module2) {
159666
+ "../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy/index.js"(exports2, module2) {
159640
159667
  var httpProxy2 = module2.exports;
159641
- var extend = require("util")._extend;
159668
+ var extend = Object.assign;
159642
159669
  var parse_url = require("url").parse;
159643
159670
  var EE3 = require_eventemitter3();
159644
159671
  var http3 = require("http");
@@ -159755,9 +159782,9 @@ var require_http_proxy = __commonJS2({
159755
159782
  }
159756
159783
  });
159757
159784
 
159758
- // ../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy.js
159785
+ // ../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy.js
159759
159786
  var require_http_proxy2 = __commonJS2({
159760
- "../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/lib/http-proxy.js"(exports2, module2) {
159787
+ "../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/lib/http-proxy.js"(exports2, module2) {
159761
159788
  var ProxyServer = require_http_proxy().Server;
159762
159789
  function createProxyServer(options) {
159763
159790
  return new ProxyServer(options);
@@ -159769,9 +159796,9 @@ var require_http_proxy2 = __commonJS2({
159769
159796
  }
159770
159797
  });
159771
159798
 
159772
- // ../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/index.js
159773
- var require_http_proxy3 = __commonJS2({
159774
- "../../node_modules/.pnpm/http-proxy@1.18.1_debug@3.1.0/node_modules/http-proxy/index.js"(exports2, module2) {
159799
+ // ../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/index.js
159800
+ var require_http_proxy_node16 = __commonJS2({
159801
+ "../../node_modules/.pnpm/http-proxy-node16@1.0.6_debug@3.1.0/node_modules/http-proxy-node16/index.js"(exports2, module2) {
159775
159802
  module2.exports = require_http_proxy2();
159776
159803
  }
159777
159804
  });
@@ -171088,7 +171115,7 @@ function buildMatchEquals(a, b) {
171088
171115
  return false;
171089
171116
  return true;
171090
171117
  }
171091
- var import_url15, import_http3, import_fs_extra21, import_ms13, import_chalk70, import_node_fetch6, import_pluralize9, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy, import_crypto2, import_serve_handler, import_chokidar, import_dotenv2, import_path35, 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_client12, import_routing_utils5, import_build_utils17, import_fs_detectors6, import_frameworks6, import_error_utils21, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
171118
+ var import_url15, import_http3, import_fs_extra21, import_ms13, import_chalk70, import_node_fetch6, import_pluralize9, import_raw_body, import_async_listen3, import_minimatch4, import_http_proxy_node16, import_crypto2, import_serve_handler, import_chokidar, import_dotenv2, import_path35, 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_client12, import_routing_utils5, import_build_utils17, import_fs_detectors6, import_frameworks6, import_error_utils21, frontendRuntimeSet, DEV_SERVER_PORT_BIND_TIMEOUT, DevServer;
171092
171119
  var init_server = __esm({
171093
171120
  "src/util/dev/server.ts"() {
171094
171121
  "use strict";
@@ -171102,7 +171129,7 @@ var init_server = __esm({
171102
171129
  import_raw_body = __toESM3(require_raw_body());
171103
171130
  import_async_listen3 = __toESM3(require_dist6());
171104
171131
  import_minimatch4 = __toESM3(require_minimatch2());
171105
- import_http_proxy = __toESM3(require_http_proxy3());
171132
+ import_http_proxy_node16 = __toESM3(require_http_proxy_node16());
171106
171133
  import_crypto2 = require("crypto");
171107
171134
  import_serve_handler = __toESM3(require_src4());
171108
171135
  import_chokidar = require("chokidar");
@@ -171806,7 +171833,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
171806
171833
  this.caseSensitive = false;
171807
171834
  this.apiDir = null;
171808
171835
  this.apiExtensions = /* @__PURE__ */ new Set();
171809
- this.proxy = import_http_proxy.default.createProxyServer({
171836
+ this.proxy = import_http_proxy_node16.default.createProxyServer({
171810
171837
  changeOrigin: true,
171811
171838
  ws: true,
171812
171839
  xfwd: true
@@ -189219,7 +189246,7 @@ raw-body/index.js:
189219
189246
  * MIT Licensed
189220
189247
  *)
189221
189248
 
189222
- http-proxy/lib/http-proxy/passes/web-outgoing.js:
189249
+ http-proxy-node16/lib/http-proxy/passes/web-outgoing.js:
189223
189250
  (*!
189224
189251
  * Array of passes.
189225
189252
  *
@@ -189228,7 +189255,7 @@ http-proxy/lib/http-proxy/passes/web-outgoing.js:
189228
189255
  * flexible.
189229
189256
  *)
189230
189257
 
189231
- http-proxy/lib/http-proxy/passes/web-incoming.js:
189258
+ http-proxy-node16/lib/http-proxy/passes/web-incoming.js:
189232
189259
  (*!
189233
189260
  * Array of passes.
189234
189261
  *
@@ -189237,7 +189264,7 @@ http-proxy/lib/http-proxy/passes/web-incoming.js:
189237
189264
  * flexible.
189238
189265
  *)
189239
189266
 
189240
- http-proxy/lib/http-proxy/passes/ws-incoming.js:
189267
+ http-proxy-node16/lib/http-proxy/passes/ws-incoming.js:
189241
189268
  (*!
189242
189269
  * Array of passes.
189243
189270
  *
@@ -189246,7 +189273,7 @@ http-proxy/lib/http-proxy/passes/ws-incoming.js:
189246
189273
  * flexible.
189247
189274
  *)
189248
189275
 
189249
- http-proxy/index.js:
189276
+ http-proxy-node16/index.js:
189250
189277
  (*!
189251
189278
  * Caron dimonio, con occhi di bragia
189252
189279
  * loro accennando, tutte le raccoglie;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "48.10.2",
3
+ "version": "48.10.3",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -26,7 +26,7 @@
26
26
  "@vercel/fun": "1.1.6",
27
27
  "@vercel/go": "3.2.3",
28
28
  "@vercel/elysia": "0.1.4",
29
- "@vercel/express": "0.1.7",
29
+ "@vercel/express": "0.1.8",
30
30
  "@vercel/fastify": "0.1.7",
31
31
  "@vercel/hono": "0.2.7",
32
32
  "@vercel/h3": "0.1.13",
@@ -41,7 +41,7 @@
41
41
  "chokidar": "4.0.0",
42
42
  "jose": "5.9.6",
43
43
  "@vercel/detect-agent": "1.0.0",
44
- "@vercel/backends": "0.0.7"
44
+ "@vercel/backends": "0.0.8"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@alex_neo/jest-expect-message": "1.0.5",
@@ -63,7 +63,6 @@
63
63
  "@types/dotenv": "6.1.1",
64
64
  "@types/escape-html": "0.0.20",
65
65
  "@types/fs-extra": "9.0.13",
66
- "@types/http-proxy": "1.16.2",
67
66
  "@types/ini": "1.3.31",
68
67
  "@types/jest": "27.4.1",
69
68
  "@types/jest-expect-message": "1.0.3",
@@ -86,7 +85,7 @@
86
85
  "@types/which": "3.0.0",
87
86
  "@types/write-json-file": "2.2.1",
88
87
  "@types/yauzl-promise": "2.1.0",
89
- "@vercel/client": "17.2.4",
88
+ "@vercel/client": "17.2.5",
90
89
  "@vercel/error-utils": "2.0.3",
91
90
  "@vercel/frameworks": "3.15.3",
92
91
  "@vercel/fs-detectors": "5.7.6",
@@ -122,7 +121,7 @@
122
121
  "fs-extra": "10.0.0",
123
122
  "get-port": "5.1.1",
124
123
  "git-last-commit": "1.0.1",
125
- "http-proxy": "1.18.1",
124
+ "http-proxy-node16": "1.0.6",
126
125
  "ini": "3.0.0",
127
126
  "is-docker": "2.2.1",
128
127
  "is-port-reachable": "3.1.0",
@@ -171,8 +170,8 @@
171
170
  "xdg-app-paths": "5.1.0",
172
171
  "yauzl-promise": "2.1.3",
173
172
  "@vercel-internals/constants": "1.0.4",
174
- "@vercel-internals/types": "3.0.6",
175
- "@vercel-internals/get-package-json": "1.0.0"
173
+ "@vercel-internals/get-package-json": "1.0.0",
174
+ "@vercel-internals/types": "3.0.6"
176
175
  },
177
176
  "scripts": {
178
177
  "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",