@vercel/build-utils
Advanced tools
+8
-0
| # @vercel/build-utils | ||
| ## 13.4.1 | ||
| ### Patch Changes | ||
| - Add support for `functions[*].functionFailoverRegions` in `vercel.json` and build output config generation. ([#14969](https://github.com/vercel/vercel/pull/14969)) | ||
| This enables per-function failover region configuration instead of only top-level defaults for all functions. | ||
| ## 13.4.0 | ||
@@ -4,0 +12,0 @@ |
+3
-1
@@ -34,2 +34,3 @@ /// <reference types="node" /> | ||
| regions?: string[]; | ||
| functionFailoverRegions?: string[]; | ||
| supportsMultiPayloads?: boolean; | ||
@@ -109,2 +110,3 @@ supportsWrapper?: boolean; | ||
| regions?: string[]; | ||
| functionFailoverRegions?: string[]; | ||
| /** | ||
@@ -157,2 +159,2 @@ * @deprecated Use `await lambda.createZip()` instead. | ||
| export declare function createZip(files: Files): Promise<Buffer>; | ||
| export declare function getLambdaOptionsFromFunction({ sourceFile, config, }: GetLambdaOptionsFromFunctionOptions): Promise<Pick<LambdaOptions, 'architecture' | 'memory' | 'maxDuration' | 'regions' | 'experimentalTriggers' | 'supportsCancellation'>>; | ||
| export declare function getLambdaOptionsFromFunction({ sourceFile, config, }: GetLambdaOptionsFromFunctionOptions): Promise<Pick<LambdaOptions, 'architecture' | 'memory' | 'maxDuration' | 'regions' | 'functionFailoverRegions' | 'experimentalTriggers' | 'supportsCancellation'>>; |
+13
-0
@@ -88,2 +88,3 @@ "use strict"; | ||
| regions, | ||
| functionFailoverRegions, | ||
| supportsMultiPayloads, | ||
@@ -158,2 +159,12 @@ supportsWrapper, | ||
| } | ||
| if (functionFailoverRegions !== void 0) { | ||
| (0, import_assert.default)( | ||
| Array.isArray(functionFailoverRegions), | ||
| '"functionFailoverRegions" is not an Array' | ||
| ); | ||
| (0, import_assert.default)( | ||
| functionFailoverRegions.every((r) => typeof r === "string"), | ||
| '"functionFailoverRegions" is not a string Array' | ||
| ); | ||
| } | ||
| if (framework !== void 0) { | ||
@@ -267,2 +278,3 @@ (0, import_assert.default)(typeof framework === "object", '"framework" is not an object'); | ||
| this.regions = regions; | ||
| this.functionFailoverRegions = functionFailoverRegions; | ||
| this.zipBuffer = "zipBuffer" in opts ? opts.zipBuffer : void 0; | ||
@@ -364,2 +376,3 @@ this.supportsMultiPayloads = supportsMultiPayloads; | ||
| regions: fn.regions, | ||
| functionFailoverRegions: fn.functionFailoverRegions, | ||
| experimentalTriggers, | ||
@@ -366,0 +379,0 @@ supportsCancellation: fn.supportsCancellation |
@@ -34,2 +34,8 @@ export declare const functionsSchema: { | ||
| }; | ||
| functionFailoverRegions: { | ||
| type: string; | ||
| items: { | ||
| type: string; | ||
| }; | ||
| }; | ||
| includeFiles: { | ||
@@ -36,0 +42,0 @@ type: string; |
+6
-0
@@ -127,2 +127,8 @@ "use strict"; | ||
| }, | ||
| functionFailoverRegions: { | ||
| type: "array", | ||
| items: { | ||
| type: "string" | ||
| } | ||
| }, | ||
| includeFiles: { | ||
@@ -129,0 +135,0 @@ type: "string", |
+1
-0
@@ -358,2 +358,3 @@ /// <reference types="node" /> | ||
| regions?: string[]; | ||
| functionFailoverRegions?: string[]; | ||
| runtime?: string; | ||
@@ -360,0 +361,0 @@ includeFiles?: string; |
+3
-3
| { | ||
| "name": "@vercel/build-utils", | ||
| "version": "13.4.0", | ||
| "version": "13.4.1", | ||
| "license": "Apache-2.0", | ||
@@ -53,4 +53,4 @@ "main": "./dist/index.js", | ||
| "json5": "2.2.3", | ||
| "@vercel/routing-utils": "5.3.2", | ||
| "@vercel/error-utils": "2.0.3" | ||
| "@vercel/error-utils": "2.0.3", | ||
| "@vercel/routing-utils": "5.3.3" | ||
| }, | ||
@@ -57,0 +57,0 @@ "scripts": { |
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
1406647
0.14%32250
0.15%