@netlify/edge-bundler 2.3.0 → 2.3.1

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.
package/deno/config.ts CHANGED
@@ -5,7 +5,9 @@ let func
5
5
 
6
6
  try {
7
7
  func = await import(functionURL)
8
- } catch {
8
+ } catch (error) {
9
+ console.error(error)
10
+
9
11
  Deno.exit(exitCodes.ImportError)
10
12
  }
11
13
 
@@ -31,7 +33,9 @@ try {
31
33
  const result = JSON.stringify(config)
32
34
 
33
35
  await Deno.writeTextFile(new URL(collectorURL), result)
34
- } catch {
36
+ } catch (error) {
37
+ console.error(error)
38
+
35
39
  Deno.exit(exitCodes.SerializationError)
36
40
  }
37
41
 
@@ -34,6 +34,7 @@ export const getFunctionConfig = async (func, deno, log) => {
34
34
  // the exit code to know exactly what happened and guide people accordingly.
35
35
  const { exitCode, stderr, stdout } = await deno.run([
36
36
  'run',
37
+ '--allow-net',
37
38
  '--allow-read',
38
39
  `--allow-write=${collector.path}`,
39
40
  '--quiet',
@@ -65,7 +66,7 @@ const logConfigError = (func, exitCode, stderr, log) => {
65
66
  switch (exitCode) {
66
67
  case ConfigExitCode.ImportError:
67
68
  log.user(`Could not load edge function at '${func.path}'`);
68
- log.system(stderr);
69
+ log.user(stderr);
69
70
  break;
70
71
  case ConfigExitCode.NoConfig:
71
72
  log.system(`No in-source config found for edge function at '${func.path}'`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/edge-bundler",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Intelligently prepare Netlify Edge Functions for deployment",
5
5
  "type": "module",
6
6
  "main": "./dist/node/index.js",