@vercel/build-utils 6.1.0 → 6.2.0

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/index.js CHANGED
@@ -31851,6 +31851,7 @@ async function getLambdaOptionsFromFunction({ sourceFile, config, }) {
31851
31851
  return {
31852
31852
  memory: fn.memory,
31853
31853
  maxDuration: fn.maxDuration,
31854
+ cron: fn.cron,
31854
31855
  };
31855
31856
  }
31856
31857
  }
@@ -31992,6 +31993,11 @@ exports.functionsSchema = {
31992
31993
  type: 'string',
31993
31994
  maxLength: 256,
31994
31995
  },
31996
+ cron: {
31997
+ type: 'string',
31998
+ minLength: 9,
31999
+ maxLength: 256,
32000
+ },
31995
32001
  },
31996
32002
  },
31997
32003
  },
package/dist/lambda.d.ts CHANGED
@@ -66,5 +66,5 @@ export declare class Lambda {
66
66
  */
67
67
  export declare function createLambda(opts: LambdaOptions): Promise<Lambda>;
68
68
  export declare function createZip(files: Files): Promise<Buffer>;
69
- export declare function getLambdaOptionsFromFunction({ sourceFile, config, }: GetLambdaOptionsFromFunctionOptions): Promise<Pick<LambdaOptions, 'memory' | 'maxDuration'>>;
69
+ export declare function getLambdaOptionsFromFunction({ sourceFile, config, }: GetLambdaOptionsFromFunctionOptions): Promise<Pick<LambdaOptions, 'memory' | 'maxDuration' | 'cron'>>;
70
70
  export {};
package/dist/lambda.js CHANGED
@@ -133,6 +133,7 @@ async function getLambdaOptionsFromFunction({ sourceFile, config, }) {
133
133
  return {
134
134
  memory: fn.memory,
135
135
  maxDuration: fn.maxDuration,
136
+ cron: fn.cron,
136
137
  };
137
138
  }
138
139
  }
package/dist/schemas.d.ts CHANGED
@@ -28,6 +28,11 @@ export declare const functionsSchema: {
28
28
  type: string;
29
29
  maxLength: number;
30
30
  };
31
+ cron: {
32
+ type: string;
33
+ minLength: number;
34
+ maxLength: number;
35
+ };
31
36
  };
32
37
  };
33
38
  };
package/dist/schemas.js CHANGED
@@ -34,6 +34,11 @@ exports.functionsSchema = {
34
34
  type: 'string',
35
35
  maxLength: 256,
36
36
  },
37
+ cron: {
38
+ type: 'string',
39
+ minLength: 9,
40
+ maxLength: 256,
41
+ },
37
42
  },
38
43
  },
39
44
  },
package/dist/types.d.ts CHANGED
@@ -282,6 +282,7 @@ export interface BuilderFunctions {
282
282
  runtime?: string;
283
283
  includeFiles?: string;
284
284
  excludeFiles?: string;
285
+ cron?: Cron;
285
286
  };
286
287
  }
287
288
  export interface ProjectSettings {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -51,5 +51,5 @@
51
51
  "typescript": "4.3.4",
52
52
  "yazl": "2.5.1"
53
53
  },
54
- "gitHead": "a4d16c681a7e85f64a2d78432d499c599b398bde"
54
+ "gitHead": "a585969dd3b77a4ed36d6a2ca11b34f9050489f1"
55
55
  }