@netlify/edge-bundler 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { ExecaChildProcess } from 'execa';
3
3
  import { Logger } from './logger.js';
4
+ declare const DENO_VERSION_RANGE = "^1.22.0";
4
5
  declare type OnBeforeDownloadHook = () => void | Promise<void>;
5
6
  declare type OnAfterDownloadHook = (error?: Error) => void | Promise<void>;
6
7
  interface DenoOptions {
@@ -48,5 +49,5 @@ declare class DenoBridge {
48
49
  run(args: string[], { pipeOutput, env: inputEnv, extendEnv }?: RunOptions): Promise<import("execa").ExecaReturnValue<string>>;
49
50
  runInBackground(args: string[], ref?: ProcessRef, { pipeOutput, env: inputEnv, extendEnv }?: RunOptions): Promise<void>;
50
51
  }
51
- export { DenoBridge };
52
+ export { DENO_VERSION_RANGE, DenoBridge };
52
53
  export type { DenoOptions, OnAfterDownloadHook, OnBeforeDownloadHook, ProcessRef };
@@ -9,7 +9,7 @@ import { getPathInHome } from './home_path.js';
9
9
  import { getLogger } from './logger.js';
10
10
  import { getBinaryExtension } from './platform.js';
11
11
  const DENO_VERSION_FILE = 'version.txt';
12
- const DENO_VERSION_RANGE = '^1.20.3';
12
+ const DENO_VERSION_RANGE = '^1.22.0';
13
13
  class DenoBridge {
14
14
  constructor(options) {
15
15
  var _a, _b, _c, _d, _e;
@@ -150,4 +150,4 @@ class DenoBridge {
150
150
  }
151
151
  }
152
152
  }
153
- export { DenoBridge };
153
+ export { DENO_VERSION_RANGE, DenoBridge };
@@ -90,7 +90,7 @@ const serve = async ({ certificatePath, debug, distImportMapPath, inspectSetting
90
90
  flags.push(inspectSettings.address ? `--inspect=${inspectSettings.address}` : '--inspect');
91
91
  }
92
92
  }
93
- const server = await prepareServer({
93
+ const server = prepareServer({
94
94
  deno,
95
95
  distDirectory,
96
96
  flags,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/edge-bundler",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Intelligently prepare Netlify Edge Functions for deployment",
5
5
  "type": "module",
6
6
  "main": "./dist/node/index.js",
@@ -87,6 +87,7 @@
87
87
  "del": "^6.0.0",
88
88
  "env-paths": "^3.0.0",
89
89
  "execa": "^6.0.0",
90
+ "get-port": "^6.1.2",
90
91
  "find-up": "^6.3.0",
91
92
  "glob-to-regexp": "^0.4.1",
92
93
  "node-fetch": "^3.1.1",