@vercel/build-utils 6.4.0 → 6.5.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
@@ -32006,9 +32006,10 @@ exports.NodejsLambda = NodejsLambda;
32006
32006
  Object.defineProperty(exports, "__esModule", ({ value: true }));
32007
32007
  exports.Prerender = void 0;
32008
32008
  class Prerender {
32009
- constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, initialHeaders, initialStatus, passQuery, }) {
32009
+ constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, initialHeaders, initialStatus, passQuery, sourcePath, }) {
32010
32010
  this.type = 'Prerender';
32011
32011
  this.expiration = expiration;
32012
+ this.sourcePath = sourcePath;
32012
32013
  this.lambda = lambda;
32013
32014
  if (this.lambda) {
32014
32015
  // "ISR" is the platform default lambda label for prerender functions
@@ -10,6 +10,7 @@ interface PrerenderOptions {
10
10
  initialHeaders?: Record<string, string>;
11
11
  initialStatus?: number;
12
12
  passQuery?: boolean;
13
+ sourcePath?: string;
13
14
  }
14
15
  export declare class Prerender {
15
16
  type: 'Prerender';
@@ -22,6 +23,7 @@ export declare class Prerender {
22
23
  initialHeaders?: Record<string, string>;
23
24
  initialStatus?: number;
24
25
  passQuery?: boolean;
25
- constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, initialHeaders, initialStatus, passQuery, }: PrerenderOptions);
26
+ sourcePath?: string;
27
+ constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, initialHeaders, initialStatus, passQuery, sourcePath, }: PrerenderOptions);
26
28
  }
27
29
  export {};
package/dist/prerender.js CHANGED
@@ -2,9 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Prerender = void 0;
4
4
  class Prerender {
5
- constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, initialHeaders, initialStatus, passQuery, }) {
5
+ constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, initialHeaders, initialStatus, passQuery, sourcePath, }) {
6
6
  this.type = 'Prerender';
7
7
  this.expiration = expiration;
8
+ this.sourcePath = sourcePath;
8
9
  this.lambda = lambda;
9
10
  if (this.lambda) {
10
11
  // "ISR" is the platform default lambda label for prerender functions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "6.4.0",
3
+ "version": "6.5.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": "b2c68f1301b6a5eb41b6261b7faac6a8fa4c53eb"
54
+ "gitHead": "ab9915af32e54338845f6ff32340dd0189474c55"
55
55
  }