@vercel/build-utils 6.2.2 → 6.2.3

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.
package/dist/errors.js CHANGED
@@ -17,7 +17,7 @@ class NowBuildError extends Error {
17
17
  }
18
18
  exports.NowBuildError = NowBuildError;
19
19
  function getPrettyError(obj) {
20
- const docsUrl = 'https://vercel.com/docs/configuration';
20
+ const docsUrl = 'https://vercel.com/docs/concepts/projects/project-configuration';
21
21
  try {
22
22
  const { dataPath, params, message: ajvMessage } = obj;
23
23
  const prop = getTopLevelPropertyName(dataPath);
@@ -35,7 +35,7 @@ function getPrettyError(obj) {
35
35
  return new NowBuildError({
36
36
  code: 'INVALID_VERCEL_CONFIG',
37
37
  message: message,
38
- link: prop ? `${docsUrl}#project/${prop.toLowerCase()}` : docsUrl,
38
+ link: prop ? `${docsUrl}#${prop.toLowerCase()}` : docsUrl,
39
39
  action: 'View Documentation',
40
40
  });
41
41
  }
package/dist/index.js CHANGED
@@ -30284,7 +30284,7 @@ class NowBuildError extends Error {
30284
30284
  }
30285
30285
  exports.NowBuildError = NowBuildError;
30286
30286
  function getPrettyError(obj) {
30287
- const docsUrl = 'https://vercel.com/docs/configuration';
30287
+ const docsUrl = 'https://vercel.com/docs/concepts/projects/project-configuration';
30288
30288
  try {
30289
30289
  const { dataPath, params, message: ajvMessage } = obj;
30290
30290
  const prop = getTopLevelPropertyName(dataPath);
@@ -30302,7 +30302,7 @@ function getPrettyError(obj) {
30302
30302
  return new NowBuildError({
30303
30303
  code: 'INVALID_VERCEL_CONFIG',
30304
30304
  message: message,
30305
- link: prop ? `${docsUrl}#project/${prop.toLowerCase()}` : docsUrl,
30305
+ link: prop ? `${docsUrl}#${prop.toLowerCase()}` : docsUrl,
30306
30306
  action: 'View Documentation',
30307
30307
  });
30308
30308
  }
@@ -31993,10 +31993,8 @@ exports.functionsSchema = {
31993
31993
  maxLength: 256,
31994
31994
  },
31995
31995
  memory: {
31996
- // Number between 128 and 3008 in steps of 64
31997
- enum: Object.keys(Array.from({ length: 50 }))
31998
- .slice(2, 48)
31999
- .map(x => Number(x) * 64),
31996
+ minimum: 128,
31997
+ maximum: 3008,
32000
31998
  },
32001
31999
  maxDuration: {
32002
32000
  type: 'number',
package/dist/schemas.d.ts CHANGED
@@ -13,7 +13,8 @@ export declare const functionsSchema: {
13
13
  maxLength: number;
14
14
  };
15
15
  memory: {
16
- enum: number[];
16
+ minimum: number;
17
+ maximum: number;
17
18
  };
18
19
  maxDuration: {
19
20
  type: string;
package/dist/schemas.js CHANGED
@@ -16,10 +16,8 @@ exports.functionsSchema = {
16
16
  maxLength: 256,
17
17
  },
18
18
  memory: {
19
- // Number between 128 and 3008 in steps of 64
20
- enum: Object.keys(Array.from({ length: 50 }))
21
- .slice(2, 48)
22
- .map(x => Number(x) * 64),
19
+ minimum: 128,
20
+ maximum: 3008,
23
21
  },
24
22
  maxDuration: {
25
23
  type: 'number',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -14,7 +14,7 @@
14
14
  "build": "node build",
15
15
  "test": "jest --env node --verbose --runInBand --bail",
16
16
  "test-unit": "pnpm test test/unit.*test.*",
17
- "test-integration-once": "pnpm test test/integration.test.ts"
17
+ "test-e2e": "pnpm test test/integration.test.ts"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@iarna/toml": "2.2.3",
@@ -51,5 +51,5 @@
51
51
  "typescript": "4.3.4",
52
52
  "yazl": "2.5.1"
53
53
  },
54
- "gitHead": "95a4dcfb33d813f1a0ef18d766232d42c876ce69"
54
+ "gitHead": "881e43a0e2d6daa2f7654ad16566960b00d412aa"
55
55
  }