@vercel/build-utils 5.4.4 → 5.5.1

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.
@@ -33,5 +33,7 @@ export declare class EdgeFunction {
33
33
  name: string;
34
34
  path: string;
35
35
  }[];
36
+ /** The regions where the edge function will be executed on */
37
+ regions?: 'auto' | string[] | 'all' | 'default';
36
38
  constructor(params: Omit<EdgeFunction, 'type'>);
37
39
  }
@@ -13,6 +13,7 @@ class EdgeFunction {
13
13
  this.files = params.files;
14
14
  this.envVarsInUse = params.envVarsInUse;
15
15
  this.assets = params.assets;
16
+ this.regions = params.regions;
16
17
  }
17
18
  }
18
19
  exports.EdgeFunction = EdgeFunction;
package/dist/errors.js CHANGED
@@ -33,7 +33,7 @@ function getPrettyError(obj) {
33
33
  message += `${ajvMessage}.`;
34
34
  }
35
35
  return new NowBuildError({
36
- code: 'DEV_VALIDATE_CONFIG',
36
+ code: 'INVALID_VERCEL_CONFIG',
37
37
  message: message,
38
38
  link: prop ? `${docsUrl}#project/${prop.toLowerCase()}` : docsUrl,
39
39
  action: 'View Documentation',
@@ -41,7 +41,7 @@ function getPrettyError(obj) {
41
41
  }
42
42
  catch (e) {
43
43
  return new NowBuildError({
44
- code: 'DEV_VALIDATE_CONFIG',
44
+ code: 'INVALID_VERCEL_CONFIG',
45
45
  message: `Failed to validate configuration.`,
46
46
  link: docsUrl,
47
47
  action: 'View Documentation',
@@ -14,7 +14,7 @@ const allOptions = [
14
14
  major: 12,
15
15
  range: '12.x',
16
16
  runtime: 'nodejs12.x',
17
- discontinueDate: new Date('2022-10-01'),
17
+ discontinueDate: new Date('2022-10-03'),
18
18
  },
19
19
  {
20
20
  major: 10,
package/dist/index.js CHANGED
@@ -30189,6 +30189,7 @@ class EdgeFunction {
30189
30189
  this.files = params.files;
30190
30190
  this.envVarsInUse = params.envVarsInUse;
30191
30191
  this.assets = params.assets;
30192
+ this.regions = params.regions;
30192
30193
  }
30193
30194
  }
30194
30195
  exports.EdgeFunction = EdgeFunction;
@@ -30235,7 +30236,7 @@ function getPrettyError(obj) {
30235
30236
  message += `${ajvMessage}.`;
30236
30237
  }
30237
30238
  return new NowBuildError({
30238
- code: 'DEV_VALIDATE_CONFIG',
30239
+ code: 'INVALID_VERCEL_CONFIG',
30239
30240
  message: message,
30240
30241
  link: prop ? `${docsUrl}#project/${prop.toLowerCase()}` : docsUrl,
30241
30242
  action: 'View Documentation',
@@ -30243,7 +30244,7 @@ function getPrettyError(obj) {
30243
30244
  }
30244
30245
  catch (e) {
30245
30246
  return new NowBuildError({
30246
- code: 'DEV_VALIDATE_CONFIG',
30247
+ code: 'INVALID_VERCEL_CONFIG',
30247
30248
  message: `Failed to validate configuration.`,
30248
30249
  link: docsUrl,
30249
30250
  action: 'View Documentation',
@@ -30710,7 +30711,7 @@ const allOptions = [
30710
30711
  major: 12,
30711
30712
  range: '12.x',
30712
30713
  runtime: 'nodejs12.x',
30713
- discontinueDate: new Date('2022-10-01'),
30714
+ discontinueDate: new Date('2022-10-03'),
30714
30715
  },
30715
30716
  {
30716
30717
  major: 10,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "5.4.4",
3
+ "version": "5.5.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -47,5 +47,5 @@
47
47
  "typescript": "4.3.4",
48
48
  "yazl": "2.5.1"
49
49
  },
50
- "gitHead": "27f4034bdce427953fea094b1c4dfbfb00342b54"
50
+ "gitHead": "bf5cfa9a41f8c1f9e2a3d3fc30735708ca72ad09"
51
51
  }