@vercel/build-utils
Advanced tools
+8
-0
| # @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 @@ } |
+1
-1
| { | ||
| "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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 11 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 3 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 11 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 3 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1454948
0.12%33739
0.11%