Socket
Socket
Sign inDemoInstall

@vercel/build-utils

Package Overview
Dependencies
Maintainers
12
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 2.2.2-canary.4 to 2.2.2-canary.7

LICENSE

2

dist/detect-builders.d.ts

@@ -1,2 +0,2 @@

import { Route } from '@now/routing-utils';
import { Route } from '@vercel/routing-utils';
import { PackageJson, Builder, BuilderFunctions } from './types';

@@ -3,0 +3,0 @@ interface ErrorResponse {

@@ -9,2 +9,3 @@ "use strict";

const path_1 = require("path");
const _1 = require("./");
// We need to sort the file paths by alphabet to make

@@ -32,3 +33,3 @@ // sure the routes stay in the same order e.g. for deduping

function getPublicBuilder(builders) {
const builder = builders.find(builder => builder.use === '@now/static' &&
const builder = builders.find(builder => _1.isOfficialRuntime('static', builder.use) &&
/^.*\/\*\*\/\*$/.test(builder.src) &&

@@ -127,3 +128,4 @@ builder.config &&

!fileName.includes('/') &&
fileName !== 'now.json') {
fileName !== 'now.json' &&
fileName !== 'vercel.json') {
fallbackEntrypoint = fileName;

@@ -268,7 +270,7 @@ }

return [
{ src: 'api/**/*.js', use: `@now/node${withTag}`, config },
{ src: 'api/**/*.ts', use: `@now/node${withTag}`, config },
{ src: 'api/**/!(*_test).go', use: `@now/go${withTag}`, config },
{ src: 'api/**/*.py', use: `@now/python${withTag}`, config },
{ src: 'api/**/*.rb', use: `@now/ruby${withTag}`, config },
{ src: 'api/**/*.js', use: `@vercel/node${withTag}`, config },
{ src: 'api/**/*.ts', use: `@vercel/node${withTag}`, config },
{ src: 'api/**/!(*_test).go', use: `@vercel/go${withTag}`, config },
{ src: 'api/**/*.py', use: `@vercel/python${withTag}`, config },
{ src: 'api/**/*.rb', use: `@vercel/ruby${withTag}`, config },
];

@@ -319,3 +321,3 @@ }

if (framework === 'nextjs') {
return { src: 'package.json', use: `@now/next${withTag}`, config };
return { src: 'package.json', use: `@vercel/next${withTag}`, config };
}

@@ -340,3 +342,3 @@ // Entrypoints for other frameworks

src: source || 'package.json',
use: `@now/static-build${withTag}`,
use: `@vercel/static-build${withTag}`,
config,

@@ -428,3 +430,3 @@ };

// Next.js can use functions only for `src/pages` or `pages`
if (frontendBuilder && frontendBuilder.use.startsWith('@now/next')) {
if (frontendBuilder && _1.isOfficialRuntime('next', frontendBuilder.use)) {
for (const fnKey of unusedFunctions.values()) {

@@ -699,3 +701,3 @@ if (fnKey.startsWith('pages/') || fnKey.startsWith('src/pages')) {

!options.featHandleMiss &&
frontendBuilder.use === '@now/static') {
_1.isOfficialRuntime('static', frontendBuilder.use)) {
defaultRoutes.push({

@@ -702,0 +704,0 @@ src: '/(.*)',

@@ -1,2 +0,2 @@

import { Framework } from '@now/frameworks';
import { Framework } from '@vercel/frameworks';
import { DetectorFilesystem } from './detectors/filesystem';

@@ -3,0 +3,0 @@ export interface DetectFrameworkOptions {

@@ -23,1 +23,5 @@ import FileBlob from './file-blob';

export * from './errors';
/**
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
*/
export declare const isOfficialRuntime: (desired: string, name?: string | undefined) => boolean;

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

skipDownload?: boolean;
requestPath?: string | null;
requestPath?: string;
filesChanged?: string[];

@@ -74,3 +74,3 @@ filesRemoved?: string[];

* An arbitrary object passed by the user in the build definition defined
* in `now.json`.
* in `vercel.json`.
*/

@@ -98,3 +98,3 @@ config: Config;

* An arbitrary object passed by the user in the build definition defined
* in `now.json`.
* in `vercel.json`.
*/

@@ -133,3 +133,3 @@ config: Config;

* An arbitrary object passed by the user in the build definition defined
* in `now.json`.
* in `vercel.json`.
*/

@@ -163,30 +163,6 @@ config: Config;

* An arbitrary object passed by the user in the build definition defined
* in `now.json`.
* in `vercel.json`.
*/
config: Config;
}
export interface StartDevServerOptions {
/**
* Name of entrypoint file for this particular build job. Value
* `files[entrypoint]` is guaranteed to exist and be a valid File reference.
* `entrypoint` is always a discrete file and never a glob, since globs are
* expanded into separate builds at deployment time.
*/
entrypoint: string;
/**
* A writable temporary directory where you are encouraged to perform your
* build process. This directory will be populated with the restored cache.
*/
workPath: string;
/**
* An arbitrary object passed by the user in the build definition defined
* in `now.json`.
*/
config: Config;
/**
* Runtime environment variables configuration from the project's `now.json`
* and local `.env` file.
*/
env: Env;
}
export interface StartDevServerSuccess {

@@ -213,3 +189,3 @@ /**

*/
export declare namespace PackageJson {
declare namespace PackageJson {
/**

@@ -324,1 +300,2 @@ * An author or contributor

}
export {};
{
"name": "@vercel/build-utils",
"version": "2.2.2-canary.4",
"version": "2.2.2-canary.7",
"license": "MIT",

@@ -15,4 +15,4 @@ "main": "./dist/index.js",

"build": "./build.sh",
"test-unit": "jest --env node --verbose --runInBand test/unit.*test.*",
"test-integration-once": "jest --env node --verbose --runInBand test/integration.test.js",
"test-unit": "jest --env node --verbose --runInBand --bail test/unit.*test.*",
"test-integration-once": "jest --env node --verbose --runInBand --bail test/integration.test.js",
"prepublishOnly": "./build.sh"

@@ -51,3 +51,4 @@ },

"yazl": "2.4.3"
}
},
"gitHead": "898478d1e1712a761c6e87878ef6831c2a793767"
}

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