Socket
Socket
Sign inDemoInstall

@vercel/build-utils

Package Overview
Dependencies
Maintainers
65
Versions
317
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/build-utils - npm Package Compare versions

Comparing version 2.12.3-canary.7 to 2.12.3-canary.8

4

dist/prerender.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc