vercel-cli 48.6.0__py3-none-any.whl → 48.6.7__py3-none-any.whl
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.
Potentially problematic release.
This version of vercel-cli might be problematic. Click here for more details.
- vercel_cli/vendor/dist/index.js +91 -20
- vercel_cli/vendor/node_modules/.package-lock.json +3 -3
- vercel_cli/vendor/node_modules/@vercel/build-utils/CHANGELOG.md +12 -0
- vercel_cli/vendor/node_modules/@vercel/build-utils/dist/framework-helpers.d.ts +17 -0
- vercel_cli/vendor/node_modules/@vercel/build-utils/dist/framework-helpers.js +52 -0
- vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/node-version.js +11 -1
- vercel_cli/vendor/node_modules/@vercel/build-utils/dist/index.d.ts +1 -0
- vercel_cli/vendor/node_modules/@vercel/build-utils/dist/index.js +39 -0
- vercel_cli/vendor/node_modules/@vercel/build-utils/package.json +2 -2
- vercel_cli/vendor/package.json +3 -3
- {vercel_cli-48.6.0.dist-info → vercel_cli-48.6.7.dist-info}/METADATA +1 -1
- {vercel_cli-48.6.0.dist-info → vercel_cli-48.6.7.dist-info}/RECORD +14 -12
- {vercel_cli-48.6.0.dist-info → vercel_cli-48.6.7.dist-info}/WHEEL +0 -0
- {vercel_cli-48.6.0.dist-info → vercel_cli-48.6.7.dist-info}/entry_points.txt +0 -0
vercel_cli/vendor/dist/index.js
CHANGED
|
@@ -49550,7 +49550,7 @@ var require_package = __commonJS2({
|
|
|
49550
49550
|
"../client/package.json"(exports2, module2) {
|
|
49551
49551
|
module2.exports = {
|
|
49552
49552
|
name: "@vercel/client",
|
|
49553
|
-
version: "17.1.
|
|
49553
|
+
version: "17.1.3",
|
|
49554
49554
|
main: "dist/index.js",
|
|
49555
49555
|
typings: "dist/index.d.ts",
|
|
49556
49556
|
homepage: "https://vercel.com",
|
|
@@ -49589,10 +49589,10 @@ var require_package = __commonJS2({
|
|
|
49589
49589
|
vitest: "2.0.1"
|
|
49590
49590
|
},
|
|
49591
49591
|
dependencies: {
|
|
49592
|
-
"@vercel/build-utils": "12.2.
|
|
49592
|
+
"@vercel/build-utils": "12.2.2",
|
|
49593
49593
|
"@vercel/error-utils": "2.0.3",
|
|
49594
49594
|
"@vercel/microfrontends": "1.2.2",
|
|
49595
|
-
"@vercel/routing-utils": "5.2.
|
|
49595
|
+
"@vercel/routing-utils": "5.2.1",
|
|
49596
49596
|
"async-retry": "1.2.3",
|
|
49597
49597
|
"async-sema": "3.0.0",
|
|
49598
49598
|
"fs-extra": "8.0.1",
|
|
@@ -133025,7 +133025,7 @@ var require_superstatic = __commonJS2({
|
|
|
133025
133025
|
convertTrailingSlash: () => convertTrailingSlash,
|
|
133026
133026
|
getCleanUrls: () => getCleanUrls2,
|
|
133027
133027
|
pathToRegexp: () => pathToRegexp,
|
|
133028
|
-
sourceToRegex: () =>
|
|
133028
|
+
sourceToRegex: () => sourceToRegex3
|
|
133029
133029
|
});
|
|
133030
133030
|
module2.exports = __toCommonJS4(superstatic_exports);
|
|
133031
133031
|
var import_url20 = require("url");
|
|
@@ -133103,7 +133103,7 @@ var require_superstatic = __commonJS2({
|
|
|
133103
133103
|
}
|
|
133104
133104
|
function convertRedirects(redirects, defaultStatus = 308) {
|
|
133105
133105
|
return redirects.map((r) => {
|
|
133106
|
-
const { src, segments } =
|
|
133106
|
+
const { src, segments } = sourceToRegex3(r.source);
|
|
133107
133107
|
const hasSegments = collectHasSegments(r.has);
|
|
133108
133108
|
normalizeHasKeys(r.has);
|
|
133109
133109
|
normalizeHasKeys(r.missing);
|
|
@@ -133136,7 +133136,7 @@ var require_superstatic = __commonJS2({
|
|
|
133136
133136
|
}
|
|
133137
133137
|
function convertRewrites(rewrites, internalParamNames) {
|
|
133138
133138
|
return rewrites.map((r) => {
|
|
133139
|
-
const { src, segments } =
|
|
133139
|
+
const { src, segments } = sourceToRegex3(r.source);
|
|
133140
133140
|
const hasSegments = collectHasSegments(r.has);
|
|
133141
133141
|
normalizeHasKeys(r.has);
|
|
133142
133142
|
normalizeHasKeys(r.missing);
|
|
@@ -133167,7 +133167,7 @@ var require_superstatic = __commonJS2({
|
|
|
133167
133167
|
function convertHeaders(headers) {
|
|
133168
133168
|
return headers.map((h) => {
|
|
133169
133169
|
const obj = {};
|
|
133170
|
-
const { src, segments } =
|
|
133170
|
+
const { src, segments } = sourceToRegex3(h.source);
|
|
133171
133171
|
const hasSegments = collectHasSegments(h.has);
|
|
133172
133172
|
normalizeHasKeys(h.has);
|
|
133173
133173
|
normalizeHasKeys(h.missing);
|
|
@@ -133229,7 +133229,7 @@ var require_superstatic = __commonJS2({
|
|
|
133229
133229
|
}
|
|
133230
133230
|
return routes2;
|
|
133231
133231
|
}
|
|
133232
|
-
function
|
|
133232
|
+
function sourceToRegex3(source) {
|
|
133233
133233
|
const keys = [];
|
|
133234
133234
|
const r = pathToRegexp("632", source, keys, {
|
|
133235
133235
|
strict: true,
|
|
@@ -134281,7 +134281,8 @@ var require_dist23 = __commonJS2({
|
|
|
134281
134281
|
isHandler: () => isHandler2,
|
|
134282
134282
|
isValidHandleValue: () => isValidHandleValue,
|
|
134283
134283
|
mergeRoutes: () => import_merge2.mergeRoutes,
|
|
134284
|
-
normalizeRoutes: () => normalizeRoutes2
|
|
134284
|
+
normalizeRoutes: () => normalizeRoutes2,
|
|
134285
|
+
sourceToRegex: () => import_superstatic2.sourceToRegex
|
|
134285
134286
|
});
|
|
134286
134287
|
module2.exports = __toCommonJS4(src_exports2);
|
|
134287
134288
|
var import_url20 = require("url");
|
|
@@ -145938,11 +145939,8 @@ var init_unzip = __esm({
|
|
|
145938
145939
|
// src/util/build/write-build-result.ts
|
|
145939
145940
|
async function writeBuildResult(repoRootPath, outputDir, buildResult, build2, builder, builderPkg, vercelConfig, standalone = false) {
|
|
145940
145941
|
let version2 = builder.version;
|
|
145941
|
-
if (
|
|
145942
|
-
version2 =
|
|
145943
|
-
}
|
|
145944
|
-
if ("experimentalVersion" in builder && process.env.VERCEL_EXPERIMENTAL_HONO_BUILD === "1" && "name" in builder && builder.name === "hono") {
|
|
145945
|
-
version2 = builder.experimentalVersion;
|
|
145942
|
+
if ((0, import_build_utils11.isExperimentalBackendsEnabled)() && "output" in buildResult) {
|
|
145943
|
+
version2 = 2;
|
|
145946
145944
|
}
|
|
145947
145945
|
if (typeof version2 !== "number" || version2 === 2) {
|
|
145948
145946
|
return writeBuildResultV2(
|
|
@@ -146087,6 +146085,37 @@ async function writeBuildResultV2(repoRootPath, outputDir, buildResult, build2,
|
|
|
146087
146085
|
}
|
|
146088
146086
|
async function writeBuildResultV3(repoRootPath, outputDir, buildResult, build2, vercelConfig, standalone = false) {
|
|
146089
146087
|
const { output: output2 } = buildResult;
|
|
146088
|
+
if (process.env.VERCEL_EXPERIMENTAL_ROUTES_JSON === "1") {
|
|
146089
|
+
const routesJsonPath = (0, import_path21.join)(outputDir, "..", "routes.json");
|
|
146090
|
+
if ((0, import_fs_extra12.existsSync)(routesJsonPath)) {
|
|
146091
|
+
try {
|
|
146092
|
+
const newOutput = {
|
|
146093
|
+
index: output2
|
|
146094
|
+
};
|
|
146095
|
+
const routesJson = await import_fs_extra12.default.readJSON(routesJsonPath);
|
|
146096
|
+
if (routesJson && typeof routesJson === "object" && "routes" in routesJson && Array.isArray(routesJson.routes)) {
|
|
146097
|
+
for (const route of routesJson.routes) {
|
|
146098
|
+
if (route.source === "/") {
|
|
146099
|
+
continue;
|
|
146100
|
+
}
|
|
146101
|
+
if (route.source) {
|
|
146102
|
+
newOutput[route.source] = output2;
|
|
146103
|
+
}
|
|
146104
|
+
}
|
|
146105
|
+
}
|
|
146106
|
+
return writeBuildResultV2(
|
|
146107
|
+
repoRootPath,
|
|
146108
|
+
outputDir,
|
|
146109
|
+
{ output: newOutput, routes: buildResult.routes },
|
|
146110
|
+
build2,
|
|
146111
|
+
vercelConfig,
|
|
146112
|
+
standalone
|
|
146113
|
+
);
|
|
146114
|
+
} catch (error3) {
|
|
146115
|
+
output_manager_default.error(`Failed to read routes.json: ${error3}`);
|
|
146116
|
+
}
|
|
146117
|
+
}
|
|
146118
|
+
}
|
|
146090
146119
|
const src = build2.src;
|
|
146091
146120
|
if (typeof src !== "string") {
|
|
146092
146121
|
throw new Error(`Expected "build.src" to be a string`);
|
|
@@ -146362,6 +146391,7 @@ var init_write_build_result = __esm({
|
|
|
146362
146391
|
init_unzip();
|
|
146363
146392
|
init_link2();
|
|
146364
146393
|
import_client3 = __toESM3(require_dist7());
|
|
146394
|
+
init_output_manager();
|
|
146365
146395
|
({ normalize: normalize2 } = import_path21.posix);
|
|
146366
146396
|
OUTPUT_DIR = (0, import_path21.join)(VERCEL_DIR2, "output");
|
|
146367
146397
|
}
|
|
@@ -148339,11 +148369,6 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148339
148369
|
try {
|
|
148340
148370
|
buildResult = await builderSpan.trace(
|
|
148341
148371
|
() => {
|
|
148342
|
-
if (process.env.VERCEL_EXPERIMENTAL_EXPRESS_BUILD === "1" && "name" in builder && builder.name === "express" && "experimentalBuild" in builder && typeof builder.experimentalBuild === "function") {
|
|
148343
|
-
return builder.experimentalBuild(buildOptions);
|
|
148344
|
-
} else if (process.env.VERCEL_EXPERIMENTAL_HONO_BUILD === "1" && "name" in builder && builder.name === "hono" && "experimentalBuild" in builder && typeof builder.experimentalBuild === "function") {
|
|
148345
|
-
return builder.experimentalBuild(buildOptions);
|
|
148346
|
-
}
|
|
148347
148372
|
return builder.build(buildOptions);
|
|
148348
148373
|
}
|
|
148349
148374
|
);
|
|
@@ -148377,6 +148402,49 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148377
148402
|
});
|
|
148378
148403
|
}
|
|
148379
148404
|
}
|
|
148405
|
+
const backendBuilders = [
|
|
148406
|
+
"@vercel/express",
|
|
148407
|
+
"@vercel/hono",
|
|
148408
|
+
"@vercel/fastify"
|
|
148409
|
+
];
|
|
148410
|
+
const isBackendBuilder = build2.use && backendBuilders.includes(build2.use);
|
|
148411
|
+
if (process.env.VERCEL_EXPERIMENTAL_ROUTES_JSON === "1") {
|
|
148412
|
+
if ("output" in buildResult && buildResult.output && isBackendBuilder) {
|
|
148413
|
+
const routesJsonPath = (0, import_path27.join)(outputDir, "..", "routes.json");
|
|
148414
|
+
if ((0, import_fs_extra18.existsSync)(routesJsonPath)) {
|
|
148415
|
+
try {
|
|
148416
|
+
const routesJson = await readJSONFile(routesJsonPath);
|
|
148417
|
+
if (routesJson && typeof routesJson === "object" && "routes" in routesJson && Array.isArray(routesJson.routes)) {
|
|
148418
|
+
const convertedRoutes = [];
|
|
148419
|
+
for (const route of routesJson.routes) {
|
|
148420
|
+
if (typeof route.source !== "string") {
|
|
148421
|
+
continue;
|
|
148422
|
+
}
|
|
148423
|
+
const { src } = (0, import_routing_utils2.sourceToRegex)(route.source);
|
|
148424
|
+
const newRoute = {
|
|
148425
|
+
src,
|
|
148426
|
+
dest: route.source
|
|
148427
|
+
};
|
|
148428
|
+
if (route.methods) {
|
|
148429
|
+
newRoute.methods = route.methods;
|
|
148430
|
+
}
|
|
148431
|
+
if (route.source === "/") {
|
|
148432
|
+
continue;
|
|
148433
|
+
}
|
|
148434
|
+
convertedRoutes.push(newRoute);
|
|
148435
|
+
}
|
|
148436
|
+
buildResult.routes = [
|
|
148437
|
+
{ handle: "filesystem" },
|
|
148438
|
+
...convertedRoutes,
|
|
148439
|
+
{ src: "/(.*)", dest: "/" }
|
|
148440
|
+
];
|
|
148441
|
+
}
|
|
148442
|
+
} catch (error3) {
|
|
148443
|
+
output_manager_default.error(`Failed to read routes.json: ${error3}`);
|
|
148444
|
+
}
|
|
148445
|
+
}
|
|
148446
|
+
}
|
|
148447
|
+
}
|
|
148380
148448
|
buildResults.set(build2, buildResult);
|
|
148381
148449
|
let buildOutputLength = 0;
|
|
148382
148450
|
if ("output" in buildResult) {
|
|
@@ -169475,7 +169543,7 @@ async function getBuildMatches(vercelConfig, cwd, devServer, fileList) {
|
|
|
169475
169543
|
if (src[0] === "/") {
|
|
169476
169544
|
src = src.substring(1);
|
|
169477
169545
|
}
|
|
169478
|
-
if (
|
|
169546
|
+
if ((0, import_build_utils16.isBackendFramework)(buildConfig.config?.framework)) {
|
|
169479
169547
|
src = "package.json";
|
|
169480
169548
|
}
|
|
169481
169549
|
if (buildConfig.config?.framework === "fastapi" || buildConfig.config?.framework === "flask") {
|
|
@@ -171133,6 +171201,9 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
171133
171201
|
return defaults;
|
|
171134
171202
|
}
|
|
171135
171203
|
}
|
|
171204
|
+
if ((0, import_build_utils17.isExperimentalBackendsEnabled)()) {
|
|
171205
|
+
return "npx @vercel/cervel dev";
|
|
171206
|
+
}
|
|
171136
171207
|
}
|
|
171137
171208
|
return void 0;
|
|
171138
171209
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"requires": true,
|
|
4
4
|
"packages": {
|
|
5
5
|
"node_modules/@vercel/build-utils": {
|
|
6
|
-
"version": "12.2.
|
|
7
|
-
"resolved": "https://registry.npmjs.org/@vercel/build-utils/-/build-utils-12.2.
|
|
8
|
-
"integrity": "sha512-
|
|
6
|
+
"version": "12.2.2",
|
|
7
|
+
"resolved": "https://registry.npmjs.org/@vercel/build-utils/-/build-utils-12.2.2.tgz",
|
|
8
|
+
"integrity": "sha512-6AQL0YT6la3/j9xh4vyYfyEKbRQ8asikAX1EWasiZqhRcFSstM4zbqkez5B+SpDK8y+Kh7yz9sz/dkBTW4Xtqg==",
|
|
9
9
|
"license": "Apache-2.0"
|
|
10
10
|
},
|
|
11
11
|
"node_modules/@vercel/detect-agent": {
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @vercel/build-utils
|
|
2
2
|
|
|
3
|
+
## 12.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Allow Node.js 24 behind env var feature flag ([#14160](https://github.com/vercel/vercel/pull/14160))
|
|
8
|
+
|
|
9
|
+
## 12.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Add backend util helpers ([#14152](https://github.com/vercel/vercel/pull/14152))
|
|
14
|
+
|
|
3
15
|
## 12.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List of backend frameworks supported by the experimental backends feature
|
|
3
|
+
*/
|
|
4
|
+
export declare const BACKEND_FRAMEWORKS: readonly ["express", "hono", "h3", "nestjs", "fastify"];
|
|
5
|
+
export type BackendFramework = (typeof BACKEND_FRAMEWORKS)[number];
|
|
6
|
+
/**
|
|
7
|
+
* Checks if the given framework is a backend framework
|
|
8
|
+
*/
|
|
9
|
+
export declare function isBackendFramework(framework: string | null | undefined): framework is BackendFramework;
|
|
10
|
+
/**
|
|
11
|
+
* Checks if experimental backends are enabled via environment variable
|
|
12
|
+
*/
|
|
13
|
+
export declare function isExperimentalBackendsEnabled(): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Checks if experimental backends are enabled AND the framework is a backend framework
|
|
16
|
+
*/
|
|
17
|
+
export declare function shouldUseExperimentalBackends(framework: string | null | undefined): boolean;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var framework_helpers_exports = {};
|
|
20
|
+
__export(framework_helpers_exports, {
|
|
21
|
+
BACKEND_FRAMEWORKS: () => BACKEND_FRAMEWORKS,
|
|
22
|
+
isBackendFramework: () => isBackendFramework,
|
|
23
|
+
isExperimentalBackendsEnabled: () => isExperimentalBackendsEnabled,
|
|
24
|
+
shouldUseExperimentalBackends: () => shouldUseExperimentalBackends
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(framework_helpers_exports);
|
|
27
|
+
const BACKEND_FRAMEWORKS = [
|
|
28
|
+
"express",
|
|
29
|
+
"hono",
|
|
30
|
+
"h3",
|
|
31
|
+
"nestjs",
|
|
32
|
+
"fastify"
|
|
33
|
+
];
|
|
34
|
+
function isBackendFramework(framework) {
|
|
35
|
+
if (!framework)
|
|
36
|
+
return false;
|
|
37
|
+
return BACKEND_FRAMEWORKS.includes(framework);
|
|
38
|
+
}
|
|
39
|
+
function isExperimentalBackendsEnabled() {
|
|
40
|
+
return process.env.VERCEL_EXPERIMENTAL_BACKENDS === "1" || // Previously used for experimental express and hono builds
|
|
41
|
+
process.env.VERCEL_EXPERIMENTAL_EXPRESS_BUILD === "1" || process.env.VERCEL_EXPERIMENTAL_HONO_BUILD === "1";
|
|
42
|
+
}
|
|
43
|
+
function shouldUseExperimentalBackends(framework) {
|
|
44
|
+
return isExperimentalBackendsEnabled() && isBackendFramework(framework);
|
|
45
|
+
}
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
BACKEND_FRAMEWORKS,
|
|
49
|
+
isBackendFramework,
|
|
50
|
+
isExperimentalBackendsEnabled,
|
|
51
|
+
shouldUseExperimentalBackends
|
|
52
|
+
});
|
|
@@ -100,9 +100,19 @@ const BUN_VERSIONS = [
|
|
|
100
100
|
})
|
|
101
101
|
];
|
|
102
102
|
function getNodeVersionByMajor(major) {
|
|
103
|
-
return
|
|
103
|
+
return getOptions().find((v) => v.major === major);
|
|
104
104
|
}
|
|
105
105
|
function getOptions() {
|
|
106
|
+
if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") {
|
|
107
|
+
return [
|
|
108
|
+
new import_types.NodeVersion({
|
|
109
|
+
major: 24,
|
|
110
|
+
range: "24.x",
|
|
111
|
+
runtime: "nodejs24.x"
|
|
112
|
+
}),
|
|
113
|
+
...NODE_VERSIONS
|
|
114
|
+
];
|
|
115
|
+
}
|
|
106
116
|
return NODE_VERSIONS;
|
|
107
117
|
}
|
|
108
118
|
function isNodeVersionAvailable(version) {
|
|
@@ -32,3 +32,4 @@ export { NODE_VERSIONS } from './fs/node-version';
|
|
|
32
32
|
export { getInstalledPackageVersion } from './get-installed-package-version';
|
|
33
33
|
export { defaultCachePathGlob } from './default-cache-path-glob';
|
|
34
34
|
export { generateNodeBuilderFunctions } from './generate-node-builder-functions';
|
|
35
|
+
export { BACKEND_FRAMEWORKS, BackendFramework, isBackendFramework, isExperimentalBackendsEnabled, shouldUseExperimentalBackends, } from './framework-helpers';
|
|
@@ -21817,6 +21817,7 @@ var require_ignore = __commonJS({
|
|
|
21817
21817
|
// src/index.ts
|
|
21818
21818
|
var src_exports = {};
|
|
21819
21819
|
__export(src_exports, {
|
|
21820
|
+
BACKEND_FRAMEWORKS: () => BACKEND_FRAMEWORKS,
|
|
21820
21821
|
BUILDER_COMPILE_STEP: () => BUILDER_COMPILE_STEP,
|
|
21821
21822
|
BUILDER_INSTALLER_STEP: () => BUILDER_INSTALLER_STEP,
|
|
21822
21823
|
BunVersion: () => BunVersion,
|
|
@@ -21866,8 +21867,10 @@ __export(src_exports, {
|
|
|
21866
21867
|
glob: () => glob,
|
|
21867
21868
|
hardLinkDir: () => hardLinkDir,
|
|
21868
21869
|
installDependencies: () => installDependencies,
|
|
21870
|
+
isBackendFramework: () => isBackendFramework,
|
|
21869
21871
|
isBunVersion: () => isBunVersion,
|
|
21870
21872
|
isDirectory: () => isDirectory,
|
|
21873
|
+
isExperimentalBackendsEnabled: () => isExperimentalBackendsEnabled,
|
|
21871
21874
|
isSymbolicLink: () => isSymbolicLink,
|
|
21872
21875
|
normalizePath: () => normalizePath,
|
|
21873
21876
|
readConfigFile: () => readConfigFile,
|
|
@@ -21880,6 +21883,7 @@ __export(src_exports, {
|
|
|
21880
21883
|
runShellScript: () => runShellScript,
|
|
21881
21884
|
scanParentDirs: () => scanParentDirs,
|
|
21882
21885
|
shouldServe: () => shouldServe,
|
|
21886
|
+
shouldUseExperimentalBackends: () => shouldUseExperimentalBackends,
|
|
21883
21887
|
spawnAsync: () => spawnAsync,
|
|
21884
21888
|
spawnCommand: () => spawnCommand,
|
|
21885
21889
|
streamToBuffer: () => streamToBuffer,
|
|
@@ -23011,6 +23015,16 @@ var BUN_VERSIONS = [
|
|
|
23011
23015
|
})
|
|
23012
23016
|
];
|
|
23013
23017
|
function getOptions() {
|
|
23018
|
+
if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") {
|
|
23019
|
+
return [
|
|
23020
|
+
new NodeVersion({
|
|
23021
|
+
major: 24,
|
|
23022
|
+
range: "24.x",
|
|
23023
|
+
runtime: "nodejs24.x"
|
|
23024
|
+
}),
|
|
23025
|
+
...NODE_VERSIONS
|
|
23026
|
+
];
|
|
23027
|
+
}
|
|
23014
23028
|
return NODE_VERSIONS;
|
|
23015
23029
|
}
|
|
23016
23030
|
function isNodeVersionAvailable(version) {
|
|
@@ -24761,8 +24775,30 @@ ${entrypointsForMessage}`
|
|
|
24761
24775
|
entrypointCallback
|
|
24762
24776
|
};
|
|
24763
24777
|
}
|
|
24778
|
+
|
|
24779
|
+
// src/framework-helpers.ts
|
|
24780
|
+
var BACKEND_FRAMEWORKS = [
|
|
24781
|
+
"express",
|
|
24782
|
+
"hono",
|
|
24783
|
+
"h3",
|
|
24784
|
+
"nestjs",
|
|
24785
|
+
"fastify"
|
|
24786
|
+
];
|
|
24787
|
+
function isBackendFramework(framework) {
|
|
24788
|
+
if (!framework)
|
|
24789
|
+
return false;
|
|
24790
|
+
return BACKEND_FRAMEWORKS.includes(framework);
|
|
24791
|
+
}
|
|
24792
|
+
function isExperimentalBackendsEnabled() {
|
|
24793
|
+
return process.env.VERCEL_EXPERIMENTAL_BACKENDS === "1" || // Previously used for experimental express and hono builds
|
|
24794
|
+
process.env.VERCEL_EXPERIMENTAL_EXPRESS_BUILD === "1" || process.env.VERCEL_EXPERIMENTAL_HONO_BUILD === "1";
|
|
24795
|
+
}
|
|
24796
|
+
function shouldUseExperimentalBackends(framework) {
|
|
24797
|
+
return isExperimentalBackendsEnabled() && isBackendFramework(framework);
|
|
24798
|
+
}
|
|
24764
24799
|
// Annotate the CommonJS export names for ESM import in node:
|
|
24765
24800
|
0 && (module.exports = {
|
|
24801
|
+
BACKEND_FRAMEWORKS,
|
|
24766
24802
|
BUILDER_COMPILE_STEP,
|
|
24767
24803
|
BUILDER_INSTALLER_STEP,
|
|
24768
24804
|
BunVersion,
|
|
@@ -24812,8 +24848,10 @@ ${entrypointsForMessage}`
|
|
|
24812
24848
|
glob,
|
|
24813
24849
|
hardLinkDir,
|
|
24814
24850
|
installDependencies,
|
|
24851
|
+
isBackendFramework,
|
|
24815
24852
|
isBunVersion,
|
|
24816
24853
|
isDirectory,
|
|
24854
|
+
isExperimentalBackendsEnabled,
|
|
24817
24855
|
isSymbolicLink,
|
|
24818
24856
|
normalizePath,
|
|
24819
24857
|
readConfigFile,
|
|
@@ -24826,6 +24864,7 @@ ${entrypointsForMessage}`
|
|
|
24826
24864
|
runShellScript,
|
|
24827
24865
|
scanParentDirs,
|
|
24828
24866
|
shouldServe,
|
|
24867
|
+
shouldUseExperimentalBackends,
|
|
24829
24868
|
spawnAsync,
|
|
24830
24869
|
spawnCommand,
|
|
24831
24870
|
streamToBuffer,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/build-utils",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@types/semver": "6.0.0",
|
|
28
28
|
"@types/yazl": "2.4.2",
|
|
29
29
|
"@vercel/error-utils": "2.0.3",
|
|
30
|
-
"@vercel/routing-utils": "5.2.
|
|
30
|
+
"@vercel/routing-utils": "5.2.1",
|
|
31
31
|
"aggregate-error": "3.0.1",
|
|
32
32
|
"async-retry": "1.2.3",
|
|
33
33
|
"async-sema": "2.1.4",
|
vercel_cli/vendor/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"vercel": "./dist/vc.js"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@vercel/build-utils": "12.2.
|
|
7
|
+
"@vercel/build-utils": "12.2.2",
|
|
8
8
|
"@vercel/detect-agent": "1.0.0",
|
|
9
9
|
"@vercel/python": "5.0.10"
|
|
10
10
|
},
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"test-e2e": "rimraf test/fixtures/integration && pnpm test test/integration-1.test.ts test/integration-2.test.ts test/integration-3.test.ts",
|
|
34
34
|
"type-check": "tsc --noEmit",
|
|
35
35
|
"vc": "pnpm vercel",
|
|
36
|
-
"vercel": "
|
|
36
|
+
"vercel": "pnpm build && node ./dist/vc.js",
|
|
37
37
|
"vitest-run": "vitest --config ./vitest.config.mts",
|
|
38
38
|
"vitest-unit": "jest test/unit/ --listTests"
|
|
39
39
|
},
|
|
40
|
-
"version": "48.6.
|
|
40
|
+
"version": "48.6.7"
|
|
41
41
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vercel-cli
|
|
3
|
-
Version: 48.6.
|
|
3
|
+
Version: 48.6.7
|
|
4
4
|
Summary: Vercel CLI packaged for Python (bundled Node.js, vendored npm)
|
|
5
5
|
Project-URL: Homepage, https://github.com/nuage-studio/vercel-cli-python
|
|
6
6
|
Project-URL: Repository, https://github.com/nuage-studio/vercel-cli-python
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
vercel_cli/vendor/LICENSE,sha256=sHDXe_ssUqHdaZbeDOX2TEmgylXIibFjqWPd9csAHuI,11343
|
|
2
2
|
vercel_cli/vendor/README.md,sha256=2ZrJzd7x21xlpsOZ9QKG6478zbXb8-3YN8cPyzPxZNk,1799
|
|
3
|
-
vercel_cli/vendor/package.json,sha256=
|
|
3
|
+
vercel_cli/vendor/package.json,sha256=DyfJwLTw9jBG6-dPZY5BtdGuXgDsKpXjGdUSs20-jB8,1271
|
|
4
4
|
vercel_cli/vendor/dist/VERCEL_DIR_README.txt,sha256=9dHtD1AyrhKJMfRkWbX6oa9jGfwt-z56X-VKhL-T29Y,520
|
|
5
5
|
vercel_cli/vendor/dist/builder-worker.js,sha256=RgutTXJcurRisV2NtlruuPDtCBOi8eHSGCo3n4GcCIM,1969
|
|
6
6
|
vercel_cli/vendor/dist/get-latest-worker.js,sha256=w7nK8nQtlYad_SKuFQGw_sg7_bb-p0uHOf1MYiwrUNs,7964
|
|
7
|
-
vercel_cli/vendor/dist/index.js,sha256=
|
|
7
|
+
vercel_cli/vendor/dist/index.js,sha256=WohvsB6t-Hac9MFh1S2olWU8IjFSjepfS5hvJywIrx8,8925167
|
|
8
8
|
vercel_cli/vendor/dist/vc.js,sha256=AAC4u6uwjpO0KfFVuLRs5YWXjW4aMCkgSj_45hR3W8k,340
|
|
9
|
-
vercel_cli/vendor/node_modules/.package-lock.json,sha256=
|
|
10
|
-
vercel_cli/vendor/node_modules/@vercel/build-utils/CHANGELOG.md,sha256=
|
|
9
|
+
vercel_cli/vendor/node_modules/.package-lock.json,sha256=bG67j9GNs3Y-Y9TYDdY9ABwmA3kuWaXnvFciu_-jsL4,1055
|
|
10
|
+
vercel_cli/vendor/node_modules/@vercel/build-utils/CHANGELOG.md,sha256=RuZIlJwvfLtyeiZF5qnkeL7T0U2Pfz8nkxcdFHmTlfA,18840
|
|
11
11
|
vercel_cli/vendor/node_modules/@vercel/build-utils/LICENSE,sha256=sHDXe_ssUqHdaZbeDOX2TEmgylXIibFjqWPd9csAHuI,11343
|
|
12
12
|
vercel_cli/vendor/node_modules/@vercel/build-utils/build.mjs,sha256=UCAJgPaur_bxtLTnQxSkBwoq246SSCBvI-0w_PvbAVU,132
|
|
13
13
|
vercel_cli/vendor/node_modules/@vercel/build-utils/file-blob.js,sha256=aRpphtlekNrjt2il5QT0F2bXAkqFTO_V1krxIOq4hrI,51
|
|
14
14
|
vercel_cli/vendor/node_modules/@vercel/build-utils/file-fs-ref.js,sha256=fOL25R1bIwSeLf_imxHGMUUhjRLF_BE1_Zu7id4zQHQ,52
|
|
15
15
|
vercel_cli/vendor/node_modules/@vercel/build-utils/file-ref.js,sha256=Zagnve_F2XviRbTHabnkueLyODg4bS0YrNSqd3nfIl8,50
|
|
16
16
|
vercel_cli/vendor/node_modules/@vercel/build-utils/lambda.js,sha256=KAiW9B7zt1YNj6DpnUErjD8pZJUq7MP1xCTG8oFzCKU,42
|
|
17
|
-
vercel_cli/vendor/node_modules/@vercel/build-utils/package.json,sha256=
|
|
17
|
+
vercel_cli/vendor/node_modules/@vercel/build-utils/package.json,sha256=jMx3-EwU8ZCP5PxfOu3SWB48fOL7AkBygRw01GulCcc,1847
|
|
18
18
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/clone-env.d.ts,sha256=j_d2xvRDDMBB4yXz53kyZ-plZRvg0Rg1d9-lFFvjVRo,415
|
|
19
19
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/clone-env.js,sha256=LzFB8CsnB1G7wZ2pl5D25siWq0kuY2eTvRlZMj6tbg0,1423
|
|
20
20
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/debug.d.ts,sha256=zh9K0T0QHcac03_UpCv9r4q3w8aia11XqtWd7Jsfhos,76
|
|
@@ -31,6 +31,8 @@ vercel_cli/vendor/node_modules/@vercel/build-utils/dist/file-fs-ref.d.ts,sha256=
|
|
|
31
31
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/file-fs-ref.js,sha256=AXyXrTwRJTeqLOBhWGKm_KMkAiMxjOJpQlrW4lFotiU,3910
|
|
32
32
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/file-ref.d.ts,sha256=TavWfLrgq6soixSDYhdsvt8MtzIB_qLJPcbo02pm_Ts,1098
|
|
33
33
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/file-ref.js,sha256=7rTV64WuFTvLurFsNE8JWCC4Y7EFFgiqwtCAe9Co3CU,4929
|
|
34
|
+
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/framework-helpers.d.ts,sha256=IRG_QtqC8nldsMuBFyRmUzVTLDwBa5beZ8WtE82tVFk,772
|
|
35
|
+
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/framework-helpers.js,sha256=3kXU2W2xicW5bwcFKIFQ3RVhaCNu9qtOG4Zi0KVWeNA,1991
|
|
34
36
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/generate-node-builder-functions.d.ts,sha256=Qb_-JRWbd1gWWZBjNCRbXGzKneYF9QLQufU4IW0o2g8,509
|
|
35
37
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/generate-node-builder-functions.js,sha256=DhEN1dmoC8xRb3BMVefBCEpOZ6yhZrmdqvRcUFhWCB4,7550
|
|
36
38
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-ignore-filter.d.ts,sha256=Rr_2-k8x2nv7naAZFeV-vDiMjOiyQRn3ldqdSeh3jaE,113
|
|
@@ -43,8 +45,8 @@ vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-prefixed-env-vars.d.
|
|
|
43
45
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-prefixed-env-vars.js,sha256=6rhb9L9lDw-oGmJk-CKgpZxgCzBWy2yBUxW6uD_fDMU,1827
|
|
44
46
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/hard-link-dir.d.ts,sha256=HplXUbwTLeD9eY-mSorms1O1mucLWBH-edAPIvAiYSM,85
|
|
45
47
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/hard-link-dir.js,sha256=K4utFK-gzVTfepi8P488t4cFBHBA8virdMyFumvu8E8,3685
|
|
46
|
-
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/index.d.ts,sha256=
|
|
47
|
-
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/index.js,sha256=
|
|
48
|
+
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/index.d.ts,sha256=uhPAgdJem38X_WAjhOp_nMSTjcq-1JltuFiCxuyVT7g,3159
|
|
49
|
+
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/index.js,sha256=YcYAqLtFMZpU0ri8DMLzu8nPnPQ0ueIaB9bU0M0TnCI,1138326
|
|
48
50
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/lambda.d.ts,sha256=wpPR6WTT3dvm0RBJ0KqaPW9ATmHMav4_uFvAnuxeWQQ,4746
|
|
49
51
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/lambda.js,sha256=MZS-MK-rCX6B5FPUiecss3a5wqSbSm--6mMp6Pu-Tu4,11598
|
|
50
52
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/nodejs-lambda.d.ts,sha256=LwC890Vt5ilvPpMhqRt8X0eOycQHa_vAsCeBf3KoKik,595
|
|
@@ -68,7 +70,7 @@ vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/get-writable-director
|
|
|
68
70
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/glob.d.ts,sha256=wEBK0FOg-tOiWcp-QZLtA2r5bRbibV-Ic75A5qg2bFk,364
|
|
69
71
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/glob.js,sha256=SRM_-ufdBHgeqJaW_nBwujRjmfjLsxbHFho5k5tO1bY,4519
|
|
70
72
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/node-version.d.ts,sha256=_VdEAqvrWqkBmCkv75b_0nHcDJ9kJZ9xMQINXggufBk,933
|
|
71
|
-
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/node-version.js,sha256
|
|
73
|
+
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/node-version.js,sha256=txMFCsuu6Mj6Ty9IftiQU2VqK5F9EfbPS0Os3V3Fp68,7497
|
|
72
74
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/normalize-path.d.ts,sha256=pMZyTNN1scwUc7cBCWEk8-lwxI5KIjazfNLqkInqVrg,116
|
|
73
75
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/normalize-path.js,sha256=mdFXSxNkmBBpEs5szUMVt7yVFcnTANXt84_BnyNqpBI,1188
|
|
74
76
|
vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/read-config-file.d.ts,sha256=KO7AYZGrouVIOwaCYyOoqyVd6e7UFrZa9yWqsoHqU4Y,88
|
|
@@ -103,7 +105,7 @@ vercel_cli/vendor/node_modules/@vercel/python/vc_init.py,sha256=A7949hQi18B9yqPk
|
|
|
103
105
|
vercel_cli/vendor/node_modules/@vercel/python/vc_init_dev_asgi.py,sha256=pV9s5Jz4AS_JswthCOP3L6SPWVgk_2kRD1REgA9GKIQ,3078
|
|
104
106
|
vercel_cli/vendor/node_modules/@vercel/python/vc_init_dev_wsgi.py,sha256=pnNGrPJtPF9OdioaiIdD_OgA3qdio4HqGmKaenogtAk,4078
|
|
105
107
|
vercel_cli/vendor/node_modules/@vercel/python/dist/index.js,sha256=fAumiV0j6qLydhmE1mcuKhUarPee09cOpcOlwrUOz_0,136129
|
|
106
|
-
vercel_cli-48.6.
|
|
107
|
-
vercel_cli-48.6.
|
|
108
|
-
vercel_cli-48.6.
|
|
109
|
-
vercel_cli-48.6.
|
|
108
|
+
vercel_cli-48.6.7.dist-info/METADATA,sha256=beXsN1IsJyLqfs5RepFOgRFL-oFGXTtWV17u5bPdQZk,7085
|
|
109
|
+
vercel_cli-48.6.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
110
|
+
vercel_cli-48.6.7.dist-info/entry_points.txt,sha256=3iHkg20gi2BZorK1g5UlyZY3tN5E1vJX6PX5-ibn9fI,83
|
|
111
|
+
vercel_cli-48.6.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|