@vercel/build-utils
Advanced tools
Comparing version 6.2.0 to 6.2.1
@@ -12,2 +12,3 @@ import { File } from './types'; | ||
initialStatus?: number; | ||
passQuery?: boolean; | ||
} | ||
@@ -24,4 +25,5 @@ export declare class Prerender { | ||
initialStatus?: number; | ||
constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, initialHeaders, initialStatus, }: PrerenderOptions); | ||
passQuery?: boolean; | ||
constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, initialHeaders, initialStatus, passQuery, }: PrerenderOptions); | ||
} | ||
export {}; |
@@ -5,3 +5,3 @@ "use strict"; | ||
class Prerender { | ||
constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, initialHeaders, initialStatus, }) { | ||
constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, initialHeaders, initialStatus, passQuery, }) { | ||
this.type = 'Prerender'; | ||
@@ -19,2 +19,9 @@ this.expiration = expiration; | ||
this.group = group; | ||
if (passQuery === true) { | ||
this.passQuery = true; | ||
} | ||
else if (typeof passQuery !== 'boolean' && | ||
typeof passQuery !== 'undefined') { | ||
throw new Error(`The \`passQuery\` argument for \`Prerender\` must be a boolean.`); | ||
} | ||
if (bypassToken == null) { | ||
@@ -21,0 +28,0 @@ this.bypassToken = null; |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "6.2.0", | ||
"version": "6.2.1", | ||
"license": "MIT", | ||
@@ -54,3 +54,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "a585969dd3b77a4ed36d6a2ca11b34f9050489f1" | ||
"gitHead": "c1c8b454cc29de4bd306b87078f36d6416ceb90f" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1536827
31550