Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vercel/build-utils

Package Overview
Dependencies
Maintainers
7
Versions
318
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 5.5.9 to 5.6.0

7

dist/lambda.d.ts

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

3

dist/lambda.js

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

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