Socket
Socket
Sign inDemoInstall

@vercel/build-utils

Package Overview
Dependencies
Maintainers
9
Versions
311
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 7.0.0 to 7.1.0

6

CHANGELOG.md
# @vercel/build-utils
## 7.1.0
### Minor Changes
- Support serverless function architecture ([#10392](https://github.com/vercel/vercel/pull/10392))
## 7.0.0

@@ -4,0 +10,0 @@

3

dist/lambda.d.ts

@@ -7,5 +7,7 @@ /// <reference types="node" />

export type LambdaOptions = LambdaOptionsWithFiles | LambdaOptionsWithZipBuffer;
export type LambdaArchitecture = 'x86_64' | 'arm64';
export interface LambdaOptionsBase {
handler: string;
runtime: string;
architecture?: LambdaArchitecture;
memory?: number;

@@ -53,2 +55,3 @@ maxDuration?: number;

runtime: string;
architecture?: LambdaArchitecture;
memory?: number;

@@ -55,0 +58,0 @@ maxDuration?: number;

@@ -16,3 +16,3 @@ "use strict";

constructor(opts) {
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, supportsResponseStreaming, experimentalResponseStreaming, operationType, framework, } = opts;
const { handler, runtime, maxDuration, architecture, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, supportsResponseStreaming, experimentalResponseStreaming, operationType, framework, } = opts;
if ('files' in opts) {

@@ -27,2 +27,5 @@ (0, assert_1.default)(typeof opts.files === 'object', '"files" must be an object');

(0, assert_1.default)(typeof environment === 'object', '"environment" is not an object');
if (architecture !== undefined) {
(0, assert_1.default)(architecture === 'x86_64' || architecture === 'arm64', '"architecture" must be either "x86_64" or "arm64"');
}
if (memory !== undefined) {

@@ -60,2 +63,3 @@ (0, assert_1.default)(typeof memory === 'number', '"memory" is not a number');

this.runtime = runtime;
this.architecture = architecture;
this.memory = memory;

@@ -62,0 +66,0 @@ this.maxDuration = maxDuration;

4

package.json
{
"name": "@vercel/build-utils",
"version": "7.0.0",
"version": "7.1.0",
"license": "Apache-2.0",

@@ -29,3 +29,3 @@ "main": "./dist/index.js",

"@types/yazl": "2.4.2",
"@vercel/error-utils": "2.0.0",
"@vercel/error-utils": "2.0.1",
"@vercel/ncc": "0.24.0",

@@ -32,0 +32,0 @@ "aggregate-error": "3.0.1",

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