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

@netlify/edge-bundler

Package Overview
Dependencies
Maintainers
15
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/edge-bundler - npm Package Compare versions

Comparing version 1.4.3 to 1.5.0

dist/types.d.ts

2

dist/bridge.d.ts

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

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