@netlify/edge-bundler 8.16.1 → 8.16.3

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.
@@ -9,6 +9,8 @@ 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
+ // When updating DENO_VERSION_RANGE, ensure that the deno version installed in the
13
+ // build-image/buildbot does satisfy this range!
12
14
  const DENO_VERSION_RANGE = '^1.30.0';
13
15
  class DenoBridge {
14
16
  constructor(options) {
@@ -52,7 +54,9 @@ class DenoBridge {
52
54
  }
53
55
  return version[1];
54
56
  }
55
- catch { }
57
+ catch (error) {
58
+ this.logger.system('getBinaryVersion failed', error);
59
+ }
56
60
  }
57
61
  async getCachedBinary() {
58
62
  const versionFilePath = path.join(this.cacheDirectory, DENO_VERSION_FILE);
@@ -20,9 +20,9 @@ const download = async (targetDirectory, versionRange) => {
20
20
  const file = createWriteStream(zipPath);
21
21
  try {
22
22
  await new Promise((resolve, reject) => {
23
- data.pipe(file);
24
23
  data.on('error', reject);
25
24
  file.on('finish', resolve);
25
+ data.pipe(file);
26
26
  });
27
27
  await extractBinaryFromZip(zipPath, binaryPath, binaryName);
28
28
  return binaryPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/edge-bundler",
3
- "version": "8.16.1",
3
+ "version": "8.16.3",
4
4
  "description": "Intelligently prepare Netlify Edge Functions for deployment",
5
5
  "type": "module",
6
6
  "main": "./dist/node/index.js",
@@ -58,7 +58,7 @@
58
58
  "@types/node": "^14.18.32",
59
59
  "@types/semver": "^7.3.9",
60
60
  "@types/uuid": "^9.0.0",
61
- "@vitest/coverage-c8": "^0.31.0",
61
+ "@vitest/coverage-c8": "^0.33.0",
62
62
  "archiver": "^5.3.1",
63
63
  "chalk": "^4.1.2",
64
64
  "cpy": "^9.0.1",
@@ -67,7 +67,7 @@
67
67
  "nock": "^13.2.4",
68
68
  "tar": "^6.1.11",
69
69
  "typescript": "^5.0.0",
70
- "vitest": "^0.31.0"
70
+ "vitest": "^0.33.0"
71
71
  },
72
72
  "engines": {
73
73
  "node": "^14.16.0 || >=16.0.0"