@vercel/build-utils
Advanced tools
Comparing version 2.12.3-canary.7 to 2.12.3-canary.8
@@ -11,2 +11,3 @@ import FileBlob from './file-blob'; | ||
bypassToken?: string | null; | ||
allowQuery?: string[]; | ||
} | ||
@@ -20,4 +21,5 @@ export declare class Prerender { | ||
bypassToken: string | null; | ||
constructor({ expiration, lambda, fallback, group, bypassToken, }: PrerenderOptions); | ||
allowQuery?: string[]; | ||
constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, }: PrerenderOptions); | ||
} | ||
export {}; |
@@ -5,3 +5,3 @@ "use strict"; | ||
class Prerender { | ||
constructor({ expiration, lambda, fallback, group, bypassToken, }) { | ||
constructor({ expiration, lambda, fallback, group, bypassToken, allowQuery, }) { | ||
this.type = 'Prerender'; | ||
@@ -32,4 +32,13 @@ this.expiration = expiration; | ||
this.fallback = fallback; | ||
if (allowQuery !== undefined) { | ||
if (!Array.isArray(allowQuery)) { | ||
throw new Error('The `allowQuery` argument for `Prerender` must be Array.'); | ||
} | ||
if (!allowQuery.every(q => typeof q === 'string')) { | ||
throw new Error('The `allowQuery` argument for `Prerender` must be Array of strings.'); | ||
} | ||
this.allowQuery = allowQuery; | ||
} | ||
} | ||
} | ||
exports.Prerender = Prerender; |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "2.12.3-canary.7", | ||
"version": "2.12.3-canary.8", | ||
"license": "MIT", | ||
@@ -52,3 +52,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "4e52f8532baada6d9c2e9c537784abcd8f9fd65b" | ||
"gitHead": "f7de7227b437b6cd6cb98bdb1c04c5f75483bd9f" | ||
} |
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
1336964
32614