You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@vercel/backends

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/backends - npm Package Compare versions

Comparing version
0.0.29
to
0.0.30
+6
-2
./dist/index.mjs
import { builtinModules, createRequire } from "node:module";
import { delimiter, dirname, extname, join } from "path";
import { FileBlob, FileFsRef, NodejsLambda, Span, debug, defaultCachePathGlob, download, execCommand, getEnvForPackageManager, getNodeBinPaths, getNodeVersion, glob, isBackendFramework, isExperimentalBackendsWithoutIntrospectionEnabled, runNpmInstall, runPackageJsonScript, scanParentDirs } from "@vercel/build-utils";
import { FileBlob, FileFsRef, NodejsLambda, Span, debug, defaultCachePathGlob, download, execCommand, getEnvForPackageManager, getNodeBinPaths, getNodeVersion, glob, isBackendFramework, isBunVersion, isExperimentalBackendsWithoutIntrospectionEnabled, runNpmInstall, runPackageJsonScript, scanParentDirs } from "@vercel/build-utils";
import { createWriteStream, existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, unlinkSync, writeFileSync } from "node:fs";

@@ -686,2 +686,3 @@ import { lstat, readFile, rm } from "node:fs/promises";

mixedModules: true,
conditions: args.conditions,
ignore: args.ignoreNodeModules ? (path) => path.includes("node_modules") : void 0,

@@ -907,2 +908,3 @@ async readFile(fsPath) {

if (!handler) throw new Error(`Unable to resolve build handler for entrypoint: ${args.entrypoint}`);
console.log(Colors.gray(`${Colors.bold(Colors.cyan("✓"))} Build complete`));
return {

@@ -1413,3 +1415,4 @@ files,

const downloadResult = await downloadInstallAndBundle(args);
const nodeVersion = await getNodeVersion(args.workPath);
const nodeVersion = await getNodeVersion(args.workPath, void 0, args.config, args.meta);
const isBun = isBunVersion(nodeVersion);
const builderName = "@vercel/backends";

@@ -1449,2 +1452,3 @@ const span = args.span ?? new Span({ name: builderName });

ignoreNodeModules: false,
conditions: isBun ? ["bun"] : void 0,
span: buildSpan

@@ -1451,0 +1455,0 @@ });

import { builtinModules, createRequire } from "node:module";
import { delimiter, dirname, extname, join } from "path";
import { FileBlob, FileFsRef, NodejsLambda, Span, debug, defaultCachePathGlob, download, execCommand, getEnvForPackageManager, getNodeBinPaths, getNodeVersion, glob, isBackendFramework, isExperimentalBackendsWithoutIntrospectionEnabled, runNpmInstall, runPackageJsonScript, scanParentDirs } from "@vercel/build-utils";
import { FileBlob, FileFsRef, NodejsLambda, Span, debug, defaultCachePathGlob, download, execCommand, getEnvForPackageManager, getNodeBinPaths, getNodeVersion, glob, isBackendFramework, isBunVersion, isExperimentalBackendsWithoutIntrospectionEnabled, runNpmInstall, runPackageJsonScript, scanParentDirs } from "@vercel/build-utils";
import { createWriteStream, existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, unlinkSync, writeFileSync } from "node:fs";

@@ -686,2 +686,3 @@ import { lstat, readFile, rm } from "node:fs/promises";

mixedModules: true,
conditions: args.conditions,
ignore: args.ignoreNodeModules ? (path) => path.includes("node_modules") : void 0,

@@ -907,2 +908,3 @@ async readFile(fsPath) {

if (!handler) throw new Error(`Unable to resolve build handler for entrypoint: ${args.entrypoint}`);
console.log(Colors.gray(`${Colors.bold(Colors.cyan("✓"))} Build complete`));
return {

@@ -1413,3 +1415,4 @@ files,

const downloadResult = await downloadInstallAndBundle(args);
const nodeVersion = await getNodeVersion(args.workPath);
const nodeVersion = await getNodeVersion(args.workPath, void 0, args.config, args.meta);
const isBun = isBunVersion(nodeVersion);
const builderName = "@vercel/backends";

@@ -1449,2 +1452,3 @@ const span = args.span ?? new Span({ name: builderName });

ignoreNodeModules: false,
conditions: isBun ? ["bun"] : void 0,
span: buildSpan

@@ -1451,0 +1455,0 @@ });

@@ -12,2 +12,31 @@ import { builtinModules } from "node:module";

//#region src/cervel/utils.ts
const noColor = globalThis.process?.env?.NO_COLOR === "1" || globalThis.process?.env?.TERM === "dumb";
const resets = {
1: 22,
31: 39,
32: 39,
33: 39,
34: 39,
35: 39,
36: 39,
90: 39
};
const _c = (c) => (text) => {
if (noColor) return text;
return `\u001B[${c}m${text}\u001B[${resets[c] ?? 0}m`;
};
const Colors = {
bold: _c(1),
red: _c(31),
green: _c(32),
yellow: _c(33),
blue: _c(34),
magenta: _c(35),
cyan: _c(36),
gray: _c(90),
url: (title, url) => noColor ? `[${title}](${url})` : `\u001B]8;;${url}\u001B\\${title}\u001B]8;;\u001B\\`
};
//#endregion
//#region src/rolldown/resolve-format.ts

@@ -73,2 +102,3 @@ const resolveEntrypointAndFormat = async (args) => {

mixedModules: true,
conditions: args.conditions,
ignore: args.ignoreNodeModules ? (path) => path.includes("node_modules") : void 0,

@@ -294,2 +324,3 @@ async readFile(fsPath) {

if (!handler) throw new Error(`Unable to resolve build handler for entrypoint: ${args.entrypoint}`);
console.log(Colors.gray(`${Colors.bold(Colors.cyan("✓"))} Build complete`));
return {

@@ -296,0 +327,0 @@ files,

{
"name": "@vercel/backends",
"version": "0.0.29",
"version": "0.0.30",
"license": "Apache-2.0",

@@ -37,3 +37,3 @@ "main": "./dist/index.mjs",

"zod": "3.22.4",
"@vercel/build-utils": "13.3.2"
"@vercel/build-utils": "13.3.3"
},

@@ -40,0 +40,0 @@ "peerDependencies": {