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

@vercel/build-utils

Package Overview
Dependencies
Maintainers
2
Versions
403
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/build-utils - npm Package Compare versions

Comparing version
13.2.16
to
13.2.17
+8
-0
CHANGELOG.md
# @vercel/build-utils
## 13.2.17
### Patch Changes
- Add `exposeErrBody` optional boolean property to Prerender object ([#14845](https://github.com/vercel/vercel/pull/14845))
- Move backends builder detection to detectBuilders phase ([#14830](https://github.com/vercel/vercel/pull/14830))
## 13.2.16

@@ -4,0 +12,0 @@

@@ -8,3 +8,11 @@ import { Builder } from '.';

export declare const RUNTIME_FRAMEWORKS: readonly ["python"];
/**
* List of framework-specific backend builders that get replaced by UNIFIED_BACKEND_BUILDER
* when experimental backends is enabled
*/
export declare const BACKEND_BUILDERS: readonly ["@vercel/express", "@vercel/hono", "@vercel/h3", "@vercel/koa", "@vercel/nestjs", "@vercel/fastify", "@vercel/elysia"];
/**
* The unified backend builder that replaces framework-specific backend builders
*/
export declare const UNIFIED_BACKEND_BUILDER: "@vercel/backends";
export type BackendFramework = (typeof BACKEND_FRAMEWORKS)[number];

@@ -11,0 +19,0 @@ export type PythonFramework = (typeof PYTHON_FRAMEWORKS)[number];

@@ -25,2 +25,3 @@ "use strict";

RUNTIME_FRAMEWORKS: () => RUNTIME_FRAMEWORKS,
UNIFIED_BACKEND_BUILDER: () => UNIFIED_BACKEND_BUILDER,
isBackendBuilder: () => isBackendBuilder,

@@ -59,2 +60,3 @@ isBackendFramework: () => isBackendFramework,

];
const UNIFIED_BACKEND_BUILDER = "@vercel/backends";
function isBackendFramework(framework) {

@@ -80,2 +82,4 @@ if (!framework)

return false;
if (builder.use === UNIFIED_BACKEND_BUILDER)
return true;
const use = builder.use;

@@ -93,2 +97,3 @@ return BACKEND_BUILDERS.includes(use);

RUNTIME_FRAMEWORKS,
UNIFIED_BACKEND_BUILDER,
isBackendBuilder,

@@ -95,0 +100,0 @@ isBackendFramework,

+1
-1

@@ -35,3 +35,3 @@ import FileBlob from './file-blob';

export { generateNodeBuilderFunctions } from './generate-node-builder-functions';
export { BACKEND_FRAMEWORKS, BackendFramework, isBackendFramework, isBackendBuilder, isExperimentalBackendsEnabled, isExperimentalBackendsWithoutIntrospectionEnabled, shouldUseExperimentalBackends, PYTHON_FRAMEWORKS, PythonFramework, isPythonFramework, } from './framework-helpers';
export { BACKEND_FRAMEWORKS, BACKEND_BUILDERS, UNIFIED_BACKEND_BUILDER, BackendFramework, isBackendFramework, isBackendBuilder, isExperimentalBackendsEnabled, isExperimentalBackendsWithoutIntrospectionEnabled, shouldUseExperimentalBackends, PYTHON_FRAMEWORKS, PythonFramework, isPythonFramework, } from './framework-helpers';
export * from './python';

@@ -19,2 +19,3 @@ import type { File, HasField, Chain } from './types';

chain?: Chain;
exposeErrBody?: boolean;
}

@@ -47,4 +48,5 @@ export declare class Prerender {

chain?: Chain;
constructor({ expiration, staleExpiration, lambda, fallback, group, bypassToken, allowQuery, allowHeader, initialHeaders, initialStatus, passQuery, sourcePath, experimentalBypassFor, experimentalStreamingLambdaPath, chain, }: PrerenderOptions);
exposeErrBody?: boolean;
constructor({ expiration, staleExpiration, lambda, fallback, group, bypassToken, allowQuery, allowHeader, initialHeaders, initialStatus, passQuery, sourcePath, experimentalBypassFor, experimentalStreamingLambdaPath, chain, exposeErrBody, }: PrerenderOptions);
}
export {};

@@ -40,3 +40,4 @@ "use strict";

experimentalStreamingLambdaPath,
chain
chain,
exposeErrBody
}) {

@@ -166,2 +167,9 @@ this.type = "Prerender";

}
if (exposeErrBody === true) {
this.exposeErrBody = true;
} else if (typeof exposeErrBody !== "boolean" && typeof exposeErrBody !== "undefined") {
throw new Error(
`The \`exposeErrBody\` argument for \`Prerender\` must be a boolean.`
);
}
}

@@ -168,0 +176,0 @@ }

{
"name": "@vercel/build-utils",
"version": "13.2.16",
"version": "13.2.17",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is too big to display