@netlify/edge-bundler
Advanced tools
Comparing version 1.4.3 to 1.5.0
@@ -32,3 +32,2 @@ import { ExecaChildProcess } from 'execa'; | ||
private getRemoteBinary; | ||
private log; | ||
private static runWithBinary; | ||
@@ -40,2 +39,3 @@ private writeVersionFile; | ||
}>; | ||
log(...data: unknown[]): void; | ||
run(args: string[], { pipeOutput }?: RunOptions): Promise<import("execa").ExecaReturnValue<string>>; | ||
@@ -42,0 +42,0 @@ runInBackground(args: string[], pipeOutput?: boolean, ref?: ProcessRef): Promise<void>; |
@@ -85,8 +85,2 @@ import { promises as fs } from 'fs'; | ||
} | ||
log(...data) { | ||
if (!this.debug) { | ||
return; | ||
} | ||
console.log(...data); | ||
} | ||
static runWithBinary(binaryPath, args, pipeOutput) { | ||
@@ -119,2 +113,8 @@ var _a, _b; | ||
} | ||
log(...data) { | ||
if (!this.debug) { | ||
return; | ||
} | ||
console.log(...data); | ||
} | ||
// Runs the Deno CLI in the background and returns a reference to the child | ||
@@ -121,0 +121,0 @@ // process, awaiting its execution. |
@@ -12,2 +12,3 @@ import { promises as fs } from 'fs'; | ||
import { writeManifest } from './manifest.js'; | ||
import { ensureLatestTypes } from './types.js'; | ||
const createBundleOps = ({ basePath, buildID, debug, deno, distDirectory, functions, importMap, featureFlags, }) => { | ||
@@ -46,2 +47,3 @@ const bundleOps = []; | ||
const basePath = getBasePath(sourceDirectories); | ||
await ensureLatestTypes(deno); | ||
// The name of the bundle will be the hash of its contents, which we can't | ||
@@ -48,0 +50,0 @@ // compute until we run the bundle process. For now, we'll use a random ID |
@@ -5,2 +5,3 @@ import { tmpName } from 'tmp-promise'; | ||
import { ImportMap } from '../import_map.js'; | ||
import { ensureLatestTypes } from '../types.js'; | ||
import { killProcess, waitForServer } from './util.js'; | ||
@@ -43,3 +44,2 @@ const prepareServer = ({ deno, distDirectory, flags: denoFlags, formatExportTypeError, formatImportError, port, }) => { | ||
}; | ||
// eslint-disable-next-line complexity, max-statements | ||
const serve = async ({ certificatePath, debug, distImportMapPath, inspectSettings, formatExportTypeError, formatImportError, importMaps, onAfterDownload, onBeforeDownload, port, }) => { | ||
@@ -56,2 +56,4 @@ const deno = new DenoBridge({ | ||
await deno.getBinaryPath(); | ||
// Downloading latest types if needed. | ||
await ensureLatestTypes(deno); | ||
// Creating an ImportMap instance with any import maps supplied by the user, | ||
@@ -58,0 +60,0 @@ // if any. |
{ | ||
"name": "@netlify/edge-bundler", | ||
"version": "1.4.3", | ||
"version": "1.5.0", | ||
"description": "Intelligently prepare Netlify Edge Functions for deployment", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
46818
48
1079
11
4