Socket
Socket
Sign inDemoInstall

@vercel/build-utils

Package Overview
Dependencies
Maintainers
24
Versions
306
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.6.1-canary.0 to 2.6.1-canary.1

21

dist/detect-builders.js

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

return new Set(builders
.filter(b => b.config && b.config.zeroConfig && b.src && b.src.startsWith('api/'))
.filter((b) => { var _a; return Boolean(b.config && b.config.zeroConfig && ((_a = b.src) === null || _a === void 0 ? void 0 : _a.startsWith('api/'))); })
.map(b => path_1.extname(b.src))

@@ -31,3 +31,3 @@ .filter(Boolean));

// builder.config.apiDirectory so it is only detected once
const found = builders.some(b => b.config && b.config.zeroConfig && b.src.startsWith('api/'));
const found = builders.some(b => { var _a; return b.config && b.config.zeroConfig && ((_a = b.src) === null || _a === void 0 ? void 0 : _a.startsWith('api/')); });
return found ? 'api' : null;

@@ -38,7 +38,12 @@ }

function getPublicBuilder(builders) {
const builder = builders.find(builder => _1.isOfficialRuntime('static', builder.use) &&
/^.*\/\*\*\/\*$/.test(builder.src) &&
builder.config &&
builder.config.zeroConfig === true);
return builder || null;
for (const builder of builders) {
if (typeof builder.src === 'string' &&
_1.isOfficialRuntime('static', builder.use) &&
/^.*\/\*\*\/\*$/.test(builder.src) &&
builder.config &&
builder.config.zeroConfig === true) {
return builder;
}
}
return null;
}

@@ -248,3 +253,3 @@ function detectOutputDirectory(builders) {

}
const match = apiMatches.find(({ src }) => {
const match = apiMatches.find(({ src = '**' }) => {
return src === fileName || minimatch_1.default(fileName, src);

@@ -251,0 +256,0 @@ });

@@ -294,3 +294,3 @@ /// <reference types="node" />

use: string;
src: string;
src?: string;
config?: Config;

@@ -297,0 +297,0 @@ }

{
"name": "@vercel/build-utils",
"version": "2.6.1-canary.0",
"version": "2.6.1-canary.1",
"license": "MIT",

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

},
"gitHead": "25c3e627cfcfebd2f2b33e3aadfa53a8a60c7304"
"gitHead": "503b9a242976c20c48d691c72de6017da65f387a"
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc