@vercel/backends 0.0.19 → 0.0.20

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.mjs +5 -3
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -54368,7 +54368,6 @@ ${error.message}`;
54368
54368
  getLatestNodeVersion: () => getLatestNodeVersion,
54369
54369
  getNodeBinPath: () => getNodeBinPath,
54370
54370
  getNodeBinPaths: () => getNodeBinPaths$1,
54371
- getNodeVersion: () => getNodeVersion$1,
54372
54371
  getOsRelease: () => getOsRelease,
54373
54372
  getPackageJson: () => getPackageJson$1,
54374
54373
  getPathForPackageManager: () => getPathForPackageManager,
@@ -54376,6 +54375,7 @@ ${error.message}`;
54376
54375
  getPrefixedEnvVars: () => getPrefixedEnvVars,
54377
54376
  getPrettyError: () => getPrettyError,
54378
54377
  getProvidedRuntime: () => getProvidedRuntime,
54378
+ getRuntimeNodeVersion: () => getRuntimeNodeVersion$1,
54379
54379
  getScriptName: () => getScriptName$1,
54380
54380
  getSpawnOptions: () => getSpawnOptions$1,
54381
54381
  getSupportedBunVersion: () => getSupportedBunVersion,
@@ -55464,7 +55464,7 @@ ${error.message}`;
55464
55464
  }
55465
55465
  return opts;
55466
55466
  }
55467
- async function getNodeVersion$1(destPath, fallbackVersion = process.env.VERCEL_PROJECT_SETTINGS_NODE_VERSION, config = {}, meta = {}, availableVersions = getAvailableNodeVersions()) {
55467
+ async function getRuntimeNodeVersion$1(destPath, fallbackVersion = process.env.VERCEL_PROJECT_SETTINGS_NODE_VERSION, config = {}, meta = {}, availableVersions = getAvailableNodeVersions()) {
55468
55468
  if (config.bunVersion) return getSupportedBunVersion(config.bunVersion);
55469
55469
  const latestVersion = getLatestNodeVersion(availableVersions);
55470
55470
  if (meta.isDev) {
@@ -56502,6 +56502,7 @@ ${entrypointsForMessage}`);
56502
56502
  "express",
56503
56503
  "hono",
56504
56504
  "h3",
56505
+ "koa",
56505
56506
  "nestjs",
56506
56507
  "fastify",
56507
56508
  "elysia"
@@ -56510,6 +56511,7 @@ ${entrypointsForMessage}`);
56510
56511
  "@vercel/express",
56511
56512
  "@vercel/hono",
56512
56513
  "@vercel/h3",
56514
+ "@vercel/koa",
56513
56515
  "@vercel/nestjs",
56514
56516
  "@vercel/fastify",
56515
56517
  "@vercel/elysia"
@@ -56582,7 +56584,7 @@ async function downloadInstallAndBundle(args) {
56582
56584
  const { entrypoint, files, workPath, meta, config, repoRootPath } = args;
56583
56585
  await (0, import_dist$3.download)(files, workPath, meta);
56584
56586
  const entrypointFsDirname = join(workPath, dirname(entrypoint));
56585
- const nodeVersion = await (0, import_dist$3.getNodeVersion)(entrypointFsDirname, void 0, config, meta);
56587
+ const nodeVersion = await (0, import_dist$3.getRuntimeNodeVersion)(entrypointFsDirname, void 0, config, meta);
56586
56588
  const spawnOpts = (0, import_dist$3.getSpawnOptions)(meta || {}, nodeVersion);
56587
56589
  const { cliType, lockfileVersion, packageJsonPackageManager, turboSupportsCorepackHome } = await (0, import_dist$3.scanParentDirs)(entrypointFsDirname, true, repoRootPath);
56588
56590
  spawnOpts.env = (0, import_dist$3.getEnvForPackageManager)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/backends",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.mjs",
6
6
  "homepage": "https://vercel.com/docs",
@@ -38,7 +38,7 @@
38
38
  "tsdown": "0.16.3",
39
39
  "vite": "^5.1.6",
40
40
  "vitest": "^2.0.1",
41
- "@vercel/build-utils": "13.2.6"
41
+ "@vercel/build-utils": "13.2.7"
42
42
  },
43
43
  "module": "./dist/index.mjs",
44
44
  "types": "./dist/index.d.mts",