@vercel/build-utils
Advanced tools
Comparing version 5.5.9 to 5.6.0
@@ -18,2 +18,3 @@ /// <reference types="node" /> | ||
experimentalResponseStreaming?: boolean; | ||
operationType?: string; | ||
} | ||
@@ -38,2 +39,8 @@ export interface LambdaOptionsWithFiles extends LambdaOptionsBase { | ||
type: 'Lambda'; | ||
/** | ||
* This is a label for the type of Lambda a framework is producing. | ||
* The value can be any string that makes sense for a given framework. | ||
* Examples: "API", "ISR", "SSR", "SSG", "Render", "Resource" | ||
*/ | ||
operationType?: string; | ||
files?: Files; | ||
@@ -40,0 +47,0 @@ handler: string; |
@@ -16,3 +16,3 @@ "use strict"; | ||
constructor(opts) { | ||
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, experimentalResponseStreaming, } = opts; | ||
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, experimentalResponseStreaming, operationType, } = opts; | ||
if ('files' in opts) { | ||
@@ -48,2 +48,3 @@ assert_1.default(typeof opts.files === 'object', '"files" must be an object'); | ||
this.type = 'Lambda'; | ||
this.operationType = operationType; | ||
this.files = 'files' in opts ? opts.files : undefined; | ||
@@ -50,0 +51,0 @@ this.handler = handler; |
@@ -5,3 +5,3 @@ import { File } from './types'; | ||
expiration: number | false; | ||
lambda: Lambda; | ||
lambda?: Lambda; | ||
fallback: File | null; | ||
@@ -17,3 +17,3 @@ group?: number; | ||
expiration: number | false; | ||
lambda: Lambda; | ||
lambda?: Lambda; | ||
fallback: File | null; | ||
@@ -20,0 +20,0 @@ group?: number; |
@@ -9,2 +9,6 @@ "use strict"; | ||
this.lambda = lambda; | ||
if (this.lambda) { | ||
// "ISR" is the platform default lambda label for prerender functions | ||
this.lambda.operationType = this.lambda.operationType || 'ISR'; | ||
} | ||
if (typeof group !== 'undefined' && | ||
@@ -11,0 +15,0 @@ (group <= 0 || !Number.isInteger(group))) { |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "5.5.9", | ||
"version": "5.6.0", | ||
"license": "MIT", | ||
@@ -50,3 +50,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "7003531d5db7895fc3b2fa940c2d83b6e75bbd9e" | ||
"gitHead": "a19447f9cdc8c7be8aa3646dfb441dd9469d2ed3" | ||
} |
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
1529427
31415