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

@netlify/edge-bundler

Package Overview
Dependencies
Maintainers
17
Versions
136
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 12.2.3 to 12.3.0

2

dist/node/bridge.d.ts
import { type WriteStream } from 'fs';
import { ExecaChildProcess } from 'execa';
import { Logger } from './logger.js';
declare const DENO_VERSION_RANGE = "1.37.0 - 1.44.4";
declare const DENO_VERSION_RANGE = "1.39.0 - 1.46.3";
type OnBeforeDownloadHook = () => void | Promise<void>;

@@ -6,0 +6,0 @@ type OnAfterDownloadHook = (error?: Error) => void | Promise<void>;

@@ -12,7 +12,6 @@ import { promises as fs } from 'fs';

const DENO_VERSION_FILE = 'version.txt';
// When updating DENO_VERSION_RANGE, ensure that the deno version installed in the
// build-image/buildbot does satisfy this range!
// We're pinning the range because of an issue with v1.45.0 of the Deno CLI:
// https://linear.app/netlify/issue/FRP-775/deno-cli-v1450-causing-issues
const DENO_VERSION_RANGE = '1.37.0 - 1.44.4';
// When updating DENO_VERSION_RANGE, ensure that the deno version
// on the netlify/buildbot build image satisfies this range!
// https://github.com/netlify/buildbot/blob/f9c03c9dcb091d6570e9d0778381560d469e78ad/build-image/noble/Dockerfile#L410
const DENO_VERSION_RANGE = '1.39.0 - 1.46.3';
class DenoBridge {

@@ -19,0 +18,0 @@ constructor(options) {

@@ -0,3 +1,5 @@

import { platform } from 'os';
import fetch from 'node-fetch';
import waitFor from 'p-wait-for';
import { satisfies } from 'semver';
// 1 second

@@ -32,5 +34,15 @@ const SERVER_KILL_TIMEOUT = 1e3;

ps.on('error', reject);
ps.kill('SIGTERM', {
forceKillAfterTimeout: SERVER_KILL_TIMEOUT,
});
// On Windows with Node 21+, there's a bug where attempting to kill a child process
// results in an EPERM error. Ignore the error in that case.
// See: https://github.com/nodejs/node/issues/51766
// We also disable execa's `forceKillAfterTimeout` in this case
// which can cause unhandled rejection.
try {
ps.kill('SIGTERM', {
forceKillAfterTimeout: platform() === 'win32' && satisfies(process.version, '>=21') ? false : SERVER_KILL_TIMEOUT,
});
}
catch {
// no-op
}
});

@@ -37,0 +49,0 @@ };

{
"name": "@netlify/edge-bundler",
"version": "12.2.3",
"version": "12.3.0",
"description": "Intelligently prepare Netlify Edge Functions for deployment",

@@ -87,3 +87,3 @@ "type": "module",

},
"gitHead": "507a010535ba4028153a755b397501109fa872c9"
"gitHead": "0b25c72f762393fa13a50e673a0fd48eb37f5120"
}
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