vercel 41.0.2 → 41.0.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 +57 -70
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -46157,7 +46157,7 @@ var require_package = __commonJS2({
|
|
46157
46157
|
"../client/package.json"(exports2, module2) {
|
46158
46158
|
module2.exports = {
|
46159
46159
|
name: "@vercel/client",
|
46160
|
-
version: "15.0.
|
46160
|
+
version: "15.0.3",
|
46161
46161
|
main: "dist/index.js",
|
46162
46162
|
typings: "dist/index.d.ts",
|
46163
46163
|
homepage: "https://vercel.com",
|
@@ -46198,7 +46198,7 @@ var require_package = __commonJS2({
|
|
46198
46198
|
dependencies: {
|
46199
46199
|
"@vercel/build-utils": "9.2.1",
|
46200
46200
|
"@vercel/error-utils": "2.0.3",
|
46201
|
-
"@vercel/routing-utils": "5.0.
|
46201
|
+
"@vercel/routing-utils": "5.0.4",
|
46202
46202
|
"async-retry": "1.2.3",
|
46203
46203
|
"async-sema": "3.0.0",
|
46204
46204
|
"fs-extra": "8.0.1",
|
@@ -110304,17 +110304,43 @@ var require_dist22 = __commonJS2({
|
|
110304
110304
|
}
|
110305
110305
|
});
|
110306
110306
|
|
110307
|
-
//
|
110308
|
-
var
|
110309
|
-
"
|
110307
|
+
// ../routing-utils/dist/superstatic.js
|
110308
|
+
var require_superstatic = __commonJS2({
|
110309
|
+
"../routing-utils/dist/superstatic.js"(exports2, module2) {
|
110310
110310
|
"use strict";
|
110311
|
-
Object.defineProperty
|
110312
|
-
|
110313
|
-
var
|
110314
|
-
|
110315
|
-
|
110316
|
-
|
110317
|
-
|
110311
|
+
var __defProp4 = Object.defineProperty;
|
110312
|
+
var __getOwnPropDesc4 = Object.getOwnPropertyDescriptor;
|
110313
|
+
var __getOwnPropNames4 = Object.getOwnPropertyNames;
|
110314
|
+
var __hasOwnProp4 = Object.prototype.hasOwnProperty;
|
110315
|
+
var __export4 = (target, all) => {
|
110316
|
+
for (var name in all)
|
110317
|
+
__defProp4(target, name, { get: all[name], enumerable: true });
|
110318
|
+
};
|
110319
|
+
var __copyProps4 = (to, from, except, desc) => {
|
110320
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
110321
|
+
for (let key of __getOwnPropNames4(from))
|
110322
|
+
if (!__hasOwnProp4.call(to, key) && key !== except)
|
110323
|
+
__defProp4(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc4(from, key)) || desc.enumerable });
|
110324
|
+
}
|
110325
|
+
return to;
|
110326
|
+
};
|
110327
|
+
var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
|
110328
|
+
var superstatic_exports = {};
|
110329
|
+
__export4(superstatic_exports, {
|
110330
|
+
collectHasSegments: () => collectHasSegments,
|
110331
|
+
convertCleanUrls: () => convertCleanUrls,
|
110332
|
+
convertHeaders: () => convertHeaders,
|
110333
|
+
convertRedirects: () => convertRedirects,
|
110334
|
+
convertRewrites: () => convertRewrites,
|
110335
|
+
convertTrailingSlash: () => convertTrailingSlash,
|
110336
|
+
getCleanUrls: () => getCleanUrls2,
|
110337
|
+
pathToRegexp: () => pathToRegexp,
|
110338
|
+
sourceToRegex: () => sourceToRegex
|
110339
|
+
});
|
110340
|
+
module2.exports = __toCommonJS4(superstatic_exports);
|
110341
|
+
var import_url23 = require("url");
|
110342
|
+
var import_path_to_regexp = require_dist21();
|
110343
|
+
var import_path_to_regexp_updated = require_dist22();
|
110318
110344
|
function cloneKeys(keys) {
|
110319
110345
|
if (typeof keys === "undefined") {
|
110320
110346
|
return void 0;
|
@@ -110328,10 +110354,10 @@ var require_dist23 = __commonJS2({
|
|
110328
110354
|
}
|
110329
110355
|
function pathToRegexp(callerId, path11, keys, options) {
|
110330
110356
|
const newKeys = cloneKeys(keys);
|
110331
|
-
const currentRegExp = (0,
|
110357
|
+
const currentRegExp = (0, import_path_to_regexp.pathToRegexp)(path11, keys, options);
|
110332
110358
|
try {
|
110333
110359
|
const currentKeys = keys;
|
110334
|
-
const newRegExp = (0,
|
110360
|
+
const newRegExp = (0, import_path_to_regexp_updated.pathToRegexp)(path11, newKeys, options);
|
110335
110361
|
const isDiffRegExp = currentRegExp.toString() !== newRegExp.toString();
|
110336
110362
|
if (process.env.FORCE_PATH_TO_REGEXP_LOG || isDiffRegExp) {
|
110337
110363
|
const message2 = JSON.stringify({
|
@@ -110360,45 +110386,6 @@ var require_dist23 = __commonJS2({
|
|
110360
110386
|
}
|
110361
110387
|
return currentRegExp;
|
110362
110388
|
}
|
110363
|
-
exports2.pathToRegexp = pathToRegexp;
|
110364
|
-
}
|
110365
|
-
});
|
110366
|
-
|
110367
|
-
// ../routing-utils/dist/superstatic.js
|
110368
|
-
var require_superstatic = __commonJS2({
|
110369
|
-
"../routing-utils/dist/superstatic.js"(exports2, module2) {
|
110370
|
-
"use strict";
|
110371
|
-
var __defProp4 = Object.defineProperty;
|
110372
|
-
var __getOwnPropDesc4 = Object.getOwnPropertyDescriptor;
|
110373
|
-
var __getOwnPropNames4 = Object.getOwnPropertyNames;
|
110374
|
-
var __hasOwnProp4 = Object.prototype.hasOwnProperty;
|
110375
|
-
var __export4 = (target, all) => {
|
110376
|
-
for (var name in all)
|
110377
|
-
__defProp4(target, name, { get: all[name], enumerable: true });
|
110378
|
-
};
|
110379
|
-
var __copyProps4 = (to, from, except, desc) => {
|
110380
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
110381
|
-
for (let key of __getOwnPropNames4(from))
|
110382
|
-
if (!__hasOwnProp4.call(to, key) && key !== except)
|
110383
|
-
__defProp4(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc4(from, key)) || desc.enumerable });
|
110384
|
-
}
|
110385
|
-
return to;
|
110386
|
-
};
|
110387
|
-
var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
|
110388
|
-
var superstatic_exports = {};
|
110389
|
-
__export4(superstatic_exports, {
|
110390
|
-
collectHasSegments: () => collectHasSegments,
|
110391
|
-
convertCleanUrls: () => convertCleanUrls,
|
110392
|
-
convertHeaders: () => convertHeaders,
|
110393
|
-
convertRedirects: () => convertRedirects,
|
110394
|
-
convertRewrites: () => convertRewrites,
|
110395
|
-
convertTrailingSlash: () => convertTrailingSlash,
|
110396
|
-
getCleanUrls: () => getCleanUrls2,
|
110397
|
-
sourceToRegex: () => sourceToRegex
|
110398
|
-
});
|
110399
|
-
module2.exports = __toCommonJS4(superstatic_exports);
|
110400
|
-
var import_url23 = require("url");
|
110401
|
-
var import_path_to_regexp = require_dist23();
|
110402
110389
|
var UN_NAMED_SEGMENT = "__UN_NAMED_SEGMENT__";
|
110403
110390
|
function getCleanUrls2(filePaths) {
|
110404
110391
|
const htmlFiles = filePaths.map(toRoute).filter((f) => f.endsWith(".html")).map((f) => ({
|
@@ -110554,7 +110541,7 @@ var require_superstatic = __commonJS2({
|
|
110554
110541
|
}
|
110555
110542
|
function sourceToRegex(source) {
|
110556
110543
|
const keys = [];
|
110557
|
-
const r =
|
110544
|
+
const r = pathToRegexp("632", source, keys, {
|
110558
110545
|
strict: true,
|
110559
110546
|
sensitive: true,
|
110560
110547
|
delimiter: "/"
|
@@ -110627,9 +110614,9 @@ var require_superstatic = __commonJS2({
|
|
110627
110614
|
const hashKeys = [];
|
110628
110615
|
const hostnameKeys = [];
|
110629
110616
|
try {
|
110630
|
-
|
110631
|
-
|
110632
|
-
|
110617
|
+
pathToRegexp("528", pathname, pathnameKeys);
|
110618
|
+
pathToRegexp("834", hash || "", hashKeys);
|
110619
|
+
pathToRegexp("712", hostname2 || "", hostnameKeys);
|
110633
110620
|
} catch (_) {
|
110634
110621
|
}
|
110635
110622
|
destParams = new Set(
|
@@ -110737,7 +110724,7 @@ var require_append = __commonJS2({
|
|
110737
110724
|
appendRoutesToPhase: () => appendRoutesToPhase4
|
110738
110725
|
});
|
110739
110726
|
module2.exports = __toCommonJS4(append_exports);
|
110740
|
-
var import_index =
|
110727
|
+
var import_index = require_dist23();
|
110741
110728
|
function appendRoutesToPhase4({
|
110742
110729
|
routes: prevRoutes,
|
110743
110730
|
newRoutes,
|
@@ -110805,7 +110792,7 @@ var require_merge3 = __commonJS2({
|
|
110805
110792
|
mergeRoutes: () => mergeRoutes3
|
110806
110793
|
});
|
110807
110794
|
module2.exports = __toCommonJS4(merge_exports);
|
110808
|
-
var import_index =
|
110795
|
+
var import_index = require_dist23();
|
110809
110796
|
function getBuilderRoutesMapping(builds) {
|
110810
110797
|
const builderRoutes = {};
|
110811
110798
|
for (const { entrypoint, routes: routes2, use } of builds) {
|
@@ -111247,7 +111234,7 @@ var require_types6 = __commonJS2({
|
|
111247
111234
|
});
|
111248
111235
|
|
111249
111236
|
// ../routing-utils/dist/index.js
|
111250
|
-
var
|
111237
|
+
var require_dist23 = __commonJS2({
|
111251
111238
|
"../routing-utils/dist/index.js"(exports2, module2) {
|
111252
111239
|
"use strict";
|
111253
111240
|
var __defProp4 = Object.defineProperty;
|
@@ -132327,7 +132314,7 @@ var init_validate_config = __esm({
|
|
132327
132314
|
"src/util/validate-config.ts"() {
|
132328
132315
|
"use strict";
|
132329
132316
|
import_ajv2 = __toESM3(require_ajv());
|
132330
|
-
import_routing_utils = __toESM3(
|
132317
|
+
import_routing_utils = __toESM3(require_dist23());
|
132331
132318
|
import_build_utils12 = require("@vercel/build-utils");
|
132332
132319
|
import_client5 = __toESM3(require_dist7());
|
132333
132320
|
imagesSchema = {
|
@@ -134227,7 +134214,7 @@ var init_build2 = __esm({
|
|
134227
134214
|
import_client6 = __toESM3(require_dist7());
|
134228
134215
|
import_frameworks5 = __toESM3(require_frameworks());
|
134229
134216
|
import_fs_detectors4 = __toESM3(require_dist20());
|
134230
|
-
import_routing_utils2 = __toESM3(
|
134217
|
+
import_routing_utils2 = __toESM3(require_dist23());
|
134231
134218
|
init_output_manager();
|
134232
134219
|
init_corepack();
|
134233
134220
|
init_import_builders();
|
@@ -155826,7 +155813,7 @@ var require_src3 = __commonJS2({
|
|
155826
155813
|
});
|
155827
155814
|
|
155828
155815
|
// ../../node_modules/.pnpm/@tootallnate+once@1.1.2/node_modules/@tootallnate/once/dist/index.js
|
155829
|
-
var
|
155816
|
+
var require_dist24 = __commonJS2({
|
155830
155817
|
"../../node_modules/.pnpm/@tootallnate+once@1.1.2/node_modules/@tootallnate/once/dist/index.js"(exports2, module2) {
|
155831
155818
|
"use strict";
|
155832
155819
|
function noop() {
|
@@ -156003,7 +155990,7 @@ var init_path_helpers = __esm({
|
|
156003
155990
|
});
|
156004
155991
|
|
156005
155992
|
// ../../node_modules/.pnpm/pcre-to-regexp@1.0.0/node_modules/pcre-to-regexp/dist/index.js
|
156006
|
-
var
|
155993
|
+
var require_dist25 = __commonJS2({
|
156007
155994
|
"../../node_modules/.pnpm/pcre-to-regexp@1.0.0/node_modules/pcre-to-regexp/dist/index.js"(exports2, module2) {
|
156008
155995
|
"use strict";
|
156009
155996
|
var characterClasses = {
|
@@ -156338,9 +156325,9 @@ var init_router = __esm({
|
|
156338
156325
|
"src/util/dev/router.ts"() {
|
156339
156326
|
"use strict";
|
156340
156327
|
import_url16 = __toESM3(require("url"));
|
156341
|
-
import_pcre_to_regexp = __toESM3(
|
156328
|
+
import_pcre_to_regexp = __toESM3(require_dist25());
|
156342
156329
|
init_is_url();
|
156343
|
-
import_routing_utils3 = __toESM3(
|
156330
|
+
import_routing_utils3 = __toESM3(require_dist23());
|
156344
156331
|
init_parse_query_string();
|
156345
156332
|
}
|
156346
156333
|
});
|
@@ -156837,7 +156824,7 @@ var init_builder = __esm({
|
|
156837
156824
|
init_tree_kill();
|
156838
156825
|
init_path_helpers();
|
156839
156826
|
init_errors_ts();
|
156840
|
-
import_routing_utils4 = __toESM3(
|
156827
|
+
import_routing_utils4 = __toESM3(require_dist23());
|
156841
156828
|
init_get_update_command();
|
156842
156829
|
init_pkg_name();
|
156843
156830
|
init_import_builders();
|
@@ -157397,7 +157384,7 @@ var init_server = __esm({
|
|
157397
157384
|
import_chokidar = require("chokidar");
|
157398
157385
|
import_dotenv2 = __toESM3(require_main3());
|
157399
157386
|
import_path35 = __toESM3(require("path"));
|
157400
|
-
import_once = __toESM3(
|
157387
|
+
import_once = __toESM3(require_dist24());
|
157401
157388
|
import_directory = __toESM3(require_directory());
|
157402
157389
|
import_get_port = __toESM3(require_get_port());
|
157403
157390
|
import_is_port_reachable = __toESM3(require_is_port_reachable());
|
@@ -157405,7 +157392,7 @@ var init_server = __esm({
|
|
157405
157392
|
import_npm_package_arg2 = __toESM3(require_npa());
|
157406
157393
|
import_json_parse_better_errors3 = __toESM3(require_json_parse_better_errors());
|
157407
157394
|
import_client12 = __toESM3(require_dist7());
|
157408
|
-
import_routing_utils5 = __toESM3(
|
157395
|
+
import_routing_utils5 = __toESM3(require_dist23());
|
157409
157396
|
import_build_utils17 = require("@vercel/build-utils");
|
157410
157397
|
import_fs_detectors6 = __toESM3(require_dist20());
|
157411
157398
|
import_frameworks6 = __toESM3(require_frameworks());
|
@@ -171305,7 +171292,7 @@ init_errors_ts();
|
|
171305
171292
|
init_errors_ts();
|
171306
171293
|
|
171307
171294
|
// src/util/constants.ts
|
171308
|
-
var SENTRY_DSN =
|
171295
|
+
var SENTRY_DSN = "https://26a24e59ba954011919a524b341b6ab5@sentry.io/1323225";
|
171309
171296
|
|
171310
171297
|
// src/index.ts
|
171311
171298
|
init_get_update_command();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "41.0.
|
3
|
+
"version": "41.0.3",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -25,11 +25,11 @@
|
|
25
25
|
"@vercel/fun": "1.1.4",
|
26
26
|
"@vercel/go": "3.2.1",
|
27
27
|
"@vercel/hydrogen": "1.1.0",
|
28
|
-
"@vercel/next": "4.5.
|
28
|
+
"@vercel/next": "4.5.2",
|
29
29
|
"@vercel/node": "5.1.2",
|
30
30
|
"@vercel/python": "4.7.1",
|
31
31
|
"@vercel/redwood": "2.2.0",
|
32
|
-
"@vercel/remix-builder": "5.2.
|
32
|
+
"@vercel/remix-builder": "5.2.4",
|
33
33
|
"@vercel/ruby": "2.2.0",
|
34
34
|
"@vercel/static-build": "2.6.1",
|
35
35
|
"chokidar": "4.0.0"
|
@@ -80,11 +80,11 @@
|
|
80
80
|
"@vercel-internals/constants": "1.0.4",
|
81
81
|
"@vercel-internals/get-package-json": "1.0.0",
|
82
82
|
"@vercel-internals/types": "3.0.6",
|
83
|
-
"@vercel/client": "15.0.
|
83
|
+
"@vercel/client": "15.0.3",
|
84
84
|
"@vercel/error-utils": "2.0.3",
|
85
85
|
"@vercel/frameworks": "3.6.1",
|
86
|
-
"@vercel/fs-detectors": "5.3.
|
87
|
-
"@vercel/routing-utils": "5.0.
|
86
|
+
"@vercel/fs-detectors": "5.3.8",
|
87
|
+
"@vercel/routing-utils": "5.0.4",
|
88
88
|
"@vitest/expect": "2.1.3",
|
89
89
|
"ajv": "6.12.3",
|
90
90
|
"alpha-sort": "2.0.1",
|